/* =========================================
   鹏客软件 PECK 官网样式
   ========================================= */

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

:root {
    --main-color: #FFB800;
    --main-dark: #e6a200;
    --main-light: #ffd166;
    --dark-color: #111827;
    --text-color: #1f2937;
    --text-secondary: #4b5563;
    --gray-color: #6b7280;
    --bg-color: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-card: #ffffff;
    --light: #fff8e5;
    --border-color: #e5e7eb;
    --border-light: #f0f1f3;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .04);
    --shadow: 0 8px 30px rgba(0, 0, 0, .06);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, .08);
    --shadow-glow: 0 10px 30px rgba(255, 184, 0, .25);
    --transition: all .25s cubic-bezier(.4, 0, .2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
}

.container {
    width: min(1200px, 92%);
    margin: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

h1, h2, h3, h4 {
    color: var(--dark-color);
    font-weight: 700;
    line-height: 1.3;
}

.section-sub {
    text-align: center;
    color: var(--gray-color);
    font-size: 16px;
    margin-bottom: 56px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

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

/* ====================== 顶部导航 ====================== */

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, .75);
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    transition: background .3s, box-shadow .3s;
}

header.scrolled {
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
}

.nav {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    display: flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
}

.logo span {
    background: var(--main-color);
    color: #111;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: 900;
    letter-spacing: .5px;
    flex-shrink: 0;
}

.logo em {
    font-style: normal;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    color: #374151;
    text-decoration: none;
    font-size: 15px;
    position: relative;
    padding: 4px 0;
    transition: color .25s;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--main-color);
    transition: width .25s;
}

nav a:hover,
nav a.active {
    color: #000;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.account {
    display: flex;
    gap: 15px;
    align-items: center;
}

.account a {
    text-decoration: none;
    color: #111;
    font-size: 15px;
}

.account .register {
    background: var(--main-color);
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    transition: transform .25s, box-shadow .25s;
}

.account .register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 184, 0, .35);
}

/* ===== 已登录用户头像菜单 ===== */
.user-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.user-box .avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--main-color);
    color: #111827;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.user-box .uname {
    font-weight: 600;
    color: #111827;
    font-size: 15px;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-menu {
    position: absolute;
    /* 紧贴触发元素：视觉间距用 padding-top 实现，
       若用 top 偏移会形成 hover 死区——鼠标移向菜单途中悬停态丢失，菜单消失无法点击 */
    top: 100%;
    right: 0;
    min-width: 132px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
    padding: 18px 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: .2s;
    z-index: 50;
}
.user-box:hover .user-menu,
.user-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.user-menu a {
    padding: 8px 12px;
    border-radius: 8px;
    color: #111827 !important;
    font-size: 14px;
    text-decoration: none;
}
.user-menu a:hover {
    background: #fff7e0;
    color: var(--main-dark) !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: #111;
    border-radius: 2px;
    transition: .3s;
}

/* ====================== 首屏 Hero ====================== */

.hero {
    padding-top: 130px;
    min-height: 760px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(255, 184, 0, .25), transparent 35%),
        linear-gradient(180deg, #fff, var(--light));
}

.hero-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.badge {
    display: inline-block;
    background: rgba(255, 184, 0, .15);
    color: #9a6b00;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.15;
    color: #111827;
    margin-bottom: 25px;
    font-weight: 800;
}

.hero p {
    font-size: 19px;
    color: #6b7280;
    max-width: 520px;
}

.buttons {
    margin-top: 38px;
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 999px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 15px;
    letter-spacing: .2px;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:active {
    transform: translateY(-1px);
}

.primary {
    background: var(--main-color);
    color: #111;
    box-shadow: var(--shadow-glow);
}

.primary:hover {
    box-shadow: 0 16px 40px rgba(255, 184, 0, .4);
    background: var(--main-light);
}

.dark {
    background: #111827;
    color: white;
}

.dark:hover {
    background: #1f2937;
}

.outline {
    background: transparent;
    color: #111827;
    border-color: var(--border-color);
}

.outline:hover {
    border-color: var(--main-color);
    color: var(--main-dark);
    background: #fffbeb;
}

.hero-meta {
    display: flex;
    gap: 45px;
    margin-top: 50px;
}

.hero-meta div {
    display: flex;
    flex-direction: column;
}

.hero-meta strong {
    font-size: 30px;
    color: #111827;
    font-weight: 800;
}

.hero-meta span {
    font-size: 14px;
    color: var(--gray-color);
}

/* Hero 卡片 */

.hero-card {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.screen {
    width: 360px;
    height: 420px;
    background: rgba(255, 255, 255, .8);
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .12);
    backdrop-filter: blur(20px);
    transform: rotate(3deg);
}

.bar {
    height: 10px;
    width: 80px;
    background: var(--main-color);
    border-radius: 10px;
    margin-bottom: 40px;
}

.item {
    background: #f9fafb;
    padding: 18px 20px;
    margin-bottom: 16px;
    border-radius: 15px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .05);
    display: flex;
    align-items: center;
    gap: 10px;
    color: #374151;
}

.item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--main-color);
    flex-shrink: 0;
}

.item .tag {
    margin-left: auto;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 700;
}

.item .tag.hot {
    background: #fee2e2;
    color: #dc2626;
}

.item .tag.new {
    background: #dcfce7;
    color: #16a34a;
}

.item .tag.vip {
    background: var(--light);
    color: #9a6b00;
}

.float-chip {
    position: absolute;
    right: -10px;
    bottom: 30px;
    background: #fff;
    border-radius: 18px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .14);
    animation: float 3s ease-in-out infinite;
}

.float-chip .chip-ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--main-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #111;
}

.float-chip strong {
    display: block;
    font-size: 15px;
    color: #111827;
}

.float-chip small {
    color: var(--gray-color);
    font-size: 12px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ====================== 核心优势 ====================== */

.features {
    padding: 100px 0;
}

h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #111827;
    font-weight: 800;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.feature {
    text-align: center;
    padding: 40px 25px;
    border-radius: 25px;
    background: white;
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s;
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .1);
}

.feature-ico {
    font-size: 45px;
    margin-bottom: 8px;
}

.feature h3 {
    margin: 16px 0 10px;
    font-size: 19px;
}

.feature p {
    color: var(--gray-color);
    font-size: 15px;
}

/* ====================== 免费资源 ====================== */

.resources {
    padding: 100px 0;
    background: linear-gradient(180deg, #fff, #fafafa);
}

.res-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.res-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s;
    border: 1px solid #f1f1f1;
}

.res-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .12);
}

.res-thumb {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
}

.res-thumb.tool {
    background: linear-gradient(135deg, #fff3d6, #ffe1a8);
}

.res-thumb.design {
    background: linear-gradient(135deg, #ffe0ec, #ffc6dd);
}

.res-thumb.doc {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.res-thumb.sys {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.res-thumb.media {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.res-thumb.sec {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
}

.res-body {
    padding: 22px 24px 26px;
}

.res-cat {
    display: inline-block;
    font-size: 12px;
    color: #9a6b00;
    background: var(--light);
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.res-body h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #111827;
}

.res-body p {
    color: var(--gray-color);
    font-size: 14px;
    margin-bottom: 14px;
}

.res-link {
    color: var(--main-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.res-link:hover {
    text-decoration: underline;
}

/* ====================== VIP ====================== */

.vip {
    padding: 100px 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 184, 0, .18), transparent 40%),
        var(--dark-color);
}

.vip-box {
    max-width: 720px;
    margin: auto;
    text-align: center;
    color: white;
}

.vip-badge {
    display: inline-block;
    background: var(--main-color);
    color: #111;
    padding: 6px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
}

.vip h2 {
    color: white;
}

.vip p {
    color: #d1d5db;
    font-size: 18px;
    margin-bottom: 10px;
}

.vip ul {
    margin: 30px 0 38px;
    list-style: none;
    font-size: 18px;
    display: inline-block;
    text-align: left;
}

.vip li {
    margin: 12px 0;
    color: #e5e7eb;
}

/* ====================== 价格方案 ====================== */

.pricing {
    padding: 100px 0;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
}

.price-card {
    position: relative;
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 38px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s;
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .12);
}

.price-card.popular {
    border: 2px solid var(--main-color);
    box-shadow: 0 20px 50px rgba(255, 184, 0, .25);
}

.popular-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--main-color);
    color: #111;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 20px;
}

.price-card h3 {
    font-size: 20px;
    color: #111827;
    margin-bottom: 16px;
}

.price {
    font-size: 46px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 24px;
}

.price span {
    font-size: 22px;
    vertical-align: super;
    margin-right: 2px;
}

.price small {
    font-size: 15px;
    color: var(--gray-color);
    font-weight: 500;
}

.price-card ul {
    list-style: none;
    margin-bottom: 28px;
    text-align: left;
    flex: 1;
}

.price-card li {
    padding: 9px 0;
    color: #4b5563;
    font-size: 15px;
    border-bottom: 1px dashed #f0f0f0;
}

.price-card .btn {
    width: 100%;
}

/* ====================== 行动号召 ====================== */

.cta {
    padding: 90px 0;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 184, 0, .22), transparent 45%),
        var(--light);
}

.cta h2 {
    margin-bottom: 14px;
}

.cta p {
    color: #6b7280;
    font-size: 18px;
    margin-bottom: 30px;
}

/* ====================== 页脚 ====================== */

footer {
    background: var(--dark-color);
    color: #9ca3af;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 14px;
    font-size: 20px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 16px;
}

.footer-col p {
    font-size: 14px;
    max-width: 280px;
}

.footer-col a {
    display: block;
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    transition: color .25s;
}

.footer-col a:hover {
    color: var(--main-color);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
    font-size: 13px;
}

/* ====================== 回到顶部 ====================== */

.back-top {
    position: fixed;
    right: 28px;
    bottom: 84px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--main-color);
    color: #111;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(255, 184, 0, .4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: .3s;
    z-index: 998;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-top:hover {
    transform: translateY(-3px);
}

/* ====================== 滚动入场动画 ====================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====================== 移动端 ====================== */

@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .res-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .price-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .nav {
        height: 65px;
    }

    /* 窄屏导航：隐藏中文副标题，账号区保留头像 */
    .logo { font-size: 18px; gap: 8px; }
    .logo span { padding: 4px 9px; }
    .logo em { display: none; }
    nav { gap: 18px; }
    nav a { font-size: 14px; }

    .menu-toggle {
        display: flex;
    }

    /* 移动端菜单：锚定在 header 正下方（跟随 header 位移），
       关闭态 display:none 移出渲染树（安卓绝对安全），打开态淡入 */
    #navMenu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background: #ffffff;
        padding: 10px 0;
        box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
        display: none;
        border-bottom: 1px solid rgba(0, 0, 0, .06);
    }

    #navMenu.open {
        display: flex;
        animation: menuSlideIn .25s ease both;
    }

    @keyframes menuSlideIn {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    #navMenu a {
        padding: 14px 6%;
        font-size: 16px;
        color: #1f2937;
        font-weight: 500;
        border-bottom: 1px solid #f3f4f6;
    }
    #navMenu a:last-child { border-bottom: none; }
    #navMenu a:hover, #navMenu a.active {
        color: var(--main-dark);
        background: #fffbeb;
    }

    /* 首页黑金主题：移动端菜单适配（不透明深色实底） */
    body.gold-dark #navMenu {
        background: #141d29;
        border-bottom-color: rgba(255, 184, 0, .1);
        box-shadow: 0 12px 24px rgba(0, 0, 0, .5);
    }
    body.gold-dark #navMenu a {
        color: #c3cdd8;
        border-bottom-color: rgba(255, 255, 255, .06);
    }
    body.gold-dark #navMenu a:hover,
    body.gold-dark #navMenu a.active {
        color: #FFB800;
        background: rgba(255, 184, 0, .08);
    }

    .account {
        display: flex;
        gap: 10px;
        align-items: center;
    }
    /* 手机端只显示头像和铃铛，隐藏用户名文字 */
    .account .uname { display: none; }
    .account .user-box { gap: 0; }
    .account .avatar {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .notif-bell {
        font-size: 18px;
        padding: 4px;
    }
    /* 未登录状态：手机端同时显示登录和注册入口 */
    .account .login {
        display: inline-flex;
        align-items: center;
        padding: 6px 2px;
        font-size: 13px;
    }
    .account .register {
        padding: 6px 14px;
        font-size: 13px;
    }

    /* 移动端 header 不透明实底（安卓 backdrop-filter 合成 bug 兼容）
       用 #header 提高优先级，防止被文件后段的玻璃化/黑金半透明规则覆盖 */
    header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: #101823;
    }
    body.gold-dark #header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: #101823;
    }
    html[data-theme="dark"] #header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: #0f1620;
    }

    /* hero 顶部补偿：公告条(~43px) + header(65px) ≈ 108px */
    .hero {
        padding-top: 135px;
        min-height: auto;
        padding-bottom: 70px;
    }

    .hero-box {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 16px;
        margin: 0 auto;
    }

    .buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .hero-meta {
        justify-content: center;
        gap: 30px;
    }

    .screen {
        width: 300px;
        height: 360px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .res-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    h2 {
        font-size: 30px;
    }
}

/* =========================================================
   移动端更多优化（手机 Safari）
   ========================================================= */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
img, svg, canvas { max-width: 100%; height: auto; }
@media (max-width: 480px) {
    .container { width: 94%; }
    .hero { padding-top: 135px; padding-bottom: 50px; }
    .hero h1 { font-size: 34px; }
    .hero p { font-size: 15px; }
    .buttons { gap: 14px; }
    .btn { padding: 13px 26px; font-size: 14px; }
    .features, .resources, .pricing { padding: 70px 0; }
    h2 { font-size: 27px; margin-bottom: 36px; }
    .screen { width: 260px; height: 320px; }
    .back-top { right: 18px; bottom: 74px; width: 42px; height: 42px; }
}

/* =========================================================
   全局深色模式（html[data-theme="dark"]）
   ========================================================= */
html[data-theme="dark"] {
    color-scheme: dark;
    background-color: #0f1620;
}
html[data-theme="dark"] body { background: #0f1620; color: #e6edf3; }
html[data-theme="dark"] .section-sub, html[data-theme="dark"] .cta p { color: #94a3b8; }

/* 导航 */
html[data-theme="dark"] header { background: rgba(15, 22, 32, .78); border-bottom-color: rgba(255,255,255,.06); }
html[data-theme="dark"] header.scrolled { background: rgba(15, 22, 32, .95); }
html[data-theme="dark"] .logo, html[data-theme="dark"] .logo em,
html[data-theme="dark"] .account a, html[data-theme="dark"] .user-box .uname { color: #eef3f8; }
html[data-theme="dark"] nav a { color: #c3cdd8; }
html[data-theme="dark"] nav a:hover, html[data-theme="dark"] nav a.active { color: #fff; }
html[data-theme="dark"] .user-menu { background: #141d28; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
html[data-theme="dark"] .user-menu a { color: #eef3f8 !important; }
html[data-theme="dark"] .user-menu a:hover { background: #223041; color: #ffcf61 !important; }
html[data-theme="dark"] .menu-toggle span { background: #eef3f8; }
html[data-theme="dark"] #navMenu { background: #0f1620; }
html[data-theme="dark"] #navMenu a { color: #d6dee7; }

/* 首屏 */
html[data-theme="dark"] .hero {
    background:
        radial-gradient(circle at top right, rgba(255, 184, 0, .22), transparent 35%),
        linear-gradient(180deg, #101722, #0e1420);
}
html[data-theme="dark"] .hero h1 { color: #eef3f8; }
html[data-theme="dark"] .hero p { color: #9fb0c1; }
html[data-theme="dark"] .hero-meta strong { color: #ffd166; }
html[data-theme="dark"] .hero-meta span { color: #94a3b8; }
html[data-theme="dark"] .badge { background: rgba(255,184,0,.16); color: #ffcf61; }
html[data-theme="dark"] .screen { background: rgba(26, 38, 52, .85); }
html[data-theme="dark"] .item { background: #19232f; color: #d5dee8; box-shadow: 0 5px 20px rgba(0,0,0,.3); }
html[data-theme="dark"] .float-chip { background: #1b2531; box-shadow: 0 18px 40px rgba(0,0,0,.4); }
html[data-theme="dark"] .float-chip strong { color: #eef3f8; }
html[data-theme="dark"] .float-chip small { color: #9fafc0; }
html[data-theme="dark"] .outline { color: #e6edf3; border-color: #3a4a5a; }
html[data-theme="dark"] .dark { background: #243244; color: #fff; }

/* 核心优势 / 资源 / 价格 */
html[data-theme="dark"] h2, html[data-theme="dark"] .feature h3,
html[data-theme="dark"] .res-body h3, html[data-theme="dark"] .price-card h3,
html[data-theme="dark"] .price { color: #eef3f8; }
html[data-theme="dark"] .features, html[data-theme="dark"] .pricing { background: #0f1620; }
html[data-theme="dark"] .resources { background: linear-gradient(180deg, #101722, #0e1420); }
html[data-theme="dark"] .feature, html[data-theme="dark"] .res-card, html[data-theme="dark"] .price-card {
    background: #141d28;
    border-color: #223041;
    box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
html[data-theme="dark"] .feature p, html[data-theme="dark"] .res-body p { color: #94a3b8; }
html[data-theme="dark"] .price-card li { color: #c3cdd8; border-bottom-color: #253141; }
html[data-theme="dark"] .price small { color: #94a3b8; }
html[data-theme="dark"] .res-cat { background: #2a2410; color: #ffd166; }

/* 行动号召 / 页脚 */
html[data-theme="dark"] .cta {
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 184, 0, .2), transparent 45%),
        #111a26;
}
html[data-theme="dark"] .cta h2 { color: #eef3f8; }
html[data-theme="dark"] footer { background: #0b1118; }
html[data-theme="dark"] .footer-col h3, html[data-theme="dark"] .footer-col h4 { color: #eef3f8; }

/* 主题切换按钮 */
html[data-theme="dark"] #peckThemeToggle { background: #1d2733; color: #ffcf61; }
#peckThemeToggle:hover { transform: scale(1.08); }

/* ===================== 全局美化 + 液态玻璃效果 ===================== */

/* 液态玻璃通用类 */
.glass {
    background: rgba(255, 255, 255, .6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .06);
}
.glass-dark {
    background: rgba(20, 30, 45, .55);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
}

/* 导航栏液态玻璃升级 */
header {
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    background: rgba(255, 255, 255, .65);
    border-bottom: 1px solid rgba(255, 255, 255, .5);
}
header.scrolled {
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .08);
    border-bottom-color: rgba(255, 255, 255, .6);
}

/* Hero 首屏：更多呼吸感 */
.hero {
    padding-top: 140px;
    padding-bottom: 100px;
    min-height: auto;
}
.hero h1 {
    font-size: 54px;
    font-weight: 800;
    letter-spacing: -.5px;
    margin-bottom: 28px;
}
.hero p {
    font-size: 17px;
    line-height: 1.8;
    max-width: 520px;
}
.buttons {
    margin-top: 42px;
    gap: 18px;
}
.hero-meta {
    gap: 60px;
    margin-top: 60px;
}
.hero-meta strong {
    font-size: 32px;
    font-weight: 800;
}

/* Hero 卡片液态玻璃效果 */
.screen {
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .12);
    border-radius: 28px;
}
.item {
    background: rgba(255, 255, 255, .75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .8);
    padding: 16px 20px;
    margin-bottom: 14px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
}
.float-chip {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .12);
    border-radius: 18px;
}

/* 板块通用间距 */
.resources, .vip, .pricing {
    padding: 110px 0;
}
h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -.3px;
}

/* 资源专区卡片升级 */
.res-grid {
    gap: 28px;
}
.res-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .04);
    overflow: hidden;
    transition: var(--transition);
}
.res-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .1);
}
.res-thumb {
    height: 150px;
    font-size: 56px;
}
.res-body {
    padding: 24px 26px 28px;
}
.res-body h3 {
    font-size: 19px;
    margin-bottom: 10px;
    font-weight: 700;
}
.res-body p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* VIP 板块升级 */
.vip {
    padding: 120px 0;
}
.vip-badge {
    padding: 8px 22px;
    margin-bottom: 28px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(255, 184, 0, .4);
}
.vip h2 {
    margin-bottom: 20px;
}
.vip p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 12px;
}
.vip ul {
    margin: 40px 0 44px;
    font-size: 17px;
}
.vip li {
    margin: 14px 0;
    padding-left: 8px;
}

/* 价格卡片升级 */
.price-grid {
    gap: 28px;
}
.price-card {
    border-radius: var(--radius-lg);
    padding: 44px 36px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .04);
    transition: var(--transition);
    background: #fff;
}
.price-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .1);
}
.price-card.featured {
    border: 2px solid var(--main-color);
    box-shadow: 0 12px 40px rgba(255, 184, 0, .2);
}
.price-card.featured:hover {
    box-shadow: 0 24px 60px rgba(255, 184, 0, .3);
}
.price-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
}
.price {
    font-size: 48px;
    font-weight: 800;
    margin: 20px 0;
}
.price-card ul {
    margin: 28px 0 32px;
}
.price-card li {
    margin: 12px 0;
    font-size: 15px;
}

/* 页脚升级 */
footer {
    padding: 70px 0 30px;
}
.footer-col h3, .footer-col h4 {
    font-size: 16px;
    margin-bottom: 22px;
    font-weight: 700;
}
.footer-col p, .footer-col a {
    font-size: 14px;
    line-height: 2;
}
.footer-bottom {
    margin-top: 50px;
    padding-top: 28px;
    font-size: 13px;
}

/* 公告条优化 */
.announce-bar {
    padding: 10px 0;
    font-size: 13px;
}

/* 公告条优化 */
.announce-bar {
    padding: 0 0;
    background: linear-gradient(90deg, #fff8e5, #fff3d6);
    border-bottom: 1px solid #ffe8a8;
    display: flex;
    align-items: center;
    font-size: 13.5px;
    color: #8a5a00;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    gap: 0;
}
.announce-bar .label {
    background: var(--main-color);
    color: #111;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 0;
    position: relative;
    z-index: 2;
}
.announce-bar .label::after {
    content: '';
    position: absolute;
    right: -14px;
    top: 0;
    bottom: 0;
    width: 14px;
    background: linear-gradient(90deg, var(--main-color), transparent);
}
.announce-bar .label .horn {
    font-size: 14px;
}
.announce-bar .announce-track {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 10px 16px 10px 0;
    /* 左侧渐隐遮罩：文字到喇叭位置就逐渐消失 */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 100%);
}
.announce-bar .announce-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 20px;
}
.announce-bar .announce-track span {
    display: inline-block;
    padding-right: 60px;
    font-size: 13.5px;
    color: #8a5a00;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.announce-bar a {
    color: #c47c00;
    font-weight: 600;
    text-decoration: none;
}
.announce-bar a:hover {
    color: #9a5e00;
    text-decoration: underline;
}

/* 公告条滚动动画 */
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.announce-bar .announce-content {
    animation: marquee-scroll 40s linear infinite;
}
.announce-bar .announce-track:hover .announce-content {
    animation-play-state: paused;
}

/* 公告条美化升级 */
.announce-bar {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: .2px;
}

/* 手机端公告条 */
@media (max-width: 640px) {
    .announce-bar .label {
        padding: 10px 12px;
        margin-left: 0;
        font-size: 11.5px;
    }
    .announce-bar .label .horn { font-size: 13px; }
    .announce-bar .announce-track { padding: 10px 12px; }
    .announce-bar .announce-track span {
        font-size: 13px;
        padding-right: 40px;
    }
    .announce-bar .announce-content {
        animation-duration: 30s;
    }
}

/* 回到顶部按钮液态玻璃 */
#backToTop {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background: rgba(255, 184, 0, .9);
    border: 1px solid rgba(255, 255, 255, .3);
}

/* ===================== 首页专属：黑金主题（默认黑色背景 + 金色光晕） ===================== */
/* html 背景双保险：安卓地址栏收起/下拉刷新时视口外的画布不露白 */
html.gold-html { background: #0a0f17; }
/* 金色光晕直接画进 body 背景，不再用 ::before + 子元素提层——
   之前的 body.gold-dark > * { position:relative } 会覆盖 header 的 position:fixed，
   导致手机端顶部空白、导航栏随页面滚走、下拉菜单位置错乱等连锁 bug */
body.gold-dark {
    background-color: #0a0f17;
    background-image: radial-gradient(circle, rgba(255,184,0,.22) 0%, rgba(255,184,0,.08) 35%, transparent 70%);
    background-size: 60vw 70vh;
    background-position: -10vw -20vh;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #e6edf3;
}

/* 导航（桌面端不透明实底，避免滚动时下方内容透过 header 显现造成"穿透"） */
body.gold-dark header {
    background: #0e1520;
    border-bottom-color: rgba(255,184,0,.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.gold-dark header.scrolled {
    background: #0e1520;
    box-shadow: 0 4px 24px rgba(0,0,0,.5);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.gold-dark .logo, body.gold-dark .logo em { color: #eef3f8; }
body.gold-dark nav a { color: #c3cdd8; }
body.gold-dark nav a:hover, body.gold-dark nav a.active { color: #FFB800; }
body.gold-dark .account a, body.gold-dark .user-box .uname { color: #eef3f8; }
body.gold-dark .account .login { color: #eef3f8; }
body.gold-dark .menu-toggle span { background: #eef3f8; }

/* 头像下拉菜单（黑金实底，与移动端汉堡菜单同色系） */
body.gold-dark .user-menu {
    background: #141d29;
    border: 1px solid rgba(255, 184, 0, .14);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
}
body.gold-dark .user-menu a { color: #e6edf3 !important; }
body.gold-dark .user-menu a:hover { background: rgba(255, 184, 0, .14); color: #FFB800 !important; }

/* 通知面板（黑金实底） */
body.gold-dark .notif-bell { background: #1c2733; }
body.gold-dark .notif-panel {
    background: #141d29;
    border: 1px solid rgba(255, 184, 0, .14);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
}
body.gold-dark .notif-head { background: #1a2431; border-bottom-color: rgba(255, 255, 255, .06); }
body.gold-dark .notif-head strong { color: #eef3f8; }
body.gold-dark .notif-head a { color: #ffd166; }
body.gold-dark .notif-item { border-bottom-color: #202b37; }
body.gold-dark .notif-item.unread { background: rgba(255, 184, 0, .06); }
body.gold-dark .notif-item .msg { color: #dfe7ef; }
body.gold-dark .notif-item .meta { color: #76879a; }
body.gold-dark .notif-item .sys-tag { background: #2a3542; color: #aebac7; }
body.gold-dark .notif-item.vip .sys-tag { background: #3a2f18; color: #ffd08a; }
body.gold-dark .notif-empty { color: #76879a; }
body.gold-dark .notif-badge { border-color: #141d29; }

/* 公告条（不透明实底，安卓透叠兼容） */
body.gold-dark .announce-bar {
    background: linear-gradient(90deg, #1c1508, #131009);
    border-bottom-color: rgba(255,184,0,.15);
    color: #ffd166;
}
body.gold-dark .announce-bar .label {
    background: #FFB800;
    color: #111;
}
body.gold-dark .announce-bar .label::after {
    background: linear-gradient(90deg, #FFB800, transparent);
}
body.gold-dark .announce-bar .announce-track span { color: #ffd166; }
body.gold-dark .announce-bar a { color: #ffd166; }

/* 桌面端：公告条置顶、header 紧随其下，两块均不透明实底，
   彻底杜绝滚动时下方内容透过标题栏显现（"穿透/被穿过"问题） */
@media (min-width: 769px) {
    body.gold-dark .announce-bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    body.gold-dark #header {
        top: 46px;
    }
}

/* Hero 首屏 */
body.gold-dark .hero { background: transparent; }
body.gold-dark .hero h1 { color: #ffffff; }
body.gold-dark .hero p { color: #9fb0c1; }
body.gold-dark .hero-meta strong { color: #ffd166; }
body.gold-dark .hero-meta span { color: #94a3b8; }
body.gold-dark .badge { background: rgba(255,184,0,.16); color: #ffcf61; border-color: rgba(255,184,0,.25); }
body.gold-dark .hero-card .screen { background: rgba(26,38,52,.85); border-color: rgba(255,184,0,.1); }
body.gold-dark .hero-card .item { background: #141d28; color: #d5dee8; box-shadow: 0 5px 20px rgba(0,0,0,.4); }
body.gold-dark .hero-card .item .dot { background: #FFB800; }
body.gold-dark .hero-card .float-chip { background: #141d28; border-color: rgba(255,184,0,.15); box-shadow: 0 18px 40px rgba(0,0,0,.5); }
body.gold-dark .hero-card .float-chip strong { color: #eef3f8; }
body.gold-dark .hero-card .float-chip small { color: #9fafc0; }
body.gold-dark .hero .btn.dark { background: #1b2531; color: #eef3f8; border-color: #2c3a4a; }
body.gold-dark .hero .btn.dark:hover { border-color: #FFB800; color: #FFB800; }

/* 板块通用 */
body.gold-dark .resources, body.gold-dark .vip, body.gold-dark .pricing { background: transparent; }
body.gold-dark h2, body.gold-dark .section-title, body.gold-dark .res-body h3,
body.gold-dark .price-card h3, body.gold-dark .price { color: #ffffff; }
body.gold-dark .section-sub { color: #8fa0b1; }

/* 资源专区卡片（首页 zone-buttons 在 member.css 里定义，这里补充黑金态） */

/* VIP 会员板块 */
body.gold-dark .vip-box {
    background: linear-gradient(135deg, #141d28, #0e1620);
    border: 1px solid rgba(255,184,0,.18);
    box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 60px rgba(255,184,0,.08) inset;
}
body.gold-dark .vip-box h2 { color: #ffffff; }
body.gold-dark .vip-box p { color: #9fb0c1; }
body.gold-dark .vip-box li { color: #c3cdd8; border-bottom-color: #223041; }
body.gold-dark .vip-badge { background: #FFB800; color: #111827; box-shadow: 0 6px 20px rgba(255,184,0,.4); }

/* 按钮发光 */
body.gold-dark .btn.primary {
    box-shadow: 0 10px 30px rgba(255,184,0,.35), 0 0 0 1px rgba(255,184,0,.25) inset;
}
body.gold-dark .btn.primary:hover {
    box-shadow: 0 14px 36px rgba(255,184,0,.5), 0 0 0 1px rgba(255,184,0,.4) inset;
}

/* 页脚 */
body.gold-dark footer { background: #070b11; border-top-color: rgba(255,184,0,.08); }
body.gold-dark .footer-col h3, body.gold-dark .footer-col h4 { color: #eef3f8; }
body.gold-dark .footer-col p, body.gold-dark .footer-col a { color: #8fa0b1; }
body.gold-dark .footer-col a:hover { color: #FFB800; }
body.gold-dark .footer-bottom { border-top-color: rgba(255,184,0,.08); color: #6b7a8a; }

/* 首页隐藏暗黑模式切换按钮 */
body.gold-dark #peckThemeToggle { display: none !important; }
