/* ============================================================
   厦门吉日启程科技有限公司 · 官网样式
   主色：白 + 红   风格：简洁、大气、克制
   ============================================================ */

:root {
  --red: #d9251d;
  --red-dark: #b41a13;
  --red-soft: #fdeeec;
  --red-line: #f4c9c5;

  --ink: #101317;
  --ink-2: #39404a;
  --muted: #6d7580;
  --line: #e9ebef;
  --bg: #ffffff;
  --bg-soft: #fafafb;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1180px;
  --header-h: 72px;

  --shadow-sm: 0 1px 2px rgba(16, 19, 23, .04);
  --shadow-md: 0 12px 32px rgba(16, 19, 23, .08);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
h1, h2, h3, h4 { margin: 0; line-height: 1.28; letter-spacing: -.01em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 28px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: all .22s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(217, 37, 29, .25); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 999px;
  background: var(--red-soft); color: var(--red);
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
}
.eyebrow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }

.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: 18px 0 14px; font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { color: var(--muted); font-size: 17px; }
.text-red { color: var(--red); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { border-radius: 9px; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 17px; letter-spacing: .02em; }
.brand-text em { font-style: normal; font-size: 10px; letter-spacing: .16em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav > a:not(.btn) { position: relative; font-size: 15px; color: var(--ink-2); }
.nav > a:not(.btn):hover { color: var(--red); }
.nav > a.active:not(.btn) { color: var(--ink); font-weight: 600; }
.nav > a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -26px; height: 2px; background: var(--red);
}
.nav-cta { margin-left: 4px; }
.nav-cta.active::after { display: none; }

.nav-toggle { display: none; width: 42px; height: 42px; padding: 0; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; margin: 4.5px auto; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 76px; }
.hero::before {
  content: ""; position: absolute; top: -240px; right: -180px; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(217, 37, 29, .10), rgba(217, 37, 29, 0) 68%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { margin: 22px 0 20px; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.02em; }
.hero .lead { max-width: 540px; color: var(--ink-2); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; color: var(--muted); font-size: 14px; }
.hero-meta li { display: flex; align-items: center; gap: 7px; }
.hero-meta .icon { width: 16px; height: 16px; color: var(--red); }
.hero-visual { display: flex; justify-content: center; }
.hero-visual svg { width: 100%; max-width: 312px; height: auto; filter: drop-shadow(0 24px 48px rgba(16, 19, 23, .12)); }

/* ---------- 数据条 ---------- */
.stats { border-top: 1px solid var(--line); background: var(--bg-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 44px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: 36px; line-height: 1.1; color: var(--red); letter-spacing: -.02em; }
.stat span { display: block; margin: 10px 0 6px; font-weight: 600; }
.stat small { color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* ---------- 卡片网格 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  padding: 30px 28px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { border-color: var(--red-line); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .icon-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 20px;
  border-radius: 12px; background: var(--red-soft); color: var(--red);
}
.card .icon-box .icon { width: 23px; height: 23px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- 图文分栏 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 68px; align-items: center; }
.split p + p { margin-top: 16px; }
.split .body { color: var(--ink-2); }
.quote-block {
  padding: 30px 32px; border-left: 3px solid var(--red);
  background: var(--red-soft); border-radius: 0 var(--radius) var(--radius) 0;
}
.quote-block b { display: block; font-size: 24px; color: var(--red); margin-bottom: 8px; }
.quote-block span { color: var(--ink-2); font-size: 15px; }

/* ---------- 产品模块 ---------- */
.module { padding: 32px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.module .num { font-size: 13px; font-weight: 700; color: var(--red); letter-spacing: .12em; }
.module h3 { margin: 12px 0 12px; font-size: 21px; }
.module > p { color: var(--muted); font-size: 15px; }
.module ul { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.module li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; color: var(--ink-2); }
.module li .icon { flex: none; width: 16px; height: 16px; margin-top: 5px; color: var(--red); }

/* ---------- 下载区 ---------- */
.download-band { background: var(--ink); color: #fff; }
.download-band .section-head p, .download-band .muted { color: rgba(255, 255, 255, .66); }
.download-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.download-band h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 18px 0 16px; }
.download-band .eyebrow { background: rgba(217, 37, 29, .18); color: #ff7a72; }
.dl-list { display: grid; gap: 12px; margin: 28px 0 32px; }
.dl-list li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .82); font-size: 15px; }
.dl-list .icon { width: 17px; height: 17px; color: var(--red); flex: none; }
.download-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.download-band .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }

.qr-card {
  justify-self: center; width: 100%; max-width: 300px; padding: 26px;
  background: #fff; border-radius: var(--radius); color: var(--ink); text-align: center;
}
.qr-card .qr-box { width: 190px; height: 190px; margin: 0 auto 16px; }
.qr-card .qr-box svg { width: 100%; height: 100%; }
.qr-card b { display: block; font-size: 15px; }
.qr-card small { color: var(--muted); font-size: 13px; }

.dl-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; color: var(--muted); font-size: 13.5px; }

/* ---------- 联系页 ---------- */
.contact-card { padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card h3 { font-size: 16px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.contact-card p { font-size: 19px; font-weight: 600; word-break: break-all; }
.contact-card a:hover { color: var(--red); }

/* ---------- 文档页 ---------- */
.doc { max-width: 800px; margin: 0 auto; }
.doc h2 { font-size: 22px; margin: 40px 0 14px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); }
.doc p, .doc li { color: var(--ink-2); font-size: 15.5px; }
.doc ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; margin-top: 12px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* ---------- CTA 尾条 ---------- */
.cta-strip { padding: 72px 0; text-align: center; }
.cta-strip h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 14px; }
.cta-strip p { color: var(--muted); margin-bottom: 30px; }

/* ---------- 页脚 ---------- */
.site-footer { padding: 68px 0 34px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-top { display: grid; grid-template-columns: 1.1fr 2fr; gap: 48px; }
.footer-slogan { margin-top: 16px; color: var(--muted); font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 14px; margin-bottom: 4px; }
.footer-col a, .footer-col span { color: var(--muted); font-size: 14px; }
.footer-col a:hover { color: var(--red); }
.disclaimer {
  margin: 44px 0 24px; padding: 18px 20px;
  border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #fff; color: var(--muted); font-size: 13px; line-height: 1.8;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
.footer-bottom a:hover { color: var(--red); }

/* ---------- 404 ---------- */
.error-page { padding: 140px 0; text-align: center; }
.error-page b { font-size: 76px; color: var(--red); letter-spacing: -.03em; }
.error-page h1 { margin: 8px 0 14px; font-size: 26px; }
.error-page p { color: var(--muted); margin-bottom: 28px; }

/* ---------- 滚动出现动效 ---------- */
/* 仅在 JS 可用时才隐藏，避免脚本异常导致内容不可见 */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .download-grid, .footer-top { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 64px 0; }
  .hero-visual { order: -1; }
  .hero-visual svg { max-width: 300px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 32px 20px; border-top: 1px solid var(--line); }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(-n+2) { border-top: 0; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 20px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.open { display: flex; }
  .nav > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav > a.active::after { display: none; }
  .nav-cta { margin: 16px 0 0; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .footer-cols { grid-template-columns: 1fr; }
  .footer-cols { gap: 28px; }
  .split { gap: 32px; }
  .section-head { margin-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 内页头部 ---------- */
.page-hero { position: relative; padding: 76px 0 60px; border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; top: -320px; right: -120px; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(217, 37, 29, .09), rgba(217, 37, 29, 0) 68%); pointer-events: none;
}
.page-hero .inner { position: relative; max-width: 760px; }
.page-hero h1 { margin: 18px 0 16px; font-size: clamp(30px, 4.4vw, 46px); }
.page-hero p { color: var(--muted); font-size: 17px; }
@media (max-width: 720px) { .page-hero { padding: 52px 0 44px; } }
