/* ===========================================================
   希道轨迹（广州）电子商务有限公司 · 企业官网样式
   纯静态、无外部依赖，可直接部署
   =========================================================== */

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

:root {
  --blue: #0066cc;
  --blue-hover: #0071e3;
  --blue-light: #2997ff;
  --ink: #1d1d1f;
  --body: #333333;
  --muted: #7a7a7a;
  --faint: #999999;
  --parchment: #f5f5f7;
  --white: #ffffff;
  --dark: #1d1d1f;
  --line: #e0e0e0;
  --line-soft: #f0f0f0;
  --line-dark: #3a3a3c;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section { padding: 88px 0; }
.section--parchment { background: var(--parchment); }
.section--dark { background: var(--dark); color: var(--white); }

/* ---------------- 顶部导航 ---------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 74px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 600; letter-spacing: .5px; flex-shrink: 0;
}
.nav-right { display: flex; align-items: center; gap: 40px; }
.nav-menu { display: flex; align-items: center; gap: 34px; }
.nav-menu a { font-size: 15px; color: var(--ink); transition: color .2s; white-space: nowrap; }
.nav-menu a:hover { color: var(--blue); }
.nav-menu a.active { color: var(--blue); font-weight: 500; }

.nav-toggle { display: none; }
.nav-burger {
  display: none; width: 44px; height: 44px; cursor: pointer;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  display: block; width: 20px; height: 2px; background: var(--ink);
  border-radius: 2px; position: relative; transition: transform .25s;
}
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; }
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px; font-size: 17px; font-weight: 500;
  padding: 15px 36px; border: 1px solid transparent; cursor: pointer;
  white-space: nowrap; transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: rgba(0, 102, 204, .06); }
.btn-sm { padding: 11px 26px; font-size: 15px; }

/* ---------------- 首屏 ---------------- */
.hero { padding: 104px 0 76px; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--parchment); border-radius: 9999px;
  padding: 8px 18px; font-size: 14px; font-weight: 500; color: var(--body);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.hero h1 {
  font-size: 58px; line-height: 1.18; font-weight: 600;
  letter-spacing: -.5px; max-width: 880px; margin: 22px auto 0;
}
.hero .lead {
  font-size: 19px; line-height: 1.6; color: var(--muted);
  max-width: 700px; margin: 22px auto 0;
}
.hero-actions {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; margin-top: 34px;
}

/* ---------------- 图片占位 ---------------- */
.visual {
  border-radius: 24px; overflow: hidden;
  background: linear-gradient(135deg, #eef3fb 0%, #f5f5f7 55%, #e9eef7 100%);
  display: flex; align-items: center; justify-content: center;
  color: #9aa3ad; font-size: 15px; letter-spacing: .5px;
  width: 100%; height: 460px;
}
.visual--hero { max-width: 1180px; margin: 56px auto 0; }

/* ---------------- 区块标题 ---------------- */
.sec-head { text-align: center; max-width: 780px; margin: 0 auto; }
.kicker { font-size: 15px; font-weight: 500; color: var(--blue); letter-spacing: .4px; }
.sec-head h2 { font-size: 40px; font-weight: 600; line-height: 1.25; letter-spacing: -.3px; margin-top: 14px; }
.sec-head p { font-size: 17px; color: var(--muted); margin-top: 14px; }
.section--dark .sec-head h2 { color: #fff; }
.section--dark .sec-head p { color: #cccccc; }

/* ---------------- 卡片网格 ---------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.card { background: #fff; border-radius: 18px; padding: 32px; }
.card .ico {
  width: 48px; height: 48px; border-radius: 14px; background: var(--blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card h3 { font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--muted); line-height: 1.65; }
.card--dark { background: #272729; }
.card--dark h3 { color: #fff; }
.card--dark p { color: #cccccc; }
.section--dark .kicker { color: var(--blue-light); }

/* ---------------- 左右分栏 ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split .visual { height: 400px; }
.split h2 { font-size: 36px; font-weight: 600; line-height: 1.3; letter-spacing: -.3px; margin-top: 14px; }
.split .desc { font-size: 17px; color: var(--muted); line-height: 1.65; margin-top: 20px; }
.section--dark .split h2 { color: #fff; }
.section--dark .split .desc { color: #cccccc; }

.checklist { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--body); }
.checklist svg { flex-shrink: 0; margin-top: 3px; }
.section--dark .checklist li { color: #cccccc; }

.info-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.info-list li { font-size: 15px; color: var(--body); }

/* ---------------- 内页页头 ---------------- */
.page-hero { padding: 80px 0 60px; text-align: center; background: var(--parchment); }
.page-hero h1 { font-size: 48px; font-weight: 600; letter-spacing: -.5px; line-height: 1.2; }
.page-hero p { font-size: 18px; color: var(--muted); max-width: 700px; margin: 16px auto 0; line-height: 1.65; }
.page-hero .kicker { margin-bottom: 12px; }

/* ---------------- 新闻列表 ---------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; transition: border-color .2s, transform .2s; display: block;
}
.news-card:hover { border-color: #c9c9cf; transform: translateY(-2px); }
.news-card .thumb { height: 176px; background: linear-gradient(135deg, #eef3fb, #f5f5f7); }
.news-card .nb { padding: 24px; }
.news-card time { font-size: 13px; color: var(--faint); }
.news-card h3 { font-size: 18px; font-weight: 600; margin: 8px 0 10px; line-height: 1.45; }
.news-card p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ---------------- 联系方式 ---------------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.contact-card .ico {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(0, 102, 204, .1);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.contact-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.contact-card p { font-size: 15px; color: var(--muted); line-height: 1.75; word-break: break-all; }

/* ---------------- 条款正文 ---------------- */
.legal { max-width: 820px; margin: 0 auto; padding: 72px 0 88px; }
.legal .updated { font-size: 14px; color: var(--muted); padding-bottom: 24px; border-bottom: 1px solid var(--line-soft); }
.legal h2 { font-size: 24px; font-weight: 600; margin: 44px 0 14px; line-height: 1.4; }
.legal h3 { font-size: 18px; font-weight: 600; margin: 28px 0 10px; }
.legal p { font-size: 16px; color: var(--body); line-height: 1.85; margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 24px; margin-bottom: 12px; }
.legal li { font-size: 16px; color: var(--body); line-height: 1.85; margin-bottom: 8px; }
.legal strong { font-weight: 600; color: var(--ink); }

/* ---------------- 行动号召 ---------------- */
.cta { background: var(--parchment); padding: 88px 0; text-align: center; }
.cta h2 { font-size: 40px; font-weight: 600; letter-spacing: -.3px; line-height: 1.25; }
.cta p { font-size: 18px; color: var(--muted); max-width: 640px; margin: 16px auto 0; line-height: 1.65; }
.cta .btn { margin-top: 32px; }

/* ---------------- 页脚 ---------------- */
.footer { background: var(--dark); color: #ccc; padding: 72px 0 30px; }
.footer-top { display: flex; justify-content: space-between; gap: 64px; padding-bottom: 40px; }
.footer-brand { max-width: 380px; }
.footer-brand .brand { color: #fff; }
.footer-tagline { font-size: 15px; color: #ccc; line-height: 1.6; margin-top: 18px; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; font-size: 15px; color: #ccc; }
.footer-links { display: flex; gap: 72px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col h4 { font-size: 14px; font-weight: 600; color: #fff; }
.footer-col a { font-size: 14px; color: #ccc; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-divider { height: 1px; background: var(--line-dark); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; color: #7a7a7a;
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: #999; transition: color .2s; }
.footer-legal a:hover { color: #ccc; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .hero h1 { font-size: 44px; }
  .split { gap: 48px; }
  .grid-3, .news-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-links { gap: 48px; }
}

@media (max-width: 900px) {
  .nav-burger { display: flex; }
  .nav-right > .btn { display: none; }
  .nav-menu {
    position: absolute; top: 74px; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 32px 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle:checked ~ .nav-right .nav-menu { display: flex; }
  .nav-menu a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-menu a:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .container { padding: 0 24px; }
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 56px; }
  .hero h1 { font-size: 34px; letter-spacing: -.3px; }
  .hero .lead { font-size: 17px; }
  .sec-head h2 { font-size: 30px; }
  .page-hero { padding: 56px 0 44px; }
  .page-hero h1 { font-size: 34px; }
  .page-hero p { font-size: 16px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split h2 { font-size: 28px; }
  .split .visual { height: 260px; }
  .grid-3, .grid-4, .news-grid, .contact-grid { grid-template-columns: 1fr; }
  .visual, .visual--hero { height: 240px; margin-top: 40px; }
  .cta h2 { font-size: 30px; }
  .cta p { font-size: 16px; }
  .footer { padding: 56px 0 28px; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-links { flex-wrap: wrap; gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------------- 图片填充 ---------------- */
.visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card .thumb { overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------- 产品卡片 ---------------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.product-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s;
}
.product-card:hover { transform: translateY(-4px); }
.product-card .thumb { height: 210px; background: var(--parchment); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card .pb { padding: 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card .tag { font-size: 12px; font-weight: 600; color: var(--blue); letter-spacing: .6px; }
.product-card h3 { font-size: 20px; font-weight: 600; line-height: 1.35; }
.product-card p { font-size: 15px; color: var(--muted); line-height: 1.65; }

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card .thumb { height: 190px; }
}
