/* =========================================================
   MoonHoneyMC —— 高级冰川雾蓝 · Liquid Glass
   冷调 / 通透 / 苹果级丝滑动效
   ========================================================= */

:root {
    /* ===== 午夜冰川蓝基底 ===== */
    --ice-0: #0c1424;
    --ice-1: #111d35;

    /* ===== 光晕三色（低饱和） ===== */
    --glacier: #38bdf8;   /* 冰川蓝 */
    --haze:    #818cf8;   /* 雾霾蓝紫 */
    --aurora:  #2dd4bf;   /* 极光青 */

    /* ===== 冷银蓝玻璃 ===== */
    --glass:      rgba(255, 255, 255, 0.12);
    --glass-soft: rgba(255, 255, 255, 0.07);
    --glass-hi:   rgba(255, 255, 255, 0.16);
    --glass-line: rgba(255, 255, 255, 0.14);
    --glass-line-hi: rgba(255, 255, 255, 0.24);

    /* 顶部镜面内高光 */
    --mirror: inset 0 1px 1px rgba(255, 255, 255, 0.6);
    --mirror-soft: inset 0 1px 1px rgba(255, 255, 255, 0.3);

    /* 苹果弹性缓动 */
    --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);

    --txt: #eaf2ff;
    --txt-2: rgba(234, 242, 255, 0.7);
    --txt-3: rgba(234, 242, 255, 0.44);

    --r-pill: 999px;
    --r-xl: 26px;
    --r-lg: 20px;
    --r-md: 14px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body.ice-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--ice-0);
    color: var(--txt);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
                 "Segoe UI Variable", "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* =========================================================
   背景：冰川光晕 + 15 秒呼吸流动
   ========================================================= */
.ice-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(165deg, var(--ice-1) 0%, var(--ice-0) 58%, #0a1120 100%);
}

/* 三团柔和光晕，极缓慢呼吸 */
.ice-aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    will-change: transform, opacity;
}

/* 冰川蓝 —— 左上 */
.ice-aurora-1 {
    width: 880px; height: 880px;
    top: -320px; left: -220px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.55) 0%, transparent 68%);
    animation: breatheGlacier 15s ease-in-out infinite;
}

/* 雾霾蓝紫 —— 右上 */
.ice-aurora-2 {
    width: 780px; height: 780px;
    top: -240px; right: -260px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.48) 0%, transparent 68%);
    animation: breatheHaze 15s ease-in-out infinite;
    animation-delay: -5s;
}

/* 极光青 —— 下方中央 */
.ice-aurora-3 {
    width: 900px; height: 700px;
    bottom: -340px; left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(45, 212, 191, 0.4) 0%, transparent 70%);
    animation: breatheAurora 15s ease-in-out infinite;
    animation-delay: -10s;
}

@keyframes breatheGlacier {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50%      { transform: translate(60px, 70px) scale(1.14); opacity: 0.34; }
}

@keyframes breatheHaze {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.46; }
    50%      { transform: translate(-70px, 60px) scale(1.12); opacity: 0.3; }
}

@keyframes breatheAurora {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.38; }
    50%      { transform: translateX(-50%) translateY(-60px) scale(1.16); opacity: 0.24; }
}

/* 极细网格，增加冰晶质感 */
.ice-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 85% 65% at 50% 32%, #000 24%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 32%, #000 24%, transparent 80%);
}

/* 噪点纹理，削弱塑料感 */
.ice-noise {
    position: absolute;
    inset: 0;
    opacity: .022;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 内容层：背景层之上。
   关键：把浮层（auth 弹窗 / 底部 Dock / 顶部导航）排除在外，
   否则会被强制 z-index 覆盖，导致：
     - 登录弹窗失去 fixed 定位跑到页面底部
     - 底部 Dock 被页面内容盖住而无法点击 */
body.ice-body > *:not(.ice-bg):not(.auth-overlay):not(.bottom-dock):not(.nav-wrap) {
    z-index: 1;
}

/* 普通容器建立层叠上下文 */
body.ice-body > .ice-main,
body.ice-body > .ice-footer {
    position: relative;
}

/* =========================================================
   悬浮胶囊导航（全站统一）
   ========================================================= */
.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 200;
    padding: 16px 28px 0;
    pointer-events: none;
}

.ice-nav {
    max-width: 1440px;
    width: 92%;
    margin: 0 auto;
    height: 60px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;   /* 左右等宽 → 中间永居中 */
    align-items: center;
    padding: 0 20px;
    border-radius: var(--r-pill);
    pointer-events: auto;

    background: rgba(255, 255, 255, 0.095);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid var(--glass-line);
    box-shadow:
        var(--mirror),
        0 8px 34px rgba(3, 10, 24, 0.46),
        inset 0 -1px 1px rgba(255, 255, 255, 0.05);
    transition: box-shadow .4s var(--ease-apple), background .4s var(--ease-apple);
}

.ice-nav:hover {
    background: rgba(255, 255, 255, 0.115);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.7),
        0 12px 42px rgba(3, 10, 24, 0.55),
        inset 0 -1px 1px rgba(255, 255, 255, 0.07);
}

.ice-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: start;
    text-decoration: none;
    color: var(--txt);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.2px;
    line-height: 1;
    white-space: nowrap;
}

.ice-logo-mark {
    width: 29px;
    height: 29px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 9px;
    font-size: 12.5px;
    color: #fff;
    background: linear-gradient(135deg, var(--glacier), var(--haze));
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.6),
        0 3px 14px rgba(56, 189, 248, 0.42);
}

.ice-logo b { color: var(--glacier); }

/* 中央胶囊切换器 */
.ice-switch {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

.ice-switch a {
    padding: 8px 17px;
    border-radius: var(--r-pill);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--txt-2);
    text-decoration: none;
    white-space: nowrap;
    transition: color .3s var(--ease-apple),
                background .35s var(--ease-apple),
                box-shadow .35s var(--ease-apple);
}

.ice-switch a:hover { color: var(--txt); background: rgba(255, 255, 255, 0.08); }

.ice-switch a.active {
    color: #fff;
    background: linear-gradient(135deg,
        rgba(56, 189, 248, 0.9),
        rgba(129, 140, 248, 0.85));
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.6),
        0 3px 16px rgba(56, 189, 248, 0.44);
}

.ice-nav-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}

.ice-user {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: var(--r-pill);
    font-size: 12px;
    color: var(--txt-2);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

/* =========================================================
   按钮（苹果弹性）
   ========================================================= */
.ice-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 19px;
    border-radius: var(--r-pill);
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition:
        transform .34s var(--ease-apple),
        box-shadow .34s var(--ease-apple),
        background .34s var(--ease-apple),
        border-color .34s var(--ease-apple);
    will-change: transform;
}

/* 按压回弹 */
.ice-btn:active { transform: scale(0.97); }

.ice-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, rgba(56,189,248,.92), rgba(129,140,248,.88));
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.6),
        0 4px 18px rgba(56, 189, 248, 0.4);
}

.ice-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.72),
        0 9px 30px rgba(56, 189, 248, 0.55);
}

.ice-btn-ghost {
    color: var(--txt-2);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.22);
}

.ice-btn-ghost:hover {
    color: var(--txt);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
}

.ice-btn-lg { padding: 13px 32px; font-size: 14px; }

/* =========================================================
   玻璃卡片（含鼠标跟随微光）
   ========================================================= */
.ice-card {
    position: relative;
    border-radius: var(--r-xl);
    background: var(--glass);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid var(--glass-line);
    box-shadow:
        var(--mirror),
        0 10px 36px rgba(3, 10, 24, 0.42),
        inset 0 -1px 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition:
        transform .44s var(--ease-apple),
        box-shadow .44s var(--ease-apple),
        border-color .44s var(--ease-apple),
        background .44s var(--ease-apple);
    will-change: transform;
}

/* 顶部镜面流光 */
.ice-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.62), transparent);
    pointer-events: none;
    z-index: 2;
}

/* 鼠标跟随微光折射 */
.ice-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .5s var(--ease-apple);
    background: radial-gradient(
        340px circle at var(--mx, 50%) var(--my, 50%),
        rgba(255, 255, 255, 0.14),
        rgba(56, 189, 248, 0.05) 40%,
        transparent 68%
    );
    z-index: 1;
}

.ice-card:hover::after { opacity: 1; }

.ice-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.145);
    border-color: var(--glass-line-hi);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.72),
        0 20px 54px rgba(3, 10, 24, 0.6),
        inset 0 -1px 1px rgba(255, 255, 255, 0.09);
}

/* =========================================================
   入场动画：错峰淡入上浮
   ========================================================= */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    animation: fadeUp .85s var(--ease-apple) forwards;
}

.reveal-1 { animation-delay: .06s; }
.reveal-2 { animation-delay: .14s; }
.reveal-3 { animation-delay: .22s; }
.reveal-4 { animation-delay: .30s; }
.reveal-5 { animation-delay: .38s; }
.reveal-6 { animation-delay: .46s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .reveal { opacity: 1; }
}

/* =========================================================
   布局基础
   ========================================================= */
.ice-main {
    /* 宽屏舒展：1440px 上限 + 92% 自适应，窄屏自动收缩 */
    max-width: 1440px;
    width: 92%;
    margin: 0 auto;
    padding: 0 0 80px;
    flex: 1;
}

.ice-hero {
    text-align: center;
    padding: 76px 0 44px;
}

.ice-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    margin-bottom: 24px;
    border-radius: var(--r-pill);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(234, 242, 255, 0.85);
    background: rgba(255, 255, 255, 0.075);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.ice-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 5.6vw, 62px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -2px;
    background: linear-gradient(178deg, #ffffff 6%, rgba(214, 234, 255, 0.72) 96%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ice-hero p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
    color: var(--txt-2);
}

.ice-page-head {
    padding: 68px 0 38px;
    text-align: center;
}

.ice-page-head h1 {
    margin: 0 0 11px;
    font-size: clamp(29px, 4.2vw, 44px);
    font-weight: 800;
    letter-spacing: -1.3px;
    background: linear-gradient(178deg, #fff 8%, rgba(214,234,255,.7) 96%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ice-page-head p { margin: 0; font-size: 14.5px; color: var(--txt-2); }

.ice-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.3px;
}

.ice-section-title i {
    font-size: 14px;
    color: var(--glacier);
}

.ice-footer {
    padding: 30px 28px;
    text-align: center;
    font-size: 12px;
    color: var(--txt-3);
    border-top: 1px solid rgba(255, 255, 255, 0.055);
}

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(146, 190, 230, 0.18);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(146, 190, 230, 0.3); background-clip: content-box; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 920px) {
    .nav-wrap { padding: 12px 14px 0; }
    .ice-nav {
        height: auto;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo right"
            "switch switch";
        gap: 10px;
        padding: 12px 16px;
        border-radius: 22px;
    }
    .ice-logo { grid-area: logo; }
    .ice-nav-right { grid-area: right; }
    .ice-switch { grid-area: switch; width: 100%; justify-content: center; }
    .ice-switch a { flex: 1; text-align: center; padding: 8px 10px; }
    .ice-main { padding: 0 14px 60px; }
    .ice-hero { padding: 44px 0 30px; }
    .ice-hero h1 { letter-spacing: -1px; }
}
