* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
}

/* 导航栏样式
.nav-link {
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #6366f1;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -10px;
    min-width: 180px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 10px 0;
    z-index: 100;
} */

/* 时钟部分的容器样式 */
#clock-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* box-shadow: 0 10px 30px rgba(0,0,0,0.1); */
    transition: all 0.3s ease;
}

.clock-container {
    position: relative;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ffffff 0%, #f0f0f0 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 50px rgba(0, 0, 0, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.8),
        inset 0 0 50px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.clock-face {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, #e8e8e8);
    border: 3px solid #333;
}

.hour-markers {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.hour-marker {
    position: absolute;
    width: 4px;
    height: 25px;
    background: #333;
    left: 50%;
    top: 0px;
    transform-origin: 50% 172px;
    transform: translateX(-50%);
}

.minute-markers {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.minute-marker {
    position: absolute;
    width: 2px;
    height: 15px;
    background: #666;
    left: 50%;
    top: 6px;
    transform-origin: 50% 167px;
    transform: translateX(-50%);
}

.numbers {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.number {
    position: absolute;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: center;
    width: 30px;
    height: 30px;
    line-height: 30px;
    transform: translate(-50%, -50%);
}

.hands {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.hand {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform-origin: 50% 100%;
    border-radius: 10px;
}

.hour-hand {
    width: 8px;
    height: 100px;
    background: linear-gradient(to top, #333, #555);
    margin-left: -4px;
    z-index: 3;
}

.minute-hand {
    width: 6px;
    height: 130px;
    background: linear-gradient(to top, #444, #666);
    margin-left: -3px;
    z-index: 4;
}

.second-hand {
    width: 2px;
    height: 140px;
    background: #e74c3c;
    margin-left: -1px;
    z-index: 5;
}

.center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #333 0%, #555 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.digital-time {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    padding: 2px 12px;
    border-radius: 100px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    z-index: 10;
}

/* 新的控制区域样式 */
.clock-controls {
    margin-top: 30px;
    transition: all 0.3s ease;
}

/* 隐藏按钮的样式 */
#fullscreen-button.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* 全屏模式下的样式 */
.fullscreen-mode .clock-container {
    transform: scale(1.3);
    margin: 5vh auto 8vh auto;
    transition: all 0.3s ease;
}

.fullscreen-mode .digital-time {
    font-size: 20px;
    margin-top: 15px;
}

/* 全屏模式下保持控制区域在时钟下方 */
.fullscreen-mode .clock-controls {
    position: absolute;
    bottom: 12vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.date-display {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 16px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* 移动端菜单样式 */
.mobile-menu-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

/* 功能介绍区样式 */
section {
    overflow: hidden;
}

/* 响应式样式调整 */
@media (max-width: 450px) {
    .clock-container {
        width: 300px;
        height: 300px;
    }
    
    .clock-face {
        width: 260px;
        height: 260px;
    }
    
    .hour-marker {
        transform-origin: 50% 127px;
    }
    
    .minute-marker {
        transform-origin: 50% 122px;
    }

    #clock-container {
        padding: 20px;
    }

    .digital-time {
        bottom: 60px;
        font-size: 16px;
    }
}

/* 全屏模式下的样式 */
.clock-container:fullscreen {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 全屏模式下的时钟容器样式 */
#clock-container:-webkit-full-screen {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

#clock-container:-ms-fullscreen {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

#clock-container:-moz-full-screen {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* 全屏模式样式 */
.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    border-radius: 0;
    min-height: 100vh;
    width: 100vw;
    background: #ffffff;
}

/* 页脚链接样式 */
footer a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #6366f1;
}