/* ============================================
   个人网站样式 - 清晰配色、简洁设计
   ============================================ */

/* CSS 变量 - 颜色配置 */
:root {
    --primary: #00d4ff;          /* 主色：亮天蓝（科技感） */
    --primary-dark: #0099cc;     /* 深天蓝 */
    --primary-light: #64e5ff;    /* 浅天蓝 */
    --bg-main: #0a0e27;          /* 页面背景：深蓝黑 */
    --bg-card: #111837;          /* 卡片背景：深蓝 */
    --text-primary: #e0e0e0;     /* 主文字：浅色 */
    --text-secondary: #a0a0a0;   /* 次要文字：灰色 */
    --text-muted: #666666;       /* 浅灰文字 */
    --border: #1e3a5f;          /* 边框颜色：深蓝 */
    --shadow: rgba(0, 212, 255, 0.2);  /* 阴影颜色：蓝色光晕 */
    --hover-bg: #1a2744;         /* 悬停背景 */
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    
    /* 科技感网格背景 */
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    
    /* 深色渐变叠加 */
    background-color: #0a0e27;
    background-attachment: fixed;
    
    /* 粒子效果容器 */
    position: relative;
    overflow-x: hidden;
}

/* 浮动粒子效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(0, 212, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(0, 212, 255, 0.2), transparent),
        radial-gradient(2px 2px at 60% 40%, rgba(0, 212, 255, 0.3), transparent),
        radial-gradient(2px 2px at 80% 10%, rgba(0, 212, 255, 0.2), transparent),
        radial-gradient(2px 2px at 10% 80%, rgba(0, 212, 255, 0.3), transparent);
    animation: floatParticles 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatParticles {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100vh); }
}

/* ============================================
   电子宠物 - 团团熊猫
   ============================================ */
.pet-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    animation: petBounce 2s ease-in-out infinite;
    cursor: move;
    transition: all 0.3s ease;
}

.pet-container.dragging {
    animation: none;
    transition: none;
}

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

.pet-window {
    width: 300px;
    background: linear-gradient(135deg, #1a2744 0%, #0d1b3e 100%);
    border: 2px solid #00d4ff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3), 0 0 60px rgba(0, 212, 255, 0.2);
    animation: petGlow 3s ease-in-out infinite;
}

@keyframes petGlow {
    0%, 100% { box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3), 0 0 60px rgba(0, 212, 255, 0.2); }
    50% { box-shadow: 0 8px 32px rgba(0, 212, 255, 0.5), 0 0 80px rgba(0, 212, 255, 0.4); }
}

.pet-header {
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #0a0e27;
    font-weight: 600;
}

.pet-close {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: #0a0e27;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pet-close:hover {
    background: rgba(0, 0, 0, 0.4);
}

.pet-body {
    padding: 20px;
    text-align: center;
}

.pet-character {
    margin-bottom: 16px;
}

.pet-avatar {
    font-size: 64px;
    animation: petIdle 3s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.2s;
}

.pet-avatar:hover {
    transform: scale(1.1);
}

@keyframes petIdle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(-5deg); }
    75% { transform: translateY(-5px) rotate(5deg); }
}

.pet-name {
    color: #00d4ff;
    font-size: 18px;
    font-weight: 600;
    margin-top: 8px;
}

.pet-status {
    margin: 16px 0;
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    color: #e0e0e0;
    font-size: 12px;
}

.bar-bg {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.bar-fill.mood {
    background: linear-gradient(90deg, #ff6b9d, #ffa07a);
}

.bar-fill.exp {
    background: linear-gradient(90deg, #a855f7, #06b6d4);
}

.pet-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 16px 0;
}

.pet-btn {
    width: 44px;
    height: 44px;
    border: 2px solid #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pet-btn:hover {
    background: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4);
}

.pet-message {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    color: #e0e0e0;
    font-size: 13px;
    margin-top: 12px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

/* 宠物最小化状态 */
.pet-container.minimized .pet-body {
    display: none;
}

.pet-container.minimized {
    animation: none;
}

/* ============================================
   近期日程显示区
   ============================================ */
.upcoming-events {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 255, 136, 0.05) 100%);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    animation: slideInUp 0.6s ease-out;
}

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

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.events-header h2 {
    font-size: 22px;
    color: #00d4ff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.events-date {
    color: #a0a0a0;
    font-size: 14px;
}

.events-list {
    max-height: 300px;
    overflow-y: auto;
}

.event-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
    animation: eventSlideIn 0.4s ease-out;
}

@keyframes eventSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.event-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}

.event-date-badge {
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    color: #0a0e27;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    min-width: 70px;
    text-align: center;
}

.event-content {
    flex: 1;
}

.event-text {
    color: #e0e0e0;
    font-size: 15px;
    font-weight: 500;
}

.event-actions {
    display: flex;
    gap: 6px;
}

.event-btn {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.event-btn:hover {
    background: rgba(0, 212, 255, 0.3);
    transform: scale(1.05);
}

.events-empty {
    color: #808080;
    text-align: center;
    padding: 30px;
    font-size: 15px;
}

/* ============================================
   浮动快捷按钮
   ============================================ */
.floating-actions {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: floatIn 0.8s ease-out;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.floating-btn {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(0, 212, 255, 0.5);
    background: rgba(13, 27, 62, 0.9);
    color: #00d4ff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.2);
}

.floating-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 212, 255, 0.4);
}

/* ============================================
   浮动装饰小球
   ============================================ */
.floating-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
    opacity: 0.3;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #00d4ff, transparent);
    top: 10%;
    left: 10%;
    animation: floatOrb1 15s ease-in-out infinite;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #00ff88, transparent);
    top: 60%;
    right: 10%;
    animation: floatOrb2 18s ease-in-out infinite;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #ff00ff, transparent);
    bottom: 20%;
    left: 40%;
    animation: floatOrb3 20s ease-in-out infinite;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(50px, -50px); }
    50% { transform: translate(-30px, 30px); }
    75% { transform: translate(40px, 20px); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-40px, -30px); }
    66% { transform: translate(30px, 40px); }
}

@keyframes floatOrb3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-50px, -40px); }
}

/* ============================================
   顶部导航栏
   ============================================ */
.top-nav {
    background-color: rgba(17, 24, 55, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 212, 255, 0.1);
}

.nav-brand {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-brand i {
    color: var(--primary);
    font-size: 24px;
}

/* ============================================
   欢迎横幅
   ============================================ */
/* ============================================
   扫描线效果（全局覆盖）
   ============================================ */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 212, 255, 0.03) 2px,
        rgba(0, 212, 255, 0.03) 4px
    );
    pointer-events: none;
    z-index: 9999;
    animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* ============================================
   鼠标跟随光晕
   ============================================ */
.glow-follower {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08), transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease;
    display: none;
}

/* ============================================
   欢迎横幅（全方位升级）
   ============================================ */
.hero {
    background: linear-gradient(135deg, #0a0e27 0%, #0d1b3e 40%, #141c4a 70%, #0a0e27 100%);
    padding: 80px 24px 60px;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* 科技感光晕效果 */
    box-shadow: 
        inset 0 0 150px rgba(0, 212, 255, 0.08),
        0 10px 80px rgba(0, 212, 255, 0.15),
        0 -10px 80px rgba(0, 212, 255, 0.05);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

/* 全息光环 */
.holo-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.15);
    animation: holoPulse 4s ease-in-out infinite;
    pointer-events: none;
}

.ring-1 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        inset 0 0 80px rgba(0, 212, 255, 0.05),
        0 0 80px rgba(0, 212, 255, 0.05);
}

.ring-2 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: rgba(0, 255, 136, 0.1);
    animation-delay: -2s;
    box-shadow: 
        inset 0 0 60px rgba(0, 255, 136, 0.03),
        0 0 60px rgba(0, 255, 136, 0.03);
}

@keyframes holoPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
}

/* 数据流装饰线 */
.data-line {
    position: absolute;
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    animation: dataFlow 3s linear infinite;
}

.data-line-1 { top: 20%; }
.data-line-2 { bottom: 20%; animation-delay: -1.5s; }

@keyframes dataFlow {
    0% { transform: scaleX(0); opacity: 0; }
    50% { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(0); opacity: 0; }
}

/* 角落V角装饰 */
.corner-bracket {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: rgba(0, 212, 255, 0.4);
    opacity: 0.6;
}

.top-left {
    top: 15px;
    left: 15px;
    border-top: 2px solid;
    border-left: 2px solid;
}

.top-right {
    top: 15px;
    right: 15px;
    border-top: 2px solid;
    border-right: 2px solid;
}

.bottom-left {
    bottom: 15px;
    left: 15px;
    border-bottom: 2px solid;
    border-left: 2px solid;
}

.bottom-right {
    bottom: 15px;
    right: 15px;
    border-bottom: 2px solid;
    border-right: 2px solid;
}

/* 状态标签 */
.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 20px;
    font-size: 12px;
    letter-spacing: 2px;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { border-color: rgba(0, 212, 255, 0.3); }
    50% { border-color: rgba(0, 212, 255, 0.8); }
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
    animation: dotBlink 1.5s ease-in-out infinite;
}

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

.status-text {
    color: #00ff88;
}

/* 数字时钟 */
/* 欢迎语 */
.hero-welcome {
    font-size: 28px;
    color: #ffffff;
    letter-spacing: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    text-shadow: 
        0 0 20px rgba(0, 212, 255, 0.6),
        0 0 40px rgba(0, 212, 255, 0.3);
    animation: welcomeFadeIn 1s ease-out;
    position: relative;
    display: inline-block;
}

/* 欢迎语下发光横条 */
.hero-welcome::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, #00ff88, transparent);
    animation: welcomeBar 2s ease-in-out infinite;
}

@keyframes welcomeBar {
    0%, 100% { opacity: 0.5; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.05); }
}

@keyframes welcomeFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.digital-clock {
    font-family: 'Courier New', monospace;
    font-size: 72px;
    font-weight: 700;
    letter-spacing: 6px;
    color: #00d4ff;
    text-shadow: 
        0 0 20px rgba(0, 212, 255, 0.6),
        0 0 40px rgba(0, 212, 255, 0.3),
        0 0 80px rgba(0, 212, 255, 0.15);
    margin-bottom: 8px;
    line-height: 1.1;
}

.digital-clock .seconds {
    font-size: 72px;
    color: #00d4ff;
}

/* 日期显示 */
.hero-date {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 3px;
    margin-bottom: 16px;
    font-family: 'Courier New', monospace;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 2px;
    min-height: 48px;
    
    /* 流光文字效果 */
    background: linear-gradient(90deg, #00d4ff, #00ff88, #00d4ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-subtitle {
    font-size: 16px;
    opacity: 0.7;
    font-weight: 300;
    letter-spacing: 4px;
    min-height: 24px;
    color: #a0c4e8;
}

/* 科技装饰横条 */
.tech-bar {
    width: 200px;
    height: 3px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 2px;
    margin: 20px auto;
    overflow: hidden;
}

.tech-bar-inner {
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    border-radius: 2px;
    animation: techBarLoader 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

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

/* 数据指标 */
.hero-metrics {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 24px;
}

.metric-item {
    text-align: center;
}

.metric-value {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: 700;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.metric-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    margin-top: 2px;
}

/* ============================================
   每日关注专区
   ============================================ */
.daily-focus {
    background: linear-gradient(135deg, rgba(0, 20, 50, 0.8), rgba(10, 5, 40, 0.8));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.daily-focus::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, #845ef7, #ff6b6b, transparent);
    animation: focusSlide 4s ease-in-out infinite;
}

@keyframes focusSlide {
    0% { background-position: 0% 0; }
    100% { background-position: 400% 0; }
    background-size: 400% 100%;
}

.daily-focus-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.daily-focus-header h2 {
    font-size: 20px;
    color: #00d4ff;
    letter-spacing: 4px;
    font-weight: 600;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.daily-focus-header h2 i {
    margin-right: 8px;
}

.focus-subtitle {
    font-size: 13px;
    color: rgba(0, 212, 255, 0.6);
    letter-spacing: 2px;
    padding: 4px 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
}

.focus-items {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.3) transparent;
}

.focus-items::-webkit-scrollbar {
    height: 4px;
}

.focus-items::-webkit-scrollbar-track {
    background: transparent;
}

.focus-items::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 4px;
}

.focus-card {
    flex: 0 0 auto;
    width: 100px;
    padding: 16px 8px;
    background: rgba(17, 24, 55, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.focus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 14px;
    border: 1px solid transparent;
    background: var(--card-accent) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.focus-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-accent);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 20px color-mix(in srgb, var(--card-accent) 30%, transparent);
}

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

.focus-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
    transition: transform 0.3s ease;
}

.focus-card:hover .focus-icon {
    transform: scale(1.15);
}

.focus-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
    font-weight: 500;
}

/* 每日关注弹窗 */
.focus-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.focus-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.focus-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: linear-gradient(145deg, #111837, #0a0e27);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.15);
}

.focus-panel.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.focus-panel-header {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    background: rgba(0, 0, 0, 0.3);
}

.focus-panel-icon {
    font-size: 28px;
    margin-right: 12px;
}

.focus-panel-header h3 {
    flex: 1;
    font-size: 20px;
    color: #00d4ff;
    letter-spacing: 3px;
}

.focus-panel-header .close-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
    padding: 4px;
}

.focus-panel-header .close-btn:hover {
    color: #ff6b6b;
}

.focus-panel-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(80vh - 70px);
}

.focus-panel-body::-webkit-scrollbar {
    width: 4px;
}

.focus-panel-body::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 4px;
}

/* 每日关注 - 新闻列表 */
.news-item {
    display: flex;
    align-items: flex-start;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border-left: 3px solid var(--accent, #00d4ff);
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.news-item .news-icon {
    font-size: 24px;
    margin-right: 14px;
    flex-shrink: 0;
}

.news-item .news-content {
    flex: 1;
}

.news-item .news-title {
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.4;
}

.news-item .news-source {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* 每日关注 - 球赛 */
.match-card {
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

.match-card .match-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}

.match-card .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.match-card .team .team-icon {
    font-size: 28px;
}

.match-card .team .team-name {
    font-size: 13px;
    color: #ccc;
}

.match-card .vs {
    font-size: 20px;
    font-weight: 700;
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.match-card .match-info {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

.match-card .match-time {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 16px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
    color: #00d4ff;
}

/* 每日关注 - 热搜榜 */
.hot-topic {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hot-topic:hover {
    background: rgba(255,255,255,0.07);
    transform: translateX(4px);
}

.hot-topic .rank {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    margin-right: 14px;
    flex-shrink: 0;
}

.hot-topic .rank.top-1 { background: #ff6b6b; color: #fff; }
.hot-topic .rank.top-2 { background: #fcc419; color: #fff; }
.hot-topic .rank.top-3 { background: #ff922b; color: #fff; }
.hot-topic .rank.normal { background: rgba(0, 212, 255, 0.15); color: #00d4ff; }

.hot-topic .topic-text {
    flex: 1;
    font-size: 14px;
    color: #ddd;
}

.hot-topic .hot-tag {
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 10px;
    color: #fff;
}

.hot-tag.hot { background: #ff6b6b; }
.hot-tag.new { background: #51cf66; }
.hot-tag.boom { background: #845ef7; }

/* 每日关注 - 其他项目通用卡片 */
.focus-item-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.focus-item-card:hover {
    background: rgba(255,255,255,0.07);
    transform: translateX(4px);
    border-color: var(--card-accent, #00d4ff);
}

.focus-item-card .item-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.focus-item-card .item-info {
    flex: 1;
}

.focus-item-card .item-name {
    color: #e0e0e0;
    font-size: 15px;
    font-weight: 500;
}

.focus-item-card .item-desc {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    margin-top: 2px;
}

.focus-item-card .item-action {
    color: #ffffff;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

.focus-item-card:hover .item-action {
    opacity: 1;
}

.trending-item:hover {
    background: rgba(255,255,255,0.08) !important;
    transform: translateX(4px);
}

.match-card:hover {
    background: rgba(255,255,255,0.07) !important;
}

/* ============================================
   主容器
   ============================================ */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    position: relative;
    z-index: 1;
}

/* 卡片进入动画 */
.card {
    animation: cardEntry 0.5s ease-out;
    animation-fill-mode: backwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

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

/* ============================================
   功能卡片网格
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: linear-gradient(145deg, #111837 0%, #0d1b3e 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(0, 212, 255, 0.1);
    
    /* 科技感发光效果 */
    position: relative;
    overflow: hidden;
}

/* 卡片上方发光横条 */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, #00ff88, transparent);
    transition: left 0.6s ease;
}

.card:hover::before {
    left: 100%;
}

/* 卡片V角装饰（悬停显示）*/
.card-corner {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 16px;
    height: 16px;
    border-bottom: 2px solid rgba(0, 212, 255, 0);
    border-right: 2px solid rgba(0, 212, 255, 0);
    transition: all 0.3s ease;
    pointer-events: none;
}

.card:hover .card-corner {
    border-bottom-color: rgba(0, 212, 255, 0.5);
    border-right-color: rgba(0, 212, 255, 0.5);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #00d4ff;
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.3), 0 0 30px rgba(0, 212, 255, 0.4);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(145deg, #1a2744, #0d1b3e);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover .card-icon {
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transform: scale(1.1);
}

/* 图标全息扫描效果 */
.card:hover .card-icon::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    animation: iconScan 1s ease-in-out infinite;
}

@keyframes iconScan {
    0% { top: -100%; }
    100% { top: 100%; }
}

.card-icon i {
    font-size: 28px;
    color: #00d4ff;
    transition: all 0.3s ease;
}

.card:hover .card-icon i {
    color: #00ff88;
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.5));
}

.card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.card:hover h3 {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* ============================================
   功能面板
   ============================================ */
.panel-container {
    position: relative;
}

.panel {
    display: none;
    background: linear-gradient(145deg, #111837 0%, #0d1b3e 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 212, 255, 0.1);
    animation: panelEntry 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
}

.panel.active {
    display: block;
}

@keyframes panelEntry {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.05), transparent);
    position: relative;
}

.panel-header h2 {
    font-size: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.panel.active .panel-header h2 {
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.panel-header h2 i {
    color: var(--primary);
}

.close-btn {
    width: 36px;
    height: 36px;
    background-color: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background-color: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

.panel-body {
    padding: 24px;
}

/* ============================================
   按钮样式
   ============================================ */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
    animation: btnGlow 2s ease-in-out infinite;
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3); }
    50% { box-shadow: 0 4px 24px rgba(0, 212, 255, 0.6), 0 0 30px rgba(0, 212, 255, 0.3); }
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00e5ff 0%, #00aadd 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.4);
    animation: none;
}

.btn-secondary {
    background-color: #f1f5f9;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

.btn-icon {
    padding: 8px 12px;
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-icon:hover {
    background-color: var(--hover-bg);
    border-color: var(--primary);
}

/* ============================================
   输入框
   ============================================ */
.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.input-group input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    background-color: rgba(13, 27, 62, 0.5);
    transition: all 0.2s;
    
    /* 科技感发光边框 */
    box-shadow: inset 0 0 10px rgba(0, 212, 255, 0.05);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--shadow);
}

/* ============================================
   提示文字
   ============================================ */
.hint {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
    font-size: 14px;
}

/* ============================================
   天气样式
   ============================================ */
.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.weather-card {
    background-color: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.2s;
}

.weather-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.weather-date {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.weather-icon {
    font-size: 36px;
    margin: 8px 0;
}

.weather-temp {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 8px 0;
}

.weather-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   课程表样式
   ============================================ */
.schedule-info {
    background-color: var(--hover-bg);
    border: 1px solid var(--primary-light);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.schedule-info i {
    color: var(--primary);
    margin-right: 6px;
}

.schedule-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.schedule-table th,
.schedule-table td {
    border: 1px solid var(--border);
    padding: 12px 8px;
    text-align: center;
    min-width: 80px;
}

.schedule-table th {
    background-color: #f1f5f9;
    color: var(--text-primary);
    font-weight: 600;
}

.schedule-table .time-cell {
    background-color: #fafbfc;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 12px;
}

.schedule-table td input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
    color: var(--text-primary);
    background-color: transparent;
    transition: all 0.2s;
}

.schedule-table td input:hover {
    background-color: var(--bg-card);
    border-color: var(--border);
}

.schedule-table td input:focus {
    outline: none;
    background-color: var(--bg-card);
    border-color: var(--primary);
}

/* ============================================
   辅导班样式
   ============================================ */
.tutoring-list {
    margin-top: 20px;
    display: grid;
    gap: 12px;
}

.tutoring-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s;
}

.tutoring-item:hover {
    border-color: var(--primary);
}

.tutoring-info h4 {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 6px;
    font-weight: 600;
}

.tutoring-info p {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 3px 0;
}

.tutoring-info i {
    color: var(--primary);
    margin-right: 4px;
    width: 14px;
}

/* ============================================
   日历样式
   ============================================ */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 8px;
}

.calendar-header h3 {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day-header {
    text-align: center;
    padding: 12px 4px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    background-color: #f1f5f9;
    border-radius: 6px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: var(--text-primary);
}

.calendar-day:hover {
    border-color: var(--primary);
    background-color: var(--hover-bg);
}

.calendar-day.today {
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    color: #0a0e27;
    border-color: #00d4ff;
    font-weight: 700;
}

.calendar-day.has-event {
    position: relative;
    border-color: #ff6b9d;
    background-color: rgba(255, 107, 157, 0.1);
}

.calendar-day.has-event:hover {
    background-color: rgba(255, 107, 157, 0.2);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
}

.event-dot {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #ff6b9d;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 107, 157, 0.6);
}

.calendar-day.other-month {
    color: var(--text-muted);
    background-color: #fafbfc;
}

/* ============================================
   记事本样式
   ============================================ */
.notepad-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.note-area {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background-color: #fafbfc;
    resize: vertical;
    line-height: 1.6;
    transition: all 0.2s;
}

.note-area:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 3px var(--shadow);
}

.notes-list {
    margin-top: 20px;
    display: grid;
    gap: 10px;
}

.note-item {
    padding: 14px 18px;
    background-color: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.note-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.note-item h4 {
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 4px;
    font-weight: 600;
}

.note-item p {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.note-item .note-date {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 6px;
}

/* ============================================
   页脚
   ============================================ */
.footer {
    text-align: center;
    padding: 30px 24px;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid var(--border);
    background-color: rgba(17, 24, 55, 0.8);
    margin-top: 40px;
    
    /* 科技感 */
    box-shadow: 0 -4px 20px rgba(0, 212, 255, 0.05);
}

/* ============================================
   浅色模式
   ============================================ */
body.light-mode {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #e3f2fd 100%);
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .nav-brand {
    color: #1976d2;
}

body.light-mode .nav-time {
    color: #666;
}

body.light-mode .card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .card h3 {
    color: #333;
}

body.light-mode .card p {
    color: #666;
}

body.light-mode .panel {
    background: rgba(255, 255, 255, 0.95);
}

body.light-mode .upcoming-events {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 212, 255, 0.5);
}

body.light-mode .event-item {
    background: rgba(0, 212, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.3);
}

body.light-mode .floating-btn {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 212, 255, 0.5);
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .hero {
        padding: 40px 20px;
    }
    
    .main-container {
        padding: 30px 16px;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .card {
        padding: 20px 16px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
    }
    
    .card-icon i {
        font-size: 22px;
    }
    
    .panel-body {
        padding: 16px;
    }
    
    .input-group {
        flex-direction: column;
    }
}

/* ============================================
   新闻详情弹窗
   ============================================ */
.news-detail-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}
.news-detail-overlay.active {
    display: block;
}

.news-detail-panel {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90%, 700px);
    max-height: 80vh;
    background: linear-gradient(145deg, #0f1535, #1a2045);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 16px;
    z-index: 10002;
    overflow: hidden;
    animation: slideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 212, 255, 0.05);
}
.news-detail-panel.active {
    display: block;
}

.news-detail-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border: none;
    font-size: 18px;
}
.news-detail-close:hover {
    background: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    transform: rotate(90deg);
}

.news-detail-body {
    padding: 32px 28px;
    overflow-y: auto;
    max-height: 80vh;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.2) transparent;
}
.news-detail-body::-webkit-scrollbar {
    width: 4px;
}
.news-detail-body::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 2px;
}

.news-detail-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}
.news-detail-icon {
    font-size: 48px;
    margin-bottom: 12px;
    animation: float 3s ease-in-out infinite;
}
.news-detail-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}
.news-detail-source {
    font-size: 14px;
    color: rgba(0, 212, 255, 0.7);
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.news-detail-text {
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.88);
    text-align: justify;
}
.news-detail-text p {
    margin-bottom: 16px;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

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