/* ============================================================
   Hopper · 体育赛事资讯模板样式
   版式/代码结构对标 hopperlock（py- 体系），配色与区块顺序按站差异化
   全站统一 py- 前缀 class，自定义 CSS 变量，无第三方框架依赖
   配色由 body[data-theme=N] 驱动（1~6 六套主题）
   ============================================================ */
:root {
    --py-page: #f4f6fb;
    --py-surface: #ffffff;
    --py-ink: #161b32;
    --py-body: #4b5375;
    --py-muted: #8b93b0;
    --py-line: #e2e6f3;
    --py-night-1: #1b1f3b;
    --py-night-2: #0a0d22;
    --py-night-3: #262b52;
    /* 主色（按钮/强调） */
    --py-accent: #f0a92b;
    --py-accent-2: #ffc85c;
    --py-accent-deep: #d88a12;
    --py-accent-ink: #211a04;
    --py-grad: linear-gradient(135deg, #f0a92b 0%, #ffc85c 100%);
    --py-grad-dark: linear-gradient(135deg, #1b1f3b 0%, #0a0d22 100%);
    --py-foot-grad: linear-gradient(115deg, #1c1f3f 0%, #231437 60%, #3d0b40 100%);
    --py-soft: rgba(240, 169, 43, .10);
    --py-soft-line: rgba(240, 169, 43, .45);
    --py-radius: 18px;
    --py-radius-sm: 12px;
    --py-shadow: 0 10px 30px rgba(16, 22, 54, 0.10);
    --py-shadow-lg: 0 18px 50px rgba(16, 22, 54, 0.18);
}

/* ---------- 主题 1：深夜蓝 · 琥珀金 ---------- */
body[data-theme="1"] {
    --py-page: #f4f6fb; --py-surface: #ffffff; --py-ink: #161b32; --py-body: #4b5375;
    --py-muted: #8b93b0; --py-line: #e2e6f3; --py-night-1: #1b1f3b; --py-night-2: #0a0d22; --py-night-3: #262b52;
    --py-accent: #f0a92b; --py-accent-2: #ffc85c; --py-accent-deep: #d88a12; --py-accent-ink: #211a04;
    --py-grad: linear-gradient(135deg, #f0a92b 0%, #ffc85c 100%);
    --py-grad-dark: linear-gradient(135deg, #1b1f3b 0%, #0a0d22 100%);
    --py-foot-grad: linear-gradient(115deg, #1c1f3f 0%, #231437 60%, #3d0b40 100%);
    --py-soft: rgba(240, 169, 43, .10); --py-soft-line: rgba(240, 169, 43, .45);
}
/* ---------- 主题 2：墨绿 · 烈橙 ---------- */
body[data-theme="2"] {
    --py-page: #f3f7f4; --py-surface: #ffffff; --py-ink: #10241b; --py-body: #40614f;
    --py-muted: #7f998c; --py-line: #dbe8e0; --py-night-1: #123128; --py-night-2: #06170f; --py-night-3: #1c4a3a;
    --py-accent: #f2711c; --py-accent-2: #ffa14e; --py-accent-deep: #d55c0c; --py-accent-ink: #2a1200;
    --py-grad: linear-gradient(135deg, #f2711c 0%, #ffab4c 100%);
    --py-grad-dark: linear-gradient(135deg, #123128 0%, #06170f 100%);
    --py-foot-grad: linear-gradient(115deg, #0d2a21 0%, #14271a 55%, #0a1a12 100%);
    --py-soft: rgba(242, 113, 28, .10); --py-soft-line: rgba(242, 113, 28, .45);
}
/* ---------- 主题 3：靛紫 · 电光青 ---------- */
body[data-theme="3"] {
    --py-page: #f5f4fc; --py-surface: #ffffff; --py-ink: #1d1740; --py-body: #514a78;
    --py-muted: #948fb8; --py-line: #e4e1f3; --py-night-1: #2a1e5c; --py-night-2: #140d33; --py-night-3: #3b2c78;
    --py-accent: #17c0d8; --py-accent-2: #5fdcef; --py-accent-deep: #0e95aa; --py-accent-ink: #04222a;
    --py-grad: linear-gradient(135deg, #17c0d8 0%, #63e0f2 100%);
    --py-grad-dark: linear-gradient(135deg, #2a1e5c 0%, #140d33 100%);
    --py-foot-grad: linear-gradient(115deg, #241a52 0%, #341a5c 58%, #171038 100%);
    --py-soft: rgba(23, 192, 216, .12); --py-soft-line: rgba(23, 192, 216, .45);
}
/* ---------- 主题 4：炭黑 · 绯红 ---------- */
body[data-theme="4"] {
    --py-page: #f6f6f8; --py-surface: #ffffff; --py-ink: #1b1b22; --py-body: #54545f;
    --py-muted: #93939f; --py-line: #e5e5ec; --py-night-1: #23232e; --py-night-2: #0f0f16; --py-night-3: #34343f;
    --py-accent: #e0344a; --py-accent-2: #ff6a7c; --py-accent-deep: #bb1f34; --py-accent-ink: #ffffff;
    --py-grad: linear-gradient(135deg, #e0344a 0%, #ff6a7c 100%);
    --py-grad-dark: linear-gradient(135deg, #23232e 0%, #0f0f16 100%);
    --py-foot-grad: linear-gradient(115deg, #1a1a22 0%, #2a1620 60%, #160d12 100%);
    --py-soft: rgba(224, 52, 74, .10); --py-soft-line: rgba(224, 52, 74, .42);
}
/* ---------- 主题 5：藏青 · 天蓝 ---------- */
body[data-theme="5"] {
    --py-page: #f2f6fc; --py-surface: #ffffff; --py-ink: #0f2140; --py-body: #43597a;
    --py-muted: #8497b3; --py-line: #dbe4f1; --py-night-1: #12305a; --py-night-2: #071a34; --py-night-3: #1a4277;
    --py-accent: #2f80ed; --py-accent-2: #6aa9ff; --py-accent-deep: #1a5fc4; --py-accent-ink: #ffffff;
    --py-grad: linear-gradient(135deg, #2f80ed 0%, #6aa9ff 100%);
    --py-grad-dark: linear-gradient(135deg, #12305a 0%, #071a34 100%);
    --py-foot-grad: linear-gradient(115deg, #0e2murder 0%, #12305a 100%);
    --py-foot-grad: linear-gradient(115deg, #0c1f3c 0%, #143a6b 58%, #0a1830 100%);
    --py-soft: rgba(47, 128, 237, .11); --py-soft-line: rgba(47, 128, 237, .42);
}
/* ---------- 主题 6：酒红 · 金铜 ---------- */
body[data-theme="6"] {
    --py-page: #faf5f2; --py-surface: #ffffff; --py-ink: #2b1216; --py-body: #6a4a4f;
    --py-muted: #a4878c; --py-line: #ece0dc; --py-night-1: #4a1420; --py-night-2: #26090f; --py-night-3: #661f2e;
    --py-accent: #c9873b; --py-accent-2: #e7b06a; --py-accent-deep: #a86a24; --py-accent-ink: #241403;
    --py-grad: linear-gradient(135deg, #c9873b 0%, #e7b06a 100%);
    --py-grad-dark: linear-gradient(135deg, #4a1420 0%, #26090f 100%);
    --py-foot-grad: linear-gradient(115deg, #3a1018 0%, #4d1524 58%, #26090f 100%);
    --py-soft: rgba(201, 135, 59, .12); --py-soft-line: rgba(201, 135, 59, .45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--py-page); color: var(--py-body); font-size: 16px; line-height: 1.75;
}
img { border: 0; max-width: 100%; height: auto; display: block; }
a { color: var(--py-ink); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--py-accent-deep); }
h1, h2, h3, h4, h5, h6 { color: var(--py-ink); line-height: 1.35; font-weight: 700; }
time { color: var(--py-muted); font-size: .85rem; }
ul.list-unstyled, .list-unstyled { list-style: none; margin: 0; padding: 0; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 按钮 ---------- */
.py-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 32px; border-radius: 999px; font-size: 1rem; font-weight: 600;
    border: 2px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
}
.py-btn-primary { background: var(--py-grad); color: var(--py-accent-ink); box-shadow: 0 8px 22px var(--py-soft); }
.py-btn-primary:hover { color: var(--py-accent-ink); transform: translateY(-2px); box-shadow: 0 12px 28px var(--py-soft); }
.py-btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .06); }
.py-btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.py-btn-outline { border-color: var(--py-line); color: var(--py-ink); background: var(--py-surface); }
.py-btn-outline:hover { border-color: var(--py-accent); color: var(--py-accent-deep); transform: translateY(-2px); }
.py-btn-sm { padding: 8px 20px; font-size: .9rem; }

/* ---------- 页头 ---------- */
.py-header { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); box-shadow: 0 2px 16px rgba(16, 22, 54, .08); }
.py-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.py-brand { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; color: var(--py-ink); flex-shrink: 0; max-width: 320px; }
.py-brand .py-brand-mark { width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; background: var(--py-grad); color: var(--py-accent-ink); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; font-weight: 900; }
.py-brand span { white-space: normal; line-height: 1.25; }
.py-brand:hover { color: var(--py-ink); }
.py-nav { display: flex; align-items: center; gap: 6px; margin: 0 auto; min-width: 0; }
.py-nav a { padding: 8px 15px; border-radius: 10px; font-size: .98rem; font-weight: 500; color: var(--py-body); }
.py-nav a:hover { color: var(--py-accent-deep); background: var(--py-soft); }
.py-nav a.active { color: var(--py-accent-deep); background: var(--py-soft); font-weight: 700; }
.py-nav-cta { flex-shrink: 0; }
.py-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--py-line); border-radius: 10px; background: var(--py-surface); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.py-toggle span { display: block; width: 20px; height: 2px; background: var(--py-ink); border-radius: 2px; }
#py-nav-state { display: none; }

/* ---------- 首屏 Hero ---------- */
.py-hero { position: relative; display: flex; align-items: center; justify-content: center; min-height: 86vh; text-align: center; color: #fff; overflow: hidden; background: var(--py-grad-dark); }
.py-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.py-hero-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 13, 34, .45) 0%, rgba(10, 13, 34, .72) 70%, rgba(10, 13, 34, .92) 100%); }
.py-hero-content { position: relative; z-index: 2; padding: 96px 20px 130px; max-width: 900px; }
.py-hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 18px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); font-size: .88rem; letter-spacing: .06em; color: var(--py-accent-2); margin-bottom: 26px; }
.py-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3.2rem); font-weight: 800; letter-spacing: .01em; margin-bottom: 18px; }
.py-hero h1 em { font-style: normal; background: var(--py-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.py-hero-lead { font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .82); max-width: 720px; margin: 0 auto 34px; }
.py-hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.py-hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; line-height: 0; }
.py-hero-wave svg { width: 100%; height: 110px; display: block; }
.py-wave-track { animation: pyWave 14s linear infinite; }
@keyframes pyWave { from { transform: translateX(0); } to { transform: translateX(-1200px); } }

/* ---------- 首页区块流（区块顺序按主题变化） ---------- */
.py-flow { display: flex; flex-direction: column; }
.py-flow > section { order: 5; }

/* ---------- 区块通用 ---------- */
.py-sec { padding: 84px 0; }
.py-sec-light { background: var(--py-page); }
.py-sec-white { background: var(--py-surface); }
.py-sec-dark { background: var(--py-grad-dark); color: rgba(255, 255, 255, .78); }
.py-sec-dark h2, .py-sec-dark h3, .py-sec-dark h4 { color: #fff; }
.py-sec-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.py-eyebrow { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .22em; color: var(--py-accent-deep); text-transform: uppercase; margin-bottom: 10px; }
.py-sec-dark .py-eyebrow { color: var(--py-accent-2); }
.py-sec-title { font-size: clamp(1.5rem, 3vw, 2.15rem); margin-bottom: 12px; }
.py-sec-sub { color: var(--py-muted); font-size: 1rem; }
.py-sec-dark .py-sec-sub { color: rgba(255, 255, 255, .62); }

/* ---------- 关于区（图文交替两行） ---------- */
.py-about-row { display: flex; align-items: center; gap: 56px; margin-bottom: 56px; }
.py-about-row:last-child { margin-bottom: 0; }
.py-about-row.py-rev { flex-direction: row-reverse; }
.py-about-img { flex: 0 0 46%; border-radius: var(--py-radius); overflow: hidden; box-shadow: var(--py-shadow-lg); }
.py-about-img img { width: 100%; height: 340px; object-fit: cover; }
.py-about-text { flex: 1; min-width: 0; }
.py-about-text h4 { font-size: 1.35rem; margin-bottom: 14px; }
.py-about-text p { margin-bottom: 16px; }
.py-about-stats { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 20px; }
.py-stat b { display: block; font-size: 1.7rem; font-weight: 800; background: var(--py-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.py-stat span { font-size: .88rem; color: var(--py-muted); }
.py-sec-dark .py-stat span { color: rgba(255, 255, 255, .6); }

/* ---------- 业务矩阵（图文行） ---------- */
.py-dept-row { display: flex; align-items: center; gap: 56px; padding: 30px 0; }
.py-dept-row + .py-dept-row { border-top: 1px solid var(--py-line); }
.py-dept-row.py-rev { flex-direction: row-reverse; }
.py-dept-img { flex: 0 0 48%; border-radius: var(--py-radius); overflow: hidden; box-shadow: var(--py-shadow); }
.py-dept-img img { width: 100%; height: 300px; object-fit: cover; transition: transform .45s ease; }
.py-dept-row:hover .py-dept-img img { transform: scale(1.04); }
.py-dept-text { flex: 1; min-width: 0; }
.py-dept-no { font-size: .95rem; font-weight: 800; color: var(--py-accent); letter-spacing: .1em; margin-bottom: 8px; }
.py-dept-text h3 { font-size: 1.45rem; margin-bottom: 12px; }
.py-dept-text p { color: var(--py-body); }
.py-dept-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.py-dept-tags span { font-size: .82rem; padding: 4px 14px; border-radius: 999px; background: var(--py-soft); color: var(--py-accent-deep); font-weight: 600; }

/* ---------- 栏目服务卡 ---------- */
.py-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.py-svc-card { background: var(--py-surface); border: 1px solid var(--py-line); border-radius: var(--py-radius); overflow: hidden; box-shadow: var(--py-shadow); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.py-svc-card:hover { transform: translateY(-5px); box-shadow: var(--py-shadow-lg); }
.py-svc-card .pic { position: relative; }
.py-svc-card .pic img { width: 100%; height: 150px; object-fit: cover; }
.py-svc-body { padding: 18px 20px 22px; }
.py-svc-body h3 { font-size: 1.12rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.py-svc-body p { font-size: .9rem; color: var(--py-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 安全保障区 ---------- */
.py-sec-band { display: flex; align-items: center; gap: 60px; }
.py-band-text { flex: 1; min-width: 0; }
.py-band-text h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 14px; }
.py-band-text p { margin-bottom: 22px; }
.py-check-list { list-style: none; margin: 0; padding: 0; }
.py-check-list li { position: relative; padding: 9px 0 9px 38px; color: rgba(255, 255, 255, .85); }
.py-check-list li::before { content: ""; position: absolute; left: 0; top: 13px; width: 24px; height: 24px; border-radius: 50%; background: var(--py-grad); }
.py-check-list li::after { content: ""; position: absolute; left: 7px; top: 18px; width: 10px; height: 6px; border-left: 2px solid var(--py-accent-ink); border-bottom: 2px solid var(--py-accent-ink); transform: rotate(-45deg); }
.py-band-badge { flex: 0 0 auto; text-align: center; }
.py-badge-circle { width: 210px; height: 210px; border-radius: 50%; margin: 0 auto; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04) 60%); border: 2px solid var(--py-soft-line); display: flex; align-items: center; justify-content: center; box-shadow: 0 18px 44px rgba(0, 0, 0, .35); }
.py-badge-circle svg { width: 92px; height: 92px; }
.py-badge-cap { margin-top: 16px; font-size: .9rem; color: rgba(255, 255, 255, .6); }

/* ---------- 口碑区 ---------- */
.py-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.py-review-card { background: var(--py-surface); border: 1px solid var(--py-line); border-radius: var(--py-radius); padding: 26px; box-shadow: var(--py-shadow); display: flex; flex-direction: column; gap: 12px; }
.py-review-head { display: flex; align-items: center; gap: 12px; }
.py-review-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--py-soft-line); box-shadow: 0 3px 10px rgba(16, 22, 54, .16); flex-shrink: 0; background: var(--py-night-1); }
.py-review-mono { display: flex; align-items: center; justify-content: center; color: var(--py-accent-ink); background: var(--py-grad); font-weight: 800; font-size: 1.15rem; line-height: 1; }
.py-review-name { font-weight: 700; color: var(--py-ink); font-size: .98rem; }
.py-review-stars { color: var(--py-accent); letter-spacing: 3px; font-size: .9rem; }
.py-review-card p { font-size: .94rem; color: var(--py-body); margin: 0; }

/* ---------- APP 下载区 ---------- */
.py-app-card { background: var(--py-surface); border-radius: 26px; box-shadow: var(--py-shadow-lg); padding: 56px 44px; text-align: center; max-width: 920px; margin: 0 auto; position: relative; overflow: hidden; }
.py-app-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--py-grad); }
.py-app-card h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-bottom: 10px; }
.py-app-card > p { color: var(--py-muted); max-width: 620px; margin: 0 auto 30px; }
.py-app-body { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.py-app-show { width: 240px; max-width: 240px; height: 320px; max-height: 320px; object-fit: cover; border-radius: 22px; box-shadow: var(--py-shadow); background: var(--py-night-1); }
.py-app-side { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.py-app-qr { width: 148px; height: 148px; border: 1px solid var(--py-line); border-radius: 14px; padding: 8px; background: #fff; }
.py-app-qr img { width: 100%; height: 100%; }
.py-app-cap { font-size: .85rem; color: var(--py-muted); margin-top: -8px; }
.py-app-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- 资讯卡片区 ---------- */
.py-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.py-news-card { background: var(--py-surface); border: 1px solid var(--py-line); border-radius: var(--py-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--py-shadow); transition: transform .25s ease, box-shadow .25s ease; }
.py-news-card:hover { transform: translateY(-5px); box-shadow: var(--py-shadow-lg); }
.py-news-img { display: block; }
.py-news-img img { width: 100%; height: 190px; object-fit: cover; }
.py-news-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.py-news-cat { align-self: flex-start; font-size: .78rem; font-weight: 700; color: var(--py-accent-deep); background: var(--py-soft); padding: 3px 12px; border-radius: 999px; }
.py-news-title { font-size: 1.05rem; font-weight: 700; line-height: 1.5; margin: 0; }
.py-news-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.py-news-title a:hover { color: var(--py-accent-deep); }
.py-news-desc { font-size: .9rem; color: var(--py-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex-grow: 1; }
.py-news-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.py-news-more { font-size: .86rem; font-weight: 700; color: var(--py-accent-deep); border: 1px solid var(--py-soft-line); padding: 4px 14px; border-radius: 999px; }
.py-news-more:hover { background: var(--py-soft); color: var(--py-accent-deep); }
.py-news-empty { text-align: center; color: var(--py-muted); background: var(--py-surface); border: 1px dashed var(--py-line); border-radius: var(--py-radius); padding: 46px 20px; grid-column: 1 / -1; }

/* ---------- 页脚 ---------- */
.py-footer { background: var(--py-foot-grad); color: rgba(255, 255, 255, .65); padding: 64px 0 26px; }
.py-footer h6 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.py-footer a { color: rgba(255, 255, 255, .65); }
.py-footer a:hover { color: var(--py-accent-2); }
.py-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 36px; }
.py-footer-card { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; padding: 22px; min-height: 190px; }
.py-footer-card p { font-size: .9rem; margin: 0; }
.py-footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.05rem; margin-bottom: 12px; }
.py-footer-brand .py-brand-mark { width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; background: var(--py-grad); color: var(--py-accent-ink); display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 900; }
.py-footer-list { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.py-footer-list li { margin-bottom: 9px; }
.py-footer-link { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .88rem; }
.py-copy { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px; text-align: center; font-size: .88rem; color: rgba(255, 255, 255, .5); }
.py-copy a { color: rgba(255, 255, 255, .7); }

/* ---------- 子页通用 ---------- */
.py-pagehead { background: var(--py-grad-dark); padding: 54px 0 46px; color: #fff; }
.py-pagehead h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; }
.py-pagehead p { color: rgba(255, 255, 255, .6); margin: 10px 0 0; }
.py-crumb { font-size: .88rem; margin-bottom: 16px; }
.py-crumb ul { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.py-crumb li { color: rgba(255, 255, 255, .55); }
.py-crumb li + li::before { content: "/"; margin-right: 6px; color: rgba(255, 255, 255, .35); }
.py-crumb a { color: rgba(255, 255, 255, .75); }
.py-crumb a:hover { color: var(--py-accent-2); }
.py-crumb-light li { color: var(--py-muted); }
.py-crumb-light li + li::before { color: var(--py-line); }
.py-crumb-light a { color: var(--py-body); }
.py-crumb-light a:hover { color: var(--py-accent-deep); }
.py-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 30px; align-items: start; padding: 46px 0 84px; }
.py-main-col { min-width: 0; }
.py-side-col { min-width: 0; position: sticky; top: 92px; }
.py-side-box { background: var(--py-surface); border: 1px solid var(--py-line); border-radius: var(--py-radius); padding: 22px; box-shadow: var(--py-shadow); margin-bottom: 22px; }
.py-side-box h3 { font-size: 1.05rem; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--py-line); }
.py-rank-list { list-style: none; margin: 0; padding: 0; }
.py-rank-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--py-line); }
.py-rank-list li:last-child { border-bottom: 0; }
.py-rank-no { flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px; background: var(--py-page); color: var(--py-muted); font-size: .8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 4px; }
.py-rank-list li:nth-child(-n+3) .py-rank-no { background: var(--py-grad); color: var(--py-accent-ink); }
.py-rank-list a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .92rem; line-height: 1.55; }
.py-taglist { display: flex; flex-wrap: wrap; gap: 10px; }
.py-taglist a { font-size: .84rem; padding: 5px 14px; border-radius: 999px; background: var(--py-page); color: var(--py-body); border: 1px solid var(--py-line); }
.py-taglist a:hover { background: var(--py-soft); border-color: var(--py-accent); color: var(--py-accent-deep); }

/* ---------- 列表卡片 ---------- */
.py-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.py-list-card { background: var(--py-surface); border: 1px solid var(--py-line); border-radius: var(--py-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--py-shadow); transition: transform .25s ease; }
.py-list-card:hover { transform: translateY(-4px); }
.py-list-img img { width: 100%; height: 175px; object-fit: cover; }
.py-list-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.py-list-title { font-size: 1rem; font-weight: 700; line-height: 1.5; margin: 0; }
.py-list-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.py-list-title a:hover { color: var(--py-accent-deep); }
.py-list-desc { font-size: .88rem; color: var(--py-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex-grow: 1; }
.py-list-meta { display: flex; align-items: center; gap: 16px; font-size: .82rem; color: var(--py-muted); margin-top: 4px; }

/* ---------- 详情页 ---------- */
.py-article { background: var(--py-surface); border: 1px solid var(--py-line); border-radius: var(--py-radius); padding: 40px 44px 44px; box-shadow: var(--py-shadow); }
.py-article > h1 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-bottom: 16px; }
.py-article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .88rem; color: var(--py-muted); padding-bottom: 18px; border-bottom: 1px solid var(--py-line); margin-bottom: 26px; }
.py-article-meta a { color: var(--py-accent-deep); }
.py-detail-body { font-size: 1.02rem; color: #2c3352; }
.py-detail-body .article-header .article-title { display: none; }
.py-detail-body .article-description { font-size: 1.05rem; color: var(--py-ink); background: var(--py-page); border-left: 4px solid var(--py-accent); padding: 14px 18px; border-radius: 0 12px 12px 0; margin-bottom: 22px; }
.py-detail-body .article-toc { background: var(--py-page); border: 1px solid var(--py-line); border-radius: 14px; padding: 18px 22px; margin-bottom: 26px; }
.py-detail-body .toc-title { font-size: 1rem; margin-bottom: 10px; }
.py-detail-body .toc-list { padding-left: 1.4em; margin: 0; }
.py-detail-body .toc-list li { margin: 6px 0; }
.py-detail-body .toc-list a { color: var(--py-accent-deep); }
.py-detail-body p { margin: 0 0 1.1em; }
.py-detail-body img { max-width: 100%; width: 100%; height: auto; border-radius: 12px; margin: 14px auto; }
.py-detail-body h2, .py-detail-body h3, .py-detail-body h4 { margin: 1.4em 0 .7em; }
.py-detail-body .article-figure figcaption { text-align: center; font-size: .85rem; color: var(--py-muted); margin-top: -6px; }
.py-detail-body ul, .py-detail-body ol { padding-left: 1.6em; margin: 0 0 1.1em; }
.py-detail-body blockquote { border-left: 4px solid var(--py-accent); background: var(--py-page); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 0 0 1.1em; color: var(--py-body); }
.py-detail-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.1em; }
.py-detail-body table th, .py-detail-body table td { border: 1px solid var(--py-line); padding: 9px 12px; font-size: .92rem; }
.py-detail-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.py-updown { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.py-updown a, .py-updown span { display: block; background: var(--py-page); border: 1px solid var(--py-line); border-radius: 12px; padding: 14px 18px; font-size: .92rem; }
.py-updown em { font-style: normal; display: block; font-size: .8rem; color: var(--py-muted); margin-bottom: 4px; }
.py-updown a:hover { border-color: var(--py-accent); }
.py-page-code { display: flex; justify-content: center; gap: 8px; margin: 22px 0; }

/* ---------- 分页 ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 30px 0 0; padding: 0; }
.page-item { list-style: none; }
.page-link { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--py-line); border-radius: 10px; background: var(--py-surface); color: var(--py-body); font-size: .92rem; }
.page-link:hover { color: var(--py-accent-deep); border-color: var(--py-accent); }
.page-item.active .page-link { background: var(--py-grad); border-color: transparent; color: var(--py-accent-ink); font-weight: 700; }
.page-item.disabled .page-link { color: var(--py-muted); opacity: .6; pointer-events: none; }

/* ---------- 搜索 / 表单 ---------- */
.py-searchbar { display: flex; gap: 12px; max-width: 640px; margin: 26px auto 0; }
.py-searchbar input { flex: 1; min-width: 0; }
input[type="text"], input[type="email"], input[type="search"], textarea, select { width: 100%; padding: 12px 16px; border: 1px solid var(--py-line); border-radius: 12px; font-size: .98rem; font-family: inherit; color: var(--py-ink); background: var(--py-surface); outline: none; transition: border-color .2s ease; }
input:focus, textarea:focus { border-color: var(--py-accent); }
textarea { min-height: 140px; resize: vertical; }
.py-form { display: grid; gap: 18px; }
.py-form label { font-size: .92rem; font-weight: 600; color: var(--py-ink); display: block; margin-bottom: 8px; }

/* ---------- 单页内容排版 ---------- */
.py-prose { background: var(--py-surface); border: 1px solid var(--py-line); border-radius: var(--py-radius); padding: 40px 44px; box-shadow: var(--py-shadow); }
.py-prose h1 { margin-bottom: 18px; }
.py-prose h2 { font-size: 1.25rem; margin: 1.8em 0 .8em; padding-left: 14px; border-left: 4px solid var(--py-accent); }
.py-prose p { margin: 0 0 1.1em; }
.py-prose ul, .py-prose ol { padding-left: 1.6em; margin: 0 0 1.1em; }
.py-prose .py-note { font-size: .88rem; color: var(--py-muted); }

/* ---------- 404 ---------- */
.py-404 { text-align: center; padding: 110px 20px 130px; }
.py-404 b { display: block; font-size: clamp(4.5rem, 12vw, 8rem); font-weight: 900; background: var(--py-grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.py-404 p { color: var(--py-muted); margin: 14px 0 30px; font-size: 1.05rem; }

/* ---------- 返回顶部 ---------- */
#backTop { position: fixed; right: 22px; bottom: 26px; z-index: 1200; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--py-grad); color: var(--py-accent-ink); font-size: 1.2rem; font-weight: 800; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .25s ease; box-shadow: 0 10px 24px var(--py-soft); }
#backTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backTop:hover { transform: translateY(-3px); }

/* ---------- 子页大视觉 ---------- */
.py-subhero { position: relative; min-height: 340px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; background: var(--py-grad-dark); }
.py-subhero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.py-subhero-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 13, 34, .5), rgba(10, 13, 34, .85)); }
.py-subhero-c { position: relative; z-index: 2; padding: 70px 20px; max-width: 820px; }
.py-subhero-c h1 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin-bottom: 14px; }
.py-subhero-c p { color: rgba(255, 255, 255, .78); }

/* ---------- 区块顺序差异化（桌面） ---------- */
body[data-theme="1"] .py-flow > .py-sec-about { order: 1; }
body[data-theme="1"] .py-sec-svc { order: 2; }
body[data-theme="1"] .py-sec-dept { order: 3; }
body[data-theme="1"] .py-sec-security { order: 4; }
body[data-theme="1"] .py-sec-reviews { order: 5; }
body[data-theme="1"] .py-sec-appdown { order: 6; }
body[data-theme="1"] .py-sec-news { order: 7; }

body[data-theme="2"] .py-flow > .py-sec-about { order: 1; }
body[data-theme="2"] .py-flow > .py-sec-dept { order: 2; }
body[data-theme="2"] .py-flow > .py-sec-svc { order: 3; }
body[data-theme="2"] .py-flow > .py-sec-reviews { order: 4; }
body[data-theme="2"] .py-flow > .py-sec-security { order: 5; }
body[data-theme="2"] .py-flow > .py-sec-news { order: 6; }
body[data-theme="2"] .py-flow > .py-sec-appdown { order: 7; }

body[data-theme="3"] .py-flow > .py-sec-svc { order: 1; }
body[data-theme="3"] .py-flow > .py-sec-about { order: 2; }
body[data-theme="3"] .py-flow > .py-sec-news { order: 3; }
body[data-theme="3"] .py-flow > .py-sec-dept { order: 4; }
body[data-theme="3"] .py-flow > .py-sec-security { order: 5; }
body[data-theme="3"] .py-flow > .py-sec-reviews { order: 6; }
body[data-theme="3"] .py-flow > .py-sec-appdown { order: 7; }

body[data-theme="4"] .py-flow > .py-sec-dept { order: 1; }
body[data-theme="4"] .py-flow > .py-sec-security { order: 2; }
body[data-theme="4"] .py-flow > .py-sec-about { order: 3; }
body[data-theme="4"] .py-flow > .py-sec-svc { order: 4; }
body[data-theme="4"] .py-flow > .py-sec-news { order: 5; }
body[data-theme="4"] .py-flow > .py-sec-reviews { order: 6; }
body[data-theme="4"] .py-flow > .py-sec-appdown { order: 7; }

body[data-theme="5"] .py-flow > .py-sec-about { order: 1; }
body[data-theme="5"] .py-flow > .py-sec-security { order: 2; }
body[data-theme="5"] .py-flow > .py-sec-dept { order: 3; }
body[data-theme="5"] .py-flow > .py-sec-svc { order: 4; }
body[data-theme="5"] .py-flow > .py-sec-reviews { order: 5; }
body[data-theme="5"] .py-flow > .py-sec-appdown { order: 6; }
body[data-theme="5"] .py-flow > .py-sec-news { order: 7; }

body[data-theme="6"] .py-flow > .py-sec-news { order: 1; }
body[data-theme="6"] .py-flow > .py-sec-about { order: 2; }
body[data-theme="6"] .py-flow > .py-sec-svc { order: 3; }
body[data-theme="6"] .py-flow > .py-sec-dept { order: 4; }
body[data-theme="6"] .py-flow > .py-sec-reviews { order: 5; }
body[data-theme="6"] .py-flow > .py-sec-security { order: 6; }
body[data-theme="6"] .py-flow > .py-sec-appdown { order: 7; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) { .py-nav a { padding: 8px 11px; font-size: .92rem; } }
@media (max-width: 992px) {
    .py-layout { grid-template-columns: 1fr; }
    .py-side-col { position: static; }
    .py-news-grid { grid-template-columns: repeat(2, 1fr); }
    .py-review-grid { grid-template-columns: repeat(2, 1fr); }
    .py-svc-grid { grid-template-columns: repeat(2, 1fr); }
    .py-footer-grid { grid-template-columns: repeat(2, 1fr); }
    .py-about-row, .py-dept-row, .py-about-row.py-rev, .py-dept-row.py-rev { flex-direction: column; gap: 26px; }
    .py-about-img, .py-dept-img { flex: none; width: 100%; }
    .py-sec-band { flex-direction: column; gap: 34px; }
}
@media (max-width: 768px) {
    .py-header-inner { min-height: 64px; }
    .py-toggle { display: flex; }
    .py-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; background: var(--py-surface); box-shadow: var(--py-shadow-lg); padding: 12px 18px 18px; }
    #py-nav-state:checked ~ .py-header-inner .py-nav { display: flex; }
    .py-nav-cta { display: none; }
    .py-hero-content { padding: 70px 18px 110px; }
    .py-list { grid-template-columns: 1fr; }
    .py-news-grid { grid-template-columns: 1fr; }
    .py-review-grid { grid-template-columns: 1fr; }
    .py-svc-grid { grid-template-columns: 1fr; }
    .py-article, .py-prose { padding: 26px 20px 30px; }
    .py-updown { grid-template-columns: 1fr; }
    .py-sec { padding: 60px 0; }
    .py-flow > section { order: 5 !important; }
}
@media (max-width: 576px) {
    .py-footer-grid { grid-template-columns: 1fr; }
    .py-app-card { padding: 40px 22px; }
    .py-app-show { width: 200px; height: 270px; }
}

/* 布局根容器 & 返回顶部（非 MIP，纯 CSS 锚点） */
main.cms-main, .mipcms-main { display: block; }
html { scroll-behavior: smooth; }
.py-gototop { position: fixed; right: 20px; bottom: 26px; z-index: 90; width: 46px; height: 46px; line-height: 46px; text-align: center; border-radius: 50%; background: var(--py-accent); color: var(--py-accent-ink); font-size: 1.3rem; font-weight: 700; text-decoration: none; box-shadow: var(--py-shadow-lg); opacity: .92; transition: transform .2s ease, opacity .2s ease; }
.py-gototop:hover { transform: translateY(-3px); opacity: 1; }
@media (max-width: 768px) { .py-gototop { right: 14px; bottom: 18px; width: 42px; height: 42px; line-height: 42px; } }

/* 正文真实图片（raw <img>），关闭 JS 也可见 */
.py-detail-body .article-figure { margin: 22px 0; }
.py-detail-body .article-img, .py-detail-body figure img { display: block; max-width: 100%; width: 100%; height: auto; border-radius: 12px; box-shadow: var(--py-shadow); margin: 0 auto; }
.py-detail-body .article-figcaption { text-align: center; font-size: .85rem; color: var(--py-muted); margin-top: 10px; }
