/* ==========================================================================
   分钟行测官网样式
   参考 www.fenghots.com 的科技风：深色头部 + 蓝紫主色 + 卡片式模块
   ========================================================================== */

:root {
  --brand: #2c5aa0;
  --brand-2: #667eea;
  --brand-3: #764ba2;
  --ink: #14203a;
  --ink-2: #3d4a63;
  --muted: #6b7891;
  --line: #e6ebf4;
  --bg: #ffffff;
  --bg-alt: #f5f7fc;
  --dark: #101a30;
  --dark-2: #16213e;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(20, 32, 58, .07);
  --shadow-lg: 0 16px 50px rgba(20, 32, 58, .12);
  --wrap: 1160px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--bg);
  /* 防止长英文/长 URL 造成横向溢出 */
  overflow-x: hidden;
  word-break: break-word;
}

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

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

h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: 2.35rem; letter-spacing: -.5px; }
h2 { font-size: 1.65rem; margin-top: 1.8em; }
h3 { font-size: 1.12rem; }

p { margin: 0 0 1em; }

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

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff;
  padding: 10px 16px; z-index: 999;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------------- 头部 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(16, 26, 48, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.header-inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 66px;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { color: #fff; font-size: 1.16rem; letter-spacing: .5px; }
.brand-text em { color: rgba(255, 255, 255, .5); font-size: .73rem; font-style: normal; }

.site-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.site-nav a {
  color: rgba(255, 255, 255, .78); padding: 8px 13px; border-radius: 8px;
  font-size: .95rem; white-space: nowrap;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); text-decoration: none; }
.site-nav a.active { color: #fff; background: rgba(102, 126, 234, .3); font-weight: 600; }

.header-cta {
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
  color: #fff; padding: 9px 20px; border-radius: 999px; font-size: .92rem;
  font-weight: 600; white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(102, 126, 234, .4);
}
.header-cta:hover { text-decoration: none; opacity: .92; }

.nav-toggle {
  display: none; background: transparent; border: 1px solid rgba(255, 255, 255, .3);
  color: #fff; font-size: 1.2rem; border-radius: 8px; width: 40px; height: 38px;
  cursor: pointer; line-height: 1;
}

/* ---------------- 首页 Hero ---------------- */
.hero {
  background:
    radial-gradient(1100px 520px at 78% -12%, rgba(102, 126, 234, .32), transparent 62%),
    linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
  color: rgba(255, 255, 255, .82);
  padding: 66px 0 74px;
}

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

.hero-badge {
  display: inline-block; margin: 0 0 16px; padding: 6px 15px; border-radius: 999px;
  background: rgba(102, 126, 234, .22); color: #c3cdfb; font-size: .82rem;
  border: 1px solid rgba(102, 126, 234, .35);
}

.hero h1 { color: #fff; font-size: 2.6rem; margin-bottom: .5em; }
.hero-lead { font-size: 1.04rem; color: rgba(255, 255, 255, .72); margin-bottom: 1.6em; }
.hero-lead strong { color: #fff; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 1.4em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 999px; font-weight: 600; font-size: .97rem;
  transition: transform .15s, opacity .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3)); color: #fff;
  box-shadow: 0 8px 24px rgba(102, 126, 234, .42);
}
.btn-ghost { border: 1px solid rgba(255, 255, 255, .38); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }

.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.hero-tags span {
  font-size: .8rem; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .09); color: rgba(255, 255, 255, .8);
}

.hero-figure { margin: 0; }
.hero-figure img {
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .12);
}

/* ---------------- 数据条 ---------------- */
.stats { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
/* 注意：本元素同时带 .wrap（靠 margin:0 auto 居中），
   因此这里只能用 margin-* 长写清掉 ul 默认外边距，不能写 margin 简写，
   否则会把 .wrap 的左右 auto 重置为 0 导致整条数据不居中。 */
.stats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  list-style: none;
  margin-top: 0; margin-bottom: 0; margin-left: auto; margin-right: auto;
  padding: 26px 20px;
}
.stats-grid li { text-align: center; }
.stats-grid strong {
  display: block; font-size: 1.52rem; color: var(--brand);
  font-weight: 800; letter-spacing: -.5px;
}
.stats-grid span { font-size: .82rem; color: var(--muted); }

/* ---------------- 通用区块 ---------------- */
.section { padding: 66px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head h2 { margin-top: .2em; }
.eyebrow {
  color: var(--brand-2); font-weight: 700; font-size: .86rem;
  letter-spacing: 2px; text-transform: uppercase; margin: 0;
}
.section-sub { color: var(--muted); margin: 0; }

.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px;
}
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-card h3 { margin-bottom: .5em; }
.feature-card h3::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
  margin-right: 9px; vertical-align: middle;
}
.feature-card p { color: var(--muted); font-size: .95rem; margin-bottom: .9em; }
.feature-card a { font-weight: 600; font-size: .93rem; }

/* ---------------- 正文排版 ---------------- */
.prose { max-width: 880px; }
.prose h2:first-child { margin-top: 0; }

.value-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;
}
/* 该区块在 .prose(880px) 容器内，用 2 列避免 4 个卡片排成 3+1 的尴尬版式 */
.value-grid.four { grid-template-columns: repeat(2, 1fr); }
.value-grid > div {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.value-grid h3 { margin-bottom: .4em; color: var(--brand); }
.value-grid p { margin: 0; color: var(--muted); font-size: .95rem; }

.tick-list, .num-list { padding-left: 0; list-style: none; margin: 0 0 1.3em; }
.tick-list li {
  position: relative; padding-left: 26px; margin-bottom: .6em; color: var(--ink-2);
}
.tick-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand-2); font-weight: 700;
}
.num-list { counter-reset: n; }
.num-list li {
  position: relative; padding-left: 34px; margin-bottom: .7em; counter-increment: n;
}
.num-list li::before {
  content: counter(n); position: absolute; left: 0; top: .25em;
  width: 22px; height: 22px; border-radius: 50%; font-size: .78rem;
  background: rgba(102, 126, 234, .14); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}

.feature-block {
  padding: 26px 0; border-bottom: 1px dashed var(--line);
}
.feature-block:last-child { border-bottom: none; }

.note {
  background: rgba(102, 126, 234, .07); border-left: 3px solid var(--brand-2);
  padding: 12px 16px; border-radius: 0 8px 8px 0; color: var(--ink-2); font-size: .94rem;
}

/* ---------------- 表格 ---------------- */
.data-table {
  width: 100%; border-collapse: collapse; margin: 18px 0 30px; font-size: .95rem;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.data-table caption {
  caption-side: top; text-align: left; color: var(--muted);
  font-size: .86rem; padding-bottom: 10px;
}
.data-table th, .data-table td {
  padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line);
}
.data-table thead th {
  background: var(--bg-alt); color: var(--ink); font-weight: 700; white-space: nowrap;
}
.data-table tbody th { font-weight: 600; color: var(--ink); }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: none; }
.data-table td:first-of-type { white-space: nowrap; color: var(--brand); font-weight: 600; }

/* ---------------- 页面 Hero ---------------- */
.page-hero {
  background:
    radial-gradient(900px 400px at 82% -30%, rgba(102, 126, 234, .3), transparent 65%),
    linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
  color: rgba(255, 255, 255, .78); padding: 56px 0 60px;
}
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero p { max-width: 780px; margin: 0; font-size: 1.02rem; }

/* ---------------- FAQ ---------------- */
.faq-list { margin: 0 0 26px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 18px 22px; list-style: none; display: flex;
  align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; margin-left: auto; color: var(--brand-2); font-size: 1.35rem;
  font-weight: 400; flex-shrink: 0; transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary h3 { margin: 0; font-size: 1.02rem; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-answer { padding: 16px 22px 4px; }
.faq-answer p { margin: 0 0 1em; color: var(--muted); }

.contact-list { list-style: none; padding: 0; }
.contact-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); }

/* ---------------- 下载区 ---------------- */
.download {
  background:
    radial-gradient(800px 380px at 20% 0%, rgba(102, 126, 234, .28), transparent 60%),
    linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
  padding: 58px 0; color: rgba(255, 255, 255, .78);
}
.download-inner {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.download-text h2 { color: #fff; margin-top: 0; }
.download-text p { color: rgba(255, 255, 255, .7); }
.download-points { list-style: none; padding: 0; margin: 0; }
.download-points li {
  position: relative; padding-left: 24px; margin-bottom: .5em;
  color: rgba(255, 255, 255, .8);
}
.download-points li::before {
  content: "✓"; position: absolute; left: 0; color: #8fa4f5; font-weight: 700;
}
.download-qr { margin: 0; text-align: center; }
.download-qr img {
  width: 200px; border-radius: 12px; background: #fff; padding: 8px;
}
.download-qr figcaption {
  margin-top: 12px; font-size: .86rem; color: rgba(255, 255, 255, .6);
}

/* ---------------- 页脚 ---------------- */
.site-footer { background: #0c1425; color: rgba(255, 255, 255, .6); padding: 50px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px;
  padding-bottom: 34px;
}
.footer-brand p { font-size: .9rem; color: rgba(255, 255, 255, .55); }
.footer-brand img { border-radius: 50%; margin-bottom: 12px; }
.footer-qr-inline {
  display: flex; align-items: center; gap: 14px; margin-top: 16px;
}
.footer-qr-inline img { background: #fff; padding: 5px; border-radius: 10px; margin: 0; }
.footer-qr-inline span { font-size: .82rem; color: rgba(255, 255, 255, .5); }

.site-footer h3 {
  color: #fff; font-size: .95rem; margin-bottom: .9em; letter-spacing: .5px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5em; font-size: .9rem; }
.site-footer a { color: rgba(255, 255, 255, .62); }
.site-footer a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 20px 26px;
  font-size: .82rem; color: rgba(255, 255, 255, .42);
}
.footer-bottom a { color: rgba(255, 255, 255, .5); margin-left: 12px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 460px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 20px 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .download-inner { grid-template-columns: 1fr; }
  .download-qr { justify-self: start; }
}

@media (max-width: 760px) {
  h1 { font-size: 1.75rem; }
  .hero h1 { font-size: 1.95rem; }
  h2 { font-size: 1.35rem; }
  .section { padding: 48px 0; }
  .hero { padding: 44px 0 52px; }

  .header-inner { gap: 10px; position: relative; }
  .brand-text em { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }

  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--dark); flex-direction: column; padding: 10px 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .1); margin: 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 12px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .data-table { font-size: .88rem; }
  .data-table th, .data-table td { padding: 10px 12px; }
  .value-grid.four { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .download, .site-footer, .nav-toggle { display: none; }
}
