/*!
 * 星云导航 - 前台首页专属样式
 * 版本: 3.3.0 Pro
 *
 * 基于 common.css 设计令牌扩展
 * v3.3.0 大型重构: 整合v3.2.0-v3.2.5全部迭代, 清理重复定义
 * - 布局大胆优化: 品牌区冲击力、线路卡片层次、数据感统计栏
 * - 背景系统深度优化: 多层光晕、网格纹理、噪点质感、日夜沉浸
 * - 主题色深度融合: 所有呼吸灯/边框灯/渐变/按钮100%跟随主题
 * - 高端付费级质感: 超通透玻璃、精致微交互、流畅动画
 */

/* ============================================================
   1. 页面基础与滚动条
   ============================================================ */
html {
    overflow-y: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
::-webkit-scrollbar-track { background: transparent !important; }
::-webkit-scrollbar-thumb { background: transparent !important; }
* { scrollbar-width: none !important; scrollbar-color: transparent transparent !important; }

body {
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2.5rem 0 calc(2.5rem + env(safe-area-inset-bottom));
    position: relative;
    overflow-x: hidden;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

::selection { background: var(--primary); color: #fff; }

/* ============================================================
   2. 背景系统 — 多层光晕 + 网格纹理 + vignette暗角 + 深度感
   ============================================================ */

/* 2.1 底层渐变氛围 + vignette暗角(中心亮边缘暗, 增加沉浸感) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(ellipse 60% 50% at 50% 40%, transparent 0%, rgba(0, 0, 0, 0.03) 100%),
        radial-gradient(circle at 15% 25%, rgba(124, 58, 237, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(236, 72, 153, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.05) 0%, transparent 60%);
}
.dark-mode body::before {
    background-image:
        radial-gradient(ellipse 60% 50% at 50% 40%, transparent 0%, rgba(0, 0, 0, 0.25) 100%),
        radial-gradient(circle at 15% 25%, rgba(99, 102, 241, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(244, 114, 182, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
}

/* 2.2 网格纹理 — 更细腻, 中心渐隐 */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}
.dark-mode body::after {
    opacity: 0.15;
    background-image:
        linear-gradient(rgba(129, 140, 248, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(129, 140, 248, 0.035) 1px, transparent 1px);
}

/* 2.3 动态光晕层 — 更大更柔和, 位置优化, 深度感更强 */
.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.3;
    will-change: transform;
    animation: orbFloatDynamic 24s ease-in-out infinite;
}
.bg-orb:nth-child(1) {
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -260px;
    left: -180px;
    animation-duration: 28s;
    animation-delay: 0s;
}
.bg-orb:nth-child(2) {
    width: 540px;
    height: 540px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: 5%;
    right: -200px;
    animation-duration: 32s;
    animation-delay: -10s;
}
.bg-orb:nth-child(3) {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: -200px;
    left: 30%;
    animation-duration: 30s;
    animation-delay: -18s;
}
.dark-mode .bg-orb {
    opacity: 0.4;
    filter: blur(160px);
}

@keyframes orbFloatDynamic {
    0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
    20%  { transform: translate(70px, -50px) scale(1.1) rotate(5deg); }
    40%  { transform: translate(-40px, 60px) scale(0.93) rotate(-3deg); }
    60%  { transform: translate(60px, 40px) scale(1.07) rotate(4deg); }
    80%  { transform: translate(-60px, -30px) scale(0.96) rotate(-5deg); }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

/* 2.4 鼠标粒子画布 */
.particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
}
@media (max-width: 768px), (hover: none) {
    .particle-canvas { display: none; }
}

/* 2.5 星空(深色模式) */
.star-field {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease;
    transform: translateZ(0); /* GPU加速, 减少滑动重绘 */
    -webkit-transform: translateZ(0);
}
.dark-mode .star-field { opacity: 1; }
.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: starTwinkle ease-in-out infinite;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
    will-change: opacity; /* 提示浏览器优化合成层 */
}
.dark-mode .star {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 16px rgba(129, 140, 248, 0.4);
}
@keyframes starTwinkle {
    0%, 100% { opacity: 0.2; }
    50%      { opacity: 1; }
}
/* 平板端: 进一步降低动画复杂度, 避免闪屏 */
@media (min-width: 768px) and (max-width: 1366px) and (hover: none) {
    .star { animation-duration: 4s !important; }
    .star-field { transform: translateZ(0); }
}

/* 2.6 日间模式动态云朵 */
.cloud-field {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.75;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.25s;
}
.dark-mode .cloud-field {
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0s;
}
.cloud {
    position: absolute;
    background:
        radial-gradient(ellipse 50% 60% at 25% 60%, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.6) 50%, transparent 75%),
        radial-gradient(ellipse 40% 50% at 50% 38%, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.7) 50%, transparent 75%),
        radial-gradient(ellipse 45% 55% at 75% 55%, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.55) 50%, transparent 75%),
        radial-gradient(ellipse 60% 40% at 50% 72%, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.4) 60%, transparent 80%);
    filter: blur(2.5px);
    will-change: transform;
    animation: cloudDrift linear infinite;
}
.cloud.shape-a {
    background:
        radial-gradient(ellipse 55% 50% at 20% 65%, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.55) 50%, transparent 75%),
        radial-gradient(ellipse 35% 45% at 45% 45%, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.65) 50%, transparent 75%),
        radial-gradient(ellipse 50% 48% at 72% 58%, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.5) 50%, transparent 75%),
        radial-gradient(ellipse 65% 35% at 48% 75%, rgba(255,255,255,0.68) 0%, rgba(255,255,255,0.38) 60%, transparent 80%);
}
.cloud.shape-b {
    background:
        radial-gradient(ellipse 42% 65% at 30% 55%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.58) 50%, transparent 75%),
        radial-gradient(ellipse 38% 60% at 55% 35%, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.72) 50%, transparent 75%),
        radial-gradient(ellipse 40% 55% at 78% 52%, rgba(255,255,255,0.86) 0%, rgba(255,255,255,0.52) 50%, transparent 75%),
        radial-gradient(ellipse 55% 42% at 52% 70%, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.4) 60%, transparent 80%);
}
.cloud.shape-c {
    background:
        radial-gradient(ellipse 48% 55% at 35% 58%, rgba(255,255,255,0.93) 0%, rgba(255,255,255,0.62) 50%, transparent 75%),
        radial-gradient(ellipse 42% 52% at 62% 48%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 50%, transparent 75%),
        radial-gradient(ellipse 55% 40% at 50% 68%, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.42) 60%, transparent 80%);
}
@keyframes cloudDrift {
    0%   { transform: translateX(-20vw) translateY(0) scale(1); }
    25%  { transform: translateX(20vw) translateY(-12px) scale(1.02); }
    50%  { transform: translateX(55vw) translateY(-20px) scale(1); }
    75%  { transform: translateX(85vw) translateY(-8px) scale(0.98); }
    100% { transform: translateX(120vw) translateY(0) scale(1); }
}

/* ============================================================
   3. 布局容器
   ============================================================ */
.wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 1rem;
    overflow-x: hidden;
}
@media (min-width: 1024px) {
    .wrapper { max-width: 900px; }
}

/* ============================================================
   4. 主卡片 — 超通透玻璃 + 边框呼吸灯
   ============================================================ */
.main {
    position: relative;
    overflow: hidden;
    padding: 3.2rem 2.6rem;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(32px) saturate(170%);
    -webkit-backdrop-filter: blur(32px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 8px 32px rgba(79, 70, 229, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: box-shadow 0.5s var(--ease-premium), transform 0.5s var(--ease-premium);
}
.main:hover {
    box-shadow:
        0 12px 40px rgba(79, 70, 229, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* 夜间模式主卡片: 更透明, 取消底部重阴影, 用柔和主题辉光 */
.dark-mode .main {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.12), rgba(30, 27, 75, 0.06));
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow:
        0 8px 32px rgba(99, 102, 241, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.dark-mode .main:hover {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.15), rgba(30, 27, 75, 0.08));
    box-shadow:
        0 12px 40px rgba(99, 102, 241, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* 边框呼吸灯 — 加宽2.5px + 外发光, 颜色100%跟随主题 */
.main::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2.5px;
    background: linear-gradient(135deg,
        var(--primary) 0%,
        var(--secondary) 25%,
        var(--accent) 50%,
        var(--secondary) 75%,
        var(--primary) 100%);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderBreath 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 0 6px var(--primary-200)) drop-shadow(0 0 12px var(--secondary-100));
}
@keyframes borderBreath {
    0%   { background-position: 0% 50%;   opacity: 0.45; }
    25%  { background-position: 50% 50%;  opacity: 0.75; }
    50%  { background-position: 100% 50%; opacity: 0.55; }
    75%  { background-position: 50% 50%;  opacity: 0.75; }
    100% { background-position: 0% 50%;   opacity: 0.45; }
}
/* 夜间模式边框灯发光更强 */
.dark-mode .main::before {
    filter: drop-shadow(0 0 8px var(--primary-300)) drop-shadow(0 0 16px var(--secondary-200));
}

/* 主卡片底部微光 */
.main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.25), rgba(236, 72, 153, 0.18), transparent);
    pointer-events: none;
    z-index: 1;
}

/* 主卡片内容层 */
.main > * {
    position: relative;
    z-index: 2;
}

/* ============================================================
   5. 品牌区 — 高冲击力
   ============================================================ */
.header-area {
    text-align: center;
    margin-bottom: 2.6rem;
    position: relative;
}

.header-logo {
    width: 104px;
    height: 104px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    animation: logoFloat 8s ease-in-out infinite;
    transition: transform var(--duration) var(--ease-out);
}
.header-logo:hover { transform: scale(1.08); }
.header-logo:active { transform: scale(0.95); }
.header-logo:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 24px;
}
.header-logo::before, .header-logo::after {
    content: none;
    display: none;
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
.header-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 48px rgba(79, 70, 229, 0.4));
    transition: filter 0.4s var(--ease-premium), transform 0.4s var(--ease-premium);
}
.header-logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 24px 56px rgba(79, 70, 229, 0.5)) drop-shadow(0 0 24px rgba(124, 58, 237, 0.2));
}

.logo-icon-fallback {
    width: 104px;
    height: 104px;
    border-radius: 28px;
    background: var(--gradient-premium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    color: #fff;
    box-shadow:
        0 12px 32px rgba(79, 70, 229, 0.4),
        0 0 48px rgba(124, 58, 237, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}
.logo-icon-fallback::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: logoShine 4s ease-in-out infinite;
}
@keyframes logoShine {
    0%, 60% { left: -100%; }
    80%, 100% { left: 100%; }
}

/* 站点标题 — 呼吸灯颜色100%跟随主题 */
.site-title {
    font-size: 2.9rem;
    font-weight: 900;
    letter-spacing: 6px;
    background: linear-gradient(90deg,
        var(--primary) 0%,
        var(--secondary) 35%,
        var(--accent) 50%,
        var(--secondary) 65%,
        var(--primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.8rem;
    animation: titleBreath 7s ease-in-out infinite;
    text-shadow: none;
    filter: none;
    will-change: background-position, opacity;
    line-height: 1.2;
}
@keyframes titleBreath {
    0%   { background-position: 0% center;   opacity: 0.88; }
    25%  { background-position: 50% center;  opacity: 1; }
    50%  { background-position: 100% center; opacity: 0.92; }
    75%  { background-position: 50% center;  opacity: 1; }
    100% { background-position: 0% center;   opacity: 0.88; }
}
/* 夜间模式标题: 100%跟随主题CSS变量, 与日间统一主题色 */
.dark-mode .site-title {
    background: linear-gradient(90deg,
        var(--primary) 0%,
        var(--secondary) 35%,
        var(--accent) 50%,
        var(--secondary) 65%,
        var(--primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleBreath 7s ease-in-out infinite;
    filter: none;
    text-shadow: none;
}

/* 副标题 — 跟随主题色渐变 */
.header-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    letter-spacing: 8px;
    opacity: 0.8;
    font-weight: 600;
    text-transform: uppercase;
    background: linear-gradient(90deg,
        var(--text-muted) 0%,
        var(--primary) 50%,
        var(--text-muted) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: subtitleBreath 9s ease-in-out infinite;
    filter: none;
}
@keyframes subtitleBreath {
    0%, 100% { background-position: 0% center;  opacity: 0.75; }
    50%      { background-position: 100% center; opacity: 0.95; }
}
.dark-mode .header-subtitle {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.5) 0%,
        #a5b4fc 50%,
        rgba(255, 255, 255, 0.5) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================================
   6. 玻璃卡片统一基础
   ============================================================ */
.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.16));
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 20px;
    box-shadow:
        0 6px 24px rgba(79, 70, 229, 0.06),
        0 2px 6px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.4s var(--ease-premium);
}
.glass-card:hover {
    box-shadow:
        0 10px 32px rgba(79, 70, 229, 0.1),
        0 3px 10px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.dark-mode .glass-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.35), rgba(30, 27, 75, 0.22));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.dark-mode .glass-card:hover {
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(129, 140, 248, 0.2);
}

/* ============================================================
   7. 滚动公告
   ============================================================ */
.scroll-announcement {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.85rem 1.2rem;
    margin-bottom: 1.1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.07), rgba(236, 72, 153, 0.04));
    border: 1px solid rgba(124, 58, 237, 0.14);
    box-shadow:
        inset 0 1px 3px rgba(255, 255, 255, 0.4),
        0 4px 16px rgba(79, 70, 229, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    position: relative;
}
.dark-mode .scroll-announcement {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.11), rgba(244, 114, 182, 0.07));
    border-color: rgba(129, 140, 248, 0.2);
}
.scroll-announcement > i {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.82rem;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: hornPulse 3s ease-in-out infinite;
}
@keyframes hornPulse {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.08); }
}
.scroll-announcement .scroll-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.scroll-announcement .scroll-content span {
    display: inline-block;
    padding-left: 100%;
    animation: scrollText 20s linear infinite;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text);
    will-change: transform;
}
.dark-mode .scroll-announcement .scroll-content span {
    color: #e2e8f0;
}
.scroll-announcement:hover .scroll-content span {
    animation-play-state: paused;
}
@keyframes scrollText {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ============================================================
   8. 内联公告
   ============================================================ */
.inline-announcement {
    padding: 1.1rem 1.4rem;
    margin-bottom: 1.2rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.07), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-left: 4px solid var(--success);
}
.inline-announcement .inline-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.inline-announcement .inline-title i {
    color: var(--success);
    margin-right: 6px;
}
.inline-announcement .inline-content {
    font-size: 0.86rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* ============================================================
   9. 折叠公告(手风琴)
   ============================================================ */
.bookmark-btn {
    width: 100%;
    margin-bottom: 0.9rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.07), rgba(236, 72, 153, 0.05));
    border: 1px solid rgba(124, 58, 237, 0.18);
    box-shadow:
        0 4px 16px rgba(79, 70, 229, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    position: relative;
    transition: box-shadow var(--duration) ease, transform var(--duration-fast) ease;
}
.bookmark-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    animation: bookmarkShine 5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes bookmarkShine {
    0%, 70% { left: -100%; }
    85%, 100% { left: 100%; }
}
.bookmark-btn:hover {
    box-shadow:
        0 8px 24px rgba(79, 70, 229, 0.14),
        0 0 20px rgba(124, 58, 237, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}
.dark-mode .bookmark-btn {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.12), rgba(167, 139, 250, 0.08), rgba(244, 114, 182, 0.06));
    border-color: rgba(129, 140, 248, 0.22);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.dark-mode .bookmark-btn:hover {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.16), rgba(167, 139, 250, 0.12), rgba(244, 114, 182, 0.08));
    border-color: rgba(129, 140, 248, 0.35);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(129, 140, 248, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.domain-toggle {
    width: 100%;
    padding: 0.8rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.25s ease;
}
.domain-toggle:hover { background: rgba(255, 255, 255, 0.06); }
.domain-toggle .toggle-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.domain-toggle .toggle-label {
    letter-spacing: 1.5px;
    opacity: 0.95;
    flex-shrink: 0;
    color: var(--text);
    font-weight: 700;
}
.domain-toggle .toggle-left > i {
    color: var(--primary);
}
.toggle-arrow {
    font-size: 0.8rem;
    opacity: 0.8;
    color: var(--text-muted);
    transition: transform var(--duration-slow) var(--ease-spring);
}
.bookmark-btn.expanded .toggle-arrow { transform: rotate(180deg); }

/* 夜间模式折叠公告文字 */
.dark-mode .domain-toggle { color: #e2e8f0; }
.dark-mode .domain-toggle .toggle-label { color: #e2e8f0; }
.dark-mode .domain-toggle .toggle-arrow { color: rgba(226, 232, 240, 0.7); }
.dark-mode .domain-toggle .toggle-left > i { color: #a5b4fc; }

/* 未展开紧凑状态 */
.bookmark-btn:not(.expanded) { margin-bottom: 0.6rem; }
.bookmark-btn:not(.expanded) .domain-toggle { padding: 0.5rem 0.95rem; font-size: 0.84rem; }
.bookmark-btn:not(.expanded) .domain-body { padding-top: 0; padding-bottom: 0; }
.bookmark-btn:not(.expanded) .domain-content { padding: 0; opacity: 0; }

/* 展开动画: grid 0fr→1fr */
.domain-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s ease, padding 0.5s ease;
    padding: 0 1.3rem;
}
.bookmark-btn.expanded .domain-body {
    grid-template-rows: 1fr;
    padding: 0 1rem 1rem;
}
.domain-content {
    overflow: hidden;
    padding: 0.8rem 1rem;
    line-height: 1.8;
    font-size: 0.88rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.55);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.35s ease 0.1s, padding 0.3s ease;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
}
.dark-mode .domain-content {
    background: rgba(0, 0, 0, 0.35);
    color: #cbd5e1;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}
.bookmark-btn.expanded .domain-content { opacity: 1; }

.ann-field {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(124, 58, 237, 0.08);
}
.ann-field:last-child { border-bottom: none; }
.dark-mode .ann-field { border-bottom-color: rgba(255, 255, 255, 0.08); }
.ann-field strong {
    color: var(--primary);
    font-weight: 700;
    min-width: 5.5em;
    display: inline-block;
}
.dark-mode .ann-field strong { color: #a5b4fc; }
.ann-tip { opacity: 0.8; }

/* 折叠公告内网址复制按钮 */
.bookmark-btn .domain-content .ann-url {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text);
}
.dark-mode .bookmark-btn .domain-content .ann-url {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
}
.bookmark-btn .domain-content .ann-url-copy {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text);
    border-radius: 4px;
    padding: 2px 6px;
    opacity: 0.85;
}
.bookmark-btn .domain-content .ann-url-copy:hover {
    background: rgba(0, 0, 0, 0.12);
    opacity: 1;
}
.dark-mode .bookmark-btn .domain-content .ann-url-copy {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.dark-mode .bookmark-btn .domain-content .ann-url-copy:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   10. 线路卡片列表 — 大胆优化布局
   ============================================================ */
.link-section-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1.5px;
}
.link-section-title i {
    color: var(--primary);
    font-size: 0.85rem;
}
.dark-mode .link-section-title i { color: rgba(129, 140, 248, 0.95); }

.link-list {
    list-style: none;
    margin-bottom: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.link-item {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.16));
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 14px;
    padding: 0.7rem 1.1rem 0.7rem 1.1rem;
    min-height: 62px;
    box-sizing: border-box;
    box-shadow:
        0 4px 16px rgba(79, 70, 229, 0.06),
        0 1px 4px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    cursor: pointer;
    opacity: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    animation: fadeIn 0.4s ease-out forwards;
    transition: transform var(--duration) var(--ease-out),
                background var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out),
                border-color var(--duration) var(--ease-out);
}

/* 左侧渐变指示条 — 跟随主题 */
.link-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3.5px;
    background: var(--gradient-premium);
    border-radius: 0 4px 4px 0;
    transform: scaleY(0);
    transform-origin: center;
    transition: transform var(--duration) var(--ease-out);
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.35), 0 0 24px rgba(124, 58, 237, 0.15);
}

/* 顶部高光 */
.link-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent);
    pointer-events: none;
    border-radius: inherit;
}
.dark-mode .link-item::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
}

.link-item:hover, .link-item:active {
    transform: translateY(-4px) scale(1.01);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.24));
    border-color: rgba(124, 58, 237, 0.32);
    box-shadow:
        0 16px 40px rgba(79, 70, 229, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(124, 58, 237, 0.15),
        0 0 32px rgba(124, 58, 237, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.link-item:hover::before { transform: scaleY(1); }

.link-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(0.7);
    transform: none !important;
}
.link-item.disabled a { pointer-events: none; }
.link-item.disabled::after { display: none; }

/* 夜间模式线路卡片: 更透明 */
.dark-mode .link-item {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.22), rgba(15, 23, 42, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.25),
        0 1px 4px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.dark-mode .link-item:hover, .dark-mode .link-item:active {
    background: linear-gradient(135deg, rgba(49, 46, 129, 0.28), rgba(30, 27, 75, 0.18));
    border-color: rgba(129, 140, 248, 0.28);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(129, 140, 248, 0.2),
        0 0 32px rgba(129, 140, 248, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* 延迟状态指示器 */
.ms-display {
    position: absolute;
    top: 0;
    left: 0;
    padding: 3px 10px;
    min-width: 52px;
    text-align: center;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
    border-top-left-radius: 14px;
    border-bottom-right-radius: 12px;
    transition: background-color 0.4s ease;
    box-sizing: border-box;
    z-index: 2;
    overflow: hidden;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}
.ms-green  { background: linear-gradient(135deg, var(--success), #059669); box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35); }
.ms-yellow { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35); }
.ms-red, .ms-error { background: linear-gradient(135deg, var(--danger), #dc2626); box-shadow: 0 2px 10px rgba(239, 68, 68, 0.35); }
.ms-checking {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    overflow: hidden;
}
.ms-checking::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: checkingShimmer 1.2s infinite;
}
@keyframes checkingShimmer {
    0%   { left: -100%; }
    100% { left: 100%; }
}

/* 线路内容行 */
.url-content {
    margin-top: 13px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    height: auto;
    min-height: 28px;
    flex-wrap: nowrap;
    position: relative;
    z-index: 2;
}
.url-label {
    flex-shrink: 0;
    min-width: 0;
    max-width: 38%;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text);
    overflow: hidden;
    letter-spacing: 0.3px;
}
.dark-mode .url-label { color: #f1f5f9; }
.url-label .link-name-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.url-label i {
    color: var(--primary);
    font-size: 0.82rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(124, 58, 237, 0.2));
}
.dark-mode .url-label i { color: rgba(129, 140, 248, 0.95); }

/* 域名内联显示 */
.link-domain-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 50px;
    font-family: var(--font-mono, monospace);
    font-size: 0.7rem;
    color: var(--text-muted);
    overflow: hidden;
    padding: 3px 10px;
    background: rgba(124, 58, 237, 0.06);
    border-radius: 6px;
    border: 1px solid rgba(124, 58, 237, 0.1);
}
.dark-mode .link-domain-inline {
    color: rgba(226, 232, 240, 0.7);
    background: rgba(129, 140, 248, 0.08);
    border-color: rgba(129, 140, 248, 0.15);
}
.link-domain-inline .link-domain-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.link-domain-label { display: none; }
.url-link-wrap { display: none !important; }

/* 线路链接: v3.0.6简化后隐藏, 保留类名兼容 */
.current-domain-link {
    display: none !important;
}

/* 联系方式加载中状态 */
.contact-loading {
    opacity: 0.7;
}
.contact-loading .contact-icon {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 复制按钮 — 跟随主题渐变 */
.copy-btn {
    flex-shrink: 0;
    margin-left: auto;
    padding: 6px 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow:
        0 4px 12px rgba(79, 70, 229, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out);
    white-space: nowrap;
}
.copy-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s var(--ease-premium);
}
.copy-btn:hover::after { left: 100%; }
.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 18px rgba(79, 70, 229, 0.4),
        0 0 24px rgba(124, 58, 237, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.copy-btn:active {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 状态徽章 */
.status-badge {
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background var(--duration) ease;
    min-width: 54px;
    box-sizing: border-box;
}
.status-normal {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.1));
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.dark-mode .status-normal {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(34, 211, 238, 0.1));
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.25);
}
.status-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(249, 115, 22, 0.1));
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
}
.dark-mode .status-error {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.15), rgba(251, 146, 60, 0.1));
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.25);
}

/* 防屏蔽: 当前域名显示 */
.link-current-domain {
    transition: background 0.3s ease;
}
.link-domain-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: opacity 0.22s ease;
}
.current-domain-text {
    transition: opacity 0.22s ease;
}
.domain-updating { opacity: 0; }
.link-domain-empty { color: var(--text-muted); font-style: italic; }

/* 泛域名徽章 */
.link-wildcard-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: var(--gradient-accent);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 10px rgba(236, 72, 153, 0.3);
}
.link-wildcard-badge i { font-size: 0.6rem; color: #fff; }

/* 多域名轮询指示器 */
.link-domain-indicator {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    animation: dotPulse 2.2s ease-in-out infinite;
}
.dark-mode .link-domain-indicator { background: rgba(52, 211, 153, 0.9); }
@keyframes dotPulse {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70%  { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* 域名切换高亮闪烁 */
.domain-flash { animation: domainFlash 300ms ease-out; }
@keyframes domainFlash {
    0%   { background: rgba(129, 140, 248, 0.22); }
    100% { background: transparent; }
}

/* ============================================================
   11. 联系方式区域
   ============================================================ */
.notice {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 1rem 0;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(236, 72, 153, 0.03));
    border: 1px solid rgba(124, 58, 237, 0.12);
    box-shadow:
        0 3px 12px rgba(79, 70, 229, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.dark-mode .notice {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.07), rgba(244, 114, 182, 0.04));
    border-color: rgba(129, 140, 248, 0.16);
}
.notice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 0.6rem;
    margin-bottom: 0.2rem;
    border-bottom: 1px solid rgba(124, 58, 237, 0.08);
}
.dark-mode .notice-header { border-bottom-color: rgba(255, 255, 255, 0.07); }
.notice-icon {
    flex-shrink: 0;
    color: var(--primary);
    font-size: 0.95rem;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.14), rgba(124, 58, 237, 0.09));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.dark-mode .notice-icon {
    color: #a5b4fc;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.18), rgba(167, 139, 250, 0.13));
}
.notice-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    letter-spacing: 0.8px;
}
.dark-mode .notice-title { color: #e2e8f0; }
.notice-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.45rem 0.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 10px;
    font-size: 0.76rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.04);
    transition: all 0.3s var(--ease-premium);
}
.contact-link:hover {
    transform: translateX(5px);
    border-color: rgba(124, 58, 237, 0.28);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.3));
    box-shadow:
        0 5px 16px rgba(79, 70, 229, 0.1),
        0 2px 5px rgba(0, 0, 0, 0.04);
    color: var(--text);
}
.dark-mode .contact-link {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.32), rgba(15, 23, 42, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.dark-mode .contact-link:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.28), rgba(139, 92, 246, 0.18));
    border-color: rgba(165, 180, 252, 0.35);
    box-shadow:
        0 5px 18px rgba(99, 102, 241, 0.25),
        0 0 16px rgba(129, 140, 248, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.dark-mode .contact-link:hover .contact-text strong,
.dark-mode .contact-link:hover .contact-value {
    color: #e0e7ff;
}
.contact-icon {
    display: flex;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.64rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.contact-icon i { color: #fff; }
.contact-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 0;
}
.contact-text strong {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
}
.dark-mode .contact-text strong { color: #e2e8f0; }
.contact-value {
    font-size: 0.68rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    font-family: var(--font-mono, monospace);
}
.dark-mode .contact-value { color: rgba(226, 232, 240, 0.65); }
.contact-link:hover .contact-text strong,
.contact-link:hover .contact-value { color: var(--primary); }
.contact-arrow {
    display: inline;
    color: var(--text-muted);
    font-size: 0.58rem;
    flex-shrink: 0;
    opacity: 0.4;
    transition: opacity 0.2s, transform 0.2s;
}
.dark-mode .contact-arrow { color: rgba(255, 255, 255, 0.65); opacity: 0.85; }
.contact-link:hover .contact-arrow { opacity: 0.8; transform: translateX(2px); }

/* ============================================================
   12. 统计栏 — 数据感增强
   ============================================================ */
.line-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.3rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.07), rgba(6, 182, 212, 0.04));
    border: 1px solid rgba(16, 185, 129, 0.16);
    box-shadow:
        0 4px 16px rgba(16, 185, 129, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.dark-mode .line-status-bar {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.09), rgba(34, 211, 238, 0.05));
    border-color: rgba(52, 211, 153, 0.2);
}
.line-status-bar .left-part {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
}
.dark-mode .line-status-bar .left-part { color: #e2e8f0; }
.line-status-bar .left-part i {
    color: var(--success);
    font-size: 1rem;
    filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.3));
}
.dark-mode .line-status-bar .left-part i { color: rgba(52, 211, 153, 0.95); }
.line-status-bar .right-part {
    display: flex;
    gap: 12px;
    font-size: 0.82rem;
    font-weight: 600;
}
.status-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.8rem;
    backdrop-filter: blur(8px);
    font-variant-numeric: tabular-nums;
}
.status-item.normal {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.1));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.status-item.normal i, .status-item.normal span { color: var(--success); }
.status-item.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(249, 115, 22, 0.1));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.status-item.error i, .status-item.error span { color: var(--danger); }

/* ============================================================
   13. 运行天数 — 突出展示
   ============================================================ */
.uptime-box {
    margin-top: 1.4rem;
    padding: 1.3rem 1.6rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.07), rgba(124, 58, 237, 0.05), rgba(236, 72, 153, 0.03));
    border: 1px solid rgba(124, 58, 237, 0.16);
    box-shadow:
        0 6px 20px rgba(79, 70, 229, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}
.dark-mode .uptime-box {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.09), rgba(167, 139, 250, 0.06), rgba(244, 114, 182, 0.04));
    border-color: rgba(129, 140, 248, 0.22);
}
.uptime-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.1), transparent);
    animation: uptimeShimmer 5s ease-in-out infinite;
}
@keyframes uptimeShimmer {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}
.uptime-label {
    font-size: 0.9rem;
    color: var(--text-light);
    letter-spacing: 1.5px;
    flex-shrink: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    font-weight: 600;
}
.dark-mode .uptime-label { color: rgba(226, 232, 240, 0.75); }
.uptime-label i {
    margin-right: 6px;
    filter: drop-shadow(0 0 4px rgba(124, 58, 237, 0.2));
}
.dark-mode .uptime-label i { color: rgba(129, 140, 248, 0.9); }
.uptime-value {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    background: var(--gradient-premium);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: premiumGradientShift 6s ease-in-out infinite;
    text-shadow: none;
    filter: none;
    font-variant-numeric: tabular-nums;
}
.uptime-unit {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.dark-mode .uptime-unit { color: rgba(226, 232, 240, 0.7); }

/* ============================================================
   14. 深色模式切换按钮
   ============================================================ */
.mode-toggle {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 100000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3));
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: var(--text);
    font-size: 1.2rem;
    box-shadow:
        0 4px 16px rgba(79, 70, 229, 0.12),
        0 0 24px rgba(124, 58, 237, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.4s var(--ease-premium);
    cursor: pointer;
}
.mode-toggle:hover {
    color: var(--primary);
    transform: scale(1.15) rotate(25deg);
    box-shadow:
        0 8px 24px rgba(79, 70, 229, 0.2),
        0 0 36px rgba(124, 58, 237, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.mode-toggle:active { transform: scale(0.9); }
.mode-toggle.spinning { animation: toggleSpin 0.5s var(--ease-spring); }
@keyframes toggleSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.dark-mode .mode-toggle {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.35),
        0 0 24px rgba(129, 140, 248, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.dark-mode .mode-toggle:hover { color: rgba(167, 139, 250, 1); }

/* ============================================================
   15. 底部
   ============================================================ */
.footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.7;
    transition: all 0.3s var(--ease-premium);
    padding-top: 1rem;
    border-top: 1px solid rgba(124, 58, 237, 0.08);
}
.dark-mode .footer { border-top-color: rgba(255, 255, 255, 0.06); }
.footer:hover {
    opacity: 1;
    letter-spacing: 2.5px;
}
.footer p {
    background: linear-gradient(90deg, var(--text-muted), var(--primary), var(--text-muted));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: premiumGradientShift 8s ease-in-out infinite;
}

/* ============================================================
   16. 公告网址复制按钮(全局)
   ============================================================ */
.ann-url {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    margin: 0 2px;
    background: rgba(79, 70, 229, 0.06);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: var(--radius-xs);
    font-family: var(--font-mono, monospace);
    font-size: 0.82rem;
    color: var(--primary);
    word-break: break-all;
    vertical-align: middle;
}
.dark-mode .ann-url {
    background: rgba(129, 140, 248, 0.1);
    border-color: rgba(129, 140, 248, 0.25);
}
.ann-url-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
}
.ann-url-copy {
    flex-shrink: 0;
    padding: 2px 6px;
    border: none;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.75rem;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.15s ease;
}
.dark-mode .ann-url-copy { color: rgba(129, 140, 248, 0.9); }
.ann-url-copy:hover { opacity: 1; transform: scale(1.15); }
.ann-url-copy:active { transform: scale(0.95); }
.dark-mode .ann-url-copy:hover { color: rgba(167, 139, 250, 1); }

/* ============================================================
   17. 入场动画
   ============================================================ */
.animate-fade-in-up {
    animation: premiumFadeInUp 0.6s var(--ease-premium) both;
}
.header-logo.animate-fade-in-up {
    animation: premiumFadeInUp 0.6s var(--ease-premium) both, logoFloat 8s ease-in-out 0.6s infinite;
}
@keyframes premiumFadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================================
   18. 响应式 — 平板 768-1024px
   ============================================================ */
@media (max-width: 1024px) and (min-width: 769px) {
    .wrapper { max-width: 740px; }
    .main { padding: 2.8rem 2.2rem; }
    .site-title { font-size: 2.5rem; letter-spacing: 5px; }
}

/* ============================================================
   19. 响应式 — 手机 <768px
   ============================================================ */
@media (max-width: 768px) {
    body { padding: 1.2rem 0 calc(1.2rem + env(safe-area-inset-bottom)); }
    .wrapper { padding: 0.7rem; }
    .main {
        padding: 2.3rem 1.5rem;
        border-radius: 24px;
    }
    .site-title {
        font-size: 2.1rem;
        letter-spacing: 4px;
    }
    .header-logo { width: 80px; height: 80px; }
    .logo-icon-fallback { width: 80px; height: 80px; font-size: 2rem; border-radius: 22px; }
    .header-subtitle { font-size: 0.78rem; letter-spacing: 4px; }

    .link-list { gap: 0.7rem; margin-bottom: 0.9rem; }
    .link-item { padding: 0.6rem 0.8rem; min-height: 56px; }
    .url-content { margin-top: 12px; gap: 6px; }
    .url-label { font-size: 0.84rem; max-width: 36%; }
    .link-domain-inline { font-size: 0.64rem; padding: 2px 7px; }
    .copy-btn { padding: 5px 11px; font-size: 0.66rem; }
    .status-badge { padding: 3px 9px; font-size: 0.62rem; min-width: 50px; }
    .ms-display { padding: 2px 6px; font-size: 0.56rem; min-width: 48px; }

    .line-status-bar { padding: 0.55rem 0.95rem; }
    .line-status-bar .left-part { font-size: 0.8rem; }
    .line-status-bar .right-part { gap: 8px; font-size: 0.76rem; }
    .status-item { padding: 4px 10px; font-size: 0.74rem; }

    .notice { padding: 0.9rem 1rem; gap: 8px; }
    .notice-header { padding-bottom: 0.55rem; }
    .notice-links { gap: 6px; }
    .contact-link { padding: 0.35rem 0.6rem; gap: 6px; }
    .contact-icon { width: 20px; height: 20px; font-size: 0.58rem; }
    .contact-text strong { font-size: 0.7rem; }
    .contact-value { font-size: 0.62rem; }

    .uptime-box { padding: 1rem 1.1rem; gap: 6px; }
    .uptime-label { font-size: 0.76rem; letter-spacing: 1px; }
    .uptime-value { font-size: 1.6rem; }
    .uptime-unit { font-size: 0.82rem; }

    .bg-orb { filter: blur(80px); }
    .bg-orb:nth-child(1) { width: 320px; height: 320px; }
    .bg-orb:nth-child(2) { width: 280px; height: 280px; }
    .bg-orb:nth-child(3) { width: 260px; height: 260px; }

    .cloud-field { opacity: 0.55; }
    .cloud { filter: blur(1.5px); }

    .footer { margin-top: 1.6rem; font-size: 0.76rem; letter-spacing: 1.5px; }
    .domain-toggle { padding: 0.7rem 0.9rem; font-size: 0.84rem; }
    .domain-content { padding: 0.7rem 0.85rem; font-size: 0.84rem; line-height: 1.7; }
    .scroll-announcement { padding: 0.7rem 1rem; margin-bottom: 1rem; }
    .scroll-announcement > i { width: 28px; height: 28px; font-size: 0.78rem; }
    .scroll-announcement .scroll-content span { font-size: 0.86rem; }

    .mode-toggle {
        width: 44px;
        height: 44px;
        top: 16px;
        right: 16px;
        font-size: 1.1rem;
    }

    .main::before { padding: 1px; }
    .ann-url-text { max-width: 180px; }
}

/* ============================================================
   20. 响应式 — 超小屏 <480px
   ============================================================ */
@media (max-width: 480px) {
    .main { padding: 1.9rem 1.2rem; }
    .site-title { font-size: 1.8rem; letter-spacing: 3px; }
    .header-logo { width: 70px; height: 70px; }
    .logo-icon-fallback { width: 70px; height: 70px; font-size: 1.7rem; }
    .link-item { padding: 0.52rem 0.68rem; min-height: 52px; }
    .url-content { margin-top: 11px; gap: 5px; }
    .url-label { font-size: 0.78rem; max-width: 34%; }
    .copy-btn { padding: 4px 9px; font-size: 0.62rem; }
    .status-badge { padding: 2px 7px; font-size: 0.58rem; min-width: 46px; }
    .line-status-bar .left-part { font-size: 0.76rem; }
    .line-status-bar .right-part { font-size: 0.72rem; gap: 6px; }
    .uptime-box { padding: 0.85rem 0.95rem; }
    .uptime-label { font-size: 0.72rem; }
    .uptime-value { font-size: 1.4rem; }
    .uptime-unit { font-size: 0.74rem; }
    .cloud-field { opacity: 0.4; }
}

/* ============================================================
   21. 全局盒模型与防溢出
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
.glass-card, .link-item, .bookmark-btn, .scroll-announcement,
.inline-announcement, .notice, .line-status-bar, .uptime-box {
    max-width: 100%;
}

/* ============================================================
   22. 日间模式文字颜色兜底确保
   ============================================================ */
body:not(.dark-mode) .domain-toggle,
body:not(.dark-mode) .domain-toggle .toggle-label,
body:not(.dark-mode) .scroll-announcement .scroll-content span,
body:not(.dark-mode) .line-status-bar .left-part,
body:not(.dark-mode) .notice-title,
body:not(.dark-mode) .contact-text strong,
body:not(.dark-mode) .uptime-label,
body:not(.dark-mode) .domain-content {
    color: var(--text);
}
body:not(.dark-mode) .contact-value,
body:not(.dark-mode) .link-domain-inline {
    color: var(--text-muted);
}

/* ============================================================
   23. 无障碍 — 减少动画偏好
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .site-title,
    .main::before,
    .header-subtitle,
    .bg-orb,
    .header-logo,
    .logo-icon-fallback::after,
    .bookmark-btn::before,
    .uptime-box::before,
    .footer p,
    .cloud,
    .star,
    .scroll-announcement .scroll-content span,
    .ms-checking::after {
        animation: none !important;
    }
    .link-item:hover,
    .copy-btn:hover,
    .contact-link:hover,
    .mode-toggle:hover,
    .bookmark-btn:hover,
    .main:hover {
        transform: none !important;
    }
    .animate-fade-in-up,
    .header-logo.animate-fade-in-up {
        animation: none !important;
        opacity: 1 !important;
    }
}

/* 键盘焦点可见性 */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* 屏幕阅读器专用 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   v3.3.1 付费级深度美化增强层 — 高端质感精修
   目标: 更立体的层次、更精致的微交互、更高级的光影
   ============================================================ */

/* ---- 1. 主卡片: 取消底部重阴影, 用柔和主题辉光 + 精致内高光 ---- */
.main {
    box-shadow:
        0 8px 32px rgba(79, 70, 229, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 2px 20px rgba(255, 255, 255, 0.08);
}
.main:hover {
    box-shadow:
        0 12px 40px rgba(79, 70, 229, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 2px 24px rgba(255, 255, 255, 0.1);
}
.dark-mode .main {
    box-shadow:
        0 8px 32px rgba(99, 102, 241, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 2px 20px rgba(129, 140, 248, 0.04);
}
.dark-mode .main:hover {
    box-shadow:
        0 12px 40px rgba(99, 102, 241, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 2px 24px rgba(129, 140, 248, 0.06);
}

/* ---- 2. 品牌区: 标题增加微妙发光层次 + Logo精致边框光晕 ---- */
.site-title {
    letter-spacing: 7px;
    line-height: 1.15;
}
/* Logo增加精致的渐变光晕环 */
.header-logo {
    position: relative;
}
.header-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        var(--primary) 60deg,
        var(--secondary) 120deg,
        var(--accent) 180deg,
        var(--secondary) 240deg,
        var(--primary) 300deg,
        transparent 360deg
    );
    opacity: 0.15;
    filter: blur(12px);
    animation: logoHaloRotate 12s linear infinite;
    pointer-events: none;
    z-index: -1;
}
@keyframes logoHaloRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
.dark-mode .header-logo::before {
    opacity: 0.25;
    filter: blur(16px);
}
/* 确保Logo图片在光晕之上 */
.header-logo img, .header-logo .logo-icon-fallback {
    position: relative;
    z-index: 1;
}

/* ---- 3. 线路卡片: 更精致的立体层次 + 光泽扫过动画 ---- */
.link-item {
    box-shadow:
        0 4px 16px rgba(79, 70, 229, 0.06),
        0 1px 4px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}
.link-item:hover, .link-item:active {
    box-shadow:
        0 20px 48px rgba(79, 70, 229, 0.2),
        0 8px 20px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(124, 58, 237, 0.18),
        0 0 40px rgba(124, 58, 237, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}
.dark-mode .link-item {
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.25),
        0 1px 4px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}
.dark-mode .link-item:hover, .dark-mode .link-item:active {
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.45),
        0 8px 20px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(129, 140, 248, 0.25),
        0 0 40px rgba(129, 140, 248, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}
/* 线路卡片左侧指示条增加发光 */
.link-item::before {
    box-shadow: 0 0 8px var(--primary-300), 0 0 16px var(--secondary-200);
}

/* ---- 4. 复制按钮: 更立体的渐变 + 内高光 ---- */
.copy-btn {
    box-shadow:
        0 4px 14px rgba(79, 70, 229, 0.35),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}
.copy-btn:hover {
    box-shadow:
        0 8px 22px rgba(79, 70, 229, 0.45),
        0 2px 6px rgba(0, 0, 0, 0.12),
        0 0 28px rgba(124, 58, 237, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}
.copy-btn:active {
    box-shadow:
        0 2px 6px rgba(79, 70, 229, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ---- 5. 统计栏: 更有数据感的玻璃层次 ---- */
.line-status-bar {
    box-shadow:
        0 4px 16px rgba(16, 185, 129, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}
.status-item {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

/* ---- 6. 运行天数: 更突出的数字展示 + 微光背景 ---- */
.uptime-box {
    box-shadow:
        0 8px 28px rgba(79, 70, 229, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}
.uptime-value {
    font-size: 2.2rem;
    letter-spacing: -1px;
}
.dark-mode .uptime-box {
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

/* ---- 7. 联系方式: 更精致的卡片层次 ---- */
.contact-link {
    box-shadow:
        0 2px 8px rgba(79, 70, 229, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.contact-link:hover {
    box-shadow:
        0 8px 20px rgba(79, 70, 229, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.dark-mode .contact-link {
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.dark-mode .contact-link:hover {
    box-shadow:
        0 8px 20px rgba(99, 102, 241, 0.2),
        0 0 16px rgba(129, 140, 248, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ---- 8. 折叠公告: 更精致的渐变层次 ---- */
.bookmark-btn {
    box-shadow:
        0 6px 20px rgba(79, 70, 229, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.bookmark-btn:hover {
    box-shadow:
        0 12px 32px rgba(79, 70, 229, 0.18),
        0 4px 10px rgba(0, 0, 0, 0.05),
        0 0 28px rgba(124, 58, 237, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.dark-mode .bookmark-btn {
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.28),
        0 2px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.dark-mode .bookmark-btn:hover {
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.38),
        0 4px 10px rgba(0, 0, 0, 0.2),
        0 0 28px rgba(129, 140, 248, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ---- 9. 主题切换按钮: 更精致的玻璃球 ---- */
.mode-toggle {
    box-shadow:
        0 6px 20px rgba(79, 70, 229, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.05),
        0 0 28px rgba(124, 58, 237, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}
.mode-toggle:hover {
    box-shadow:
        0 10px 28px rgba(79, 70, 229, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.08),
        0 0 40px rgba(124, 58, 237, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}
.dark-mode .mode-toggle {
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.2),
        0 0 28px rgba(129, 140, 248, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

/* ---- 10. 滚动公告: 更精致的玻璃层次 ---- */
.scroll-announcement {
    box-shadow:
        0 4px 16px rgba(79, 70, 229, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

/* ---- 11. 延迟徽章: 更精致的角标 ---- */
.ms-display {
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* ---- 12. 入场动画: 更优雅的弹簧曲线 ---- */
@keyframes premiumFadeInUp {
    from {
        opacity: 0;
        transform: translateY(32px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.animate-fade-in-up {
    animation: premiumFadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
/* 标题/副标题同时有入场动画和呼吸灯动画, 需组合声明避免覆盖 */
.site-title.animate-fade-in-up {
    animation: premiumFadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both, titleBreath 7s ease-in-out 0.7s infinite;
}
.header-subtitle.animate-fade-in-up {
    animation: premiumFadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both, subtitleBreath 9s ease-in-out 0.7s infinite;
}

/* ---- 13. 减少动画偏好: 覆盖新增动画 ---- */
@media (prefers-reduced-motion: reduce) {
    .header-logo::before {
        animation: none !important;
        display: none !important;
    }
}

/* ============================================================
   14. 性能优化层 (v3.4.0) — 移动端降级 + 合成层优化
   ============================================================ */

/* 14.1 动画元素提升合成层, 避免重排重绘 */
.bg-orb,
.star,
.cloud,
.header-logo,
.brand-title,
.brand-subtitle,
.link-card,
.stat-card,
.announcement-bar {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* 14.2 移动端 (≤768px) 性能降级: 禁用高消耗特效 */
@media (max-width: 768px) {
    /* 禁用 backdrop-filter (移动端GPU压力大), 改用半透明纯色 */
    .glass-card,
    .link-card,
    .stat-card,
    .announcement-bar,
    .search-box,
    .category-tabs,
    .footer-bar {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.75) !important;
    }
    .dark-mode .glass-card,
    .dark-mode .link-card,
    .dark-mode .stat-card,
    .dark-mode .announcement-bar,
    .dark-mode .search-box,
    .dark-mode .category-tabs,
    .dark-mode .footer-bar {
        background: rgba(20, 20, 35, 0.85) !important;
    }

    /* 禁用大半径 blur 光晕 (80px+), 改用纯色渐变 */
    .bg-orb {
        filter: none !important;
        opacity: 0.15 !important;
    }

    /* 禁用装饰性无限动画 (星空/云朵/光晕浮动) */
    .star,
    .cloud,
    .bg-orb {
        animation: none !important;
    }

    /* 简化呼吸灯/流光动画为静态 */
    .brand-title,
    .brand-subtitle,
    .header-logo {
        animation: none !important;
    }

    /* 简化 box-shadow 为单层 */
    .link-card,
    .stat-card,
    .glass-card {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    }

    /* 禁用卡片 hover 变换 (移动端触控无 hover) */
    .link-card:hover {
        transform: none !important;
    }
}

/* 14.3 平板端 (769px-1024px) 中度降级 */
@media (min-width: 769px) and (max-width: 1024px) {
    /* 减少 backdrop-filter 模糊半径 */
    .glass-card,
    .link-card,
    .stat-card {
        backdrop-filter: blur(12px) saturate(140%) !important;
        -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
    }

    /* 减少光晕 blur 半径 */
    .bg-orb {
        filter: blur(60px) !important;
    }
}

/* 14.4 低性能设备检测 (通过指针类型粗筛) */
@media (pointer: coarse) and (max-width: 768px) {
    /* 触控设备进一步简化 */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    .link-card {
        transition: opacity 0.15s ease !important;
    }
    .link-card:active {
        opacity: 0.85;
    }
}

/* 14.5 滚动性能优化 */
.link-card,
.stat-card,
.category-item {
    contain: layout style paint;
}

/* 14.6 图片懒加载占位优化 */
img {
    content-visibility: auto;
}

