/* 大象外贸服务 - 全局样式 */

/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f5f8fa;
}

/* 头部样式 */
header {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  color: #fff;
  padding: 8px 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(21, 101, 192, 0.3);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-logo-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.header-logo-text {
  text-align: center;
}

.header-logo-title {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 4px;
}

.header-logo-subtitle {
  font-size: 11px;
  color: #bbdefb;
  letter-spacing: 2px;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 25px;
}

.header-contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.header-contact-item {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
}

.header-contact-icon {
  margin-right: 8px;
}

.header-qrcode {
  height: 96px;
}

/* 导航栏样式 */
nav {
  background: linear-gradient(90deg, #1976d2, #1565c0);
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 15px;
  border-radius: 3px;
  transition: background 0.3s;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

nav a.active {
  background: rgba(255, 255, 255, 0.3);
}

/* 主体内容 */
main {
  flex: 1;
  padding: 20px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* 横幅 */
.banner {
  width: 100%;
  height: 350px;
  background: linear-gradient(135deg, #1565c0, #42a5f5);
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 服务卡片区域 */
.services {
  margin-bottom: 60px;
}

.services h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #0d47a1;
  font-size: 2em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-card {
  background: linear-gradient(145deg, #fff, #e3f2fd);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(21, 101, 192, 0.1);
  border-top: 4px solid #1976d2;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(21, 101, 192, 0.2);
}

.service-card h3 {
  color: #1565c0;
  margin-bottom: 8px;
  font-size: 1.5em;
}

.service-card p {
  color: #666;
  font-size: 14px;
  margin-bottom: 12px;
}

.service-card ul {
  text-align: left;
  font-size: 13px;
  color: #555;
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card ul li {
  padding: 5px 0;
  border-bottom: 1px dashed #e3f2fd;
}

.service-card ul li:last-child {
  border-bottom: none;
}

/* 优势对比区域 */
.advantage {
  margin-top: 60px;
  margin-bottom: 60px;
}

.advantage h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #0d47a1;
  font-size: 2em;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(21, 101, 192, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid #bbdefb;
  padding: 12px 15px;
  text-align: center;
}

.comparison-table th {
  background: linear-gradient(135deg, #1565c0, #1976d2);
  color: #fff;
  font-weight: 600;
}

.comparison-table tr:nth-child(even) {
  background: #e3f2fd;
}

.our-advantage {
  background: #fff !important;
  color: #333;
  font-weight: bold;
}

.peer-warning {
  background: #fff;
  color: #666;
}

/* 页脚样式 */
footer {
  background: linear-gradient(135deg, #0d47a1, #1565c0);
  color: #fff;
  padding: 30px;
  text-align: center;
  margin-top: 60px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.footer-contact {
  text-align: center;
}

.footer-contact p {
  margin-bottom: 5px;
}

.footer-qrcode {
  text-align: center;
}

.footer-qrcode img {
  height: 100px;
}

.footer-qrcode-text {
  font-size: 12px;
  margin-top: 5px;
}

.footer-bottom {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 15px;
}

.footer-bottom a {
  color: #fff;
}

.footer-bottom-text {
  margin-top: 10px;
}

/* 子页面标题 */
.page-title {
  text-align: center;
  margin: 30px 0;
  color: #0d47a1;
  font-size: 2.2em;
  font-weight: bold;
}

/* 内容区块 */
.content-section {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(21, 101, 192, 0.1);
}

.content-section h2 {
  color: #1565c0;
  font-size: 1.5em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #1976d2;
  display: inline-block;
}

.content-section p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 15px;
}

.content-section ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.content-section li {
  color: #555;
  line-height: 1.8;
  margin-bottom: 8px;
}

/* 服务列表 */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.service-item {
  background: linear-gradient(145deg, #e3f2fd, #fff);
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #1976d2;
}

/* 优势网格 */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.advantage-item {
  text-align: center;
  padding: 20px;
  background: linear-gradient(145deg, #fff, #e3f2fd);
  border-radius: 10px;
}

.advantage-item .number {
  font-size: 2em;
  color: #1565c0;
  font-weight: bold;
  margin-bottom: 10px;
}

.advantage-item .title {
  color: #0d47a1;
  font-weight: bold;
  margin-bottom: 8px;
}

.advantage-item .desc {
  color: #666;
  font-size: 14px;
}

/* CTA 按钮 */
.cta-section {
  text-align: center;
  margin: 40px 0;
}

.cta-section p {
  font-size: 1.2em;
  color: #333;
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #1565c0, #1976d2);
  color: #fff;
  padding: 15px 40px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(21, 101, 192, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  nav ul {
    gap: 15px;
    flex-wrap: wrap;
  }

  .header-container {
    flex-direction: column;
    gap: 15px;
  }

  .header-contact {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
