/* ==========================================================================
   金科气象 JINKE WEATHER — 设计系统
   ========================================================================== */

:root {
    /* 品牌色 */
    --blue-900: #0A1628;
    --blue-800: #102A4C;
    --blue-700: #1D4ED8;
    --blue-600: #2563EB;
    --blue-500: #3B82F6;
    --blue-300: #93C5FD;
    --blue-100: #DBEAFE;
    --blue-50: #EFF6FF;

    /* 金色（呼应"金科"） */
    --gold: #F5B301;
    --gold-light: #FFD466;

    /* 中性 */
    --ink: #0F172A;
    --ink-2: #334155;
    --muted: #64748B;
    --muted-2: #94A3B8;
    --line: #E2E8F0;
    --bg: #FFFFFF;
    --bg-soft: #F5F8FD;

    /* 语义 */
    --ok: #10B981;
    --warn: #F59E0B;
    --danger: #EF4444;
    --purple: #8B5CF6;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
    --shadow: 0 4px 16px rgba(15, 23, 42, .07);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, .12);
    --shadow-blue: 0 12px 32px rgba(37, 99, 235, .22);
    --ease: cubic-bezier(.22, .61, .36, 1);
    --maxw: 1200px;
}

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

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", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font-family: inherit; font-size: inherit; }

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

/* ============================ 导航 ============================ */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, .8);
}
.nav-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
    height: 68px; display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: .5px; }
.brand-mark {
    width: 36px; height: 36px; border-radius: 10px; flex: none;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
    display: grid; place-items: center; color: #fff; position: relative; overflow: hidden;
    box-shadow: var(--shadow-blue);
}
.brand-mark::after {
    content: ''; position: absolute; right: -6px; top: -6px;
    width: 18px; height: 18px; border-radius: 50%;
    background: radial-gradient(circle, var(--gold-light), var(--gold));
    opacity: .95;
}
.brand-mark svg { position: relative; z-index: 1; }
.brand small { display: block; font-size: 10px; font-weight: 600; color: var(--muted-2); letter-spacing: 1.6px; line-height: 1; }

.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; }
.nav-menu a {
    display: block; padding: 9px 15px; border-radius: 9px;
    font-size: 14.5px; font-weight: 500; color: var(--ink-2);
    transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-menu a:hover { background: var(--blue-50); color: var(--blue-700); }
.nav-menu a.active { color: var(--blue-700); background: var(--blue-50); font-weight: 600; }

.nav-now {
    display: flex; align-items: center; gap: 8px; margin-left: 14px;
    padding: 7px 14px; border-radius: 999px; flex: none;
    background: linear-gradient(135deg, var(--blue-50), #fff);
    border: 1px solid var(--blue-100);
    font-size: 13px; font-weight: 600; color: var(--blue-700);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.nav-now:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.nav-now .emo { font-size: 15px; }
.nav-now .t { color: var(--ink); font-weight: 700; }

.nav-burger { display: none; margin-left: auto; background: none; border: 0; font-size: 20px; color: var(--ink-2); cursor: pointer; }

@media (max-width: 900px) {
    .nav-now { display: none; }
    .nav-burger { display: block; }
    .nav-menu {
        position: absolute; top: 68px; left: 0; right: 0; margin: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg); padding: 8px; display: none;
    }
    .nav-menu.open { display: flex; }
    .nav-menu a { padding: 12px 14px; border-radius: 10px; }
}

/* ============================ 通用区块 ============================ */
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.section.tight { padding: 64px 0; }

.sec-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.sec-kicker {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 700; letter-spacing: 1.2px;
    color: var(--blue-600); text-transform: uppercase; margin-bottom: 14px;
}
.sec-kicker::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--blue-500)); }
.sec-title { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.5px; line-height: 1.25; }
.sec-desc { margin-top: 14px; font-size: 16px; color: var(--muted); line-height: 1.75; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 11px; border: 1.5px solid transparent;
    font-size: 15px; font-weight: 600; cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn-primary { background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(37, 99, 235, .32); }
.btn-ghost { background: #fff; color: var(--blue-700); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-300); background: var(--blue-50); transform: translateY(-2px); }
.btn-on-dark { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(8px); }
.btn-on-dark:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }

/* ============================ Hero ============================ */
.hero {
    position: relative; overflow: visible; color: #fff;
    padding: 92px 0 108px;
    background: radial-gradient(1200px 620px at 78% -12%, #1E40AF 0%, transparent 60%),
                radial-gradient(900px 500px at 12% 8%, #1D4ED8 0%, transparent 55%),
                linear-gradient(160deg, #071326 0%, #0B1E3D 45%, #102A4C 100%);
}
/* 装饰层单独裁剪，避免裁掉 Hero 内搜索框的下拉结果 */
.hero-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        radial-gradient(1.6px 1.6px at 12% 22%, rgba(255,255,255,.55), transparent),
        radial-gradient(1.4px 1.4px at 32% 62%, rgba(255,255,255,.4), transparent),
        radial-gradient(1.8px 1.8px at 58% 18%, rgba(255,255,255,.5), transparent),
        radial-gradient(1.3px 1.3px at 76% 48%, rgba(255,255,255,.38), transparent),
        radial-gradient(1.5px 1.5px at 88% 76%, rgba(255,255,255,.45), transparent),
        radial-gradient(1.2px 1.2px at 45% 88%, rgba(255,255,255,.32), transparent);
    opacity: .9;
}
/* 云带装饰 */
.hero-cloud {
    position: absolute; border-radius: 50%; filter: blur(48px); pointer-events: none;
    background: radial-gradient(circle, rgba(59,130,246,.5), transparent 70%);
}
.hero-cloud.c1 { width: 620px; height: 320px; top: -80px; right: -60px; animation: drift 26s ease-in-out infinite; }
.hero-cloud.c2 { width: 480px; height: 260px; bottom: -90px; left: -80px; opacity: .7; animation: drift 32s ease-in-out infinite reverse; }
.hero-cloud.c3 { width: 380px; height: 200px; top: 42%; left: 46%; opacity: .45; background: radial-gradient(circle, rgba(245,179,1,.28), transparent 70%); animation: drift 40s ease-in-out infinite; }
@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -26px) scale(1.08); }
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 7px 16px; border-radius: 999px; margin-bottom: 24px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
    font-size: 13.5px; font-weight: 600; backdrop-filter: blur(10px);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .22); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } }
.hero h1 {
    font-size: clamp(32px, 4.4vw, 52px); font-weight: 800;
    line-height: 1.18; letter-spacing: -1px; margin-bottom: 20px;
}
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #FFD466, #F5B301 60%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 16px; color: rgba(255, 255, 255, .78); line-height: 1.8; margin-bottom: 24px; max-width: 580px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Hero 城市搜索（参考和风天气首页交互） ---------- */
.hero-search { position: relative; max-width: 560px; margin-bottom: 14px; }
.hero-search .hs-box {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border-radius: 14px; padding: 6px 6px 6px 18px;
    box-shadow: 0 18px 44px rgba(4, 14, 33, .38), 0 0 0 1px rgba(255, 255, 255, .12);
}
.hero-search .hs-ico { font-size: 15px; opacity: .55; flex: none; }
.hero-search input {
    flex: 1; min-width: 0; border: 0; outline: none; background: none;
    font-size: 15px; color: var(--ink); padding: 11px 0;
}
.hero-search input::placeholder { color: var(--muted-2); }
.hero-search .hs-btn { padding: 11px 22px; border-radius: 10px; flex: none; font-size: 14.5px; }
.hero-search .city-results { z-index: 90; }
.hero-quick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: rgba(255, 255, 255, .6); margin-bottom: 26px; }
.hero-quick a {
    padding: 4px 11px; border-radius: 999px; color: rgba(255, 255, 255, .86);
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
    transition: background .2s var(--ease), transform .2s var(--ease);
}
.hero-quick a:hover { background: rgba(255, 255, 255, .24); transform: translateY(-1px); }

/* ---------- Hero 实时天气大卡 ---------- */
.hero-now {
    position: relative; display: block;
    background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius-lg); padding: 26px 30px 24px;
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 22px 60px rgba(3, 10, 24, .34);
    transition: transform .3s var(--ease), background .3s var(--ease);
}
.hero-now:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .13); }
.hero-now .hn-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; font-weight: 700; }
.hero-now .hn-head .hn-loc { display: flex; align-items: center; gap: 6px; }
.hero-now .hn-head .hn-upd { font-size: 11.5px; font-weight: 500; color: rgba(255, 255, 255, .55); }
.hero-now .hn-main { display: flex; align-items: center; gap: 20px; margin: 18px 0 6px; }
.hero-now .hn-emo { font-size: 62px; line-height: 1; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .3)); }
.hero-now .hn-temp { font-size: 62px; font-weight: 800; letter-spacing: -3px; line-height: 1; }
.hero-now .hn-temp sup { font-size: 20px; font-weight: 600; vertical-align: super; letter-spacing: 0; }
.hero-now .hn-desc { font-size: 16px; font-weight: 700; margin-top: 5px; }
.hero-now .hn-feel { font-size: 12.5px; color: rgba(255, 255, 255, .66); margin-top: 3px; }
.hero-now .hn-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .13); }
.hero-now .hn-metrics div { min-width: 0; }
.hero-now .hn-metrics div span { font-size: 11.5px; color: rgba(255, 255, 255, .6); }
.hero-now .hn-metrics div b { display: block; font-size: 15px; font-weight: 700; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-now .hn-foot { margin-top: 16px; font-size: 12px; color: rgba(255, 255, 255, .55); display: flex; align-items: center; gap: 7px; }
.hero-now .live-dot { width: 7px; height: 7px; border-radius: 50%; background: #34D399; flex: none; animation: pulse 2s infinite; }
.hero-now .hn-link { position: absolute; inset: 0; border-radius: var(--radius-lg); }
@media (max-width: 480px) {
    .hero-search .hs-box { flex-wrap: wrap; padding: 10px 12px; }
    .hero-search .hs-btn { width: 100%; }
    .hero-now .hn-temp, .hero-now .hn-emo { font-size: 52px; }
    .hero-now .hn-metrics { grid-template-columns: repeat(2, 1fr); }
}

.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.hstat {
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius); padding: 20px 22px; backdrop-filter: blur(12px);
    transition: transform .25s var(--ease), background .25s var(--ease);
}
.hstat:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .12); }
.hstat b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.hstat b i { font-style: normal; font-size: 15px; font-weight: 600; color: var(--blue-300); margin-left: 2px; }
.hstat span { font-size: 13px; color: rgba(255, 255, 255, .62); }

@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero { padding: 64px 0 76px; }
}

/* ============================ 实时天气条 ============================ */
.live-bar { margin-top: -56px; position: relative; z-index: 5; }
.live-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.live-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 18px 16px; box-shadow: var(--shadow); cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.live-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-300); }
.live-card .lc-city { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.live-card .lc-city .tag { font-size: 10px; font-weight: 700; color: var(--blue-600); background: var(--blue-50); border-radius: 4px; padding: 1px 5px; }
.live-card .lc-main { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; }
.live-card .lc-emo { font-size: 30px; line-height: 1; }
.live-card .lc-temp { font-size: 27px; font-weight: 800; letter-spacing: -1px; }
.live-card .lc-desc { font-size: 12.5px; color: var(--muted); }
.live-card .lc-meta { font-size: 11.5px; color: var(--muted-2); margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.live-card.skeleton { pointer-events: none; }
.sk { background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 37%, #F1F5F9 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; color: transparent; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

@media (max-width: 1080px) { .live-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .live-grid { grid-template-columns: repeat(2, 1fr); } .live-bar { margin-top: -30px; } }

/* ============================ 卡片网格 ============================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 1024px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 26px; transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
    position: relative; overflow: hidden;
}
.card::after {
    content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
    background: linear-gradient(90deg, var(--blue-600), var(--gold));
    transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-300); }
.card:hover::after { transform: scaleX(1); }
.card-ico {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    font-size: 22px; margin-bottom: 18px;
    background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
    color: var(--blue-700); border: 1px solid var(--blue-100);
}
.card.gold .card-ico { background: linear-gradient(135deg, #FFF7E6, #FFE9B8); color: #B45309; border-color: #FDE9B8; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.2px; }
.card p { font-size: 14.5px; color: var(--muted); line-height: 1.75; }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.card ul li { font-size: 13.5px; color: var(--ink-2); padding-left: 18px; position: relative; }
.card ul li::before {
    content: ''; position: absolute; left: 0; top: 8px;
    width: 6px; height: 6px; border-radius: 2px; background: var(--blue-500);
}
.card .card-tag {
    position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 700;
    padding: 3px 9px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700);
}

/* 数据能力 */
.cap { text-align: center; padding: 32px 20px; }
.cap b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -1.2px;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cap b i { font-style: normal; font-size: 16px; -webkit-text-fill-color: var(--blue-600); margin-left: 2px; }
.cap .cap-t { font-size: 15px; font-weight: 700; margin: 6px 0 8px; }
.cap p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* 深色区块 */
.dark-band {
    background: linear-gradient(160deg, #071326 0%, #0B1E3D 55%, #102A4C 100%);
    color: #fff; position: relative; overflow: hidden;
}
.dark-band .sec-title { color: #fff; }
.dark-band .sec-desc { color: rgba(255, 255, 255, .7); }
.dark-band .sec-kicker { color: var(--blue-300); }
.dark-band .card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .13); }
.dark-band .card:hover { background: rgba(255, 255, 255, .1); border-color: rgba(147, 197, 253, .45); }
.dark-band .card h3 { color: #fff; }
.dark-band .card p { color: rgba(255, 255, 255, .68); }
.dark-band .card ul li { color: rgba(255, 255, 255, .8); }
.dark-band .card ul li::before { background: var(--gold); }
.dark-band .card-ico { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: var(--blue-300); }
.dark-band .cap b { background: linear-gradient(135deg, #93C5FD, #FFD466); -webkit-background-clip: text; background-clip: text; }
.dark-band .cap b i { -webkit-text-fill-color: var(--gold-light); }
.dark-band .cap .cap-t { color: #fff; }
.dark-band .cap p { color: rgba(255, 255, 255, .62); }

/* 方案双栏 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.flip .split-media { order: 2; }
@media (max-width: 940px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.flip .split-media { order: 0; } }
.split h3 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 14px; }
.split > div > p { font-size: 15.5px; color: var(--muted); line-height: 1.85; margin-bottom: 20px; }
.check-list { list-style: none; display: grid; gap: 11px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }
.check-list li .ck {
    width: 19px; height: 19px; flex: none; margin-top: 3px; border-radius: 6px;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500)); color: #fff;
    display: grid; place-items: center; font-size: 10px;
}
.split-media {
    border-radius: var(--radius-lg); padding: 26px; min-height: 300px;
    background: linear-gradient(150deg, var(--blue-50), #fff 60%);
    border: 1px solid var(--blue-100); box-shadow: var(--shadow);
}
/* 迷你数据面板（用于方案配图，纯 CSS 数据可视化） */
.mini-panel { display: grid; gap: 14px; }
.mini-panel .mp-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--blue-700); }
.mini-panel .mp-head .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; }
.mp-row { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); }
.mp-row .mp-k { width: 76px; flex: none; color: var(--muted); }
.mp-row .mp-bar { flex: 1; height: 8px; border-radius: 99px; background: #E8EEF7; overflow: hidden; }
.mp-row .mp-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue-500), var(--blue-700)); }
.mp-row .mp-bar i.gold { background: linear-gradient(90deg, var(--gold-light), var(--gold)); }
.mp-row .mp-v { width: 54px; text-align: right; font-weight: 700; color: var(--ink); flex: none; }

/* ============================ CTA ============================ */
.cta-band {
    background: linear-gradient(135deg, var(--blue-700), var(--blue-600) 55%, #1E40AF);
    border-radius: var(--radius-lg); padding: 48px 52px; color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
    box-shadow: var(--shadow-blue); position: relative; overflow: hidden;
}
.cta-band::after {
    content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
    border-radius: 50%; background: radial-gradient(circle, rgba(245, 179, 1, .35), transparent 70%);
}
.cta-band h3 { font-size: clamp(21px, 2.6vw, 28px); font-weight: 800; margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, .8); font-size: 15px; }
.cta-band .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
@media (max-width: 680px) { .cta-band { padding: 34px 26px; } }

/* ============================ 联系 ============================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.contact-item .ci {
    width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500)); color: #fff; font-size: 16px;
}
.contact-item h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 2px; }
.contact-item p { font-size: 13.5px; color: var(--muted); }

/* ============================ 页脚 ============================ */
.footer { background: #071326; color: rgba(255, 255, 255, .62); padding: 56px 0 0; font-size: 13.5px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer h5 { font-size: 14px; color: #fff; margin-bottom: 14px; font-weight: 700; }
.footer a { display: block; margin-bottom: 9px; color: rgba(255, 255, 255, .6); transition: color .2s; }
.footer a:hover { color: var(--blue-300); }
.footer-bottom { padding: 22px 0; text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, .42); }
.footer-bottom a { display: inline; color: rgba(255, 255, 255, .55); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }

/* ============================ 动画 ============================ */
[data-anim] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-anim].in { opacity: 1; transform: none; }

/* ==========================================================================
   天气页 weather.html
   ========================================================================== */
.wx-page { min-height: 100vh; transition: background .6s var(--ease); }

/* 主题：按天气与昼夜切换 */
.wx-page[data-sky="day"] { background: linear-gradient(170deg, #2E6FD6 0%, #4C93E8 42%, #8FC0F2 100%); }
.wx-page[data-sky="night"] { background: linear-gradient(170deg, #06101F 0%, #0C1F3C 45%, #16325C 100%); }
.wx-page[data-sky="cloudy"] { background: linear-gradient(170deg, #4A6584 0%, #6E8AA8 45%, #A9BED1 100%); }
.wx-page[data-sky="rain"] { background: linear-gradient(170deg, #1F3246 0%, #31506B 45%, #59748E 100%); }
.wx-page[data-sky="snow"] { background: linear-gradient(170deg, #55697E 0%, #7E93A8 45%, #BCCBD8 100%); }
.wx-page[data-sky="fog"] { background: linear-gradient(170deg, #55606B 0%, #85909B 45%, #B8C0C8 100%); }

.wx-wrap { max-width: 1120px; margin: 0 auto; padding: 28px 24px 72px; color: #fff; }

/* 天气页顶部栏 */
.wx-nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.wx-nav .brand { color: #fff; }
.wx-nav .brand small { color: rgba(255, 255, 255, .6); }
.wx-home { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .26); color: #fff; font-size: 13px; font-weight: 600; backdrop-filter: blur(8px); transition: background .2s; }
.wx-home:hover { background: rgba(255, 255, 255, .24); }

/* 城市搜索 */
.city-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.city-search { position: relative; flex: 1; min-width: 240px; max-width: 380px; }
.city-search input {
    width: 100%; padding: 12px 16px 12px 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .16); color: #fff; font-size: 14.5px; outline: none; backdrop-filter: blur(10px);
}
.city-search input::placeholder { color: rgba(255, 255, 255, .62); }
.city-search input:focus { background: rgba(255, 255, 255, .24); border-color: rgba(255, 255, 255, .55); }
.city-search .sico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); opacity: .75; font-size: 14px; }
.city-results { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; max-height: 320px; overflow-y: auto; display: none; }
.city-results.show { display: block; }
.city-results button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border: 0; background: #fff; cursor: pointer; font-size: 14px; color: var(--ink); text-align: left; transition: background .15s; }
.city-results button:hover { background: var(--blue-50); }
.city-results .cr-admin { font-size: 12px; color: var(--muted); }
.city-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    padding: 8px 15px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .26); color: #fff;
    transition: background .2s, transform .2s; backdrop-filter: blur(8px);
}
.chip:hover { background: rgba(255, 255, 255, .26); transform: translateY(-1px); }
.chip.on { background: #fff; color: var(--blue-700); border-color: #fff; }

/* 实况大卡 */
.now-card {
    background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--radius-lg); padding: 32px 34px; backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}
.now-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.now-loc { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.now-loc .upd { font-size: 12px; font-weight: 500; opacity: .7; }
.now-main { display: flex; align-items: center; gap: 22px; margin: 14px 0 4px; }
.now-emo { font-size: 74px; line-height: 1; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .25)); }
.now-temp { font-size: 76px; font-weight: 800; letter-spacing: -4px; line-height: .95; }
.now-temp sup { font-size: 26px; font-weight: 600; vertical-align: super; letter-spacing: 0; }
.now-desc { font-size: 19px; font-weight: 700; margin-top: 4px; }
.now-feel { font-size: 13.5px; opacity: .82; margin-top: 2px; }
.now-side { text-align: right; font-size: 13px; opacity: .85; line-height: 1.9; }

.now-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 12px; margin-top: 24px; }
.nm { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 13px 14px; }
.nm .k { font-size: 11.5px; opacity: .75; display: flex; align-items: center; gap: 5px; }
.nm .v { font-size: 18px; font-weight: 700; margin-top: 5px; }
.nm .v small { font-size: 11px; font-weight: 500; opacity: .75; }

/* 分钟级降水 */
.precip-card { margin-top: 22px; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius); padding: 22px 24px; backdrop-filter: blur(16px); }
.precip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 14px; font-weight: 700; }
.precip-head .ph-tip { font-size: 12.5px; font-weight: 500; opacity: .82; }
.precip-svg { width: 100%; height: 108px; display: block; }

/* 面板通用（浅色卡片浮在彩色背景上） */
.panel { background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius-lg); padding: 24px 26px; backdrop-filter: blur(16px); margin-top: 22px; }
.panel-head { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.panel-head .bar { width: 4px; height: 17px; border-radius: 2px; background: linear-gradient(180deg, #fff, rgba(255,255,255,.5)); }

/* 逐小时 */
.hours-scroll { overflow-x: auto; padding-bottom: 6px; }
.hours { display: flex; gap: 10px; min-width: min-content; }
.hour {
    flex: none; width: 74px; text-align: center; padding: 14px 6px; border-radius: 13px;
    background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .13); transition: background .2s;
}
.hour:hover { background: rgba(255, 255, 255, .18); }
.hour.now { background: rgba(255, 255, 255, .26); border-color: rgba(255, 255, 255, .5); }
.hour .h-t { font-size: 12px; opacity: .82; }
.hour .h-e { font-size: 22px; margin: 7px 0; }
.hour .h-deg { font-size: 15px; font-weight: 700; }
.hour .h-pop { font-size: 11px; color: #9FD2FF; margin-top: 4px; min-height: 14px; }

/* 15 天 */
.days { display: grid; gap: 8px; }
.day-row {
    display: grid; grid-template-columns: 92px 40px 1fr auto; align-items: center; gap: 14px;
    padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; transition: background .2s;
}
.day-row:hover { background: rgba(255, 255, 255, .16); }
.day-row.today { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .38); }
.day-row .d-date { font-weight: 600; }
.day-row .d-date small { display: block; font-size: 11px; opacity: .7; font-weight: 500; }
.day-row .d-emo { font-size: 22px; text-align: center; }
.day-row .d-desc { font-size: 13px; opacity: .9; }
.day-row .d-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .18); position: relative; margin-top: 6px; overflow: hidden; }
.day-row .d-bar i { position: absolute; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #7DD3FC, #FDE68A, #FDBA74); }
.day-row .d-temp { font-weight: 700; white-space: nowrap; font-size: 14px; }
.day-row .d-temp .lo { opacity: .62; font-weight: 500; }
@media (max-width: 640px) {
    .day-row { grid-template-columns: 74px 32px 1fr auto; gap: 10px; padding: 11px 12px; }
    .day-row .d-desc { display: none; }
}

/* 生活指数 */
.life-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.life { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); border-radius: 13px; padding: 15px 16px; }
.life .l-k { font-size: 12px; opacity: .78; display: flex; align-items: center; gap: 6px; }
.life .l-v { font-size: 17px; font-weight: 700; margin: 6px 0 3px; }
.life .l-d { font-size: 11.5px; opacity: .72; line-height: 1.5; }

/* 空气质量 */
.aqi-wrap { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
@media (max-width: 680px) { .aqi-wrap { grid-template-columns: 1fr; gap: 18px; } }
.aqi-badge {
    width: 118px; height: 118px; border-radius: 50%; display: grid; place-content: center; text-align: center;
    background: rgba(255, 255, 255, .14); border: 3px solid var(--aqi-c, #22C55E);
}
.aqi-badge b { display: block; font-size: 30px; font-weight: 800; line-height: 1; }
.aqi-badge span { font-size: 12.5px; color: var(--aqi-c, #22C55E); font-weight: 700; }
.aqi-badge em { font-style: normal; font-size: 11px; opacity: .7; display: block; margin-top: 3px; }
.pollutants { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.pol { background: rgba(255, 255, 255, .09); border-radius: 11px; padding: 11px 13px; }
.pol .p-k { font-size: 11.5px; opacity: .75; }
.pol .p-v { font-size: 16px; font-weight: 700; margin-top: 3px; }
.pol .p-v small { font-size: 10.5px; opacity: .7; font-weight: 500; }

/* 日出日落弧 */
.sun-arc { width: 100%; height: 150px; display: block; }

/* 加载与错误 */
.wx-err { background: rgba(239, 68, 68, .2); border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px; padding: 14px 18px; font-size: 13.5px; margin-top: 16px; display: none; }
.wx-err.show { display: block; }
.foot-note { text-align: center; font-size: 12.5px; opacity: .62; margin-top: 34px; line-height: 1.9; }
.foot-note a { text-decoration: underline; }

/* 滚动条（天气页横向滚动） */
.hours-scroll::-webkit-scrollbar { height: 6px; }
.hours-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .28); border-radius: 99px; }
.hours-scroll::-webkit-scrollbar-track { background: transparent; }

/* ==========================================================================
   首页新增区块：合作模式 / 接口矩阵 / 代码块 / 价格 / 接入流程 / FAQ
   ========================================================================== */

/* ---------- 合作模式条（深色区） ---------- */
.coop-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.coop {
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius); padding: 26px 24px;
    transition: background .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.coop:hover { background: rgba(255, 255, 255, .12); border-color: rgba(147, 197, 253, .4); transform: translateY(-4px); }
.coop .coop-n { font-size: 11.5px; font-weight: 800; letter-spacing: 1.6px; color: var(--gold-light); margin-bottom: 11px; }
.coop h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 9px; }
.coop p { font-size: 13.5px; color: rgba(255, 255, 255, .66); line-height: 1.78; }
@media (max-width: 900px) { .coop-strip { grid-template-columns: 1fr; } }

/* ---------- 小标题 / 行内代码 ---------- */
.sub-h { font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
code.ic {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px; color: var(--blue-700); background: var(--blue-50);
    padding: 1.5px 6px; border-radius: 5px; white-space: nowrap;
}

/* ---------- 接口矩阵表 ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
table.api-tbl { width: 100%; border-collapse: collapse; min-width: 780px; font-size: 13.5px; }
table.api-tbl th, table.api-tbl td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.api-tbl th { background: linear-gradient(135deg, #EFF6FF, #F8FBFF); color: var(--blue-800); font-weight: 700; font-size: 13px; white-space: nowrap; }
table.api-tbl td { color: var(--ink-2); line-height: 1.7; }
table.api-tbl tr:last-child td { border-bottom: 0; }
table.api-tbl tbody tr:hover td { background: #FAFCFF; }
table.api-tbl td:first-child { white-space: nowrap; color: var(--ink); }
table.api-tbl code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px; color: var(--blue-700); background: var(--blue-50);
    padding: 2px 7px; border-radius: 5px; white-space: nowrap;
}

/* ---------- 代码块 ---------- */
.code-block {
    background: #08182F; border: 1px solid #17325C; border-radius: var(--radius);
    padding: 20px 22px; overflow-x: auto;
}
.code-block pre {
    margin: 0; white-space: pre;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 12.5px; line-height: 1.9; color: #C7DBF5;
}
.code-block .c-k { color: #7DD3FC; }
.code-block .c-s { color: #A7F3D0; }
.code-block .c-c { color: #6B8299; }
.code-block .c-n { color: #FFD466; }
.code-block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.code-block-head .cb-t { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.code-block-head .cb-tag { font-size: 11.5px; font-weight: 700; color: var(--blue-700); background: var(--blue-50); padding: 2px 10px; border-radius: 999px; }

/* ---------- 价格 ---------- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 980px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-card .pc-head { padding: 22px 26px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, var(--blue-50), #fff 75%); }
.price-card .pc-head h4 { font-size: 17.5px; font-weight: 800; letter-spacing: -.2px; }
.price-card .pc-head p { font-size: 13px; color: var(--muted); margin-top: 5px; }
.price-card table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.price-card th, .price-card td { padding: 13px 26px; text-align: left; border-bottom: 1px solid var(--line); }
.price-card th { font-size: 12.5px; color: var(--muted); font-weight: 600; background: #FBFDFF; }
.price-card td { color: var(--ink-2); }
.price-card tr:last-child td { border-bottom: 0; }
.price-card tbody tr:hover td { background: #FAFCFF; }
.price-card td .num { font-weight: 700; color: var(--blue-700); font-variant-numeric: tabular-nums; }
.price-card td .free { color: var(--ok); font-weight: 700; }
.price-note {
    margin-top: 24px; font-size: 12.8px; color: var(--muted); line-height: 1.9;
    background: var(--bg-soft); border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 18px 22px;
}
.price-note b { color: var(--ink-2); }

/* ---------- 接入流程步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: st; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.step::before { counter-increment: st; content: counter(st, decimal-leading-zero); display: block; font-size: 12px; font-weight: 800; letter-spacing: 1.6px; color: var(--blue-600); }
.step h4 { font-size: 15.5px; font-weight: 700; margin: 9px 0 8px; }
.step p { font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--blue-300); }

/* ---------- FAQ 手风琴 ---------- */
.faq { display: grid; gap: 12px; max-width: 900px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 24px; transition: border-color .25s var(--ease); }
.faq details[open] { border-color: var(--blue-300); }
.faq summary {
    cursor: pointer; list-style: none; padding: 19px 0;
    font-size: 15px; font-weight: 700; color: var(--ink);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue-700); }
.faq summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--blue-600); font-weight: 600; flex: none; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 0 22px; font-size: 14px; color: var(--muted); line-height: 1.9; }

/* ---------- 联系项内链接 ---------- */
.contact-item p a { color: var(--blue-700); }
.contact-item p a:hover { text-decoration: underline; }
