/* 引入更现代、圆润的字体 */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;900&display=swap');

body {
    font-family: 'Nunito', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f8fafc;
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
    background-attachment: fixed;
    color: #1e293b;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* 暗色模式下的全局变量和自定义背景 */
html.dark body {
    background-color: #0f172a; /* 深邃蓝灰背景 */
    color: #f1f5f9;
}

/* 暗色模式形状颜色 */
html.dark .bg-shapes .shape-1 { background: #312e81; } 
html.dark .bg-shapes .shape-2 { background: #1e3a8a; } 
html.dark .bg-shapes .shape-3 { background: #064e3b; }

/* 动态背景动画 */
.bg-shapes {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #f0f4f8;
    transition: background-color 0.5s ease;
}
html.dark .bg-shapes { background: #0f172a; }

.shape {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
    transition: background-color 1s ease;
}
.shape-1 { background: #ffd1ff; width: 400px; height: 400px; top: -10%; left: -10%; animation-delay: 0s; }
.shape-2 { background: #c1d3fe; width: 500px; height: 500px; bottom: -10%; right: -10%; animation-delay: -5s; }
.shape-3 { background: #ffe4b5; width: 300px; height: 300px; top: 40%; left: 40%; animation-delay: -2s; }

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(30px, 50px) rotate(20deg); }
}

/* 便当盒卡片通用样式 */
.bento-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    
    /* 自定义倾斜角变量，默认 0 度 */
    --tilt: 0deg; 
    transform: rotate(var(--tilt));
}

/* 暗色模式的卡片样式 */
html.dark .bento-card {
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}
/* 使用 Y 轴平移代替旋转，制造错落感且不影响文字清晰度 */
.bento-card:nth-child(2n) { margin-top: 12px; margin-bottom: -12px; }
.bento-card:nth-child(3n) { margin-top: -8px; margin-bottom: 8px; }
.bento-card:nth-child(5n) { margin-top: 16px; margin-bottom: -16px; }

/* 单栏布局保持稳定间距，避免错落偏移造成上下卡片重叠。 */
@media (max-width: 767px) {
    .bento-card,
    .bento-card:nth-child(2n),
    .bento-card:nth-child(3n),
    .bento-card:nth-child(5n) {
        margin-top: 0;
        margin-bottom: 0;
        transform: none;
    }

}

.bento-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 40%);
    pointer-events: none;
    z-index: 10;
}

html.dark .bento-card::after {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 40%);
}

.card-watermark {
    position: absolute;
    color: #0f172a; 
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

html.dark .card-watermark {
    color: #f8fafc;
    opacity: 0.03;
}

.bento-card > *:not(.card-watermark):not(::after) {
    position: relative;
    z-index: 1;
}

.bento-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.85);
}

html.dark .bento-card:hover {
    background: rgba(30, 41, 59, 0.85);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767px) {
    .bento-card:hover {
        transform: none;
    }
}

.skill-tag { transition: transform 0.2s; }
.skill-tag:hover { transform: rotate(-5deg) scale(1.1); }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-15deg); }
}
.wave-emoji {
    display: inline-block;
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
}

.drag-scroll { cursor: grab; }
.drag-scroll:active { cursor: grabbing; }
/*加载动画css开始 2026.07.11*/
/* 全屏毛玻璃遮罩 */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.35); /* 浅色微醺底色 */
    backdrop-filter: blur(20px) saturate(140%); /* 强毛玻璃与色彩饱和度提升 */
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 1.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 1.5s;
}

/* 彻底消失 */
#page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* 容器：非传统居中，带有一点向左上倾斜的呼吸感布局 */
.loader-container {
    width: 380px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

/* 头部错落排版 */
.loader-header {
    display: flex;
    align-items: flex-start; /* 顶部对齐，产生高低错落感 */
    gap: 20px;
    margin-bottom: 30px;
}

/* 图标容器 */
.loader-images {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.loader-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 0.5s 硬切 GIF 效果保持 */
.loader-images .img-a { animation: gifFlip 1s steps(1) infinite; }
.loader-images .img-b { animation: gifFlip 1s steps(1) infinite; animation-delay: -0.5s; }

@keyframes gifFlip {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 文字组 */
.loader-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.loader-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 1.5px;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

/* 状态切换为绿色 */
.loader-title.complete {
    color: #22c55e !important; /* 科技绿 */
}
/* 状态切换为橙色警告 (超时异常) */
.loader-title.warning {
    color: #f59e0b !important; 
}
.loader-progress-fill.warning {
    background: #f59e0b !important;
}

.loader-subtitle {
    font-size: 13px;
    color: #666;
    margin: 0;
    letter-spacing: 0.5px;
}

/* 进度条区域 */
.loader-progress-zone {
    display: flex;
    align-items: center;
    gap: 15px;
}

.loader-progress-bar {
    flex-grow: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

/* 进度条填充颜色 - 纯黑/深灰，高级感 */
.loader-progress-fill {
    width: 0%;
    height: 100%;
    background: #1a1a1a;
    border-radius: 10px;
    transition: width 0.1s linear, background-color 0.3s ease;
}

/* 加载完毕后进度条也变绿 */
.loader-progress-fill.complete {
    background: #22c55e !important;
}

/* 数字样式 */
.loader-percentage {
    font-size: 14px;
    font-family: monospace; /* 程序员数码感 */
    font-weight: 600;
    color: #333;
    min-width: 40px;
    text-align: right;
}
/* --- 加载动画暗色模式适配 --- */
html.dark #page-loader {
    background-color: rgba(15, 23, 42, 0.6); /* 深邃蓝灰背景微醺 */
}

html.dark .loader-container {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

html.dark .loader-title {
    color: #f1f5f9;
}

html.dark .loader-subtitle {
    color: #94a3b8;
}

html.dark .loader-progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

html.dark .loader-progress-fill {
    background: #f1f5f9;
}

html.dark .loader-percentage {
    color: #e2e8f0;
}
/*加载动画css结束 2026.07.11*/

/* =========================================
   桌面端 (PC) 专属 Loading 卡片放大适配 2026.7.20
   ========================================= */
@media (min-width: 768px) {
    /* 1. 放大主卡片容器 */
    .loader-container {
width: 520px;          /* 卡片宽度由 380px 提升至 520px */
padding: 40px;         /* 内边距加大，呼吸感更强 */
border-radius: 24px;   /* 增大圆角匹配大卡片比例 */
    }

    /* 2. 核心：大幅放大小图 / GIF */
    .loader-images {
width: 90px;           /* 图片尺寸由 56px 提升至 90px */
height: 90px;
    }

    /* 3. 优化排版间距与字号，防止图大字小 */
    .loader-header {
gap: 24px;             /* 图片与文字间距加大 */
margin-bottom: 32px;
    }

    .loader-title {
font-size: 28px;       /* "Loading" 标题由 24px 提升至 28px */
    }

    .loader-subtitle {
font-size: 15px;       /* 随机语录由 13px 提升至 15px */
line-height: 1.6;
    }

    .loader-progress-bar {
height: 8px;           /* 进度条厚度由 6px 微调至 8px */
    }
}
/* =========================================
   统一账号入口
   ========================================= */
.account-shell {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    z-index: 120;
    color: #334155;
}

.account-pill {
    min-height: 2.75rem;
    max-width: min(18rem, calc(100vw - 2rem));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.4rem 0.85rem 0.4rem 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    color: #334155;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.account-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 13px 34px rgba(15, 23, 42, 0.18);
}

.account-pill:focus-visible,
.account-menu-item:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.55);
    outline-offset: 3px;
}

.account-login {
    padding: 0.8rem 1.05rem;
    text-decoration: none;
}

.account-avatar-wrap {
    position: relative;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 900;
}

.account-avatar,
.account-avatar-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.account-avatar {
    z-index: 2;
    object-fit: cover;
    background: #e2e8f0;
}

.account-avatar-fallback {
    display: grid;
    place-items: center;
}

.account-pill-name {
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-chevron {
    font-size: 0.65rem;
    opacity: 0.55;
    transition: transform 180ms ease;
}

.account-pill[aria-expanded="true"] .account-chevron {
    transform: rotate(180deg);
}

.account-menu {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    width: min(17rem, calc(100vw - 2rem));
    padding: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    opacity: 0;
    transform: translateY(-0.35rem) scale(0.98);
    transform-origin: top right;
    transition: opacity 160ms ease, transform 160ms ease;
}

.account-menu.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.account-identity {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.7rem 0.75rem 0.8rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
    margin-bottom: 0.35rem;
    overflow: hidden;
}

.account-identity strong,
.account-identity span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-identity strong {
    color: #1e293b;
    font-size: 0.95rem;
}

.account-identity span {
    color: #64748b;
    font-size: 0.78rem;
}

.account-menu form {
    margin: 0;
}

.account-menu-item {
    width: 100%;
    min-height: 2.55rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.75rem;
    border: 0;
    border-radius: 0.8rem;
    background: transparent;
    color: #334155;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

.account-menu-item:hover {
    background: rgba(226, 232, 240, 0.72);
}

.account-logout {
    color: #be123c;
}

.account-status-toast {
    position: fixed;
    left: 1.5rem;
    bottom: 1.5rem;
    z-index: 130;
    max-width: min(24rem, calc(100vw - 6rem));
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: #334155;
    font-size: 0.88rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity 220ms ease, transform 220ms ease;
}

.account-status-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.account-status-toast[data-kind="success"] {
    border-color: rgba(34, 197, 94, 0.4);
}

.account-status-toast[data-kind="error"] {
    border-color: rgba(244, 63, 94, 0.42);
}

html.dark .account-shell {
    color: #e2e8f0;
}

html.dark .account-pill,
html.dark .account-menu,
html.dark .account-status-toast {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.78);
    color: #e2e8f0;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
}

html.dark .account-identity strong,
html.dark .account-menu-item {
    color: #e2e8f0;
}

html.dark .account-identity span {
    color: #94a3b8;
}

html.dark .account-menu-item:hover {
    background: rgba(51, 65, 85, 0.72);
}

html.dark .account-logout {
    color: #fda4af;
}

@media (max-width: 767px) {
    .account-shell {
        top: 1rem;
        right: 1rem;
    }
    .account-pill-name {
        max-width: 8.5rem;
    }
    .account-status-toast {
        left: 1rem;
        bottom: 1rem;
        max-width: calc(100vw - 5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .account-pill,
    .account-chevron,
    .account-menu,
    .account-menu-item,
    .account-status-toast {
        scroll-behavior: auto;
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
    }
}

/* =========================================
   首页动态卡片
   ========================================= */
.home-live-card {
    min-height: 18rem;
    display: flex;
    flex-direction: column;
    color: #334155;
    text-decoration: none;
}

.home-live-card:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.5);
    outline-offset: 4px;
}

.home-server-card:hover {
    border-color: rgba(59, 130, 246, 0.38);
}

.home-card-heading {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.home-card-eyebrow {
    margin: 0 0 0.2rem;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    line-height: 1.2;
    text-transform: uppercase;
}

.home-card-heading h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 850;
    line-height: 1.35;
}

.home-card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.25rem;
    padding: 0.45rem 0.72rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.74);
    color: #475569;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
    transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.home-card-action:hover,
.home-card-action:focus-visible {
    border-color: rgba(59, 130, 246, 0.42);
    color: #2563eb;
    transform: translateX(0.15rem);
}

.home-status-badge {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: none;
    min-height: 2rem;
    padding: 0.38rem 0.68rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.78);
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
}

.home-status-dot {
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, currentColor 12%, transparent);
}

.home-status-badge.is-online {
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(240, 253, 244, 0.82);
    color: #15803d;
}

.home-status-badge.is-offline {
    border-color: rgba(244, 63, 94, 0.28);
    background: rgba(255, 241, 242, 0.82);
    color: #be123c;
}

.home-status-badge.is-stale {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(255, 251, 235, 0.84);
    color: #b45309;
}

.home-status-badge.is-loading .home-status-dot {
    animation: home-status-pulse 1.15s ease-in-out infinite;
}

@keyframes home-status-pulse {
    50% { opacity: 0.25; transform: scale(0.72); }
}

.home-metrics {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 0.85rem;
}

.home-metric > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.4rem;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 750;
}

.home-metric strong {
    color: #334155;
    font-variant-numeric: tabular-nums;
}

.home-metric-track {
    display: block;
    height: 0.48rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.52);
}

.home-metric-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #38bdf8, #3b82f6);
    transition: width 500ms ease, background-color 180ms ease;
}

.home-metric-fill.is-warning {
    background: linear-gradient(90deg, #facc15, #f59e0b);
}

.home-metric-fill.is-critical {
    background: linear-gradient(90deg, #fb7185, #e11d48);
}

.home-server-details {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 1.1rem;
}

.home-server-details > span {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.05rem 0.4rem;
    min-width: 0;
    padding: 0.62rem 0.68rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 0.9rem;
    background: rgba(248, 250, 252, 0.66);
}

.home-server-details i {
    grid-row: 1 / span 2;
    align-self: center;
    color: #60a5fa;
    font-size: 0.72rem;
}

.home-server-details span span {
    overflow: hidden;
    color: #94a3b8;
    font-size: 0.65rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-server-details strong {
    overflow: hidden;
    color: #334155;
    font-size: 0.74rem;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-card-note {
    position: relative;
    z-index: 2;
    margin: auto 0 0;
    padding-top: 0.85rem;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 650;
}

.home-card-note.is-stale {
    color: #b45309;
}

.home-card-note.is-error {
    color: #be123c;
}

.home-blog-list {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-blog-item a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 2.75rem;
    padding: 0.62rem 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 0.9rem;
    background: rgba(248, 250, 252, 0.66);
    color: #334155;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.home-blog-item a:hover,
.home-blog-item a:focus-visible {
    border-color: rgba(59, 130, 246, 0.34);
    background: rgba(239, 246, 255, 0.76);
    transform: translateX(0.15rem);
}

.home-blog-item strong {
    overflow: hidden;
    font-size: 0.84rem;
    font-weight: 780;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-blog-item time {
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.home-blog-empty {
    padding: 1.2rem 0.75rem;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    border-radius: 0.9rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}

.home-blog-skeleton {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 4rem;
    gap: 1rem;
    min-height: 2.75rem;
    align-items: center;
    padding: 0.62rem 0.75rem;
    border-radius: 0.9rem;
    background: rgba(248, 250, 252, 0.56);
}

.home-blog-skeleton span,
.home-blog-skeleton small {
    height: 0.7rem;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(203, 213, 225, 0.46) 25%, rgba(226, 232, 240, 0.82) 50%, rgba(203, 213, 225, 0.46) 75%);
    background-size: 200% 100%;
    animation: home-skeleton 1.25s ease-in-out infinite;
}

.home-blog-skeleton small {
    width: 100%;
}

@keyframes home-skeleton {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

.home-footprint-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.home-footprint-stats > div {
    min-width: 0;
    padding: 0.75rem 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 0.95rem;
    background: rgba(248, 250, 252, 0.66);
    text-align: center;
}

.home-footprint-stats strong,
.home-footprint-stats span {
    display: block;
}

.home-footprint-stats strong {
    overflow: hidden;
    color: #1e293b;
    font-size: 1.08rem;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-footprint-stats span {
    margin-top: 0.16rem;
    color: #94a3b8;
    font-size: 0.63rem;
    font-weight: 750;
}

.home-welcome {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
    margin-top: 0.85rem;
    padding: 0.7rem;
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 1rem;
    background: rgba(238, 242, 255, 0.66);
}

.home-welcome-avatar {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #818cf8, #38bdf8);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 850;
}

.home-welcome div {
    min-width: 0;
}

.home-welcome strong,
.home-welcome div span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-welcome strong {
    color: #334155;
    font-size: 0.77rem;
    font-weight: 800;
}

.home-welcome div span {
    margin-top: 0.12rem;
    color: #64748b;
    font-size: 0.64rem;
    font-weight: 650;
}

.home-welcome > a {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    padding: 0.42rem 0.58rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #4f46e5;
    font-size: 0.68rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    text-align: center;
}

.home-welcome.is-guest {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-welcome.is-guest > strong {
    min-width: 0;
    overflow: hidden;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-welcome.is-guest > a {
    flex: none;
    width: auto;
}

.home-welcome > a:hover,
.home-welcome > a:focus-visible {
    background: #fff;
    color: #3730a3;
}

html.dark .home-live-card {
    color: #cbd5e1;
}

html.dark .home-card-eyebrow,
html.dark .home-card-note {
    color: #94a3b8;
}

html.dark .home-card-heading h3,
html.dark .home-metric strong,
html.dark .home-server-details strong,
html.dark .home-blog-item a,
html.dark .home-footprint-stats strong,
html.dark .home-welcome strong {
    color: #e2e8f0;
}

html.dark .home-card-action,
html.dark .home-status-badge,
html.dark .home-server-details > span,
html.dark .home-blog-item a,
html.dark .home-blog-skeleton,
html.dark .home-footprint-stats > div,
html.dark .home-welcome > a {
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(30, 41, 59, 0.64);
}

html.dark .home-card-action {
    color: #cbd5e1;
}

html.dark .home-status-badge.is-online {
    border-color: rgba(74, 222, 128, 0.22);
    background: rgba(20, 83, 45, 0.3);
    color: #86efac;
}

html.dark .home-status-badge.is-offline {
    border-color: rgba(251, 113, 133, 0.24);
    background: rgba(136, 19, 55, 0.28);
    color: #fda4af;
}

html.dark .home-status-badge.is-stale {
    border-color: rgba(251, 191, 36, 0.24);
    background: rgba(120, 53, 15, 0.3);
    color: #fcd34d;
}

html.dark .home-metric-track {
    background: rgba(71, 85, 105, 0.62);
}

html.dark .home-blog-item a:hover,
html.dark .home-blog-item a:focus-visible {
    border-color: rgba(96, 165, 250, 0.36);
    background: rgba(30, 64, 175, 0.18);
}

html.dark .home-blog-skeleton span,
html.dark .home-blog-skeleton small {
    background: linear-gradient(90deg, rgba(51, 65, 85, 0.7) 25%, rgba(71, 85, 105, 0.9) 50%, rgba(51, 65, 85, 0.7) 75%);
    background-size: 200% 100%;
}

html.dark .home-welcome {
    border-color: rgba(129, 140, 248, 0.2);
    background: rgba(49, 46, 129, 0.2);
}

html.dark .home-welcome div span {
    color: #94a3b8;
}

@media (max-width: 640px) {
    .home-live-card {
        min-height: 0;
    }

    .home-card-heading {
        gap: 0.65rem;
        margin-bottom: 1rem;
    }

    .home-card-action {
        min-height: 2rem;
        padding: 0.36rem 0.58rem;
    }

    .home-server-details {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .home-server-details > span {
        grid-template-columns: auto auto 1fr;
    }

    .home-server-details i {
        grid-row: auto;
    }

    .home-server-details strong {
        text-align: right;
    }

    .home-blog-item a {
        gap: 0.6rem;
    }

    .home-footprint-stats {
        gap: 0.4rem;
    }

    .home-footprint-stats > div {
        padding: 0.65rem 0.35rem;
    }

}

@media (prefers-reduced-motion: reduce) {
    .home-live-card,
    .home-card-action,
    .home-metric-fill,
    .home-blog-item a,
    .home-status-dot,
    .home-blog-skeleton span,
    .home-blog-skeleton small {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================
   Debug / 纯净模式核心样式
   ========================================= */
body.debug-mode {
    background: #ffffff !important;
    color: #000000 !important;
    font-family: monospace, 'Courier New', Courier, sans-serif !important; /* 终端字体 */
}

html.dark body.debug-mode {
    background: #000000 !important;
    color: #86efac !important; /* 护眼且极客的柔和浅绿色 */
}

/* 剥夺所有元素的背景、毛玻璃、圆角、阴影和动画 */
.debug-mode * {
    background-color: transparent !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

/* 隐藏所有装饰性元素和图标 */
.debug-mode .bg-shapes,
.debug-mode .card-watermark,
.debug-mode #page-loader,
.debug-mode .wave-emoji,
.debug-mode i:not(#theme-toggle-icon), /* 保留暗色切换图标 */
.debug-mode img:not(#qr-modal-img) {
    display: none !important;
}

/* 将网格布局降级为最基础的单列堆叠布局 */
.debug-mode .grid {
    display: block !important;
}

/* 将便当盒变为最原始的边框线框 */
.debug-mode .bento-card {
    border: 1px solid #333 !important;
    margin-bottom: 1rem !important;
    padding: 1rem !important;
    height: auto !important;
}

html.dark .debug-mode .bento-card {
    border: 1px solid #22c55e !important; /* 边框用稍微深一点的绿，防止全是同一种颜色 */
}

/* 修复字体颜色覆盖（确保文字在纯净模式下清晰可见） */
.debug-mode h1, .debug-mode h2, .debug-mode h3, .debug-mode h4, .debug-mode p, .debug-mode span {
    color: inherit !important;
}

/* 强制给超链接加上下划线 */
.debug-mode a {
    text-decoration: underline !important;
    color: blue !important;
}

html.dark .debug-mode a {
    color: #86efac !important;
}

/* 改造悬浮暗色切换按钮为朴素的文本按钮 */
.debug-mode #theme-toggle {
    position: static !important; /* 取消悬浮 */
    width: auto !important;
    height: auto !important;
    border: 1px dashed #333 !important;
    padding: 0.5rem 1rem !important;
    margin-top: 1rem !important;
    display: inline-block !important;
}
html.dark .debug-mode #theme-toggle { border-color: #86efac !important; }

.debug-mode .account-shell {
    position: fixed !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 120 !important;
}

.debug-mode .account-pill,
.debug-mode .account-menu,
.debug-mode .account-menu-item {
    border: 1px solid currentColor !important;
    padding: 0.5rem 0.75rem !important;
}

.debug-mode .account-avatar-wrap,
.debug-mode .account-chevron {
    display: none !important;
}
