/* ===== 顺衡ERP 全站样式表 ===== */
:root {
  --primary: #1a56db;
  --primary-dark: #0d3e9e;
  --primary-light: #3b82f6;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --red-600: #dc2626;
  --green-600: #059669;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

/* ===== Header & Nav ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}
.logo img { height: 40px; }
.logo span { color: var(--gray-800); }
.nav { display: flex; gap: 8px; align-items: center; }
.nav a {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--gray-600);
  transition: all 0.2s;
}
.nav a:hover, .nav a.active {
  color: var(--primary);
  background: var(--gray-100);
  text-decoration: none;
}
.lang-switch {
  margin-left: 12px;
  padding: 6px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--gray-600);
  cursor: pointer;
  background: var(--white);
  transition: all 0.2s;
}
.lang-switch:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-weight: 700;
}
.hero p {
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto 32px;
  opacity: 0.9;
  line-height: 1.7;
}
.hero .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--gray-100); color: var(--primary-dark); text-decoration: none; }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }

/* ===== Section ===== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--gray-900);
}
.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* ===== Cards Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.3s;
}
.card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.card-icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--gray-900); }
.card p { color: var(--gray-600); font-size: 0.95rem; line-height: 1.6; }

/* ===== Features List ===== */
.feature-list { list-style: none; }
.feature-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  display: flex;
  gap: 8px;
}
.feature-list li::before { content: "✓"; color: var(--green-600); font-weight: bold; }

/* ===== Content Pages ===== */
.content-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}
.content-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--gray-900);
}
.content-page .updated {
  color: var(--gray-400);
  font-size: 0.85rem;
  margin-bottom: 32px;
}
.content-page h2 {
  font-size: 1.35rem;
  margin: 32px 0 12px;
  color: var(--gray-800);
}
.content-page h3 {
  font-size: 1.1rem;
  margin: 24px 0 8px;
  color: var(--gray-700);
}
.content-page p {
  color: var(--gray-600);
  margin-bottom: 12px;
  line-height: 1.8;
}
.content-page ul, .content-page ol {
  margin: 12px 0 12px 24px;
  color: var(--gray-600);
  line-height: 1.8;
}
.content-page li { margin-bottom: 6px; }

/* ===== Contact Info ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.contact-item {
  padding: 24px;
  background: var(--gray-50);
  border-radius: 10px;
  border: 1px solid var(--gray-200);
}
.contact-item h3 { color: var(--gray-900); margin-bottom: 8px; font-size: 1rem; }
.contact-item p { color: var(--gray-600); font-size: 0.95rem; margin: 0; }

/* ===== Footer ===== */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 60px 20px 30px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-col p { font-size: 0.9rem; line-height: 1.6; }
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--gray-700);
  font-size: 0.85rem;
  text-align: center;
  color: var(--gray-500);
}

/* ===== Pricing Table ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.pricing-card {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s;
  background: var(--white);
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
  transform: scale(1.02);
}
.pricing-card h3 { font-size: 1.2rem; color: var(--gray-900); margin-bottom: 8px; }
.pricing-card .price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 16px 0;
}
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: var(--gray-500); }
.pricing-card ul { list-style: none; margin: 20px 0; text-align: left; }
.pricing-card ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-600);
  font-size: 0.9rem;
}
.pricing-card ul li::before { content: "✓ "; color: var(--green-600); font-weight: bold; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .section-title { font-size: 1.5rem; }
  .nav { gap: 4px; }
  .nav a { padding: 6px 10px; font-size: 0.8rem; }
  .pricing-card.featured { transform: none; }
  .card-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}


/* ===== Page-Specific Styles (Vue SPA) ===== */
/* Page: / */
.hero-features { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
    .hero-feature { text-align: center; padding: 16px 24px; background: rgba(255,255,255,0.1); border-radius: 8px; min-width: 150px; }
    .hero-feature .num { font-size: 1.8rem; font-weight: 700; display: block; }
    .hero-feature .label { font-size: 0.85rem; opacity: 0.8; }

    .module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
    .module-card {
      background: var(--white);
      border: 1px solid var(--gray-200);
      border-radius: 12px;
      padding: 24px;
      text-align: center;
      transition: all 0.3s;
    }
    .module-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); transform: translateY(-2px); }
    .module-card .icon { width: 64px; height: 64px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; background: var(--gray-100); border-radius: 16px; font-size: 1.8rem; }
    .module-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--gray-900); }
    .module-card p { color: var(--gray-600); font-size: 0.9rem; line-height: 1.6; }

    .stats { background: var(--gray-50); padding: 60px 20px; }
    .stats-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
    .stats-item .stat-num { font-size: 2rem; font-weight: 700; color: var(--primary); display: block; }
    .stats-item .stat-label { color: var(--gray-500); font-size: 0.9rem; margin-top: 4px; }

    .compliance-badge {
      display: inline-flex; align-items: center; gap: 6px;
      background: var(--green-600); color: white; padding: 4px 12px;
      border-radius: 20px; font-size: 0.8rem; font-weight: 500;
    }

    .banner-text {
      max-width: 1200px; margin: 0 auto; padding: 60px 20px;
      display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
    }
    .banner-text h2 { font-size: 1.6rem; margin-bottom: 16px; color: var(--gray-900); }
    .banner-text p { color: var(--gray-600); line-height: 1.8; margin-bottom: 12px; }
    .banner-text img { max-width: 100%; border-radius: 12px; }

    @media (max-width: 768px) {
      .stats-grid { grid-template-columns: repeat(2, 1fr); }
      .banner-text { grid-template-columns: 1fr; }
      .hero-features { flex-direction: column; align-items: center; }
    }

/* Page: /products */
.product-detail { display: flex; gap: 40px; margin: 60px auto; padding: 40px; background: var(--gray-50); border-radius: 16px; align-items: center; max-width: 1000px; animation: fadeInUp 0.6s ease-out both; }
    .product-detail:nth-child(even) { flex-direction: row-reverse; }
    .product-detail .info { flex: 1; text-align: left; }
    .product-detail .info h2 { font-size: 1.5rem; margin-bottom: 12px; color: var(--gray-900); }
    .product-detail .info p { color: var(--gray-600); line-height: 1.8; margin-bottom: 8px; }
    .product-detail .info ul { list-style: none; margin: 16px 0; }
    .product-detail .info ul li { padding: 8px 0; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); }
    .product-detail img { max-width: 380px; height: auto; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; }
    .product-detail img:hover { transform: scale(1.02); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }

    /* Brand Analytics 单独调整：图片加大，文字紧凑 */
    #brand-analytics .info { flex: 1.2; }
    #brand-analytics img { max-width: 480px; }
    #brand-analytics .aba-sub-list { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
    #brand-analytics .aba-item { padding: 10px; }
    #brand-analytics .aba-item h4 { font-size: 0.9rem; margin-bottom: 4px; }
    #brand-analytics .aba-item p { font-size: 0.82rem; }
    #brand-analytics p { font-size: 0.9rem; }

    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(30px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .aba-sub-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 20px 0; }
    .aba-item { padding: 16px; background: var(--white); border-radius: 10px; border: 1px solid var(--gray-200); }
    .aba-item h4 { font-size: 1rem; color: var(--gray-900); margin-bottom: 6px; }
    .aba-item p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.5; margin: 0; }

    @media (max-width: 768px) {
      .product-detail { flex-direction: column !important; max-width: 100%; }
      .product-detail img { max-width: 100%; }
    }

    /* === 动画特效 === */
    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(40px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .product-detail {
      opacity: 0;
      animation: fadeInUp 0.6s ease forwards;
    }
    .product-detail img {
      display: block;
      margin: 20px auto 0;
      max-width: 100%;
      height: auto;
      border-radius: 8px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.08);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .product-detail img:hover {
      transform: scale(1.02);
      box-shadow: 0 8px 28px rgba(0,0,0,0.15);
    }
    .aba-item {
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .aba-item:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }

    /* === 动画特效 === */
    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(40px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .product-detail {
      opacity: 0;
      animation: fadeInUp 0.6s ease forwards;
    }
    .product-detail img {
      display: block;
      margin: 20px auto 0;
      max-width: 100%;
      height: auto;
      border-radius: 8px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.08);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .product-detail img:hover {
      transform: scale(1.02);
      box-shadow: 0 8px 28px rgba(0,0,0,0.15);
    }
    .aba-item {
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .aba-item:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }

/* Page: /en/products */
.product-detail { display: flex; gap: 40px; margin: 60px auto; padding: 40px; background: var(--gray-50); border-radius: 16px; align-items: center; max-width: 1000px; animation: fadeInUp 0.6s ease-out both; }
    .product-detail:nth-child(even) { flex-direction: row-reverse; }
    .product-detail .info { flex: 1; text-align: left; }
    .product-detail .info h2 { font-size: 1.5rem; margin-bottom: 12px; color: var(--gray-900); }
    .product-detail .info p { color: var(--gray-600); line-height: 1.8; margin-bottom: 8px; }
    .product-detail .info ul { list-style: none; margin: 16px 0; }
    .product-detail .info ul li { padding: 8px 0; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); }
    .product-detail img { max-width: 380px; height: auto; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; }
    .product-detail img:hover { transform: scale(1.02); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }

    /* Brand Analytics 单独调整 */
    #brand-analytics .info { flex: 1.2; }
    #brand-analytics img { max-width: 480px; }
    #brand-analytics .aba-sub-list { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
    #brand-analytics .aba-item { padding: 10px; }
    #brand-analytics .aba-item h4 { font-size: 0.9rem; margin-bottom: 4px; }
    #brand-analytics .aba-item p { font-size: 0.82rem; }

    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(30px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .aba-sub-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 20px 0; }
    .aba-item { padding: 16px; background: var(--white); border-radius: 10px; border: 1px solid var(--gray-200); }
    .aba-item h4 { font-size: 1rem; color: var(--gray-900); margin-bottom: 6px; }
    .aba-item p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.5; margin: 0; }

    @media (max-width: 768px) {
      .product-detail { flex-direction: column !important; max-width: 100%; }
      .product-detail img { max-width: 100%; }
    }

    /* === Animations === */
    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(40px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .product-detail {
      opacity: 0;
      animation: fadeInUp 0.6s ease forwards;
    }
    .product-detail img {
      display: block;
      margin: 20px auto 0;
      max-width: 100%;
      height: auto;
      border-radius: 8px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.08);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .product-detail img:hover {
      transform: scale(1.02);
      box-shadow: 0 8px 28px rgba(0,0,0,0.15);
    }
    .aba-item {
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .aba-item:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }

    /* === Animations === */
    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(40px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .product-detail {
      opacity: 0;
      animation: fadeInUp 0.6s ease forwards;
    }
    .product-detail img {
      display: block;
      margin: 20px auto 0;
      max-width: 100%;
      height: auto;
      border-radius: 8px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.08);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .product-detail img:hover {
      transform: scale(1.02);
      box-shadow: 0 8px 28px rgba(0,0,0,0.15);
    }
    .aba-item {
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .aba-item:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }