/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* 主要变量 */
:root {
    --bg-color: #0d0d0d;
    --text-color: #ffffff;
    --accent-color: #00c3ff;
    --accent-color-2: #ff00e6;
    --glow-color: rgba(0, 195, 255, 0.6);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --transition-speed: 0.3s;
}

/* 基础页面样式 */
html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
    color: var(--text-color);
    position: relative;
}

/* 粒子背景 */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* 语言切换按钮 */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.lang-btn {
    background-color: rgba(13, 13, 13, 0.7);
    color: var(--text-color);
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 10px rgba(0, 195, 255, 0.2);
}

.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 195, 255, 0.4);
}

.lang-btn.active {
    background: linear-gradient(45deg, rgba(0, 195, 255, 0.2), rgba(255, 0, 230, 0.2));
    box-shadow: 0 0 15px var(--glow-color);
}

/* 时钟容器 */
.clock-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

/* 时间显示区域 */
.time-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-radius: 20px;
    background-color: rgba(13, 13, 13, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px var(--shadow-color);
    transition: all var(--transition-speed) ease;
}

.time-display:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 45px var(--shadow-color);
}

/* 时间样式 */
.time {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-color-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px var(--glow-color);
    letter-spacing: 2px;
    position: relative;
}

/* 日期样式 */
.date {
    font-size: 2rem;
    margin-bottom: 5px;
    font-weight: 500;
    text-shadow: 0 0 10px var(--glow-color);
    letter-spacing: 1px;
}

/* 星期样式 */
.weekday {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 0 0 8px var(--glow-color);
    margin-bottom: 20px;
}

/* 时区选择器样式 */
.timezone-selector {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 300px;
}

.timezone-select {
    width: 100%;
    padding: 10px 15px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    font-size: 0.9rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    margin-bottom: 10px;
    text-align: center;
    text-align-last: center;
    outline: none;
    box-shadow: 0 0 10px rgba(0, 195, 255, 0.2);
}

.timezone-select:hover, .timezone-select:focus {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 195, 255, 0.4);
}

.timezone-select option {
    background-color: #1a1a1a;
    color: var(--text-color);
}

.timezone-name {
    font-size: 1rem;
    color: var(--accent-color);
    opacity: 0.8;
    text-shadow: 0 0 5px var(--glow-color);
    transition: all var(--transition-speed) ease;
}

/* 添加发光动画效果 */
@keyframes glow {
    0% {
        text-shadow: 0 0 10px var(--glow-color);
    }
    50% {
        text-shadow: 0 0 20px var(--glow-color), 0 0 30px var(--glow-color);
    }
    100% {
        text-shadow: 0 0 10px var(--glow-color);
    }
}

.time, .date, .weekday {
    animation: glow 3s infinite ease-in-out;
}

/* 添加脉动动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 0.3s ease-in-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .time {
        font-size: 3.5rem;
    }
    
    .date {
        font-size: 1.5rem;
    }
    
    .weekday {
        font-size: 1.2rem;
    }
    
    .time-display {
        padding: 30px;
    }
    
    .timezone-select {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .timezone-name {
        font-size: 0.9rem;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .time {
        font-size: 2.5rem;
    }
    
    .date {
        font-size: 1.2rem;
    }
    
    .weekday {
        font-size: 1rem;
    }
    
    .time-display {
        padding: 20px;
    }
    
    .timezone-select {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
    
    .timezone-name {
        font-size: 0.8rem;
    }
    
    .language-switcher {
        top: 10px;
        right: 10px;
    }
    
    .lang-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
} 

/* AdSense-friendly educational section */
.edu-section{max-width:1100px;margin:18px auto 0;padding:0 14px}
.edu-inner{background:rgba(0,0,0,0.35);border:1px solid rgba(255,255,255,0.08);border-radius:14px;padding:18px;color:#eaeaea}
.edu-inner h2{margin:0 0 10px 0}
.edu-inner h3{margin:14px 0 8px 0}
.edu-links{display:flex;flex-wrap:wrap;gap:10px;list-style:none;padding:0;margin:0}
.edu-links li a{display:inline-block;padding:8px 12px;border-radius:10px;background:rgba(255,255,255,0.08);color:#fff;text-decoration:none}
.edu-links li a:hover{background:rgba(255,255,255,0.14)}
/* simple pages */
body.page{background:#0d0f14;color:#eaeaea}
.page-wrap{max-width:900px;margin:40px auto;padding:0 16px}
.page-wrap a{color:#9fd0ff}
.breadcrumb{margin-bottom:12px;opacity:0.9}
