:root {
  --navy: #0d1f3c;          /* 深蓝主色 */
  --navy-2: #13294f;
  --blue: #2563d6;          /* 链接/高亮蓝 */
  --blue-soft: #eaf1fc;
  --gold: #d6a850;          /* 金色强调 */
  --gold-dark: #c2963f;
  --ink: #1b2436;
  --gray: #5f6b7e;
  --gray-2: #8a94a6;
  --line: #e7ecf3;
  --bg: #ffffff;
  --bg-light: #f5f8fc;
  --radius: 14px;
  --shadow: 0 10px 34px rgba(13, 31, 60, 0.10);
  --shadow-lg: 0 24px 60px rgba(13, 31, 60, 0.22);
  --max: 1220px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--blue); margin-bottom: 10px; }
.eyebrow-light { color: var(--gold); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: all .18s ease; white-space: nowrap;
}
.btn-lg { padding: 15px 34px; font-size: 16px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1b50bd; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #3a2c08; }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* 品牌 */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; color: #fff;
  background: linear-gradient(135deg, var(--blue), #4d86e6);
  display: grid; place-items: center; flex: none;
}
.brand-text { font-size: 19px; font-weight: 800; letter-spacing: .5px; color: #fff; }
.brand-text em { font-style: normal; color: var(--gold); margin: 0 1px; }

/* 顶部导航（深蓝，覆盖在 Hero 上） */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: transparent; transition: background .25s, box-shadow .25s;
}
.site-header.scrolled { background: var(--navy); box-shadow: 0 2px 20px rgba(0,0,0,.25); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.main-nav { display: flex; gap: 28px; margin-left: auto; margin-right: 28px; }
.main-nav a { font-size: 15px; font-weight: 500; color: rgba(255,255,255,.88); padding: 4px 0; }
.main-nav a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: #fff; }

/* Hero */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; padding: 120px 0 60px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("../assets/hero-mountain.jpg") center/cover no-repeat;
  transform: scale(1.03);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(10,24,48,.92) 0%, rgba(13,31,60,.78) 45%, rgba(13,31,60,.55) 100%);
}
.hero-inner { position: relative; z-index: 2; color: #fff; max-width: 820px; }
.hero-title { font-size: 46px; line-height: 1.22; font-weight: 800; letter-spacing: 1px; }
.hero-title span { color: var(--gold); }
.hero-sub { font-size: 17px; color: rgba(255,255,255,.82); max-width: 640px; margin: 18px 0 30px; }

/* 搜索框 */
.hero-search { max-width: 680px; }
.search-wrap {
  position: relative; display: flex; align-items: center; gap: 8px;
  background: #fff; padding: 8px; border-radius: 14px; box-shadow: var(--shadow-lg);
}
.search-field { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 12px; min-width: 0; }
.search-ico { color: var(--gray-2); flex: none; }
.search-wrap input { flex: 1; border: none; outline: none; font-size: 16px; padding: 10px 2px; color: var(--ink); background: transparent; min-width: 0; }
.search-wrap .btn { padding: 12px 26px; flex: none; }
.hero-tags { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.7); }
.hero-tags a { color: rgba(255,255,255,.92); }
.hero-tags a:hover { color: var(--gold); }

/* 搜索下拉结果 */
.search-results {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 20;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden;
  display: none; max-height: 420px; overflow-y: auto; text-align: left;
}
.search-results.open { display: block; }
.sr-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); transition: background .15s; }
.sr-item:last-child { border-bottom: none; }
.sr-item:hover { background: var(--bg-light); }
.sr-ico { width: 38px; height: 38px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.sr-body { flex: 1; min-width: 0; }
.sr-body b { display: block; font-size: 15px; color: var(--ink); }
.sr-body span { font-size: 13px; color: var(--gray); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; flex: none; }
.sr-tag.t-ready { color: #0a7a4a; background: #e3f7ec; }
.sr-tag.t-building { color: #b7791f; background: #fdf3e0; }
.sr-tag.t-soon { color: #5a4fc4; background: #ecebfb; }
.sr-empty { padding: 22px; text-align: center; color: var(--gray); font-size: 14px; }

/* Hero 统计 */
.hero-stats { display: flex; gap: 48px; margin-top: 44px; flex-wrap: wrap; }
.stat b { display: block; font-size: 38px; font-weight: 800; color: #fff; line-height: 1; }
.stat span { font-size: 14px; color: rgba(255,255,255,.75); }
/* 通用 section */
.section { padding: 76px 0; }
.section-light { background: var(--bg-light); }
.section-head { text-align: center; margin-bottom: 46px; }
.section-head .eyebrow { margin-bottom: 8px; }
.section-head h2 { font-size: 32px; font-weight: 800; letter-spacing: .5px; }
.section-desc { color: var(--gray); font-size: 16px; margin-top: 10px; }

/* 数据专区 四色卡 */
.zones-section { padding-top: 60px; padding-bottom: 20px; }
.zones-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 16px; }
.zone-card {
  position: relative; border-radius: var(--radius); padding: 24px; color: #fff; overflow: hidden;
  min-height: 170px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .2s, box-shadow .2s;
}
.zone-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.zone-card .z-en { position: absolute; top: 18px; left: 22px; font-size: 13px; font-weight: 700; letter-spacing: 1px; opacity: .85; }
.zone-card h3 { font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.zone-card p { font-size: 13px; line-height: 1.55; opacity: .9; }
.zone-card:nth-child(1) { background: linear-gradient(135deg, #1b3a7a, #2e63c4); }
.zone-card:nth-child(2) { background: linear-gradient(135deg, #0f6b5f, #1aa07f); }
.zone-card:nth-child(3) { background: linear-gradient(135deg, #5a3fb0, #8054d6); }
.zone-card:nth-child(4) { background: linear-gradient(135deg, #a8471f, #d6762e); }

/* 数据目录卡片 */
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(37,99,214,.35); }
.cat-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; }
.cat-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.cat-title { flex: 1; min-width: 0; }
.cat-num { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: 1px; }
.cat-title h3 { font-size: 16px; font-weight: 700; margin-top: 2px; }
.card-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; flex: none; }
.badge-ready { color: #0a7a4a; background: #e3f7ec; }
.badge-building { color: #b7791f; background: #fdf3e0; }
.cat-items { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-item {
  font-size: 13px; color: var(--gray); background: var(--bg-light); padding: 5px 11px; border-radius: 8px;
  border: 1px solid transparent; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cat-item:hover { color: var(--blue); border-color: rgba(37,99,214,.3); background: #fff; }

/* 应用场景 / 服务 */
.scene-grid, .service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.scene-card, .service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.section-light .scene-card, .section-light .service-card { background: #fff; }
.scene-card:hover, .service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.scene-ico { width: 52px; height: 52px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.scene-card h3, .service-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.scene-card p, .service-card p { color: var(--gray); font-size: 15px; }
.service-card { border-top: 3px solid var(--gold); }

/* API 板块 */
.api-section { background: var(--navy); color: #fff; }
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature-text h2 { font-size: 30px; font-weight: 800; }
.feature-text > p { color: rgba(255,255,255,.78); font-size: 16px; margin: 14px 0 20px; }
.feature-list { list-style: none; margin-bottom: 26px; }
.feature-list li { padding-left: 28px; position: relative; margin-bottom: 11px; color: rgba(255,255,255,.9); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold);
}
.feature-list li::after { content: "✓"; position: absolute; left: 3px; top: 3px; font-size: 11px; font-weight: 800; color: var(--navy); }
.feature-code { background: #0a1730; border: 1px solid #1c3160; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.code-head { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #0f2244; color: #8fa2c4; font-size: 13px; }
.code-head span { width: 11px; height: 11px; border-radius: 50%; background: #39445e; }
.code-head span:nth-child(1){ background:#ff5f56; } .code-head span:nth-child(2){ background:#ffbd2e; } .code-head span:nth-child(3){ background:#27c93f; }
.code-head i { margin-left: 8px; font-style: normal; }
.feature-code pre { padding: 20px; overflow-x: auto; }
.feature-code code { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.75; color: #d7e0f5; white-space: pre; }
.c-kw { color: #ff9d6e; } .c-str { color: #9ad28f; } .c-num { color: #e6c878; } .c-fn { color: #6fb6ff; }

/* 联系 CTA */
.cta-section { background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { font-size: 28px; font-weight: 800; }
.cta-inner p { color: rgba(255,255,255,.78); margin-top: 8px; }

/* 页脚 */
.site-footer { background: #0a1730; color: #c3ccde; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 40px; }
.footer-brand p { color: #8894ac; font-size: 14px; margin-top: 14px; max-width: 280px; }
.footer-domain { color: var(--gold) !important; font-weight: 600; letter-spacing: 1px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a { display: block; color: #8894ac; font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1c2740; padding: 20px 0; font-size: 13px; color: #6b7691; text-align: center; }
/* ======= 联系弹窗 ======= */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal-mask { position: absolute; inset: 0; background: rgba(8,18,38,.55); backdrop-filter: blur(3px); animation: fade .2s ease; }
.modal-box {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(960px, calc(100vw - 40px)); max-height: calc(100vh - 48px); overflow: auto;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 340px 1fr; animation: pop .22s ease;
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%,-46%); } }

.modal-side { background: linear-gradient(170deg, var(--navy), var(--navy-2)); color: #fff; padding: 28px 24px; display: flex; flex-direction: column; }
.modal-side-head h3 { font-size: 22px; font-weight: 800; }
.modal-side-head h3 i { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: 2px; color: rgba(255,255,255,.5); margin-left: 8px; }
.modal-side-head p { font-size: 13px; color: rgba(255,255,255,.7); margin: 8px 0 20px; }
.apply-list { display: flex; flex-direction: column; gap: 10px; }
.apply-item {
  display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
  padding: 13px 14px; color: #fff; transition: all .16s;
}
.apply-item:hover { background: rgba(255,255,255,.12); }
.apply-item.active { background: #fff; color: var(--navy); border-color: #fff; }
.apply-num { font-size: 13px; font-weight: 800; opacity: .6; flex: none; }
.apply-item.active .apply-num { color: var(--blue); opacity: 1; }
.apply-txt { flex: 1; display: flex; flex-direction: column; }
.apply-txt b { font-size: 15px; font-weight: 700; }
.apply-txt em { font-style: normal; font-size: 12px; opacity: .7; }
.apply-arrow { font-size: 20px; opacity: .5; flex: none; }
.apply-qr { margin-top: auto; padding-top: 22px; display: flex; gap: 14px; align-items: center; }
.qr-info { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: rgba(255,255,255,.72); }
.qr-info b { font-size: 13px; color: #fff; margin-bottom: 3px; }
.qr-box { background: #fff; padding: 6px; border-radius: 8px; flex: none; line-height: 0; }

.modal-main { padding: 34px 36px; position: relative; }
.modal-close { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--gray); cursor: pointer; display: grid; place-items: center; transition: all .16s; }
.modal-close:hover { background: var(--bg-light); color: var(--ink); }
.modal-title { font-size: 24px; font-weight: 800; }
.modal-desc { color: var(--gray); font-size: 14px; margin: 8px 0 22px; }
.modal-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.modal-form label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink); }
.modal-form label i { color: #e2574c; font-style: normal; font-weight: 700; }
.modal-form label i.opt { color: var(--gray-2); font-weight: 400; }
.modal-form input, .modal-form select, .modal-form textarea {
  font: inherit; font-weight: 400; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  outline: none; transition: border-color .15s, box-shadow .15s; background: #fff; color: var(--ink);
}
.modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,214,.12); }
.modal-form textarea { resize: vertical; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 4px; }
.form-foot span { font-size: 12px; color: var(--gray-2); flex: 1; }

/* ======= 响应式 ======= */
@media (max-width: 980px) {
  .zones-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid, .scene-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-split { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .modal-box { grid-template-columns: 1fr; }
  .modal-side { display: none; }
}
@media (max-width: 680px) {
  .main-nav {
    position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); flex-direction: column;
    gap: 0; padding: 8px 24px; margin: 0; display: none; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; }
  .nav-toggle { display: block; }
  .nav-actions .btn-ghost { display: none; }
  /* 移动端 Hero：精简、居中、搜索框突出 */
  .hero { padding: 96px 0 46px; min-height: auto; text-align: center; }
  .hero-inner { max-width: 100%; margin: 0 auto; }
  .hero-title { font-size: 25px; line-height: 1.35; margin-bottom: 22px; }
  .hero-sub { display: none; }               /* 移动端隐藏说明，减少信息量 */
  .hero-search { max-width: 100%; margin: 0 auto; }
  .search-wrap { flex-direction: column; padding: 10px; border-radius: 16px; gap: 10px; }
  .search-field {
    width: 100%; background: var(--bg-light); border: 1px solid var(--line);
    border-radius: 12px; padding: 14px 16px; gap: 10px;
  }
  .search-ico { display: block; color: var(--blue); }   /* 图标常驻并高亮 */
  .search-wrap input { width: 100%; font-size: 16px; padding: 0; text-align: left; }
  .search-wrap .btn { width: 100%; padding: 15px; font-size: 16px; border-radius: 12px; }
  .hero-tags { justify-content: center; margin-top: 18px; gap: 10px 14px; }
  .hero-stats { justify-content: center; gap: 22px 32px; margin-top: 34px; }
  .stat b { font-size: 28px; }
  .zones-grid { grid-template-columns: 1fr; }
  .catalog-grid, .scene-grid, .service-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .section { padding: 54px 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}



/* ======= 搜索结果页 ======= */
.site-header.solid { position: sticky; background: var(--navy); box-shadow: 0 2px 16px rgba(0,0,0,.15); }
.page-sub { background: var(--bg-light); }
.search-hero { background: var(--navy); padding: 30px 0; }
.search-wrap.big { max-width: 760px; margin: 0 auto; box-shadow: var(--shadow); }
.search-results-section { padding-top: 34px; min-height: 52vh; }
.result-count { color: var(--gray); font-size: 15px; margin-bottom: 20px; }
.result-count b { color: var(--blue); }
.result-list { display: flex; flex-direction: column; gap: 14px; }
.result-card {
  display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; transition: transform .16s, box-shadow .16s, border-color .16s;
}
.result-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(37,99,214,.35); }
.rc-ico { width: 46px; height: 46px; border-radius: 11px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.rc-body { flex: 1; min-width: 0; }
.rc-body b { font-size: 17px; color: var(--ink); }
.rc-body p { color: var(--gray); font-size: 14px; margin: 4px 0 6px; }
.rc-url { font-size: 13px; color: var(--blue); font-family: Menlo, monospace; }
.rc-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.rc-go { color: var(--blue); font-size: 14px; font-weight: 600; white-space: nowrap; }
.no-result { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; text-align: center; }
.no-result p { font-size: 17px; color: var(--ink); margin-bottom: 10px; }
.no-result span { color: var(--gray); font-size: 14px; display: block; margin-bottom: 14px; }
.suggest-chip { display: inline-block; margin: 4px; padding: 7px 16px; background: var(--bg-light); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink); }
.suggest-chip:hover { border-color: var(--blue); color: var(--blue); }
.sr-tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.sr-tag.t-ready { color: #0a7a4a; background: #e3f7ec; }
.sr-tag.t-building { color: #b7791f; background: #fdf3e0; }
.sr-tag.t-soon { color: #5a4fc4; background: #ecebfb; }
@media (max-width: 680px) {
  .result-card { flex-wrap: wrap; }
  .rc-right { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}
