:root {
    --brand: #2f6bff;
    --brand-2: #7a4dff;
    --brand-3: #00c2a8;
    --ink: #12141c;
    --ink-2: #3d4256;
    --muted: #767c90;
    --line: #e8eaf2;
    --bg: #f6f7fb;
    --card: #ffffff;
    --radius: 16px;
    --shadow: 0 6px 24px rgba(24, 33, 77, .08);
    --shadow-lg: 0 16px 48px rgba(47, 107, 255, .18);
    --max: 1180px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ============ 顶部导航 ============ */
.topbar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(20, 26, 60, .04);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 66px;
    flex-wrap: wrap;
    padding: 8px 20px;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo {
    width: 40px; height: 40px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(47, 107, 255, .32);
    flex-shrink: 0;
    overflow: hidden;
}
.brand-logo img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}
/* 页脚里的品牌区不需要投影，和整体更协调 */
.footer .brand-logo {
    box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, .12);
}
.brand-text h1 { font-size: 19px; font-weight: 800; letter-spacing: .5px; line-height: 1.25; }
.brand-text p { font-size: 12px; color: var(--muted); line-height: 1.3; }

.top-links { display: flex; gap: 8px; flex-wrap: wrap; }
.top-links a {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 8px 14px;
    font-size: 13.5px; font-weight: 600;
    border-radius: 999px;
    background: #f2f4fa;
    color: var(--ink-2);
    transition: all .2s;
    white-space: nowrap;
}
.top-links a:hover { background: var(--brand); color: #fff; transform: translateY(-1px); }
.top-links a.cur { background: var(--brand); color: #fff; }

/* ============ Hero ============ */
.hero {
    background:
        radial-gradient(1100px 460px at 12% -10%, rgba(122, 77, 255, .35), transparent 62%),
        radial-gradient(900px 420px at 92% 8%, rgba(0, 194, 168, .26), transparent 60%),
        linear-gradient(135deg, #1b2a6b 0%, #2f3f9e 48%, #5b34b8 100%);
    color: #fff;
    padding: 60px 0 66px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .6;
    pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; text-align: center; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .3);
    padding: 4px 13px;
    border-radius: 999px;
    font-size: 12.5px; font-weight: 700;
    backdrop-filter: blur(6px);
    margin-bottom: 18px;
}

.hero h2 {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1.25;
    text-shadow: 0 4px 22px rgba(0, 0, 0, .2);
}
.hero-sub {
    font-size: 20px;
    font-weight: 600;
    opacity: .93;
    margin-top: 8px;
}

.hero-tips {
    display: inline-block;
    margin-top: 18px;
    font-size: 14px;
    background: rgba(0, 0, 0, .18);
    padding: 8px 18px;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, .35);
}

.hero-actions {
    margin-top: 30px;
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 32px;
    border-radius: 999px;
    font-size: 16px; font-weight: 800;
    cursor: pointer;
    border: none;
    transition: transform .2s, box-shadow .2s, opacity .2s;
    font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, #ffd166, #ff9f43);
    color: #6b3200;
    box-shadow: 0 10px 26px rgba(255, 159, 67, .38);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255, 159, 67, .5); }
.btn-ghost {
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .4);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .24); transform: translateY(-2px); }

.hero-stats {
    margin-top: 42px;
    display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.hero-stat {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 12px;
    padding: 12px 22px;
    min-width: 118px;
    backdrop-filter: blur(6px);
}
.hero-stat b { display: block; font-size: 22px; font-weight: 900; }
.hero-stat span { font-size: 12.5px; opacity: .85; }

/* ============ 通用区块 ============ */
.section { padding: 52px 0; }
.section.alt { background: #fff; }

.sec-head { text-align: center; margin-bottom: 34px; }
.sec-head .tag {
    display: inline-block;
    font-size: 12.5px; font-weight: 800;
    color: var(--brand);
    background: rgba(47, 107, 255, .1);
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 10px;
    letter-spacing: .5px;
}
.sec-head h3 {
    font-size: 29px;
    font-weight: 900;
    letter-spacing: .5px;
}
.sec-head p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }

/* 快捷入口卡片 */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 20px;
    text-align: center;
    transition: all .25s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(47, 107, 255, .35);
}

.card-icon {
    width: 54px; height: 54px;
    margin: 0 auto 14px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(47, 107, 255, .12), rgba(122, 77, 255, .12));
    display: flex; align-items: center; justify-content: center;
    font-size: 25px;
}
.card h4 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.card p { font-size: 13px; color: var(--muted); min-height: 40px; }
.card .arrow { color: var(--brand); font-size: 13px; font-weight: 700; margin-top: 8px; display: inline-block; }

/* 代理招募 */
.agent-wrap {
    background: linear-gradient(135deg, #f2f6ff, #f8f2ff);
    border: 1px solid rgba(47, 107, 255, .16);
    border-radius: 24px;
    padding: 40px 34px;
}
.agent-head { text-align: center; margin-bottom: 32px; }
.agent-head h3 { font-size: 27px; font-weight: 900; }
.agent-head .sub { color: var(--brand); font-weight: 700; font-size: 14.5px; margin-top: 6px; }
.agent-head p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 720px; margin-left: auto; margin-right: auto; }

.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat {
    background: #fff;
    border-radius: 14px;
    padding: 22px 16px;
    text-align: center;
    border: 1px solid var(--line);
}
.feat .ic { font-size: 27px; margin-bottom: 8px; }
.feat h5 { font-size: 15.5px; font-weight: 800; margin-bottom: 4px; }
.feat p { font-size: 12.5px; color: var(--muted); }

.center { text-align: center; margin-top: 30px; }

/* 热门导航 chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 14px; font-weight: 600;
    color: var(--ink-2);
    transition: all .2s;
}
.chip:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(47, 107, 255, .26);
}

/* 内容栏目 */
.col-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.col-item {
    display: flex; align-items: center; gap: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 20px;
    transition: all .22s;
}
.col-item:hover {
    border-color: var(--brand);
    box-shadow: 0 8px 22px rgba(47, 107, 255, .14);
    transform: translateY(-3px);
}
.col-item .bar { width: 4px; height: 34px; border-radius: 4px; background: linear-gradient(var(--brand), var(--brand-2)); flex-shrink: 0; }
.col-item h5 { font-size: 16px; font-weight: 800; }
.col-item p { font-size: 12.5px; color: var(--muted); }

/* 套餐卡片 */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pkg {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--line);
    padding: 30px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all .25s;
}
.pkg::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3));
}
.pkg:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pkg .ic { font-size: 36px; margin-bottom: 12px; }
.pkg h4 { font-size: 20px; font-weight: 900; margin-bottom: 6px; }
.pkg p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.pkg .btn-mini {
    display: inline-block;
    padding: 11px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    font-size: 14px; font-weight: 700;
    transition: transform .2s, box-shadow .2s;
}
.pkg:hover .btn-mini { box-shadow: 0 8px 20px rgba(47, 107, 255, .34); transform: scale(1.03); }

/* 通天猴板块 */
.wifi-wrap {
    background:
        radial-gradient(800px 340px at 15% 0%, rgba(0, 194, 168, .2), transparent 60%),
        linear-gradient(135deg, #0f2f4a, #10486b 55%, #0d6f7d);
    color: #fff;
    border-radius: 24px;
    padding: 42px 34px;
    position: relative;
    overflow: hidden;
}
.wifi-head { text-align: center; margin-bottom: 28px; }
.wifi-head .badge {
    display: inline-block;
    background: rgba(255, 209, 102, .18);
    border: 1px solid rgba(255, 209, 102, .5);
    color: #ffd166;
    font-size: 13px; font-weight: 800;
    padding: 5px 16px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.wifi-head h3 { font-size: 27px; font-weight: 900; }
.wifi-head p { opacity: .8; font-size: 14.5px; margin-top: 8px; }

.wifi-quick {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}
.wifi-quick a {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    font-size: 13.5px; font-weight: 700;
    transition: all .2s;
}
.wifi-quick a:hover { background: rgba(255, 255, 255, .22); transform: translateY(-2px); }

.wifi-feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.wifi-feat div {
    text-align: center;
    background: rgba(255, 255, 255, .07);
    border-radius: 12px;
    padding: 16px 10px;
}
.wifi-feat .ic { font-size: 22px; margin-bottom: 6px; }
.wifi-feat b { display: block; font-size: 14px; }
.wifi-feat span { font-size: 12px; opacity: .75; }

/* 页脚 */
.footer { background: #14182b; color: #a9b0c7; padding: 44px 0 26px; margin-top: 10px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer .brand-text h1 { color: #fff; font-size: 20px; }
.footer .brand-text p { color: #7f879f; font-size: 12.5px; }
.footer-col h5 { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: #6f9dff; }
.footer-desc { font-size: 13.5px; line-height: 1.8; margin-top: 12px; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .09);
    margin-top: 30px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12.5px;
    color: #7f879f;
}
.footer-bottom a { color: #7f879f; }

/* 悬浮联系 */
.float-bar {
    position: fixed;
    right: 16px; bottom: 16px;
    display: flex; flex-direction: column; gap: 10px;
    z-index: 90;
}
.float-bar a {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    transition: transform .2s;
    border: 1px solid var(--line);
}
.float-bar a:hover { transform: scale(1.1); }

/* 产品卡片 */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prod {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 30px 24px 26px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all .25s;
}
.prod::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3));
}
.prod:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.prod-ic { font-size: 36px; margin-bottom: 12px; }
.prod h4 { font-size: 20px; font-weight: 900; margin-bottom: 6px; }
.prod-desc { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.prod-points { text-align: left; margin-bottom: 20px; }
.prod-points li {
    font-size: 13px; color: var(--ink-2);
    padding: 5px 0 5px 20px; position: relative;
}
.prod-points li::before {
    content: "✓";
    position: absolute; left: 0; top: 5px;
    color: var(--brand-3); font-weight: 800;
}
.btn-mini {
    display: inline-block;
    padding: 11px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    font-size: 14px; font-weight: 700;
    transition: transform .2s, box-shadow .2s;
}
.btn-mini:hover { box-shadow: 0 8px 20px rgba(47, 107, 255, .34); transform: scale(1.03); }

/* 常见问题 */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 12px;
    transition: all .2s;
}
.faq-item:hover { border-color: rgba(47, 107, 255, .4); box-shadow: 0 6px 18px rgba(47, 107, 255, .1); }
.faq-q {
    font-size: 16px; font-weight: 800;
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 8px;
}
.qn {
    width: 24px; height: 24px; flex-shrink: 0;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; font-size: 13px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
}
.faq-a { font-size: 14px; color: var(--muted); padding-left: 34px; }

/* 友情链接 */
.friend {
    border-top: 1px solid rgba(255, 255, 255, .09);
    margin-top: 26px;
    padding-top: 18px;
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    font-size: 13.5px;
}
.friend-label { color: #6b7290; font-weight: 700; }
.friend a { color: #8f97b3; transition: color .2s; }
.friend a:hover { color: #6f9dff; }

/* 列表项箭头 */
.col-item .go { margin-left: auto; color: var(--brand); font-weight: 700; flex-shrink: 0; }
.card.on { border-color: var(--brand); box-shadow: 0 8px 24px rgba(47, 107, 255, .16); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ============ 通天猴店铺版组件 ============ */

/* 店铺导航（类 172hk 快捷通道） */
.shop-nav-sec { padding: 24px 0; }
.shop-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sn-item {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid var(--line);
    border-radius: 14px; padding: 14px 16px;
    transition: all .22s;
}
.sn-item:hover {
    border-color: rgba(47, 107, 255, .3);
    box-shadow: 0 8px 22px rgba(24, 33, 77, .08);
    transform: translateY(-3px);
}
.sn-ic {
    width: 38px; height: 38px; flex-shrink: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(47, 107, 255, .12), rgba(122, 77, 255, .12));
    display: flex; align-items: center; justify-content: center;
    font-size: 19px;
}
.sn-item h4 { font-size: 15px; font-weight: 800; margin-bottom: 2px; }
.sn-item p { font-size: 12.5px; color: var(--muted); }

/* 商品网格（实时同步） */
.goods-sec { padding: 34px 0; }
.goods-sec .sec-head { margin-bottom: 20px; }
.goods-sec .sec-head .tag { margin-bottom: 6px; }
.goods-sec .sec-head h3 { font-size: 24px; }
.goods-sec .sec-head p { font-size: 13px; margin-top: 5px; }
.goods-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.goods-skel {
    text-align: center; padding: 50px 20px;
    color: var(--muted); font-size: 14px;
    background: #fff; border: 1px dashed var(--line); border-radius: 14px;
}
.goods-skel a { color: var(--brand); font-weight: 700; }

.gd {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: all .24s;
}
.gd:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(24, 33, 77, .12);
    border-color: rgba(47, 107, 255, .3);
}
.gd-img {
    display: block;
    background: #fff;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 6px;
}
.gd-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.gd:hover .gd-img img { transform: scale(1.04); }
.gd-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 44px; }

.gd-body { padding: 12px 13px 14px; display: flex; flex-direction: column; flex: 1; }
.gd-name {
    font-size: 14.5px; font-weight: 700; line-height: 1.45;
    margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 42px;
}
.gd-name a:hover { color: var(--brand); }
.gd-desc {
    font-size: 12px; color: var(--muted); line-height: 1.55;
    margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 37px;
}
.gd-foot { display: flex; align-items: baseline; gap: 8px; margin-bottom: 11px; flex-wrap: wrap; }
.gd-price {
    color: #e5342a; font-weight: 900; font-size: 20px;
    display: inline-flex; align-items: baseline;
}
.gd-price i { font-style: normal; font-size: 13px; margin-right: 1px; }
.gd-price s { color: #a8adbd; font-size: 12.5px; font-weight: 500; margin-left: 6px; }
.gd-ship {
    font-size: 11px; color: #e5342a;
    border: 1px solid currentColor; border-radius: 4px;
    padding: 1px 5px; line-height: 1.5;
}
.gd-buy {
    margin-top: auto;
    display: block; text-align: center;
    padding: 10px; border-radius: 9px;
    background: linear-gradient(135deg, #ff7a45, #f5222d);
    color: #fff; font-size: 14px; font-weight: 800;
    transition: filter .2s, transform .2s;
}
.gd-buy:hover { filter: brightness(1.06); transform: scale(1.02); }

/* 店铺主视觉：更强店铺感、更聚焦（高度紧凑，避免占用过多首屏） */
.shop-hero {
    padding: 44px 0 42px;
    background:
        radial-gradient(1000px 420px at 50% -20%, rgba(255, 209, 102, .28), transparent 62%),
        radial-gradient(900px 400px at 10% 10%, rgba(122, 77, 255, .34), transparent 60%),
        linear-gradient(135deg, #141d52 0%, #2b3a8f 45%, #57329f 100%);
}
.shop-hero h2 {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 1.5px;
    line-height: 1.2;
    text-shadow: 0 6px 30px rgba(0, 0, 0, .28);
}
.shop-hero .hero-sub { font-size: 17px; margin-top: 8px; }
.shop-hero .hero-tips { font-size: 13.5px; margin-top: 14px; }
.shop-hero .hero-actions { margin-top: 22px; }

.btn-xl {
    padding: 13px 34px;
    font-size: 16px;
    border-radius: 999px;
}
.btn-ghost-dark {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 15px 34px;
    border-radius: 999px;
    font-size: 16px; font-weight: 700;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    transition: transform .2s, box-shadow .2s;
}
.btn-ghost-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* 店铺信息三格 */
.shop-info-sec { padding: 38px 0; }
.info-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px 20px;
    text-align: center;
    transition: all .22s;
}
.info-item:hover {
    transform: translateY(-4px);
    border-color: rgba(47, 107, 255, .32);
    box-shadow: 0 10px 26px rgba(24, 33, 77, .09);
}
.info-ic { font-size: 30px; margin-bottom: 10px; }
.info-item h4 { font-size: 17px; font-weight: 800; margin-bottom: 5px; }
.info-item p { font-size: 13.5px; color: var(--muted); }

/* 下单 CTA */
.order-cta-sec { padding: 50px 0; }
.order-cta {
    background: linear-gradient(135deg, #fff6e6, #fff0f2);
    border: 1px solid #ffd9a0;
    border-radius: 22px;
    padding: 42px 32px;
    text-align: center;
}
.order-cta h3 { font-size: 27px; font-weight: 900; margin-bottom: 10px; }
.order-cta p { color: var(--ink-2); font-size: 15px; max-width: 620px; margin: 0 auto 24px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-notice {
    margin-top: 20px; font-size: 13.5px;
    background: #fffbe6; border: 1px solid #ffe58f; color: #874d00;
    padding: 10px 16px; border-radius: 10px; display: inline-block;
}

/* 代理横条 */
.agent-bar-sec { padding: 40px 0; }
.agent-bar {
    background: linear-gradient(135deg, #eef4ff, #f6f1ff);
    border: 1px solid rgba(47, 107, 255, .18);
    border-radius: 20px;
    padding: 30px 34px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 26px; flex-wrap: wrap;
}
.agent-bar h3 { font-size: 23px; font-weight: 900; margin-bottom: 4px; }
.ab-sub { color: var(--brand); font-weight: 700; font-size: 14.5px; margin-bottom: 8px; }
.agent-bar p { color: var(--muted); font-size: 14px; max-width: 640px; }
.ab-right { flex-shrink: 0; }

/* 响应式补充 */
@media (max-width: 1080px) {
    .goods-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
    .shop-nav { grid-template-columns: repeat(3, 1fr); }
    .info-3 { grid-template-columns: repeat(3, 1fr); }
    .shop-hero h2 { font-size: 30px; }
}

@media (max-width: 760px) {
    .goods-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .shop-nav { grid-template-columns: 1fr; gap: 12px; }
    .gd-name { font-size: 13.5px; min-height: 39px; }
    .gd-price { font-size: 18px; }
}

@media (max-width: 640px) {
    .shop-hero { padding: 30px 0 28px; }
    .shop-hero h2 { font-size: 24px; letter-spacing: 1px; }
    .shop-hero .hero-sub { font-size: 14px; }
    .shop-hero .hero-tips { display: none; }
    .info-3 { grid-template-columns: 1fr; }
    .btn-xl { width: 100%; font-size: 15px; padding: 13px 20px; }
    .cta-actions { flex-direction: column; }
    .order-cta { padding: 30px 18px; }
    .order-cta h3 { font-size: 22px; }
    .agent-bar { padding: 24px 18px; text-align: center; }
    .agent-bar h3 { font-size: 20px; }
    .ab-right, .ab-right .btn { width: 100%; }
}

/* ============ 响应式 ============ */
@media (max-width: 980px) {
    .card-grid, .feat-grid, .wifi-quick, .wifi-feat { grid-template-columns: repeat(2, 1fr); }
    .col-grid, .pkg-grid, .prod-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero h2 { font-size: 32px; }
}

@media (max-width: 640px) {
    .topbar-inner { height: auto; padding: 10px 16px; }
    .top-links { width: 100%; overflow-x: auto; padding-bottom: 4px; }
    .hero { padding: 42px 0 48px; }
    .hero h2 { font-size: 26px; }
    .hero-sub { font-size: 16px; }
    .hero-actions .btn { width: 100%; }
    .card-grid, .feat-grid, .wifi-quick, .wifi-feat, .col-grid, .pkg-grid, .prod-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .sec-head h3 { font-size: 23px; }
    .section { padding: 36px 0; }
    .agent-wrap, .wifi-wrap { padding: 28px 18px; }
    .wrap { padding: 0 16px; }
}

/* ===== 实时商品区补充 ===== */
.goods-more { margin-top: 26px; text-align: center; }
.gd-desc:empty, .gd-name a:empty { display: none; }

/* ===== 资讯模块 ===== */
.news-sec { padding: 40px 0; }
.news-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.nc {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line);
    border-radius: 14px; overflow: hidden;
    text-decoration: none; color: inherit; transition: all .22s;
}
.nc:hover {
    border-color: rgba(47, 107, 255, .3);
    box-shadow: 0 10px 26px rgba(24, 33, 77, .09);
    transform: translateY(-3px);
}
.nc-img { aspect-ratio: 16 / 9; overflow: hidden; background: #f3f5fa; }
.nc-img img { width: 100%; height: 100%; object-fit: cover; }
.nc-body { padding: 15px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.nc-body h4 {
    font-size: 15.5px; font-weight: 800; line-height: 1.5; margin-bottom: 7px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.nc-body p {
    font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; flex: 1;
}
.nc-meta {
    display: flex; align-items: center; gap: 10px;
    font-size: 12px; color: #9aa0b4;
}
.nc-cat {
    background: rgba(255, 138, 61, .12); color: #e8590c;
    padding: 2px 9px; border-radius: 999px; font-weight: 700;
}

/* 资讯列表页 */
.sub-hero { padding: 40px 0 38px; text-align: center; }
.sub-hero h2 { font-size: 32px; }
.sub-hero .hero-sub { margin-top: 8px; }

.cat-bar {
    display: flex; flex-wrap: wrap; gap: 8px;
    justify-content: center; margin-bottom: 28px;
}
.cat-bar a {
    padding: 7px 17px; border-radius: 999px; font-size: 14px;
    background: #f2f4fa; color: #4a5064; text-decoration: none; transition: .15s;
}
.cat-bar a:hover { background: #e7ebf6; }
.cat-bar a.on { background: linear-gradient(135deg, #2f6bff, #7a4dff); color: #fff; }

.news-list { display: flex; flex-direction: column; gap: 14px; }
.nl {
    display: flex; gap: 16px; align-items: center;
    background: #fff; border: 1px solid var(--line);
    border-radius: 14px; padding: 14px 16px;
    text-decoration: none; color: inherit; transition: all .2s;
}
.nl:hover {
    border-color: rgba(47, 107, 255, .3);
    box-shadow: 0 8px 22px rgba(24, 33, 77, .08);
}
.nl-img {
    width: 190px; flex-shrink: 0; aspect-ratio: 16 / 10;
    border-radius: 10px; overflow: hidden; background: #f3f5fa;
}
.nl-img img { width: 100%; height: 100%; object-fit: cover; }
.nl-body { flex: 1; min-width: 0; }
.nl-body h4 {
    font-size: 16.5px; font-weight: 800; margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.nl-body p {
    font-size: 13.5px; color: var(--muted); line-height: 1.7; margin-bottom: 9px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.nl-meta { display: flex; gap: 12px; align-items: center; font-size: 12.5px; color: #9aa0b4; }

/* 资讯详情 */
.news-detail { max-width: 820px; }
.crumb { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.crumb a { color: var(--brand); text-decoration: none; }
.nd-title { font-size: 30px; font-weight: 900; line-height: 1.4; margin-bottom: 14px; }
.nd-meta {
    display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
    font-size: 13px; color: #9aa0b4; padding-bottom: 18px;
    border-bottom: 1px solid var(--line); margin-bottom: 22px;
}
.nd-cover { margin-bottom: 22px; border-radius: 12px; overflow: hidden; }
.nd-cover img { width: 100%; display: block; }
.nd-body { font-size: 16px; line-height: 1.95; color: #2b3040; }
.nd-body p { margin-bottom: 17px; }
.nd-body h3 { font-size: 19px; font-weight: 800; margin: 26px 0 12px; }
.nd-foot {
    margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line);
    display: flex; gap: 12px; flex-wrap: wrap;
}

.empty-tip { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-tip p { margin-bottom: 18px; }

/* ===== 城市导航 ===== */
.city-nav-sec { padding: 40px 0; }
.city-grid {
    display: grid; grid-template-columns: repeat(10, 1fr); gap: 9px;
}
.cy {
    display: block; text-align: center; padding: 9px 4px;
    background: #fff; border: 1px solid var(--line); border-radius: 9px;
    font-size: 13.5px; color: #3d4256; text-decoration: none; transition: all .18s;
}
.cy:hover {
    border-color: var(--brand); color: var(--brand);
    background: #f5f8ff; transform: translateY(-2px);
}
.prov-block { margin-bottom: 34px; }
.prov-name {
    font-size: 18px; font-weight: 800; margin-bottom: 13px;
    padding-bottom: 9px; border-bottom: 2px solid var(--line);
    display: flex; align-items: baseline; gap: 10px;
}
.prov-name a { color: inherit; text-decoration: none; }
.prov-name a:hover { color: var(--brand); }
.prov-name small { font-size: 13px; font-weight: 400; color: var(--muted); }

@media (max-width: 1080px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .city-grid { grid-template-columns: repeat(8, 1fr); }
}
@media (max-width: 760px) {
    .news-grid { grid-template-columns: 1fr; }
    .city-grid { grid-template-columns: repeat(5, 1fr); }
    .nl { flex-direction: column; align-items: stretch; }
    .nl-img { width: 100%; }
    .nd-title { font-size: 23px; }
    .nd-body { font-size: 15px; }
}

/* ================= 官方推荐码说明 ================= */
.invite-box {
    margin-top: 18px;
    background: #fff;
    border: 1px solid #e8eaf0;
    border-radius: 14px;
    overflow: hidden;
}
.ib-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
    border-bottom: 1px solid #fde68a;
}
.ib-tag {
    display: inline-block;
    padding: 4px 11px;
    font-size: 12px;
    font-weight: 700;
    color: #b45309;
    background: #fff;
    border: 1px solid #fbbf24;
    border-radius: 999px;
    white-space: nowrap;
}
.ib-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #b45309;
    background: #fff;
    border: 1px dashed #fbbf24;
    border-radius: 8px;
    padding: 5px 16px;
    user-select: all;
}
.ib-copy {
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #f59e0b;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
}
.ib-copy:hover { background: #d97706; }
.ib-copy.ok { background: #16a34a; }

.ib-body { padding: 16px 20px 18px; }
.ib-tips {
    margin: 0 0 10px;
    font-size: 14.5px;
    line-height: 1.75;
    color: #374151;
}
.ib-tips strong { color: #dc2626; }
.ib-list {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}
.ib-list li {
    position: relative;
    margin: 7px 0;
    font-size: 13.5px;
    line-height: 1.8;
    color: #4b5563;
}
.ib-list li::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
}
.ib-list b { color: #111827; }
.ib-list strong { color: #dc2626; font-weight: 700; }

@media (max-width: 640px) {
    .ib-head { gap: 10px; padding: 14px 16px; }
    .ib-code { font-size: 19px; letter-spacing: 2px; padding: 4px 12px; }
    .ib-body { padding: 14px 16px 16px; }
    .ib-tips { font-size: 14px; }
    .ib-list li { font-size: 13px; }
}

/* ==================================================================
   手机版专项优化（<= 430px 主力机型）
   ================================================================== */

/* --- 全局触摸与防溢出 --- */
@media (max-width: 480px) {
    html { -webkit-text-size-adjust: 100%; }
    body {
        overflow-x: hidden;
        -webkit-tap-highlight-color: rgba(255, 90, 36, .08);
    }
    /* 所有容器不允许撑破视口 */
    .wrap,
    .hero-inner,
    .section,
    .topbar-inner,
    .footer { max-width: 100%; }

    img { max-width: 100%; }
}

/* --- 顶栏：更紧凑，logo 不换行 --- */
@media (max-width: 480px) {
    .topbar-inner {
        padding: 8px 12px;
        gap: 8px;
    }
    .brand { gap: 8px; min-width: 0; }
    .brand-text { min-width: 0; }
    .brand-name {
        font-size: 16px;
        letter-spacing: .3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    /* 顶部链接横向滑动，不换行占高 */
    .top-links {
        display: flex;
        width: 100%;
        gap: 6px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        order: 3;
        padding: 2px 0 4px;
    }
    .top-links::-webkit-scrollbar { display: none; }
    .top-links a {
        flex: 0 0 auto;
        font-size: 12.5px;
        padding: 6px 12px;
        border-radius: 999px;
        white-space: nowrap;
    }
}

/* --- Hero 主视觉：手机上更快出信息 --- */
@media (max-width: 480px) {
    .shop-hero { padding: 26px 0 24px; }
    .shop-hero h2 {
        font-size: 22px;
        line-height: 1.35;
        letter-spacing: .5px;
        margin-bottom: 8px;
    }
    .shop-hero .hero-sub {
        font-size: 13.5px;
        line-height: 1.7;
        margin-bottom: 16px;
    }
    .hero-badge {
        font-size: 11.5px;
        padding: 4px 10px;
        margin-bottom: 10px;
    }
    /* 手机上按钮并排，两个更紧凑 */
    .hero-actions {
        display: flex;
        gap: 10px;
    }
    .hero-actions .btn,
    .hero-actions .btn-xl {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        padding: 12px 8px;
        font-size: 14.5px;
        border-radius: 10px;
        white-space: nowrap;
    }
}

/* --- 商品卡片：手机上双列、图片占位更矮 --- */
@media (max-width: 480px) {
    .goods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .gd-img { padding: 4px; border-radius: 10px 10px 0 0; }
    .gd-body { padding: 10px 10px 12px; }
    .gd-name {
        font-size: 13px;
        line-height: 1.5;
        min-height: 0;
        /* 最多两行 */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .gd-desc {
        font-size: 12px;
        line-height: 1.6;
        margin: 6px 0 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .gd-foot { margin-bottom: 8px; }
    .gd-price { font-size: 17px; }
    .gd-price i { font-size: 12px; }
    .gd-ship { font-size: 10.5px; padding: 1px 6px; }
    .gd-buy {
        padding: 9px 0;
        font-size: 13px;
        border-radius: 8px;
    }
    /* 手机上卡片高度对齐（描述两行） */
    .gd { display: flex; flex-direction: column; }
    .gd-body { flex: 1; display: flex; flex-direction: column; }
    .gd-buy { margin-top: auto; }
}

/* --- 浮动栏：手机上不挡内容 --- */
@media (max-width: 480px) {
    .float-bar {
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        gap: 8px;
    }
    .float-bar a {
        width: 42px;
        height: 42px;
        font-size: 17px;
        border-radius: 50%;
    }
}

/* --- 推荐码区块：手机上更醒目 --- */
@media (max-width: 480px) {
    .ib-head { padding: 13px 14px; gap: 9px; }
    .ib-tag { font-size: 11px; padding: 3px 9px; }
    .ib-code {
        font-size: 20px;
        letter-spacing: 2px;
        padding: 4px 12px;
        flex: 1 1 auto;
        text-align: center;
    }
    .ib-copy { padding: 7px 15px; font-size: 12.5px; }
    .ib-body { padding: 13px 14px 15px; }
    .ib-tips { font-size: 13.5px; line-height: 1.7; }
    .ib-list li { font-size: 13px; line-height: 1.75; }
}

/* --- 下单 CTA / 代理横条 --- */
@media (max-width: 480px) {
    .order-cta { padding: 26px 16px; }
    .order-cta h3 { font-size: 20px; }
    .order-cta .cta-sub,
    .order-cta p { font-size: 13.5px; }
    .agent-bar { padding: 20px 16px; }
    .agent-bar h3 { font-size: 18px; }
    .agent-bar .ab-sub { font-size: 13px; }
}

/* --- 资讯卡片 --- */
@media (max-width: 480px) {
    .news-grid { grid-template-columns: 1fr; gap: 12px; }
    .nc-body { padding: 12px 14px 14px; }
    .nc-title,
    .nc-body h4 { font-size: 15px; line-height: 1.5; }
    .nc-body p { font-size: 13px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
    .nc-meta { font-size: 11.5px; }
}

/* --- 区块节奏：手机上收紧留白 --- */
@media (max-width: 480px) {
    .section { padding: 28px 0; }
    .sec-head { margin-bottom: 18px; }
    .sec-head h3 { font-size: 20px; }
    .sec-head .tag { font-size: 11px; }
    .wrap { padding: 0 12px; }
    .news-sec { padding: 28px 0; }
}

/* --- 页脚 --- */
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
    .footer-col h4 { font-size: 14px; margin-bottom: 8px; }
    .footer-col a, .footer-col p { font-size: 12.5px; line-height: 1.9; }
    .footer-desc { font-size: 12.5px; line-height: 1.8; }
    .footer-bottom { font-size: 12px; padding: 14px 0; }
}

/* --- 超小屏（iPhone SE 等 375px 以下） --- */
@media (max-width: 375px) {
    .shop-hero h2 { font-size: 20px; }
    .hero-actions .btn-xl { font-size: 13.5px; padding: 11px 6px; }
    .gd-name { font-size: 12.5px; }
    .gd-price { font-size: 16px; }
    .gd-desc { font-size: 11.5px; }
    .ib-code { font-size: 18px; letter-spacing: 1px; }
}

/* --- 横屏矮屏（避免 Hero 撑满） --- */
@media (max-height: 480px) and (orientation: landscape) {
    .shop-hero { padding: 20px 0 18px; }
    .shop-hero h2 { font-size: 20px; }
}
