/* ============================================ */
/* ===== 基础重置 ===== */
/* ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    background: linear-gradient(145deg, #f4f9ff 0%, #e3f0fa 50%, #d4e9f7 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1.5rem 1.5rem 2rem;
    color: #1f2e3d;
    position: relative;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

body::before {
    content: '';
    position: fixed;
    top: -30%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.7) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(210, 235, 255, 0.8) 0%, transparent 45%),
                radial-gradient(circle at 40% 80%, rgba(190, 225, 250, 0.6) 0%, transparent 50%);
    filter: blur(45px);
    z-index: -2;
    animation: floatGlow 18s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    top: 10%;
    left: 85%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(200, 230, 255, 0.2) 60%, transparent 80%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: -2;
    animation: drift 25s infinite alternate ease-in-out;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    100% { transform: translate(3%, 2%) scale(1.05); opacity: 1; }
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-10%, 10%); }
}

/* ============================================ */
/* ===== 导航栏 ===== */
/* ============================================ */
.navbar {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 1.8rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 15px 30px -12px rgba(0, 50, 80, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    padding: 0.7rem 1.2rem 0.7rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    z-index: 10;
    transition: box-shadow 0.2s ease;
}

.navbar:hover {
    box-shadow: 0 20px 35px -15px rgba(0, 70, 110, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1d3e5c, #2e5a7a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

.nav-brand span {
    font-size: 1.7rem;
    filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.8));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links li a {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    color: #1b3d57;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.nav-links li a:hover,
.nav-links li a:active {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 16px -8px rgba(0, 50, 80, 0.2);
    color: #0d2e45;
}

.nav-links li a.nav-login {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 14px -8px rgba(0, 60, 100, 0.15);
    font-weight: 600;
}

/* 在线人数徽章 */
.online-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 14px -8px rgba(0, 60, 100, 0.15);
    border-radius: 40px;
    padding: 0.45rem 1.1rem 0.45rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1b3d57;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.online-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    animation: pulseDot 2s infinite;
    flex-shrink: 0;
}

.online-dot.loading {
    background: #fbbf24;
    animation: pulseDotLoading 1.2s infinite;
}

.online-dot.error {
    background: #f87171;
    animation: none;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

@keyframes pulseDotLoading {
    0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(251, 191, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

.online-count {
    font-weight: 700;
    color: #15803d;
    min-width: 2ch;
    text-align: center;
    transition: color 0.3s ease;
}

.online-count.error {
    color: #dc2626;
    font-size: 0.8rem;
}

/* 登录后的用户信息 */
.nav-user {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 14px -8px rgba(0, 60, 100, 0.15);
    border-radius: 40px;
    padding: 0.4rem 0.5rem 0.4rem 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1b3d57;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-user:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 20px -8px rgba(0, 80, 120, 0.3);
}

.nav-user .avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b0d9f5, #8fc7ee);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 60, 100, 0.15);
    color: #fff;
    font-weight: 700;
}

.nav-user .logout-btn {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 40px;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a4662;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.nav-user .logout-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* ============================================ */
/* ===== 主容器 ===== */
/* ============================================ */
.glass-container {
    max-width: 1200px;
    width: 100%;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 48px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 30px 50px -20px rgba(0, 40, 80, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.5) inset,
                0 0 40px rgba(180, 220, 255, 0.4) inset;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    z-index: 1;
}

.glass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(125deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.1) 30%, transparent 60%);
    pointer-events: none;
    border-radius: 48px;
}

/* 视图切换 */
.view {
    display: none;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.4s ease;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================ */
/* ===== 首页视图 ===== */
/* ============================================ */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.logo-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.6rem 1.8rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 20px -8px rgba(0, 60, 100, 0.2);
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #1a3b55;
}

.logo-badge span {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(255,255,255,0.8));
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #1d3e5c 0%, #2e5a7a 60%, #3f789e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 15px rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.subhead {
    font-size: 1.2rem;
    font-weight: 400;
    color: #2e4f6b;
    background: rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.8rem;
    border-radius: 40px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.5);
    margin-top: 0.8rem;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0 2.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 15px 25px -12px rgba(0, 50, 80, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.25s ease;
    color: #1b3d57;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 25px 35px -15px rgba(0, 80, 120, 0.3), 0 0 0 1px rgba(255,255,255,0.6) inset;
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, #1a4662, #2b6b93);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.7));
    transition: opacity 0.3s ease;
}

.stat-value.loading {
    opacity: 0.4;
}

.stat-value.error-text {
    font-size: 1.4rem;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
}

.stat-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    color: #3d617d;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* 迷你进度条 */
.mini-bar {
    width: 80%;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    margin: 0.8rem auto 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.mini-bar-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #7dd3a8, #4ade80);
    width: 0%;
    transition: width 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

.mini-bar-fill.loading {
    background: linear-gradient(90deg, #fcd34d, #fbbf24);
}

/* 特色卡片 */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin: 3rem 0 2.5rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 15px 30px -12px rgba(0, 40, 70, 0.15), 0 0 0 1px rgba(255,255,255,0.4) inset;
    padding: 2rem 1.5rem;
    transition: all 0.2s ease;
    color: #1a3b52;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 25px 35px -15px rgba(0, 70, 110, 0.2), 0 0 0 1px rgba(255,255,255,0.7) inset;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.8));
}

.feature-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    color: #15364b;
}

.feature-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2a4b64;
    opacity: 0.95;
}

/* IP 加入区域 */
.join-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.ip-box {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 100px;
    padding: 0.8rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 25px -10px rgba(0, 50, 80, 0.2), 0 0 0 1px rgba(255,255,255,0.5) inset;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1b3d57;
    letter-spacing: 0.5px;
    word-break: break-all;
}

.ip-box span {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.65);
    border: none;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #1a4662;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 18px -8px rgba(0, 60, 100, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 25px -10px rgba(0, 80, 120, 0.4);
    transform: scale(1.02);
}

.copy-btn:active {
    transform: scale(0.98);
}

/* ============================================ */
/* ===== 用户主页视图 ===== */
/* ============================================ */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    min-height: 380px;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b0d9f5, #8fc7ee);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    border: 4px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 40px -12px rgba(0, 60, 100, 0.3),
                0 0 0 8px rgba(255, 255, 255, 0.3) inset;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 24px rgba(150, 200, 240, 0.5));
}

.profile-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: #3d617d;
    margin-bottom: 0.8rem;
    opacity: 0.85;
}

.profile-id {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1d3e5c 0%, #2e5a7a 60%, #3f789e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 15px rgba(255, 255, 255, 0.6);
    line-height: 1.2;
    word-break: break-word;
}

/* ============================================ */
/* ===== 免责声明视图 ===== */
/* ============================================ */
.disclaimer-section {
    position: relative;
}

.disclaimer-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

.disclaimer-header .warning-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.6rem 1.8rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 200, 200, 0.8);
    box-shadow: 0 8px 20px -8px rgba(200, 60, 60, 0.2);
    margin-bottom: 1rem;
    font-weight: 600;
    color: #b91c1c;
    font-size: 1rem;
    letter-spacing: 0.3px;
    text-align: center;
}

.disclaimer-header h2 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1d3e5c, #2e5a7a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 15px rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.disclaimer-header .rule-note {
    font-size: 0.95rem;
    color: #b91c1c;
    font-weight: 500;
    background: rgba(255, 240, 240, 0.6);
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    border: 1px solid rgba(255, 200, 200, 0.5);
    display: inline-block;
    text-align: center;
}

/* 规则卡片 */
.rule-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 15px 30px -12px rgba(0, 40, 70, 0.15), 0 0 0 1px rgba(255,255,255,0.4) inset;
    padding: 2rem 2.2rem;
    margin-bottom: 1.8rem;
    transition: all 0.2s ease;
}

.rule-card:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 25px 35px -15px rgba(0, 70, 110, 0.2), 0 0 0 1px rgba(255,255,255,0.7) inset;
}

.rule-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #15364b;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.rule-card h3 .chapter-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 2px 6px rgba(255,255,255,0.8));
    flex-shrink: 0;
}

.rule-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a4662;
    margin: 1.2rem 0 0.6rem 0;
    padding-left: 0.8rem;
    border-left: 3px solid #8fc7ee;
}

.rule-card p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #2a4b64;
    margin-bottom: 0.6rem;
    padding-left: 0.2rem;
}

.rule-card ul {
    list-style: none;
    padding-left: 1.2rem;
    margin-bottom: 0.8rem;
}

.rule-card ul li {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #2a4b64;
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.3rem;
}

.rule-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #5f9ec9;
    font-weight: 700;
    font-size: 1.1rem;
}

.rule-card.forbidden {
    border-left: 4px solid rgba(239, 68, 68, 0.5);
}

.rule-card.forbidden h3 { color: #b91c1c; }
.rule-card.forbidden h4 { color: #b91c1c; border-left-color: #f87171; }
.rule-card.forbidden ul li::before { color: #ef4444; }

.rule-card.allowed {
    border-left: 4px solid rgba(74, 222, 128, 0.5);
}

.rule-card.allowed h3 { color: #15803d; }
.rule-card.allowed h4 { color: #15803d; border-left-color: #4ade80; }
.rule-card.allowed ul li::before { color: #4ade80; }

.rule-card.punish {
    border-left: 4px solid rgba(251, 191, 36, 0.6);
}

.rule-card.punish h3 { color: #b45309; }
.rule-card.punish h4 { color: #b45309; border-left-color: #fbbf24; }
.rule-card.punish ul li::before { color: #fbbf24; }

.rule-card .final-note {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    border: 1px dashed rgba(140, 180, 210, 0.6);
    font-size: 0.9rem;
    color: #3d617d;
    line-height: 1.7;
    font-style: italic;
}

/* ============================================ */
/* ===== 页脚 ===== */
/* ============================================ */
.footer {
    margin-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #385f7a;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 1.8rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 18px -10px rgba(0, 40, 70, 0.1);
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-links a {
    color: #1a4662;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.4);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
    font-weight: 600;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
}

/* ============================================ */
/* ===== 通用弹窗 ===== */
/* ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(200, 225, 245, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    max-width: 440px;
    width: 100%;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 35px 60px -20px rgba(0, 50, 90, 0.35),
                0 0 0 1px rgba(255, 255, 255, 0.6) inset,
                0 0 40px rgba(200, 230, 255, 0.5) inset;
    padding: 2.5rem 2rem;
    position: relative;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    overflow: hidden;
    margin: auto;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, transparent 45%);
    pointer-events: none;
    border-radius: 40px;
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
    color: #1a4662;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    z-index: 2;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: rotate(90deg);
}

.modal h2 {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #15364b;
    margin-bottom: 0.4rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.modal .modal-sub {
    text-align: center;
    color: #3d617d;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #2e5a7a;
    margin-bottom: 0.5rem;
    padding-left: 0.3rem;
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1.3rem;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #15364b;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px -6px rgba(0, 50, 80, 0.1) inset;
    /* 手机上防止 iOS 自动缩放 */
    font-size: 16px;
}

.form-group input::placeholder {
    color: #7a9bb5;
    font-weight: 300;
}

.form-group input:focus {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(170, 215, 255, 0.4), 0 8px 20px -10px rgba(0, 80, 120, 0.3);
}

.form-hint {
    font-size: 0.8rem;
    color: #5f83a0;
    margin-top: 0.5rem;
    padding-left: 0.3rem;
    line-height: 1.4;
}

.modal-submit {
    width: 100%;
    padding: 1rem;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(230, 245, 255, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a4662;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 15px 25px -12px rgba(0, 60, 100, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 32px -12px rgba(0, 80, 120, 0.45),
                0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(240, 250, 255, 0.9));
}

.modal-submit:active {
    transform: translateY(0) scale(0.98);
}

.modal-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #4a6e8a;
    position: relative;
    z-index: 1;
}

.modal-footer a {
    color: #1a4662;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(26, 70, 98, 0.3);
    transition: border-color 0.2s ease;
    cursor: pointer;
    padding: 0.3rem 0;
    display: inline-block;
}

.modal-footer a:hover {
    border-color: #1a4662;
}

/* 提示条 */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 500;
    color: #1a4662;
    box-shadow: 0 18px 30px -10px rgba(0, 80, 120, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1100;
    letter-spacing: 0.2px;
    max-width: 90vw;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================ */
/* ===== 音乐播放器（左下角） ===== */
/* ============================================ */
.music-player {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.music-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 30px -10px rgba(0, 60, 100, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    color: #1a4662;
    font-size: 1.5rem;
    user-select: none;
}

.music-btn:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 18px 40px -12px rgba(0, 80, 120, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

.music-btn:active {
    transform: scale(0.95);
}

.music-btn.playing {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 15px 35px -10px rgba(0, 80, 120, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    animation: musicPulse 1.8s infinite ease-in-out;
}

@keyframes musicPulse {
    0% {
        box-shadow: 0 15px 35px -10px rgba(0, 80, 120, 0.4),
                    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
                    0 0 0 0 rgba(140, 200, 240, 0.6);
    }
    70% {
        box-shadow: 0 15px 35px -10px rgba(0, 80, 120, 0.4),
                    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
                    0 0 0 16px rgba(140, 200, 240, 0);
    }
    100% {
        box-shadow: 0 15px 35px -10px rgba(0, 80, 120, 0.4),
                    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
                    0 0 0 0 rgba(140, 200, 240, 0);
    }
}

.music-btn .music-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.music-btn.playing .music-icon {
    animation: musicSpin 3s linear infinite;
}

@keyframes musicSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.music-note {
    position: absolute;
    top: -8px;
    right: -4px;
    font-size: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.music-btn.playing .music-note {
    opacity: 1;
    animation: noteFloat 1.5s infinite ease-out;
}

@keyframes noteFloat {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-25px) scale(0.5); opacity: 0; }
}

.music-tooltip {
    position: absolute;
    bottom: 72px;
    left: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1a4662;
    white-space: nowrap;
    box-shadow: 0 8px 20px -8px rgba(0, 60, 100, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.25s ease;
    pointer-events: none;
}

.music-btn:hover .music-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 展开的控制面板 */
.music-panel {
    width: 300px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 15px 35px -12px rgba(0, 60, 100, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    padding: 1rem 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    pointer-events: none;
}

.music-player:hover .music-panel,
.music-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.music-panel-header {
    margin-bottom: 0.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.music-panel-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #15364b;
    letter-spacing: 0.2px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 进度条 */
.music-progress-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.music-time {
    font-size: 0.7rem;
    font-weight: 500;
    color: #3d617d;
    min-width: 32px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.music-progress {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    position: relative;
    cursor: pointer;
    overflow: visible;
    transition: height 0.2s ease;
    touch-action: none;
}

.music-progress:hover {
    height: 8px;
}

.music-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7dd3a8, #4ade80);
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
    pointer-events: none;
}

.music-progress-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid #4ade80;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(0, 60, 100, 0.3);
    pointer-events: none;
    transition: transform 0.15s ease;
}

.music-progress:hover .music-progress-thumb {
    transform: translate(-50%, -50%) scale(1.2);
}

/* 音量控制 */
.music-volume-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.music-volume-icon {
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s ease;
    width: 20px;
    text-align: center;
}

.music-volume-icon:hover {
    transform: scale(1.15);
}

.music-volume {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    position: relative;
    cursor: pointer;
    transition: height 0.2s ease;
    touch-action: none;
}

.music-volume:hover {
    height: 7px;
}

.music-volume-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, #8fc7ee, #6eb5e8);
    border-radius: 10px;
    box-shadow: 0 0 6px rgba(140, 200, 240, 0.5);
    pointer-events: none;
}

.music-volume-thumb {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #fff;
    border: 2px solid #6eb5e8;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 6px rgba(0, 60, 100, 0.25);
    pointer-events: none;
    transition: transform 0.15s ease;
}

.music-volume:hover .music-volume-thumb {
    transform: translate(-50%, -50%) scale(1.2);
}

.music-volume-value {
    font-size: 0.7rem;
    font-weight: 600;
    color: #3d617d;
    min-width: 32px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ============================================ */
/* ===== 滚动条 ===== */
/* ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(230, 245, 255, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(140, 190, 220, 0.6);
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 180, 220, 0.8);
}

/* ============================================ */
/* ===== 平板适配（≤ 900px） ===== */
/* ============================================ */
@media (max-width: 900px) {
    .glass-container {
        padding: 2.5rem 1.8rem;
        border-radius: 36px;
    }

    h1 {
        font-size: 3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .stat-value {
        font-size: 2.2rem;
    }

    .navbar {
        flex-direction: column;
        align-items: stretch;
        border-radius: 32px;
        padding: 1rem 1.5rem;
        gap: 0.8rem;
    }

    .nav-brand {
        justify-content: center;
        margin-bottom: 0.2rem;
    }

    .nav-links {
        justify-content: center;
    }

    .nav-links li a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .online-badge {
        margin: 0 auto;
    }

    .profile-id {
        font-size: 2.5rem;
    }

    .profile-avatar {
        width: 110px;
        height: 110px;
        font-size: 3rem;
    }

    .ip-box {
        font-size: 1.2rem;
    }

    .disclaimer-header h2 {
        font-size: 1.8rem;
    }

    .rule-card {
        padding: 1.5rem 1.2rem;
    }
}

/* ============================================ */
/* ===== 手机适配（≤ 600px） ===== */
/* ============================================ */
@media (max-width: 600px) {
    body {
        padding: 0.8rem;
    }

    /* 主容器 */
    .glass-container {
        padding: 1.8rem 1.1rem;
        border-radius: 28px;
    }

    /* 导航栏 */
    .navbar {
        padding: 0.7rem 0.9rem;
        border-radius: 26px;
        gap: 0.6rem;
    }

    .nav-brand {
        font-size: 1.1rem;
        gap: 0.5rem;
    }

    .nav-brand span {
        font-size: 1.4rem;
    }

    .nav-links {
        gap: 0.25rem;
        width: 100%;
        justify-content: center;
    }

    .nav-links li a {
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
    }

    .online-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.8rem 0.35rem 0.7rem;
        gap: 0.4rem;
    }

    .online-dot {
        width: 7px;
        height: 7px;
    }

    /* 标题 */
    h1 {
        font-size: 2rem;
        line-height: 1.15;
    }

    .logo-badge {
        font-size: 0.85rem;
        padding: 0.5rem 1.2rem;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .logo-badge span {
        font-size: 1.2rem;
    }

    .subhead {
        font-size: 0.85rem;
        padding: 0.4rem 1.1rem;
        margin-top: 0.6rem;
        line-height: 1.5;
        text-align: center;
    }

    .header {
        margin-bottom: 1.8rem;
    }

    /* 统计卡片 */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        margin: 1.8rem 0 1.5rem;
    }

    .stat-card {
        padding: 1.2rem 0.8rem;
        border-radius: 22px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
        letter-spacing: 1.2px;
    }

    /* 特色卡片 */
    .features {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        margin: 1.5rem 0;
    }

    .feature-item {
        padding: 1.4rem 1.2rem;
        border-radius: 24px;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }

    .feature-item h3 {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }

    .feature-item p {
        font-size: 0.85rem;
        line-height: 1.55;
    }

    /* IP 加入 */
    .join-section {
        flex-direction: column;
        gap: 0.9rem;
        margin-top: 1.5rem;
    }

    .ip-box {
        font-size: 0.9rem;
        padding: 0.65rem 1rem;
        gap: 0.6rem;
        width: 100%;
        justify-content: center;
    }

    .ip-box span {
        font-size: 1.2rem;
    }

    .copy-btn {
        padding: 0.75rem 1.8rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    /* 用户主页 */
    .profile-section {
        padding: 2rem 0.5rem;
        min-height: 300px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
        border-width: 3px;
    }

    .profile-label {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }

    .profile-id {
        font-size: 1.8rem;
        word-break: break-all;
    }

    /* 免责声明 */
    .disclaimer-header {
        margin-bottom: 1.5rem;
    }

    .disclaimer-header .warning-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1.1rem;
        gap: 0.4rem;
        line-height: 1.4;
        text-align: center;
    }

    .disclaimer-header h2 {
        font-size: 1.5rem;
    }

    .disclaimer-header .rule-note {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
        line-height: 1.5;
    }

    .rule-card {
        padding: 1.2rem 1rem;
        border-radius: 22px;
        margin-bottom: 1.2rem;
    }

    .rule-card h3 {
        font-size: 1.05rem;
        gap: 0.4rem;
        margin-bottom: 0.8rem;
    }

    .rule-card h3 .chapter-icon {
        font-size: 1.25rem;
    }

    .rule-card h4 {
        font-size: 0.9rem;
        margin: 0.9rem 0 0.5rem 0;
        padding-left: 0.6rem;
    }

    .rule-card p,
    .rule-card ul li {
        font-size: 0.82rem;
        line-height: 1.65;
    }

    .rule-card ul {
        padding-left: 0.5rem;
    }

    .rule-card ul li {
        padding-left: 1.1rem;
    }

    .rule-card .final-note {
        font-size: 0.78rem;
        padding: 0.8rem 1rem;
        margin-top: 1rem;
    }

    /* 页脚 */
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.9rem 1.2rem;
        border-radius: 24px;
        font-size: 0.8rem;
        margin-top: 1.5rem;
    }

    .social-links {
        gap: 0.6rem;
    }

    .social-links a {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    /* 弹窗 */
    .modal-overlay {
        padding: 0.8rem;
    }

    .modal {
        padding: 1.8rem 1.3rem;
        border-radius: 30px;
        max-width: 100%;
    }

    .modal h2 {
        font-size: 1.5rem;
    }

    .modal .modal-sub {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .modal-close {
        width: 32px;
        height: 32px;
        top: 1rem;
        right: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.75rem;
    }

    .form-group input {
        padding: 0.85rem 1.1rem;
        font-size: 16px; /* 防止 iOS 缩放 */
    }

    .modal-submit {
        padding: 0.9rem;
        font-size: 1rem;
    }

    /* 音乐播放器 */
    .music-player {
        bottom: 16px;
        left: 16px;
        gap: 8px;
    }

    .music-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .music-tooltip {
        display: none;
    }

    .music-panel {
        width: calc(100vw - 32px);
        max-width: 320px;
        padding: 0.85rem 1rem;
        border-radius: 18px;
    }

    .music-panel-header {
        margin-bottom: 0.6rem;
        padding-bottom: 0.5rem;
    }

    .music-panel-title {
        font-size: 0.75rem;
    }

    .music-progress-row {
        gap: 0.4rem;
        margin-bottom: 0.75rem;
    }

    .music-time {
        font-size: 0.65rem;
        min-width: 28px;
    }

    .music-progress {
        height: 8px; /* 加大触控区域 */
    }

    .music-progress-thumb {
        width: 14px;
        height: 14px;
    }

    .music-volume-row {
        gap: 0.4rem;
    }

    .music-volume-icon {
        font-size: 0.85rem;
        width: 18px;
    }

    .music-volume {
        height: 7px;
    }

    .music-volume-thumb {
        width: 12px;
        height: 12px;
    }

    .music-volume-value {
        font-size: 0.65rem;
        min-width: 28px;
    }

    /* 提示条 */
    .toast {
        bottom: 20px;
        padding: 10px 22px;
        font-size: 0.85rem;
        max-width: 88vw;
    }
}

/* ============================================ */
/* ===== 小屏手机适配（≤ 380px） ===== */
/* ============================================ */
@media (max-width: 380px) {
    h1 {
        font-size: 1.7rem;
    }

    .subhead {
        font-size: 0.78rem;
    }

    .logo-badge {
        font-size: 0.78rem;
        padding: 0.4rem 1rem;
    }

    .nav-links li a {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
    }

    .online-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.7rem 0.3rem 0.6rem;
    }

    .music-btn {
        width: 46px;
        height: 46px;
        font-size: 1.15rem;
    }

    .music-panel {
        max-width: 280px;
    }

    .stat-value {
        font-size: 1.8rem;
    }
}