/* 鼎资通官网 - 设计系统（小米/苹果风格：大留白、大字号、玻璃拟态导航、渐变点缀） */
:root {
  --blue: #0071e3;
  --blue-dark: #005bb8;
  --orange: #ff6700;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --gray: #86868b;
  --bg: #ffffff;
  --bg-gray: #f5f5f7;
  --radius: 24px;
  --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: 1px; }
.logo svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-size: 14px; padding: 8px 14px; border-radius: 8px; transition: all .25s; }
.nav-links a:hover { color: var(--ink); background: rgba(0, 0, 0, .05); }
.nav-links a.active { color: var(--blue); font-weight: 600; }
.nav-cta { background: var(--blue); color: #fff !important; border-radius: 20px !important; padding: 8px 20px !important; }
.nav-cta:hover { background: var(--blue-dark); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  display: flex; align-items: center;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(0, 113, 227, .28), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(255, 103, 0, .16), transparent 60%),
    linear-gradient(180deg, #0a0e1a 0%, #101828 55%, #0d1220 100%);
  color: #fff;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; text-align: center; width: 100%; }
.hero-tag {
  display: inline-block; padding: 6px 18px; border-radius: 20px; font-size: 14px;
  background: rgba(0, 113, 227, .18); border: 1px solid rgba(0, 113, 227, .4);
  color: #7cb8ff; margin-bottom: 28px; letter-spacing: 2px;
}
.hero h1 {
  font-size: clamp(40px, 6.5vw, 76px);
  font-weight: 700; letter-spacing: 2px; line-height: 1.15;
  background: linear-gradient(120deg, #fff 30%, #8ec5ff 70%, #ffd29e);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}
.hero p.sub { font-size: clamp(16px, 2vw, 21px); color: rgba(255,255,255,.72); max-width: 720px; margin: 0 auto 44px; }
.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* Hero 产品预览 */
.hero-preview { position: relative; max-width: 940px; margin: 64px auto 0; animation: heroFloat 7s ease-in-out infinite; }
.hp-window {
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
}
.hp-bar { display: flex; align-items: center; gap: 7px; padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.hp-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.22); }
.hp-bar i:nth-child(1) { background: #ff5f57; } .hp-bar i:nth-child(2) { background: #febc2e; } .hp-bar i:nth-child(3) { background: #28c840; }
.hp-bar span { margin-left: 10px; font-size: 12.5px; color: rgba(255,255,255,.5); letter-spacing: 1px; }
.hp-body { display: grid; grid-template-columns: 1.15fr .85fr 1.15fr; gap: 16px; padding: 20px; }
.hp-card { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09); border-radius: 13px; padding: 18px; text-align: left; }
.hp-label { font-size: 11.5px; color: rgba(255,255,255,.45); letter-spacing: 1.5px; margin-bottom: 9px; }
.hp-title { font-size: 14.5px; color: #fff; margin-bottom: 12px; }
.hp-row { display: flex; justify-content: space-between; font-size: 12.5px; color: rgba(255,255,255,.5); padding: 4px 0; }
.hp-row b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.hp-bar-line { height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); margin-top: 14px; overflow: hidden; }
.hp-bar-line i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #0071e3, #62b0ff); }
.hp-match { text-align: center; display: flex; flex-direction: column; justify-content: center; }
.hp-match .hp-label { text-align: left; }
.hp-score { font-size: 46px; font-weight: 700; color: #62b0ff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hp-score span { font-size: 18px; font-weight: 500; margin-left: 2px; }
.hp-sub { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 6px; }
.hp-pulse { display: flex; gap: 5px; justify-content: center; margin-top: 14px; }
.hp-pulse i { width: 6px; height: 6px; border-radius: 50%; background: #62b0ff; opacity: .35; animation: pulseDot 1.4s ease-in-out infinite; }
.hp-pulse i:nth-child(2) { animation-delay: .2s; } .hp-pulse i:nth-child(3) { animation-delay: .4s; }
.hp-chip { position: absolute; padding: 9px 16px; border-radius: 20px; font-size: 12.5px; color: rgba(255,255,255,.88); background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(10px); white-space: nowrap; }
.hp-chip-1 { top: -18px; right: -18px; animation: heroFloat 6s ease-in-out infinite .6s; }
.hp-chip-2 { bottom: -18px; left: -18px; animation: heroFloat 6.5s ease-in-out infinite .3s; }
@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulseDot { 0%, 100% { opacity: .25; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.15); } }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 14px 34px; border-radius: 28px; font-size: 16px;
  transition: all .25s; cursor: pointer; border: 0; font-family: inherit;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 113, 227, .35); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-light { background: var(--bg-gray); color: var(--ink); }
.btn-light:hover { background: #e8e8ed; }
.btn-sm { padding: 9px 22px; font-size: 14px; }

/* ---------- 区块 ---------- */
section.section { padding: 100px 0; }
section.section.gray { background: var(--bg-gray); }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head .eyebrow { color: var(--orange); font-size: 15px; font-weight: 600; letter-spacing: 3px; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: 1px; margin-bottom: 18px; }
.section-head p { color: var(--gray); font-size: 17px; max-width: 760px; margin: 0 auto; }

/* ---------- 数据带 ---------- */
.stats-band { background: var(--ink); color: #fff; padding: 72px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-num { font-size: clamp(34px, 4.5vw, 54px); font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-num .unit { font-size: .45em; font-weight: 500; color: rgba(255,255,255,.65); margin-left: 4px; }
.stat-label { color: rgba(255,255,255,.6); font-size: 15px; margin-top: 8px; }

/* ---------- 卡片 ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 36px 30px;
  transition: transform .35s, box-shadow .35s;
}
.gray .card, .card.plain { box-shadow: 0 2px 16px rgba(0, 0, 0, .05); }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(0, 0, 0, .1); }
.card .icon { width: 54px; height: 54px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 22px; background: linear-gradient(135deg, #eaf3ff, #dcebff); }
.card h3 { font-size: 19px; margin-bottom: 12px; }
.card p { color: var(--gray); font-size: 14.5px; line-height: 1.75; }

/* ---------- 深色特性区 ---------- */
.dark-feature { background: linear-gradient(180deg, #0d1220, #101a30); color: #fff; padding: 110px 0; }
.dark-feature .section-head h2 { color: #fff; }
.dark-feature .section-head p { color: rgba(255,255,255,.6); }
.feature-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.feature-box {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius); padding: 40px 36px; transition: all .35s;
}
.feature-box:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); }
.feature-box .fnum { font-size: 13px; color: #6ea8ff; letter-spacing: 2px; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.feature-box h3 { font-size: 21px; margin-bottom: 14px; }
.feature-box p { color: rgba(255,255,255,.62); font-size: 14.5px; line-height: 1.8; }

/* ---------- 对比表 ---------- */
.vs-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,.05); }
.vs-table th, .vs-table td { padding: 18px 24px; text-align: left; font-size: 14.5px; border-bottom: 1px solid #f0f0f2; }
.vs-table th { background: var(--bg-gray); font-weight: 600; }
.vs-table td:first-child { font-weight: 600; color: var(--ink-2); width: 130px; }
.vs-table .good { color: var(--blue); font-weight: 600; }
.vs-table tr:last-child td { border-bottom: 0; }

/* ---------- 时间轴 ---------- */
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--blue), var(--orange)); border-radius: 2px; }
.tl-item { position: relative; padding-bottom: 44px; }
.tl-item::before { content: ""; position: absolute; left: -34px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item .year { font-size: 20px; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.tl-item .title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.tl-item p { color: var(--gray); font-size: 14.5px; }

/* ---------- 入驻流程 ---------- */
.steps { counter-reset: step; }
.step-card { position: relative; padding: 34px 28px; background: #fff; border-radius: var(--radius); box-shadow: 0 2px 16px rgba(0,0,0,.05); }
.step-card::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 44px; font-weight: 800; color: transparent;
  -webkit-text-stroke: 1.5px #cfe0f5; display: block; margin-bottom: 14px; line-height: 1;
}
.step-card h3 { font-size: 17px; margin-bottom: 10px; }
.step-card p { color: var(--gray); font-size: 14px; line-height: 1.7; }

/* ---------- 价格卡 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 880px; margin: 0 auto; }
.price-card { background: #fff; border-radius: var(--radius); padding: 44px 40px; text-align: center; box-shadow: 0 2px 16px rgba(0,0,0,.05); position: relative; transition: transform .35s; }
.price-card:hover { transform: translateY(-6px); }
.price-card.hot { border: 2px solid var(--orange); }
.price-card .badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; font-size: 13px; padding: 4px 16px; border-radius: 14px; }
.price-card .pname { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.price-card .pprice { font-size: 46px; font-weight: 800; color: var(--ink); }
.price-card .pprice .unit { font-size: 16px; font-weight: 500; color: var(--gray); }
.price-card ul { list-style: none; margin: 26px 0 32px; text-align: left; }
.price-card li { padding: 9px 0; color: var(--ink-2); font-size: 14.5px; border-bottom: 1px dashed #eee; }
.price-card li::before { content: "✓"; color: var(--blue); font-weight: 700; margin-right: 10px; }

/* ---------- 资讯卡 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,.05); transition: transform .35s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-6px); }
.news-card .cover { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 44px; background: linear-gradient(135deg, #132038, #1c3a5e 60%, #16304d); position: relative; overflow: hidden; }
.news-card .cover::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 75%);
}
.news-card .cover .cov-mark { font-size: 24px; font-weight: 700; letter-spacing: 8px; color: rgba(255,255,255,.32); position: relative; z-index: 1; }
.news-card .cover img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 2; }
.news-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-card .date { color: var(--gray); font-size: 13px; margin-bottom: 10px; }
.news-card h3 { font-size: 17px; line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--blue); }
.news-card p { color: var(--gray); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: 18px; margin-bottom: 14px; box-shadow: 0 2px 12px rgba(0,0,0,.04); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 22px 28px; font-size: 16px; font-weight: 600; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 26px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--gray); transition: .3s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .answer { padding: 0 28px 24px; color: var(--gray); font-size: 14.5px; line-height: 1.85; }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-gray); padding: 64px 0 32px; border-top: 1px solid #e8e8ed; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 44px; }
.footer h4 { font-size: 14px; margin-bottom: 16px; color: var(--ink); }
.footer p, .footer a { color: var(--gray); font-size: 13.5px; display: block; margin-bottom: 9px; }
.footer a:hover { color: var(--blue); }
.footer-brand p { max-width: 300px; line-height: 1.8; }
.footer-bottom { border-top: 1px solid #e0e0e5; padding-top: 24px; text-align: center; color: var(--gray); font-size: 12.5px; }

/* ---------- 文章详情 ---------- */
.article-wrap { max-width: 820px; margin: 0 auto; padding: calc(var(--nav-h) + 60px) 24px 60px; }
.article-meta { color: var(--gray); font-size: 14px; margin: 18px 0 34px; }
.article-content { font-size: 16px; line-height: 1.9; color: var(--ink-2); }
.article-content h1, .article-content h2, .article-content h3 { color: var(--ink); margin: 34px 0 16px; line-height: 1.4; }
.article-content h2 { font-size: 24px; } .article-content h3 { font-size: 19px; }
.article-content p { margin-bottom: 18px; }
.article-content img { border-radius: 14px; margin: 12px auto; }
.article-content ul, .article-content ol { padding-left: 26px; margin-bottom: 18px; }
.article-content blockquote { border-left: 4px solid var(--blue); background: var(--bg-gray); padding: 14px 20px; border-radius: 0 12px 12px 0; margin-bottom: 18px; color: var(--ink-2); }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-item { display: flex; flex-direction: column; gap: 8px; }
.form-item.full { grid-column: 1 / -1; }
.form-item label { font-size: 14px; font-weight: 600; }
.form-item input, .form-item select, .form-item textarea {
  padding: 13px 16px; border: 1px solid #d2d2d7; border-radius: 12px; font-size: 15px;
  font-family: inherit; transition: border .2s, box-shadow .2s; background: #fff;
}
.form-item input:focus, .form-item textarea:focus, .form-item select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.12);
}

/* ---------- 页头（内页） ---------- */
.page-hero { background: linear-gradient(180deg, #0d1220, #16223c); color: #fff; padding: calc(var(--nav-h) + 80px) 0 64px; text-align: center; }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 48px); margin-bottom: 16px; letter-spacing: 1px; }
.page-hero p { color: rgba(255,255,255,.65); font-size: 16px; max-width: 680px; margin: 0 auto; }

/* ---------- 滚动入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid-4, .grid-3, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .grid-2, .price-grid, .form-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hp-body { grid-template-columns: 1fr; }
  .hp-chip-1, .hp-chip-2 { display: none; }
  .hero-preview { margin-top: 44px; }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section.section { padding: 64px 0; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(255,255,255,.97); backdrop-filter: blur(20px);
    flex-direction: column; padding: 16px 24px 24px; gap: 2px;
    border-bottom: 1px solid rgba(0,0,0,.08);
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
}
