:root {
    --bg: #f6f7f9;
    --bg-soft: #eef1f6;
    --card: #ffffff;
    --line: #e5e8ef;
    --text: #101828;
    --muted: #5f6b7d;
    --primary: #2f5bff;
    --primary-2: #6f8bff;
    --accent: #ff7a1a;
    --gold: #b45309;
    --ios: #1677ff;
    --android: #0a9e6c;
    --danger: #e5484d;
    --radius: 16px;
    --shadow: 0 16px 40px rgba(16, 24, 40, .08);
    --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        radial-gradient(900px 460px at 6% -12%, rgba(47, 91, 255, .09), transparent 62%),
        radial-gradient(720px 400px at 102% -4%, rgba(255, 122, 26, .06), transparent 62%),
        var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
.muted { color: var(--muted); font-size: 13px; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- 头部 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    height: 70px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: .3px;
    min-width: 0;
    max-width: 320px;
    justify-self: start;
}

.brand img { height: 34px; max-width: 190px; width: auto; object-fit: contain; }

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--primary), #37b6ff);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 8px 18px rgba(47, 91, 255, .28);
}

.brand-name { font-size: 18px; color: #0b1220; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main-nav {
    display: flex;
    gap: 2px;
    justify-content: center;
    align-self: center;
    min-width: 0;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
    min-width: 0;
}

.main-nav a {
    padding: 8px 13px;
    border-radius: 10px;
    color: #55617c;
    font-size: 15px;
    transition: .18s;
    white-space: nowrap;
}

.main-nav a:hover { color: var(--primary); background: #f1f5ff; }
.main-nav a.is-active { color: var(--primary); background: #edf2ff; font-weight: 600; }

.header-search {
    display: flex;
    align-items: center;
    background: #f4f6fa;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 4px 4px 14px;
    flex-shrink: 0;
}

.header-search input {
    background: transparent;
    border: 0;
    outline: none;
    color: var(--text);
    width: 140px;
    font-size: 13px;
}

.header-search input::placeholder { color: #98a1b7; }

.header-search button {
    border: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
}

.header-cta {
    flex-shrink: 0;
    padding: 9px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(47, 91, 255, .22);
    transition: .18s;
}
.header-cta:hover { transform: translateY(-1px); }

.nav-toggle { display: none; }

/* ---------- 公告条 ---------- */
.notice-bar {
    background: #fffaf1;
    border-bottom: 1px solid #f6e6cc;
}

.notice-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 42px;
    font-size: 13px;
}

.notice-tag {
    flex-shrink: 0;
    padding: 2px 10px;
    border-radius: 999px;
    background: #ffeacd;
    color: #a4560b;
    font-weight: 600;
}

.notice-track {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    color: #5a6475;
    mask-image: linear-gradient(90deg, #000 92%, transparent);
}

.notice-track span {
    display: inline-block;
    padding-left: 100%;
    animation: notice-marquee 30s linear infinite;
}

@keyframes notice-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.notice-more { color: var(--primary); flex-shrink: 0; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform .18s, box-shadow .18s, opacity .18s;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: 14px; }
.btn-xl { padding: 15px 34px; font-size: 16px; border-radius: 14px; min-width: 168px; }
.btn-block { display: flex; width: 100%; }

.btn-ios { background: linear-gradient(135deg, #1677ff, #4a9bff); color: #fff; box-shadow: 0 12px 24px rgba(22, 119, 255, .24); }
.btn-android { background: linear-gradient(135deg, #0a9e6c, #2bd08d); color: #fff; box-shadow: 0 12px 24px rgba(10, 158, 108, .22); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 10px 22px rgba(47, 91, 255, .24); }
.btn-ghost { background: #fff; border-color: var(--line); color: #35405a; }
.btn-ghost:hover { border-color: #b9c8ff; color: var(--primary); }
.btn.is-disabled { opacity: .6; box-shadow: none; }

/* ---------- 首页大图 ---------- */
.hero {
    position: relative;
    background: linear-gradient(180deg, #f8faff, #eef4ff 68%, #f7faff);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -160px;
    top: -220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 91, 255, .12), transparent 68%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: 52px;
    align-items: center;
    padding-top: 62px;
    padding-bottom: 74px;
}

.hero-copy { min-width: 0; }

.hero-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #fff1e2;
    border: 1px solid #ffd9b5;
    color: #b45309;
    font-size: 12px;
    letter-spacing: .5px;
    margin-bottom: 16px;
}

.hero-copy h1 {
    font-size: clamp(32px, 4.2vw, 52px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 14px;
    color: #0b1220;
}

.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.hero-sub {
    color: #475467;
    font-size: clamp(14px, 1.25vw, 17px);
    max-width: 560px;
    margin-bottom: 26px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 28px;
    color: #4b5565;
    font-size: 13px;
}

.hero-points li::before {
    content: "✓";
    color: var(--android);
    margin-right: 6px;
    font-weight: 700;
}

.hero-media { position: relative; min-width: 0; }

.hero-banner {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: 0 28px 60px rgba(16, 24, 40, .16);
    background: #e6ecfa;
}

.hero-video {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: 0 28px 60px rgba(16, 24, 40, .16);
    background: #0b1220;
    display: block;
}

.hero-banner-empty {
    display: grid;
    place-items: center;
    background:
        radial-gradient(320px 180px at 80% 20%, rgba(255, 255, 255, .7), transparent 70%),
        linear-gradient(135deg, #dbe7ff, #e9e2ff 60%, #eef4ff);
    color: #3b5bdb;
    font-size: 76px;
    font-weight: 800;
}

.hero-qr-card {
    position: absolute;
    left: -26px;
    bottom: -26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.hero-qr-card img { width: 104px; height: 104px; object-fit: contain; }
.hero-qr-card em { font-style: normal; font-size: 12px; color: var(--muted); }

.qr-mini {
    width: 104px;
    height: 104px;
    display: grid;
    place-items: center;
    padding: 8px;
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    background: #f8fafc;
    border: 1px dashed #c7d0dd;
    border-radius: 10px;
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 12px;
    border: 1px dashed #c7cfdd;
    color: var(--muted);
    font-size: 12px;
    background: #f8fafc;
    padding: 10px;
}

/* ---------- 轮播 ---------- */
.carousel-section { padding: 34px 0 6px; }

.carousel {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    aspect-ratio: 21 / 8;
    background: #dfe6f5;
}

.gallery-carousel { aspect-ratio: 16 / 8; }

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
    pointer-events: none;
}

.slide.is-active { opacity: 1; pointer-events: auto; }

.slide img, .slide-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-fallback {
    display: block;
    background:
        radial-gradient(420px 220px at 85% 20%, rgba(255, 255, 255, .22), transparent 70%),
        linear-gradient(120deg, #16265c, #2f5bff 55%, #6f8bff);
}

.slide-caption {
    position: absolute;
    left: 24px;
    bottom: 24px;
    max-width: min(640px, calc(100% - 48px));
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 14px 34px rgba(9, 18, 45, .22);
    display: flex;
    flex-direction: column;
    gap: 4px;
    backdrop-filter: blur(8px);
}

.slide-caption strong { font-size: clamp(16px, 2vw, 22px); color: #0b1220; }
.slide-caption em { font-style: normal; color: #4c5872; font-size: 13px; }

.car-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .9);
    color: #223;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: .2s;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(9, 18, 45, .18);
}

.car-btn:hover { background: var(--primary); color: #fff; border-color: transparent; }
.car-prev { left: 16px; }
.car-next { right: 16px; }

.car-dots {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    gap: 8px;
    z-index: 2;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(11, 18, 32, .32);
    backdrop-filter: blur(6px);
}

.car-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .48);
    cursor: pointer;
}

.car-dots button.is-active { background: #fff; width: 22px; border-radius: 999px; }

/* ---------- 通用版块 ---------- */
.section { padding: 56px 0; }
.section-alt { background: #f0f4fa; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.section-head h2 {
    position: relative;
    padding-left: 16px;
    font-size: clamp(20px, 2.2vw, 26px);
    margin: 0;
    color: #0b1220;
}

.section-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 22px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--primary-2), var(--primary));
}

.section-head p { margin: 6px 0 0 16px; color: var(--muted); font-size: 13px; }
.section-head .more { color: var(--primary); font-size: 13px; white-space: nowrap; }
.section-head .more:hover { color: #1d3fd0; }

.block-title { font-size: 18px; margin: 34px 0 16px; }
.empty { color: var(--muted); text-align: center; padding: 36px 0; }

/* ---------- 游戏特色 ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 6px 18px rgba(16, 24, 40, .05);
    transition: transform .2s, box-shadow .2s;
}

.feature-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(16, 24, 40, .1); }

.feature-num {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}

.feature-card h3 { font-size: 17px; margin-bottom: 8px; color: #0b1220; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ---------- 游戏介绍 ---------- */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
}

.about-main { min-width: 0; }
.about-main .section-head { margin-bottom: 14px; }

.about-side { position: sticky; top: 90px; }

.side-download {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
    text-align: center;
}

.side-cover {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 18px;
    margin: 0 auto 12px;
    border: 1px solid var(--line);
}

.side-download h3 { font-size: 18px; margin-bottom: 4px; }
.side-download > p { margin-bottom: 16px; }

.game-facts {
    margin: 0 0 18px;
    border-top: 1px solid var(--line);
}

.game-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 13px;
}

.game-facts dt { margin: 0; color: var(--muted); }
.game-facts dd { margin: 0; font-weight: 600; color: var(--text); }

.side-actions { display: flex; flex-direction: column; gap: 10px; }

.side-qr {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.side-qr img { width: 110px; height: 110px; object-fit: contain; }
.side-qr .qr-mini { width: 110px; height: 110px; font-size: 11px; }
.side-qr span { font-size: 12px; color: var(--muted); }

/* ---------- 内容标签页 ---------- */
.content-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.content-head h2 {
    position: relative;
    padding-left: 16px;
    font-size: clamp(20px, 2.2vw, 26px);
    margin: 0;
}

.content-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 22px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--primary-2), var(--primary));
}

.content-head p { margin: 6px 0 0 16px; color: var(--muted); font-size: 13px; }

.content-tabs {
    display: flex;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
}

.content-tabs button {
    border: 0;
    background: transparent;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
    transition: .18s;
    white-space: nowrap;
}

.content-tabs button:hover { color: var(--primary); }
.content-tabs button.is-active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: tab-fade .3s ease; }

@keyframes tab-fade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.more-link { display: inline-block; margin-top: 22px; color: var(--primary); font-size: 13px; }
.more-link:hover { color: #1d3fd0; }

/* ---------- 文章卡片 ---------- */
.grid { display: grid; gap: 20px; }
.article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.article-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .22s, border-color .22s, box-shadow .22s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 18px rgba(16, 24, 40, .05);
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: #c3d0ff;
    box-shadow: 0 20px 38px rgba(16, 24, 40, .13);
}

.article-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef2fa;
}

.article-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-card:hover .article-cover img { transform: scale(1.05); }

.thumb-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 46px;
    font-weight: 800;
    color: #2f5bff;
    background: linear-gradient(135deg, #e8efff, #dbe7ff);
}

.article-grid .article-card:nth-child(3n+2) .thumb-fallback { background: linear-gradient(135deg, #e4f8f0, #d1f1e4); color: #0a7d57; }
.article-grid .article-card:nth-child(3n) .thumb-fallback { background: linear-gradient(135deg, #fff2e6, #ffe2cd); color: #b45309; }

.article-cover .tag-type { position: absolute; top: 10px; left: 10px; }

.tag {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: #f1f4fa;
    border: 1px solid var(--line);
    color: #3c4864;
}

.tag-hot { background: #fff2e5; border-color: #ffd7b3; color: #b45309; }
.tag-fire { background: #ffe9ec; border-color: #ffc9d2; color: #c22b48; }
.tag-cat { background: #edf2ff; border-color: #d3ddff; color: #2f5bff; }
.tag-type { background: #edf2ff; border-color: #d3ddff; color: #2f5bff; }

.article-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.article-body h3 { font-size: 16px; margin-bottom: 6px; }
.article-body h3 a { color: #0b1220; }
.article-body h3 a:hover { color: var(--primary); }
.article-body p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta { display: flex; justify-content: space-between; color: #8b95ac; font-size: 12px; margin-top: auto; }

/* ---------- 公告列表 ---------- */
.notice-list {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(16, 24, 40, .05);
}

.notice-list li + li { border-top: 1px solid var(--line); }

.notice-list a {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 18px;
    transition: background .18s;
}

.notice-list a:hover { background: #f4f7ff; }

.notice-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    color: #263049;
}

.notice-date { color: #8b95ac; font-size: 12px; flex-shrink: 0; }

/* ---------- 联系客服 ---------- */
.contact-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px;
    border-radius: 24px;
    background: linear-gradient(120deg, #eef4ff, #f8fbff 60%, #fff7ef);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.contact-copy h2 { font-size: 26px; color: #0b1220; }
.contact-copy p { color: #475467; max-width: 560px; }
.contact-list { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.contact-qr img { width: 168px; height: 168px; object-fit: contain; background: #fff; padding: 8px; border-radius: 16px; border: 1px solid var(--line); }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: #f4f6fa; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding: 46px 20px 32px; }
.footer-brand { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: #0b1220; }
.footer-about p { color: var(--muted); font-size: 13px; max-width: 360px; }
.footer-col h4 { font-size: 14px; color: #0b1220; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a { color: var(--muted); font-size: 13px; }
.footer-col ul a:hover { color: var(--primary); }
.footer-qr img { width: 120px; height: 120px; object-fit: contain; background: #fff; padding: 5px; border-radius: 12px; border: 1px solid var(--line); }
.footer-qr .qr-placeholder { width: 120px; height: 120px; font-size: 11px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0; }
.footer-bottom p { margin: 0; color: #7c87a0; font-size: 12px; }
.footer-bottom a { margin-left: 10px; color: #5f6b87; }
.footer-bottom a:hover { color: var(--primary); }

/* ---------- 浮动客服 / 弹窗 ---------- */
.float-contact {
    position: fixed;
    right: 22px;
    bottom: 26px;
    z-index: 60;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #37b6ff);
    box-shadow: 0 14px 28px rgba(47, 91, 255, .32);
    animation: pulse 2.6s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 14px 28px rgba(47, 91, 255, .32); }
    50% { box-shadow: 0 16px 40px rgba(47, 91, 255, .55); }
}

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); backdrop-filter: blur(3px); }
.modal-card {
    position: relative;
    width: min(360px, 90vw);
    padding: 28px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(15, 23, 42, .25);
    text-align: center;
    z-index: 1;
}
.modal-card h3 { margin-bottom: 8px; color: #0b1220; }
.modal-qr { width: 190px; height: 190px; object-fit: contain; background: #fff; padding: 8px; border-radius: 14px; margin: 12px auto; border: 1px solid var(--line); }
.modal-card .qr-placeholder { width: 190px; height: 190px; margin: 12px auto; }
.modal-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 24px; cursor: pointer; }
.modal-card .contact-list { justify-content: center; margin-top: 12px; }

/* ---------- 列表页 ---------- */
.page-head {
    padding: 46px 0 34px;
    background: linear-gradient(120deg, #eaf0ff, rgba(255, 255, 255, 0) 70%), #f3f6fc;
    border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; color: #0b1220; }
.page-head p { color: var(--muted); margin: 0; }

.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.filter-bar input[type=search] {
    flex: 1;
    min-width: 220px;
    max-width: 420px;
    padding: 11px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    outline: none;
}
.filter-bar input[type=search]:focus { border-color: #a9bcff; box-shadow: 0 0 0 3px rgba(47, 91, 255, .1); }
.filter-reset { color: var(--muted); font-size: 13px; }
.filter-count { margin-left: auto; color: #8b95ac; font-size: 12px; }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 38px; }
.pg {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-size: 13px;
}
.pg:hover { color: var(--primary); border-color: #b9c8ff; }
.pg.is-active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border-color: transparent; }
.pg-dots { color: #8b95ac; align-self: center; }

/* ---------- 文章详情 ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: start; }
.article-main { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: 0 6px 18px rgba(16, 24, 40, .05); }
.article-head { margin-bottom: 22px; }
.article-head h1 { font-size: clamp(22px, 2.8vw, 32px); margin: 10px 0 12px; color: #0b1220; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; color: #8b95ac; font-size: 12px; }
.article-banner { margin: 0 0 22px; border-radius: 14px; overflow: hidden; }
.article-lead { padding: 14px 18px; border-left: 3px solid var(--primary); background: #f2f5ff; border-radius: 0 12px 12px 0; color: #3c4560; }

.detail-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }
.side-card { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(16, 24, 40, .05); }
.side-card h3 { font-size: 15px; margin-bottom: 14px; color: #0b1220; }
.side-card .qr-placeholder { width: 150px; height: 150px; margin-bottom: 12px; }
.side-card .btn { margin-top: 6px; }
.side-list li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.side-list li:last-child { border-bottom: 0; }
.side-list a { color: #39435a; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-list a:hover { color: var(--primary); }

.prose { color: #39435a; font-size: 15px; line-height: 1.9; word-break: break-word; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 16px; }
.prose p:empty { display: none; }
.prose h2, .prose h3, .prose h4 { color: #0b1220; margin: 28px 0 12px; line-height: 1.4; }
.prose h2 { font-size: 20px; }
.prose h3 { font-size: 17px; margin-top: 26px; }
.prose h4 { font-size: 15px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }
.prose img { display: block; max-width: 100%; height: auto; border-radius: 14px; margin: 16px auto; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose blockquote { margin: 18px 0; padding: 14px 18px; border-left: 3px solid var(--primary); background: #f2f5ff; border-radius: 0 12px 12px 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose pre { overflow-x: auto; padding: 14px; border-radius: 12px; background: #f4f6fb; }

.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.pn { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; background: #f9fbff; border: 1px solid var(--line); font-size: 12px; color: #8b95ac; }
.pn strong { color: var(--text); font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn:hover { border-color: #c3d0ff; }
.pn.next { text-align: right; }
.pn.is-empty { opacity: .55; }

/* ---------- 二级域名 / 错误页 ---------- */
.sub-hero { background: linear-gradient(135deg, #eef4ff, #f9fbff 70%), #f3f6fc; border-bottom: 1px solid var(--line); }
.sub-hero-inner { display: flex; align-items: center; gap: 40px; padding: 56px 20px; }
.sub-hero-inner h1 { font-size: clamp(26px, 3.4vw, 40px); color: #0b1220; }
.sub-hero-inner > div { flex: 1; min-width: 0; }
.sub-qr-card { position: static; }

.error-page { text-align: center; padding: 90px 0; }
.error-code { font-size: clamp(70px, 12vw, 140px); font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--primary), #37b6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page .hero-actions { justify-content: center; margin-top: 20px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .hero-grid { gap: 34px; }
    .hero-qr-card { left: -12px; bottom: -18px; }
    .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .feature-card { padding: 20px; }
    .about-grid { grid-template-columns: 1fr; }
    .about-side { position: static; }
    .side-download { max-width: 460px; margin: 0 auto; }
    .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .header-inner { gap: 12px; }
    .header-search { display: none; }
    .main-nav a { padding: 8px 10px; font-size: 14px; }
    .hero-grid { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 56px; }
    .hero-media { margin-top: 12px; }
    .hero-qr-card { display: none; }
    .hero-banner { aspect-ratio: 16 / 9; }
    .hero-video { aspect-ratio: 16 / 9; }
    .feature-grid { grid-template-columns: 1fr; }
    .content-head { align-items: flex-start; }
    .article-layout { grid-template-columns: 1fr; }
    .detail-side { position: static; flex-direction: row; flex-wrap: wrap; }
    .detail-side .side-card { flex: 1 1 280px; }
    .contact-box { flex-direction: column; text-align: center; padding: 28px; }
    .contact-copy .contact-list { justify-content: center; }
}

@media (max-width: 640px) {
    .header-inner { height: 62px; flex-wrap: nowrap; }
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin-left: auto;
        grid-column: 3;
        justify-self: end;
        background: none;
        border: 0;
        padding: 8px;
        cursor: pointer;
    }
    .nav-toggle span { width: 22px; height: 2px; background: #3a4661; border-radius: 2px; }
    .main-nav {
        position: absolute;
        top: 62px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        display: none;
        flex-direction: column;
        padding: 8px 16px 14px;
        box-shadow: 0 14px 24px rgba(16, 24, 40, .08);
    }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 10px 12px; }
    .header-cta { display: none; }
    .header-tools { display: none; }
    .brand { max-width: none; }
    .hero-copy h1 { font-size: 32px; }
    .hero-actions .btn-xl { flex: 1; min-width: 0; }
    .hero-points { gap: 8px 16px; }
    .section { padding: 38px 0; }
    .carousel, .gallery-carousel { aspect-ratio: 4 / 3; border-radius: 16px; }
    .car-btn { display: none; }
    .car-dots { right: 12px; top: 12px; }
    .slide-caption { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 12px 14px; }
    .content-tabs { width: 100%; overflow-x: auto; }
    .content-tabs button { flex: 1; padding: 8px 10px; }
    .article-grid, .guide-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; padding: 32px 20px; }
    .footer-qr { display: none; }
    .article-main { padding: 20px; }
    .prev-next { grid-template-columns: 1fr; }
    .float-contact { width: 50px; height: 50px; right: 14px; bottom: 16px; }
    .filter-count { margin-left: 0; }
}
