/* 白天模式变量 */
:root[data-theme="day"] {
    --primary-color: #6c8cff;
    --secondary-color: #ff6c8c;
    --accent-color: #66cc99;
    --success-color: #66cc99;
    --warning-color: #ffcc00;
    --danger-color: #ff6666;
    --bg-color: #fafafa;
    --card-bg: rgba(255, 255, 255, 0.97);
    --text-color: #333333;
    --shadow-color: rgba(108, 140, 255, 0.2);
    --border-color: rgba(108, 140, 255, 0.25);
    --gradient-bg: linear-gradient(135deg, #f0f5ff 0%, #e6ebff 100%);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.25);
}

/* 夜晚模式变量 */
:root[data-theme="night"] {
    --primary-color: #8ca6ff;
    --secondary-color: #ff8ca6;
    --accent-color: #66cc99;
    --success-color: #66cc99;
    --warning-color: #ffcc66;
    --danger-color: #ff6666;
    --bg-color: #0a0c1a;
    --card-bg: rgba(20, 23, 46, 0.97);
    --text-color: #e6e9ff;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --border-color: rgba(140, 166, 255, 0.25);
    --gradient-bg: linear-gradient(135deg, #12152e 0%, #181b3a 100%);
    --glass-bg: rgba(20, 23, 46, 0.9);
    --glass-border: rgba(140, 166, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    letter-spacing: 0.5px;
    font-family: "方正胖娃体", "华康圆体W7", "M PLUS Rounded 1c", "幼圆", sans-serif;
    transition: background-color 0.5s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* 禁止文本选择 */
.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body {
    background: var(--gradient-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 20px 20px;
    overflow-x: hidden;
    color: var(--text-color);
    position: relative;
}

/* 背景装饰 */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.15;
}

.bg-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    animation: float 30s infinite linear;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(100vw, 100vh) rotate(360deg); }
}

/* ================== 顶部控制栏 ================== */
.top-controls {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    pointer-events: none;
}

/* 菜单按钮 */
.menu-btn {
    width: 56px;
    height: 56px;
    background: var(--glass-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 6px 20px var(--shadow-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1001;
    pointer-events: auto;
}

.menu-btn:hover {
    transform: scale(1.12) rotate(90deg);
    box-shadow: 0 10px 30px var(--shadow-color);
    background: var(--primary-color);
}

.menu-btn:hover span {
    background: white;
}

.menu-btn span {
    display: block;
    width: 22px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    width: 22px;
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    width: 22px;
}

/* 主题切换按钮 */
.theme-btn {
    width: 56px;
    height: 56px;
    background: var(--glass-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
    box-shadow: 0 6px 20px var(--shadow-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
    pointer-events: auto;
}

.theme-btn:hover {
    transform: scale(1.12) rotate(15deg);
    box-shadow: 0 10px 30px var(--shadow-color);
    background: var(--primary-color);
    color: white;
}

.container {
    width: 100%;
    max-width: 1800px;
    display: flex;
    flex-direction: column;
    gap: 35px;
    z-index: 1;
    margin-top: 30px;
}

/* 网站标题 */
.site-header {
    text-align: center;
    padding: 30px 0 60px;
    position: relative;
    margin-top: 20px;
    background: var(--card-bg);
    border-radius: 32px;
    border: 2px solid var(--border-color);
    box-shadow: 0 15px 40px var(--shadow-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    overflow: hidden;
    margin-bottom: 20px;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, 
        var(--secondary-color) 0%, 
        var(--primary-color) 25%, 
        #ff6b8b 50%, 
        var(--accent-color) 75%, 
        var(--secondary-color) 100%);
    animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.site-title {
    font-size: 72px;
    font-weight: bold;
    background: linear-gradient(135deg, 
        var(--secondary-color) 0%, 
        var(--primary-color) 33%, 
        #ff6b8b 66%, 
        var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    letter-spacing: 3px;
    text-shadow: 0 8px 24px var(--shadow-color);
    position: relative;
    display: inline-block;
    padding: 0 50px;
    animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.1); }
}

.site-title::before,
.site-title::after {
    content: "✦";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 32px;
    animation: spin 20s linear infinite;
    text-shadow: 0 0 10px var(--secondary-color);
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.site-title::before {
    left: 0;
}

.site-title::after {
    right: 0;
}

.site-subtitle {
    font-size: 26px;
    color: var(--primary-color);
    opacity: 0.9;
    margin-top: 15px;
    text-shadow: 0 2px 8px var(--shadow-color);
    font-weight: 500;
    background: var(--glass-bg);
    padding: 15px 40px;
    border-radius: 50px;
    display: inline-block;
    border: 2px solid var(--border-color);
}

.season-indicator {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--glass-bg);
    padding: 12px 30px;
    border-radius: 50px;
    margin-top: 25px;
    border: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: pulse 2s ease-in-out infinite;
}

.season-emoji {
    font-size: 28px;
    animation: bounce 2s ease-in-out infinite;
}

.season-text {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 500;
}

/* ================== 导航栏系统 ================== */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    -webkit-transition: all 0.4s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: block !important;
}

/* QQ浏览器专用修复 - 使用left而不是transform */
.side-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 400px;
    height: 100%;
    background: var(--card-bg);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    -webkit-transition: left 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 2px solid var(--border-color);
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    /* QQ浏览器关键修复 */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 使用.active类控制显示，而不是transform */
.side-nav.active {
    left: 0 !important;
    transform: none !important;
    -webkit-transform: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.nav-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 2px;
}

.nav-title {
    color: var(--primary-color);
    font-size: 34px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: bold;
}

.nav-subtitle {
    color: var(--secondary-color);
    font-size: 18px;
    opacity: 0.9;
}

.nav-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nav-section {
    margin-bottom: 30px;
}

.section-title {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 4px solid var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 19px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(12px);
    box-shadow: 0 8px 24px var(--shadow-color);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 8px 24px var(--shadow-color);
}

.nav-item i {
    width: 40px;
    font-size: 22px;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.nav-item:hover i {
    transform: scale(1.2);
}

.nav-footer {
    margin-top: auto;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    text-align: center;
    color: var(--primary-color);
    opacity: 0.8;
    font-size: 14px;
}

.nav-footer p {
    margin: 5px 0;
}

/* ================== 欢迎区域 ================== */
.welcome-section {
    background: var(--card-bg);
    border-radius: 32px;
    padding: 50px 60px;
    margin-bottom: 35px;
    border: 2px solid var(--border-color);
    box-shadow: 0 15px 40px var(--shadow-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color), var(--accent-color));
}

.welcome-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(108, 140, 255, 0.03) 50%, transparent 60%);
    animation: shine 6s infinite linear;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.greeting-text {
    color: var(--accent-color);
    font-size: 32px;
    margin-bottom: 25px;
    text-shadow: 0 3px 10px var(--shadow-color);
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: bold;
}
.greeting-text i {
    font-size: 36px;
    color: #ff3366 !important;  /* 红色爱心 */
    text-shadow: 0 4px 15px rgba(255, 51, 102, 0.4) !important;
    animation: bounce 3s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.main-days {
    text-align: center;
    margin: 40px 0;
}

.days-number {
    font-size: 88px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--secondary-color) 30%, var(--primary-color) 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
    text-shadow: 0 10px 30px var(--shadow-color);
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.days-number:hover {
    transform: scale(1.05);
    text-shadow: 0 15px 40px var(--shadow-color);
}

.days-unit {
    font-size: 36px;
    color: var(--primary-color);
    margin-left: 10px;
    font-weight: 500;
}

.days-text {
    font-size: 26px;
    color: var(--primary-color);
    opacity: 0.9;
    margin-top: 20px;
    padding: 20px 40px;
    background: var(--glass-bg);
    border-radius: 25px;
    display: inline-block;
    border: 2px dashed var(--border-color);
    box-shadow: 0 8px 24px var(--shadow-color);
    font-weight: 500;
}

/* 季节和日期信息 */
.date-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.date-item {
    background: var(--glass-bg);
    border-radius: 20px;
    padding: 20px 30px;
    border: 1px solid var(--border-color);
    text-align: center;
    min-width: 180px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.date-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-color);
    background: var(--primary-color);
    color: white;
}

.date-item:hover .date-label {
    color: white;
    opacity: 0.9;
}

.date-value {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.date-label {
    font-size: 18px;
    color: var(--primary-color);
    opacity: 0.8;
}

/* 时间统计 */
.time-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.time-card {
    background: linear-gradient(135deg, var(--glass-bg), var(--card-bg));
    border-radius: 22px;
    padding: 30px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.time-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.time-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px var(--shadow-color);
}

.time-card:hover::before {
    opacity: 1;
}

.time-number {
    font-size: 46px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 12px;
    text-shadow: 0 3px 10px var(--shadow-color);
}

.time-label {
    font-size: 19px;
    color: var(--secondary-color);
    opacity: 0.9;
    font-weight: 500;
}

/* 特殊消息 */
.special-message {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 25px 50px;
    border-radius: 28px;
    margin: 35px auto;
    text-align: center;
    max-width: 700px;
    box-shadow: 0 12px 35px rgba(255, 108, 140, 0.4);
    animation: pulseGlow 2.5s ease-in-out infinite;
    display: none;
    position: relative;
    overflow: hidden;
}

.special-message.show {
    display: block;
}

@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 0 12px 35px rgba(255, 108, 140, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 12px 40px rgba(255, 108, 140, 0.6);
        transform: scale(1.02);
    }
}

.special-message i {
    font-size: 28px;
    margin-right: 15px;
    animation: spin 3s linear infinite;
}

/* 主内容区 - 同桌卡片 */
.main-content {
    display: flex;
    gap: 35px;
    width: 100%;
    align-items: stretch;
    position: relative;
    margin-top: 20px;
}

/* 同桌卡片 */
.desk-card {
    flex: 1;
    background: var(--card-bg);
    border-radius: 32px;
    border: 2px solid var(--border-color);
    box-shadow: 0 15px 40px var(--shadow-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 45px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.desk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px var(--shadow-color);
}

.left-desk {
    border-left: 10px solid var(--primary-color);
}

.right-desk {
    border-right: 10px solid var(--secondary-color);
}

.desk-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 0.4;
}

.desk-title {
    color: var(--primary-color);
    font-size: 40px;
    margin-bottom: 35px;
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    font-weight: bold;
}

.right-desk .desk-title {
    color: var(--secondary-color);
}

.desk-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.right-desk .desk-title::after {
    background: var(--secondary-color);
}

/* 头像区域 */
.avatar-section {
    text-align: center;
    margin-bottom: 45px;
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.avatar {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 5px solid var(--border-color);
    box-shadow: 0 15px 40px var(--shadow-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 20px 50px var(--shadow-color);
}

.avatar::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: conic-gradient(from 0deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    border-radius: 50%;
    animation: rotate 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar:hover::before {
    opacity: 0.3;
}

.avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.3));
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 72px;
    font-weight: bold;
}

.right-desk .avatar-placeholder {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.user-name {
    color: var(--primary-color);
    font-size: 40px;
    font-weight: bold;
    text-shadow: 0 3px 10px var(--shadow-color);
    margin-top: 20px;
}

.right-desk .user-name {
    color: var(--secondary-color);
}

/* 状态网格 */
.status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 25px;
    flex-grow: 1;
}

.status-card {
    background: var(--glass-bg);
    border-radius: 22px;
    padding: 25px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.status-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 30px var(--shadow-color);
}

.status-card:hover::before {
    opacity: 1;
}

.status-label {
    color: var(--primary-color);
    font-size: 17px;
    margin-bottom: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.status-label i {
    font-size: 20px;
}

.status-value {
    color: var(--text-color);
    font-size: 22px;
    font-weight: bold;
    padding: 16px 25px;
    border-radius: 18px;
    background: var(--card-bg);
    width: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-all;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

/* 状态颜色样式 */
.status-online {
    color: var(--success-color);
    background: rgba(102, 204, 153, 0.12);
}

.status-busy {
    color: var(--warning-color);
    background: rgba(255, 204, 0, 0.12);
}

.status-offline {
    color: #888;
    background: rgba(136, 136, 136, 0.12);
}

.status-away {
    color: var(--danger-color);
    background: rgba(255, 102, 102, 0.12);
}

/* 心情样式 */
.mood-happy { color: #ffcc00; background: rgba(255, 204, 0, 0.12); }
.mood-sad { color: #6699ff; background: rgba(102, 153, 255, 0.12); }
.mood-excited { color: #ff66aa; background: rgba(255, 102, 170, 0.12); }
.mood-calm { color: #66cc99; background: rgba(102, 204, 153, 0.12); }
.mood-angry { color: #ff6666; background: rgba(255, 102, 102, 0.12); }
.mood-shy { color: #cc66ff; background: rgba(204, 102, 255, 0.12); }

/* 中部分隔装饰 */
.center-divider {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 25px;
    border-radius: 50%;
    border: 4px solid var(--border-color);
    box-shadow: 0 12px 35px var(--shadow-color);
    z-index: 10;
    font-size: 32px;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    animation: heartbeat 2s ease-in-out infinite;
    cursor: pointer;
}

.center-divider:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 15px 40px var(--shadow-color);
}

/* 匿名问答区 */
.anonymous-section {
    margin: 50px 0;
    width: 100%;
}

.anonymous-container {
    background: var(--card-bg);
    border-radius: 32px;
    padding: 45px;
    border: 2px solid var(--border-color);
    box-shadow: 0 15px 40px var(--shadow-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.anonymous-header {
    text-align: center;
    margin-bottom: 40px;
}

.anonymous-header h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.anonymous-header p {
    color: var(--secondary-color);
    font-size: 18px;
}

.ask-button-container {
    text-align: center;
    margin-bottom: 40px;
}

.ask-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 10px 25px var(--shadow-color);
    cursor: pointer;
}

.ask-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-color);
}

.ask-button i {
    margin-right: 12px;
}

.questions-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.question-item {
    background: var(--glass-bg);
    border-radius: 25px;
    padding: 30px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.question-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.question-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.anonymous-icon {
    background: linear-gradient(135deg, #ffd6e7, #ffc2d6);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.anonymous-icon i {
    color: var(--secondary-color);
    font-size: 24px;
}

.question-info {
    flex: 1;
}

.question-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.anonymous-label {
    background: var(--secondary-color);
    color: white;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 14px;
    margin-right: 15px;
}

.target-info {
    color: #666;
    font-size: 14px;
}

.target-name {
    color: var(--primary-color);
    font-weight: bold;
}

.question-time {
    color: #999;
    font-size: 14px;
}

.question-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-color);
}

.answer-section {
    display: flex;
    align-items: flex-start;
    padding-top: 25px;
    border-top: 2px solid var(--border-color);
}

.user-avatar-small {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    position: relative;
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-initial {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.answer-info {
    flex: 1;
}

.answer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.user-label {
    background: var(--primary-color);
    color: white;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 14px;
    margin-right: 15px;
}

.user-role {
    color: var(--secondary-color);
    font-size: 14px;
}

.answer-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--primary-color);
    background: linear-gradient(135deg, #f0f5ff, #e6ebff);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.pending-answer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #fff8e6, #ffeedd);
    border-radius: 15px;
    border: 2px dashed #ffcc66;
    color: #cc9900;
}

.pending-answer i {
    margin-right: 10px;
}

.view-more-container {
    text-align: center;
    margin-top: 35px;
}

.view-more-link {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.view-more-link:hover {
    background: var(--primary-color);
    color: white;
}

.view-more-link i {
    margin-right: 10px;
}

.empty-questions {
    text-align: center;
    padding: 40px;
    color: #999;
    background: var(--glass-bg);
    border-radius: 20px;
    border: 2px dashed var(--border-color);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* 登录按钮区域 */
.login-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 50px 0;
    width: 100%;
    flex-wrap: wrap;
}

.login-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 28px;
    padding: 25px 50px;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    letter-spacing: 2px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.login-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn i {
    margin-right: 15px;
    font-size: 24px;
}

/* 底部区域 */
.footer {
    text-align: center;
    margin-top: 50px;
    padding: 45px;
    color: var(--primary-color);
    opacity: 0.9;
    width: 100%;
    background: var(--card-bg);
    border-radius: 32px;
    border: 2px solid var(--border-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color), var(--accent-color));
}

.site-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    margin: 35px 0;
}

.stat-item {
    text-align: center;
    padding: 25px;
    background: var(--glass-bg);
    border-radius: 22px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px var(--shadow-color);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-number {
    color: var(--secondary-color);
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 12px;
    text-shadow: 0 3px 10px var(--shadow-color);
}

.stat-label {
    color: var(--primary-color);
    font-size: 17px;
    opacity: 0.9;
    font-weight: 500;
}

.copyright {
    margin-top: 35px;
    font-size: 17px;
    color: var(--primary-color);
    opacity: 0.7;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.copyright a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ================== 公告弹窗样式 ================== */

.announcement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease;
    padding: 20px;
    box-sizing: border-box;
}

.announcement-modal.show {
    display: flex;
}

.announcement-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    animation: overlayFadeIn 0.4s ease;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.announcement-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    background: var(--card-bg);
    border-radius: 32px;
    border: 3px solid var(--border-color);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    overflow: hidden;
    z-index: 100001;
    animation: modalSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.announcement-header {
    display: flex;
    align-items: center;
    padding: 25px 35px;
    background: linear-gradient(135deg, 
        rgba(231, 76, 60, 0.15), 
        rgba(231, 76, 60, 0.08));
    border-bottom: 2px solid rgba(231, 76, 60, 0.3);
    position: relative;
    min-height: 85px;
    box-sizing: border-box;
}

.announcement-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, 
        #e74c3c 0%, 
        #ff6b6b 50%, 
        #e74c3c 100%);
    animation: warningFlow 3s ease infinite;
}

@keyframes warningFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.announcement-header i {
    font-size: 32px;
    color: #e74c3c;
    margin-right: 20px;
    animation: pulse 2s infinite ease-in-out;
}

.announcement-header strong {
    font-size: 28px;
    color: #e74c3c;
    font-weight: bold;
    flex-grow: 1;
    text-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
    letter-spacing: 1px;
}

.announcement-time {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
    margin-right: 30px;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-close {
    background: transparent;
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    font-size: 22px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(231, 76, 60, 0.3);
    background: rgba(231, 76, 60, 0.05);
}

.announcement-close:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    transform: rotate(90deg) scale(1.1);
    border-color: #e74c3c;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.3);
}

.announcement-body {
    flex: 1;
    padding: 35px;
    overflow-y: auto;
    background: var(--glass-bg);
    max-height: calc(85vh - 85px);
}

.announcement-body::-webkit-scrollbar {
    width: 10px;
}

.announcement-body::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 5px;
    margin: 10px;
}

.announcement-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e74c3c, #ff6b6b);
    border-radius: 5px;
    border: 2px solid var(--border-color);
}

.announcement-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff6b6b, #e74c3c);
}

/* 弹窗内HTML内容样式 */
.announcement-body h1 {
    color: #e74c3c;
    font-size: 32px;
    margin: 25px 0 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid rgba(231, 76, 60, 0.3);
    font-weight: bold;
}

.announcement-body h2 {
    color: #e74c3c;
    font-size: 26px;
    margin: 22px 0 18px;
    padding-left: 15px;
    border-left: 5px solid #e74c3c;
    font-weight: bold;
}

.announcement-body h3 {
    color: #ff6b6b;
    font-size: 22px;
    margin: 20px 0 16px;
    font-weight: bold;
}

.announcement-body h4 {
    color: var(--primary-color);
    font-size: 19px;
    margin: 18px 0 14px;
    font-weight: bold;
}

.announcement-body p {
    margin: 18px 0;
    line-height: 1.8;
    color: var(--text-color);
    font-size: 17px;
    text-align: justify;
}

.announcement-body a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 4px;
}

.announcement-body a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
    background: rgba(108, 140, 255, 0.1);
}

.announcement-body ul,
.announcement-body ol {
    margin: 20px 0;
    padding-left: 35px;
}

.announcement-body li {
    margin: 12px 0;
    color: var(--text-color);
    line-height: 1.7;
    padding-left: 10px;
    position: relative;
}

.announcement-body li::before {
    content: '•';
    color: #e74c3c;
    font-weight: bold;
    position: absolute;
    left: -20px;
    font-size: 20px;
}

.announcement-body code {
    background: rgba(231, 76, 60, 0.15);
    padding: 3px 10px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    color: #e74c3c;
    font-size: 15px;
    border: 1px solid rgba(231, 76, 60, 0.3);
    margin: 0 4px;
    font-weight: 500;
}

.announcement-body pre {
    background: rgba(20, 23, 46, 0.95);
    padding: 25px;
    border-radius: 15px;
    overflow-x: auto;
    margin: 25px 0;
    border: 2px solid rgba(231, 76, 60, 0.3);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.announcement-body pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: #e6e9ff;
    font-size: 14px;
    line-height: 1.6;
}

.announcement-body blockquote {
    border-left: 5px solid #e74c3c;
    padding: 20px 25px;
    margin: 25px 0;
    background: rgba(231, 76, 60, 0.08);
    border-radius: 0 15px 15px 0;
    color: var(--text-color);
    font-style: italic;
    font-size: 17px;
    position: relative;
}

.announcement-body blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    color: #e74c3c;
    font-size: 48px;
    opacity: 0.3;
    font-family: serif;
}

.announcement-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.announcement-body th {
    background: linear-gradient(135deg, #e74c3c, #ff6b6b);
    color: white;
    padding: 18px 20px;
    text-align: left;
    font-weight: bold;
    font-size: 16px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.announcement-body td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 15px;
}

.announcement-body tr:hover {
    background: rgba(231, 76, 60, 0.05);
    transition: background 0.3s ease;
}

.announcement-body img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--border-color);
}

.announcement-body .highlight {
    background: linear-gradient(135deg, 
        rgba(231, 76, 60, 0.15), 
        rgba(255, 107, 107, 0.1));
    padding: 20px;
    border-radius: 15px;
    margin: 25px 0;
    border: 3px dashed #e74c3c;
    position: relative;
    overflow: hidden;
}

.announcement-body .highlight::before {
    content: '⚠️';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    opacity: 0.2;
}

.announcement-body .btn {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c, #ff6b6b);
    color: white;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    margin: 10px 8px;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.announcement-body .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.announcement-body .btn:hover {
    background: linear-gradient(135deg, #ff6b6b, #e74c3c);
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.5);
    border-color: white;
}

.announcement-body .btn:hover::before {
    left: 100%;
}

.announcement-body .btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(108, 140, 255, 0.3);
}

.announcement-body .btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 弹窗动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1;
    }
    50% { 
        transform: scale(1.1); 
        opacity: 0.8;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

.warning-shake {
    animation: shake 0.8s ease-in-out;
}

/* 紧急警告样式 */
.emergency-alert {
    border: 4px solid #e74c3c;
    box-shadow: 0 0 30px rgba(231, 76, 60, 0.5), inset 0 0 20px rgba(231, 76, 60, 0.2);
    animation: emergencyPulse 2s infinite;
}

@keyframes emergencyPulse {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(231, 76, 60, 0.5), inset 0 0 20px rgba(231, 76, 60, 0.2);
    }
    50% { 
        box-shadow: 0 0 40px rgba(231, 76, 60, 0.8), inset 0 0 30px rgba(231, 76, 60, 0.3);
    }
}

/* 夜间模式适配 */
[data-theme="night"] .announcement-content {
    background: rgba(15, 18, 40, 0.98);
    border-color: rgba(140, 166, 255, 0.4);
}

[data-theme="night"] .announcement-body {
    background: rgba(10, 12, 30, 0.95);
}

[data-theme="night"] .announcement-overlay {
    background: rgba(0, 0, 0, 0.9);
}

[data-theme="night"] .announcement-body pre {
    background: rgba(5, 8, 25, 0.98);
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
    }
    
    .site-title {
        font-size: 60px;
    }
    
    .days-number {
        font-size: 78px;
    }
}

@media (max-width: 1200px) {
    .side-nav {
        width: 380px;
    }
    
    .avatar {
        width: 170px;
        height: 170px;
    }
    
    .user-name {
        font-size: 36px;
    }
    
    .desk-title {
        font-size: 36px;
    }
    
    .anonymous-container {
        padding: 35px;
    }
    
    .announcement-content {
        max-width: 850px;
        max-height: 80vh;
    }
    
    .announcement-header {
        padding: 22px 30px;
        min-height: 80px;
    }
    
    .announcement-header strong {
        font-size: 26px;
    }
    
    .announcement-body {
        padding: 30px;
        max-height: calc(80vh - 80px);
    }
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    
    .center-divider {
        display: none;
    }
    
    .site-title {
        font-size: 50px;
        padding: 0 40px;
    }
    
    .days-number {
        font-size: 68px;
    }
    
    .days-text {
        font-size: 24px;
    }
    
    .time-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .welcome-section {
        padding: 40px;
    }
    
    .login-btn {
        min-width: 220px;
        padding: 22px 40px;
        font-size: 20px;
    }
    
    .anonymous-header h2 {
        font-size: 32px;
    }
    
    .ask-button {
        padding: 16px 35px;
        font-size: 18px;
    }
    
    .announcement-content {
        max-width: 750px;
        border-radius: 28px;
    }
    
    .announcement-header {
        padding: 20px 25px;
        min-height: 75px;
    }
    
    .announcement-header i {
        font-size: 28px;
        margin-right: 15px;
    }
    
    .announcement-header strong {
        font-size: 24px;
    }
    
    .announcement-time {
        font-size: 13px;
        margin-right: 20px;
        padding: 4px 10px;
    }
    
    .announcement-body {
        padding: 25px;
        max-height: calc(80vh - 75px);
    }
    
    .announcement-body h1 { font-size: 28px; }
    .announcement-body h2 { font-size: 24px; }
    .announcement-body h3 { font-size: 20px; }
    .announcement-body h4 { font-size: 18px; }
    
    .announcement-body p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 90px 15px 15px;
    }
    
    .top-controls {
        left: 15px;
        right: 15px;
    }
    
    .menu-btn, .theme-btn {
        width: 52px;
        height: 52px;
    }
    
    .side-nav {
        width: 340px;
        padding: 35px 25px;
    }
    
    .nav-title {
        font-size: 30px;
    }
    
    .nav-item {
        padding: 16px 20px;
        font-size: 18px;
    }
    
    .nav-item i {
        font-size: 20px;
        width: 36px;
    }
    
    .site-header {
        padding: 25px 20px 40px;
        margin-top: 10px;
    }
    
    .site-title {
        font-size: 42px;
    }
    
    .site-subtitle {
        font-size: 20px;
        padding: 12px 25px;
    }
    
    .season-indicator {
        padding: 10px 20px;
    }
    
    .season-emoji {
        font-size: 24px;
    }
    
    .season-text {
        font-size: 18px;
    }
    
    .welcome-section {
        padding: 35px;
    }
    
    .greeting-text {
        font-size: 28px;
    }
    
    .days-number {
        font-size: 58px;
    }
    
    .days-unit {
        font-size: 30px;
    }
    
    .days-text {
        font-size: 22px;
        padding: 18px 35px;
    }
    
    .date-info {
        gap: 20px;
    }
    
    .date-item {
        min-width: 150px;
        padding: 18px 25px;
    }
    
    .time-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .time-card {
        padding: 25px;
    }
    
    .desk-card {
        padding: 35px;
    }
    
    .avatar {
        width: 150px;
        height: 150px;
    }
    
    .user-name {
        font-size: 32px;
    }
    
    .desk-title {
        font-size: 32px;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .status-value {
        font-size: 20px;
        min-height: 55px;
        padding: 14px 20px;
    }
    
    .login-section {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .login-btn {
        width: 100%;
        max-width: 320px;
    }
    
    .anonymous-container {
        padding: 30px;
        border-radius: 28px;
    }
    
    .anonymous-header h2 {
        font-size: 28px;
    }
    
    .question-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .anonymous-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .question-meta {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .answer-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .user-avatar-small {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .answer-meta {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .site-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .stat-item {
        padding: 22px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .footer {
        padding: 35px;
    }
    
    .announcement-modal {
        padding: 15px;
    }
    
    .announcement-content {
        max-width: 95%;
        max-height: 85vh;
        border-radius: 24px;
    }
    
    .announcement-header {
        padding: 18px 20px;
        min-height: 70px;
        flex-wrap: wrap;
    }
    
    .announcement-header i {
        font-size: 26px;
        margin-right: 12px;
    }
    
    .announcement-header strong {
        font-size: 22px;
        flex-basis: calc(100% - 140px);
        margin-right: 10px;
    }
    
    .announcement-time {
        order: 3;
        width: 100%;
        margin: 10px 0 0;
        text-align: center;
        font-size: 12px;
    }
    
    .announcement-close {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .announcement-body {
        padding: 20px;
        max-height: calc(85vh - 70px);
    }
    
    .announcement-body h1 { font-size: 26px; }
    .announcement-body h2 { font-size: 22px; }
    .announcement-body h3 { font-size: 19px; }
    
    .announcement-body p {
        font-size: 15px;
    }
    
    .announcement-body ul,
    .announcement-body ol {
        padding-left: 25px;
    }
    
    .announcement-body li {
        margin: 10px 0;
    }
    
    .announcement-body .btn {
        padding: 12px 25px;
        font-size: 15px;
        margin: 8px 5px;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        padding: 85px 10px 10px;
    }
    
    .top-controls {
        left: 10px;
        right: 10px;
    }
    
    .site-title {
        font-size: 36px;
        padding: 0 20px;
    }
    
    .site-subtitle {
        font-size: 18px;
        padding: 10px 20px;
    }
    
    .site-title::before,
    .site-title::after {
        font-size: 24px;
    }
    
    .season-indicator {
        margin-top: 15px;
        padding: 8px 16px;
    }
    
    .welcome-section {
        padding: 30px;
        border-radius: 28px;
    }
    
    .greeting-text {
        font-size: 24px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .days-number {
        font-size: 50px;
    }
    
    .days-unit {
        font-size: 26px;
    }
    
    .days-text {
        font-size: 20px;
        padding: 16px 30px;
    }
    
    .date-info {
        flex-direction: column;
        align-items: center;
    }
    
    .date-item {
        width: 100%;
        max-width: 280px;
    }
    
    .desk-card {
        padding: 30px;
        border-radius: 28px;
    }
    
    .avatar {
        width: 130px;
        height: 130px;
    }
    
    .user-name {
        font-size: 28px;
    }
    
    .desk-title {
        font-size: 28px;
    }
    
    .status-card {
        padding: 20px;
    }
    
    .anonymous-container {
        padding: 25px;
    }
    
    .anonymous-header h2 {
        font-size: 24px;
    }
    
    .ask-button {
        padding: 14px 30px;
        font-size: 16px;
    }
    
    .question-item {
        padding: 25px;
    }
    
    .footer {
        padding: 30px;
    }
    
    .site-stats {
        grid-template-columns: 1fr;
    }
    
    .copyright {
        font-size: 15px;
    }
    
    .announcement-modal {
        padding: 10px;
    }
    
    .announcement-content {
        max-width: 100%;
        max-height: 90vh;
        border-radius: 20px;
    }
    
    .announcement-header {
        padding: 15px;
        min-height: 65px;
    }
    
    .announcement-header i {
        font-size: 24px;
        margin-right: 10px;
    }
    
    .announcement-header strong {
        font-size: 20px;
        flex-basis: calc(100% - 130px);
    }
    
    .announcement-time {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .announcement-close {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .announcement-body {
        padding: 15px;
        max-height: calc(90vh - 65px);
    }
    
    .announcement-body h1 { font-size: 24px; }
    .announcement-body h2 { font-size: 20px; }
    .announcement-body h3 { font-size: 18px; }
    
    .announcement-body p {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .announcement-body ul,
    .announcement-body ol {
        padding-left: 20px;
    }
    
    .announcement-body pre {
        padding: 15px;
        font-size: 13px;
    }
    
    .announcement-body table {
        font-size: 13px;
    }
    
    .announcement-body th,
    .announcement-body td {
        padding: 10px 12px;
    }
}

/* ================== QQ浏览器专用修复（必须放在CSS文件最末尾） ================== */
/* 这段代码必须放在CSS文件的最后，覆盖前面的所有样式 */

/* 1. 导航栏强制修复 - 使用ID选择器提高优先级 */
#sideNav {
    /* 禁用transform，使用left属性 - QQ浏览器对transform支持不好 */
    -webkit-transform: none !important;
    transform: none !important;
    left: -400px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 99999 !important;
    position: fixed !important;
    top: 0 !important;
    height: 100% !important;
    width: 400px !important;
    background: var(--card-bg) !important;
    transition: left 0.5s ease !important;
    -webkit-transition: left 0.5s ease !important;
    overflow-y: auto !important;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.3) !important;
    border-right: 2px solid var(--border-color) !important;
    padding: 40px 35px !important;
}

#sideNav.active {
    left: 0 !important;
    -webkit-transform: none !important;
    transform: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 2. 遮罩层强制修复 */
#navOverlay {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: 99998 !important;
    transition: opacity 0.4s ease !important;
    -webkit-transition: opacity 0.4s ease !important;
    pointer-events: none !important;
}

#navOverlay.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* 3. QQ X5内核特殊处理 */
@media screen and (-webkit-tizen) {
    /* 这是检测QQ X5内核的特殊媒体查询 */
    #sideNav, .menu-btn, .theme-btn, .site-header, .welcome-section,
    .desk-card, .anonymous-container, .footer {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    #sideNav {
        background: var(--card-bg) !important;
    }
    
    /* 确保按钮可点击 */
    #menuBtn, #themeBtn {
        pointer-events: auto !important;
        cursor: pointer !important;
        z-index: 100001 !important;
    }
}

/* 4. 硬件加速优化 */
#sideNav {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
    -webkit-transform-style: flat;
    transform-style: flat;
}

/* 5. 清除所有可能冲突的动画 */
#sideNav {
    animation: none !important;
    -webkit-animation: none !important;
}

/* 6. 确保菜单按钮点击区域足够大 */
.menu-btn::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: transparent;
    z-index: 1;
}

/* 7. 防止公告弹窗覆盖导航栏 */
.announcement-modal {
    z-index: 100000 !important;
}

/* 8. 移动端适配修复 */
@media (max-width: 768px) {
    #sideNav {
        width: 340px !important;
        left: -340px !important;
        padding: 35px 25px !important;
    }
    
    #sideNav.active {
        left: 0 !important;
    }
}