/* ============================================================
   Glossy Autoparts 海外订单系统官网 · 纯静态样式
   ============================================================ */

:root {
  --primary: #1f5eff;
  --primary-dark: #1449c9;
  --primary-light: #e8efff;
  --ink: #16233a;
  --ink-soft: #4a5872;
  --ink-muted: #8a94a8;
  --bg: #ffffff;
  --bg-alt: #f5f8fd;
  --border: #e3e9f4;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(22, 35, 58, 0.08);
  --shadow-lg: 0 16px 48px rgba(22, 35, 58, 0.14);
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(31, 94, 255, 0.35);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-lg { padding: 15px 40px; font-size: 16px; }

/* ---------- 导航栏 ---------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.25s ease;
}

.navbar.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
}

.brand-logo {
  width: 36px;
  height: 36px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 语言切换按钮：当前语言高亮 */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-muted);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lang-switch:hover { border-color: var(--primary); }

.lang-sep { color: var(--border); }

.lang-switch.is-zh .lang-zh,
.lang-switch.is-en .lang-en { color: var(--primary); }

/* 移动端汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.25s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  padding: 150px 0 90px;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(31, 94, 255, 0.12), transparent 65%),
    radial-gradient(600px 300px at -10% 110%, rgba(106, 162, 255, 0.10), transparent 60%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 56px;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 44px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero-title span { display: block; }

.hero-title-en {
  font-size: 26px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-top: 6px;
}

.hero-desc {
  margin: 22px 0 30px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  list-style: none;
  margin-top: 46px;
  flex-wrap: wrap;
}

.hero-stats li { display: flex; flex-direction: column; }

.hero-stats strong {
  font-size: 20px;
  color: var(--primary);
  font-weight: 700;
}

.hero-stats span { font-size: 13px; color: var(--ink-muted); }

/* 首屏右侧演示卡片 */
.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(1.5deg);
  transition: transform 0.3s ease;
}

.hero-card:hover { transform: rotate(0deg) translateY(-4px); }

.hero-card-header {
  display: flex;
  gap: 7px;
  padding: 14px 18px;
  background: #f7f9fd;
  border-bottom: 1px solid var(--border);
}

.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-green { background: #34c759; }
.dot-yellow { background: #ffb020; }
.dot-red { background: #ff5f57; }

.hero-card-body { padding: 26px; }

.order-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.order-no {
  font-family: Consolas, Menlo, monospace;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.badge {
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-shipped {
  background: #e6f7ee;
  color: #1a9e54;
}

.progress-track {
  height: 7px;
  border-radius: 999px;
  background: #edf1f8;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #6aa2ff);
}

.order-steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 14px;
  font-size: 13px;
  color: var(--ink-muted);
}

.order-steps li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.order-steps li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4dbe8;
  flex-shrink: 0;
}

.order-steps li.done { color: var(--ink); font-weight: 600; }

.order-steps li.done::before { background: var(--primary); }

/* ---------- 通用分区 ---------- */

.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

.section-eyebrow {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 48px;
  max-width: 640px;
}

/* ---------- 业务介绍 ---------- */

/* 过去 vs 现在 图形化对比 */
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

.era-card {
  border-radius: var(--radius);
  padding: 26px 32px;
  text-align: center;
}

.era-before {
  background: #fff;
  border: 1.5px dashed #d4dbe8;
  transform: rotate(-1.5deg);
}

.era-after {
  background: linear-gradient(165deg, #f0f6ff, #ffffff);
  border: 1.5px solid #c9dbff;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.era-tiles {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.era-tile {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #f4f6fa;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.era-tile img { width: 26px; height: 26px; }

.era-logo {
  width: 46px;
  height: 46px;
  margin: 0 auto;
  display: block;
}

.era-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 10px;
  margin: 16px auto 4px;
  width: max-content;
}

.era-grid img { width: 22px; height: 22px; opacity: 0.85; }

.era-label {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 14px;
  white-space: nowrap;
}

.era-arrow {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.point-card {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.point-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  margin-top: 4px;
}

.point-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }

.point-card p { font-size: 14px; color: var(--ink-soft); }

/* ---------- 核心能力 ---------- */

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

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  display: block;
}

.feature-card h3 { font-size: 16px; font-weight: 700; }

/* ---------- 订单流程 ---------- */

.workflow-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.workflow-step {
  position: relative;
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.step-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--primary-light);
  margin-bottom: 14px;
}

.step-bubble img { width: 28px; height: 28px; }

.workflow-step h3 { font-size: 15.5px; font-weight: 700; }

/* ---------- 协作角色 ---------- */

.roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-bottom: 36px;
}

.role-card {
  padding: 32px 30px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.role-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.role-customer .role-tag { background: #e6f7ee; color: #1a9e54; }
.role-gelosy .role-tag { background: var(--primary-light); color: var(--primary); }

.role-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }

.role-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.role-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #f4f7fd;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-soft);
  transition: border-color 0.2s, color 0.2s;
}

.role-chips li:hover { border-color: var(--primary); color: var(--primary); }

.role-chips img { width: 16px; height: 16px; }

.role-notes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.role-notes li {
  font-size: 14px;
  color: var(--ink-soft);
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 14px 18px 14px 46px;
  position: relative;
}

.role-notes li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: url("../assets/icons/check.svg") center / contain no-repeat;
}

/* ---------- 联系我们 ---------- */

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

.contact-inner .section-title,
.contact-inner .section-desc { margin-left: auto; margin-right: auto; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
}

.contact-icon {
  width: 34px;
  height: 34px;
  display: block;
  margin: 0 auto 14px;
}

.contact-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }

.contact-card p { font-size: 14px; color: var(--ink-soft); word-break: break-all; }

/* ---------- 页脚 ---------- */

.footer {
  background: #101a2e;
  color: rgba(255, 255, 255, 0.72);
  padding: 54px 0 34px;
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 10px;
}

.footer-desc { font-size: 14px; margin-bottom: 22px; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-links a { color: rgba(255, 255, 255, 0.72); font-size: 14px; }
.footer-links a:hover { color: #fff; }

.footer-icp { font-size: 12.5px; }
.footer-icp a { color: rgba(255, 255, 255, 0.55); }
.footer-icp a:hover { color: rgba(255, 255, 255, 0.85); }

/* ---------- 响应式 ---------- */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: 120px; }
  .hero-title { font-size: 34px; }
  .hero-title-en { font-size: 21px; }
  .about-visual { gap: 22px; }
  .era-arrow { transform: rotate(90deg); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-steps { grid-template-columns: repeat(2, 1fr); }
  .roles-grid { grid-template-columns: 1fr; }
  .role-notes { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 14px 6%;
    border-top: 1px solid var(--bg-alt);
  }

  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .hero { padding-top: 110px; }
  .hero-stats { gap: 26px; }
  .feature-grid { grid-template-columns: 1fr; }
  .workflow-steps { grid-template-columns: 1fr; }
  .order-steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-title { font-size: 27px; }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
