/* ========== 基础重置 & 变量 ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== 配色 ========== */
:root {
    --bg-primary: rgba(10, 10, 18, 0.70);
    --bg-secondary: rgba(16, 14, 30, 0.45);
    --bg-glass: rgba(255, 255, 255, 0.06);
    --bg-glass-hover: rgba(255, 255, 255, 0.12);
    --border-glass: rgba(120, 100, 255, 0.15);
    --border-glass-hover: rgba(120, 100, 255, 0.30);
    --text-primary: #e8e6f0;
    --text-secondary: #9a98b0;
    --text-muted: #5a5880;
    --accent-purple: #7c6df0;
    --accent-purple-glow: rgba(124, 109, 240, 0.20);
    --accent-green: #06d6a0;
    --accent-gradient: linear-gradient(135deg, #7c6df0, #06d6a0);
    --shadow-glass: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-glass-hover: 0 8px 32px rgba(0, 0, 0, 0.6);
    --radius: 14px;
    --transition: 0.3s ease;
}

/* 深色主题 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: rgba(10, 10, 18, 0.75);
        --bg-secondary: rgba(16, 14, 30, 0.50);
        --bg-glass: rgba(255, 255, 255, 0.04);
        --bg-glass-hover: rgba(255, 255, 255, 0.10);
        --border-glass: rgba(120, 100, 255, 0.12);
        --border-glass-hover: rgba(120, 100, 255, 0.25);
    }
}

/* 浅色主题 */
@media (prefers-color-scheme: light) {
    :root {
        --bg-primary: rgba(240, 238, 250, 0.65);
        --bg-secondary: rgba(255, 255, 255, 0.40);
        --bg-glass: rgba(255, 255, 255, 0.30);
        --bg-glass-hover: rgba(255, 255, 255, 0.50);
        --border-glass: rgba(100, 80, 220, 0.15);
        --border-glass-hover: rgba(100, 80, 220, 0.30);
        --text-primary: #1a1830;
        --text-secondary: #4a4868;
        --text-muted: #8a88aa;
        --accent-purple: #5b4bd0;
        --accent-green: #06a080;
        --accent-gradient: linear-gradient(135deg, #5b4bd0, #06a080);
        --shadow-glass: 0 4px 16px rgba(0, 0, 0, 0.06);
        --shadow-glass-hover: 0 8px 32px rgba(0, 0, 0, 0.10);
    }
}

html,
body {
    width: 100%;
    min-height: 100vh;
    color: var(--text-primary);
    font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ========== 背景图片 ========== */
#bg-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.6s ease;
}

#bg-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-primary);
}

/* ========== 背景装饰光晕 ========== */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.25;
    will-change: transform;
}
.bg-orb.o1 {
    width: 300px;
    height: 300px;
    background: var(--accent-purple-glow);
    top: -10%;
    right: -5%;
    animation: orbFloat 20s ease-in-out infinite alternate;
}
.bg-orb.o2 {
    width: 250px;
    height: 250px;
    background: rgba(6, 214, 160, 0.15);
    bottom: -8%;
    left: -8%;
    animation: orbFloat 25s ease-in-out infinite alternate-reverse;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, -20px); }
}

/* ========== 主容器 ========== */
.container {
    max-width: 1000px;
    width: 100%;
    min-height: 100vh;
    padding: 2rem 2rem 2.5rem 2rem;
    /* ⬆️ 顶部内边距加大 */
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    background: var(--bg-secondary);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-left: 1px solid var(--border-glass);
    border-right: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
    margin: 0 auto;
}
@supports not (backdrop-filter: blur(1px)) {
    .container {
        background: rgba(16, 14, 30, 0.75);
    }
}

/* ========== 滚动条 ========== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent-purple); border-radius: 10px; }

/* ========== 导航栏 - 间距大幅增加 ========== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
    padding: 0.9rem 1.6rem;
    /* ⬆️ 上下内边距增加 */
    margin-bottom: 3.5rem;
    /* ⬆️ ⬆️ ⬆️ 与内容的距离大幅增加（原来是2.8rem，现在3.5rem） */
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    box-shadow: var(--shadow-glass);
    transition: all var(--transition);
    position: sticky;
    top: 16px;
    z-index: 100;
}
@supports not (backdrop-filter: blur(1px)) {
    .navbar {
        background: rgba(20, 18, 40, 0.85);
    }
}
.navbar:hover {
    border-color: var(--border-glass-hover);
    box-shadow: var(--shadow-glass-hover);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: opacity var(--transition);
}
.logo span {
    -webkit-text-fill-color: initial;
    color: var(--text-muted);
    font-weight: 300;
}
.logo:hover { opacity: 0.7; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* ⬆️ 链接间距增加 */
    flex-wrap: wrap;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.35rem 1rem;
    /* ⬆️ 链接内边距增加 */
    border-radius: 30px;
    transition: all var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}
.nav-links a:hover {
    color: var(--text-primary);
    border-color: var(--accent-purple);
    background: var(--bg-glass-hover);
}
.nav-links a.active {
    color: #fff;
    background: var(--accent-gradient);
    border-color: var(--accent-purple);
    box-shadow: 0 0 24px var(--accent-purple-glow);
}

.view-counter {
    font-size: 0.7rem;
    background: var(--bg-glass);
    padding: 0.15rem 0.8rem;
    border-radius: 30px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.view-counter .num {
    font-weight: 700;
    color: var(--accent-green);
}

/* ========== 页面内容 - 增加顶部间距 ========== */
.page {
    display: block;
    flex: 1;
    position: relative;
    z-index: 1;
    padding-top: 0.5rem;
    /* ⬆️ 内容区顶部内边距 */
    animation: pageEnter 0.4s ease forwards;
}
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== 通用组件 ========== */
.section {
    margin-bottom: 2.2rem;
    animation: sectionEnter 0.35s ease forwards;
    opacity: 0;
}
.section:nth-child(1) { animation-delay: 0.03s; }
.section:nth-child(2) { animation-delay: 0.08s; }
.section:nth-child(3) { animation-delay: 0.13s; }
.section:nth-child(4) { animation-delay: 0.18s; }

@keyframes sectionEnter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-glass);
}

.badge {
    font-size: 0.5rem;
    font-weight: 400;
    color: var(--accent-green);
    background: var(--bg-glass);
    padding: 0.1rem 0.7rem;
    border-radius: 30px;
    text-transform: none;
    letter-spacing: 0;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border-radius: var(--radius);
    padding: 1.4rem 1.8rem;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
    transition: all var(--transition);
}
.card:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glass-hover);
    background: var(--bg-glass-hover);
}
@supports not (backdrop-filter: blur(1px)) {
    .card {
        background: rgba(20, 18, 40, 0.70);
    }
}

/* ========== 状态栏 ========== */
.status-line {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.4rem;
    border-radius: var(--radius);
    background: var(--bg-glass);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
    transition: all var(--transition);
    flex-wrap: wrap;
}
.status-line:hover { border-color: var(--border-glass-hover); }
.status-line.online { border-color: rgba(6, 214, 160, 0.35); }
.status-line.offline { border-color: rgba(244, 114, 182, 0.35); }
.status-line.checking { border-color: rgba(255, 200, 50, 0.25); }

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.4s ease;
    position: relative;
}
.status-line.online .status-dot {
    background: #06d6a0;
    box-shadow: 0 0 16px rgba(6, 214, 160, 0.35);
}
.status-line.offline .status-dot {
    background: #f472b6;
    box-shadow: 0 0 16px rgba(244, 114, 182, 0.35);
}
.status-line.checking .status-dot {
    background: #fbbf24;
    animation: dotPulse 0.8s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.5); opacity: 0.3; }
}

.status-text { font-weight: 500; font-size: 0.95rem; }
.status-text .online { color: #06d6a0; }
.status-text .offline { color: #f472b6; }
.status-text .checking { color: #fbbf24; }

.status-meta {
    margin-left: auto;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.status-meta .player-count {
    color: var(--text-secondary);
    font-weight: 600;
}

/* ========== 信息网格 ========== */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem 2rem;
}
.info-item {
    padding: 0.15rem 0;
    transition: all var(--transition);
}
.info-item:hover { transform: translateX(4px); }
.info-item .label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}
.info-item .value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-all;
}

/* ========== IP复制 ========== */
.copy-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--bg-glass);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    padding: 1rem 1.6rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
    transition: all var(--transition);
}
.copy-area:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glass-hover);
}
.copy-area .ip {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.copy-area .ip-alt {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.btn {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 0.45rem 1.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.3px;
    box-shadow: 0 4px 16px var(--accent-purple-glow);
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}
.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 24px var(--accent-purple-glow);
}
.btn:hover::before { transform: translateX(100%); }
.btn:active { transform: scale(0.96); }
.btn .btn-text { position: relative; z-index: 1; }

/* ========== 描述 & 引用 ========== */
.description p { margin-bottom: 0.8rem; color: var(--text-secondary); }
.description .quote {
    background: var(--bg-glass);
    padding: 1rem 1.6rem;
    border-left: 3px solid var(--accent-green);
    color: var(--text-secondary);
    font-style: italic;
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: all var(--transition);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.description .quote:hover {
    border-left-color: var(--accent-purple);
    background: var(--bg-glass-hover);
    transform: translateX(4px);
}

/* ========== 帮助 ========== */
.help-section {
    background: var(--bg-glass);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border-radius: var(--radius);
    padding: 1rem 1.4rem;
    margin-bottom: 0.8rem;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
    transition: all var(--transition);
}
.help-section:hover {
    border-color: var(--border-glass-hover);
    transform: translateX(4px);
    box-shadow: var(--shadow-glass-hover);
}
.help-section .help-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-primary);
}
.help-section ul {
    padding-left: 1.4rem;
    color: var(--text-secondary);
}
.help-section ul li { margin-bottom: 0.15rem; }
.help-section code {
    background: rgba(124, 109, 240, 0.12);
    padding: 0.05rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--accent-purple);
    font-family: 'Menlo', monospace;
    border: 1px solid var(--border-glass);
}
.blue-link {
    color: var(--accent-green);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid rgba(6, 214, 160, 0.2);
    transition: all var(--transition);
}
.blue-link:hover {
    color: var(--accent-purple);
    border-bottom-color: var(--accent-purple);
    padding: 0 0.1rem;
}
.blue-link::after { content: ' ↗'; font-size: 0.65rem; opacity: 0.5; }

/* ========== 关于页面高亮框 ========== */
.highlight-box {
    background: var(--bg-glass);
    padding: 1rem 1.4rem;
    border-left: 3px solid var(--accent-purple);
    margin: 1rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--transition);
}
.highlight-box:hover {
    border-left-color: var(--accent-green);
    background: var(--bg-glass-hover);
}

/* ========== 公告 ========== */
.announcement-container {
    background: var(--bg-glass);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border-radius: var(--radius);
    padding: 0 1.4rem 1.4rem 1.4rem;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
    transition: all var(--transition);
}
.announcement-container:hover {
    border-color: var(--border-glass-hover);
    box-shadow: var(--shadow-glass-hover);
}

.announcement-item {
    padding: 1rem 0.2rem;
    border-bottom: 1px solid var(--border-glass);
    cursor: pointer;
    transition: all var(--transition);
    border-radius: 8px;
    position: relative;
}
.announcement-item:last-child { border-bottom: none; }
.announcement-item:hover {
    background: var(--bg-glass-hover);
    transform: translateX(4px);
}
.announcement-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-gradient);
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: all var(--transition);
}
.announcement-item:hover::after { opacity: 0.5; }
.announcement-item.expanded::after { opacity: 1; }

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.3rem 0.8rem;
    pointer-events: none;
}
.announcement-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}
.announcement-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.announcement-meta .author {
    color: var(--text-secondary);
    font-weight: 500;
}
.announcement-meta .view-count {
    background: var(--bg-glass);
    padding: 0.05rem 0.5rem;
    border-radius: 20px;
    font-size: 0.62rem;
    border: 1px solid var(--border-glass);
    color: var(--accent-green);
}

.announcement-body {
    margin-top: 0.3rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.7;
    pointer-events: none;
}
.announcement-body .summary { display: block; }
.announcement-body .full-text { display: none; }
.announcement-body .full-text.show {
    display: block;
    animation: fadeSlide 0.25s ease forwards;
}
.announcement-body .summary.hidden { display: none; }

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.expand-hint {
    display: inline-block;
    margin-top: 0.3rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    pointer-events: none;
    user-select: none;
    transition: all var(--transition);
}
.announcement-item:hover .expand-hint { color: var(--accent-green); }
.expand-hint .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}
.announcement-item.expanded .expand-hint .arrow { transform: rotate(180deg); }

.announcement-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.8rem;
    font-size: 0.78rem;
    border-top: 1px solid var(--border-glass);
    margin-top: 0.3rem;
}
.announcement-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-glass);
    transition: all var(--transition);
    cursor: pointer;
}
.announcement-footer a:hover {
    color: var(--accent-green);
    border-bottom-color: var(--accent-green);
}
.announcement-footer .total-views {
    color: var(--text-muted);
    font-size: 0.72rem;
}
.announcement-footer .total-views .num {
    color: var(--accent-green);
    font-weight: 600;
}

.admin-hint {
    background: var(--bg-glass);
    padding: 0.6rem 1rem;
    margin-top: 0.8rem;
    border-radius: var(--radius);
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    border: 1px dashed var(--border-glass);
    transition: all var(--transition);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.admin-hint:hover {
    border-color: var(--border-glass-hover);
    background: var(--bg-glass-hover);
}
.admin-hint a {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-glass);
}
.admin-hint a:hover {
    color: var(--accent-green);
    border-bottom-color: var(--accent-green);
}

/* ========== 欢迎弹窗 ========== */
.welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    animation: overlayIn 0.3s ease forwards;
}
.welcome-overlay.show { display: flex; }
@keyframes overlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.welcome-modal {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-radius: var(--radius);
    padding: 1.8rem 2.2rem;
    max-width: 480px;
    width: 92%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--border-glass);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    animation: modalIn 0.35s ease forwards;
    transform: translateY(16px) scale(0.97);
    opacity: 0;
}
.welcome-modal.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}
@keyframes modalIn {
    from { transform: translateY(16px) scale(0.97); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
@supports not (backdrop-filter: blur(1px)) {
    .welcome-modal {
        background: rgba(16, 14, 30, 0.90);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.6rem;
    margin-bottom: 0.8rem;
}
.modal-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-primary);
}
.modal-header .close-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    line-height: 1;
}
.modal-header .close-btn:hover {
    color: var(--accent-purple);
    transform: rotate(90deg) scale(1.1);
}

.modal-body .new-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-glass);
    transition: all var(--transition);
}
.modal-body .new-item:last-child { border-bottom: none; }
.modal-body .new-item:hover { padding-left: 6px; }
.modal-body .new-item .item-title {
    font-weight: 600;
    color: var(--text-primary);
}
.modal-body .new-item .item-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-left: 0.4rem;
}
.modal-body .new-item .item-summary {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 0.05rem;
}
.modal-body .no-new {
    color: var(--text-muted);
    text-align: center;
    padding: 1.2rem 0;
}

.modal-footer {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-glass);
    text-align: right;
}
.modal-footer .btn-close-modal {
    background: var(--accent-gradient);
    border: none;
    color: #fff;
    padding: 0.45rem 1.8rem;
    border-radius: 30px;
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 16px var(--accent-purple-glow);
}
.modal-footer .btn-close-modal:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 24px var(--accent-purple-glow);
}

/* ========== 彩蛋按钮 ========== */
.egg-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 22px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    text-decoration: none;
    box-shadow: 0 4px 24px var(--accent-purple-glow);
    z-index: 999;
    border: 1px solid var(--border-glass);
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.egg-button:hover {
    transform: scale(1.10) rotate(12deg);
    box-shadow: 0 6px 32px var(--accent-purple-glow);
    background: linear-gradient(135deg, #f472b6, #7c6df0);
    color: #fff;
    border-color: var(--accent-purple);
}
.egg-button:active {
    transform: scale(0.88) rotate(-8deg);
    transition-duration: 0.1s;
}
.egg-button::after {
    content: "🎮 彩蛋";
    position: absolute;
    right: 62px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
}
.egg-button:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(-4px);
}

/* ========== 页脚 ========== */
.footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-glass);
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
}
.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-glass);
    transition: all var(--transition);
    cursor: pointer;
}
.footer a:hover {
    color: var(--accent-green);
    border-bottom-color: var(--accent-green);
}

/* ========== 响应式 ========== */
@media (max-width: 700px) {
    .container {
        padding: 1rem 0.8rem 1.5rem 0.8rem;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
    .navbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        padding: 0.8rem 1rem;
        margin-bottom: 2.2rem;
        /* ⬆️ 移动端也保持较大间距 */
        top: 6px;
        border-radius: 12px;
    }
    .nav-links {
        gap: 0.4rem 0.6rem;
        border-top: 1px solid var(--border-glass);
        padding-top: 0.6rem;
    }
    .nav-links a {
        font-size: 0.78rem;
        padding: 0.25rem 0.6rem;
    }
    .info-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    .copy-area {
        flex-direction: column;
        text-align: center;
    }
    .copy-area .ip { font-size: 1.05rem; }
    .status-meta {
        margin-left: 0;
        width: 100%;
    }
    .egg-button {
        bottom: 14px;
        right: 14px;
        width: 42px;
        height: 42px;
        font-size: 18px;
        line-height: 42px;
    }
    .egg-button::after {
        font-size: 10px;
        padding: 2px 8px;
        right: 52px;
        content: "🎮";
    }
    .welcome-modal { padding: 1.2rem; }
    .announcement-container { padding: 0 1rem 1rem 1rem; }
    .section-title { font-size: 0.62rem; }
    .card { padding: 1rem 1.2rem; }
}

@media (max-width: 450px) {
    .container { padding: 0.6rem 0.4rem 1rem 0.4rem; }
    .nav-links { gap: 0.2rem 0.4rem; }
    .nav-links a {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
    }
    .logo { font-size: 1.1rem; }
    .egg-button {
        bottom: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 16px;
        line-height: 36px;
    }
    .egg-button::after { display: none; }
    .welcome-modal { padding: 0.8rem; }
    .card { padding: 0.7rem 0.8rem; }
    .help-section { padding: 0.6rem 0.8rem; }
    .status-line {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* ========== 加载占位 ========== */
.announcement-loading {
    text-align: center;
    padding: 1.2rem 0;
    color: var(--text-muted);
    animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.no-new {
    text-align: center;
    padding: 1.2rem 0;
    color: var(--text-muted);
}
.no-new p:first-child { font-size: 1.3rem; }