/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #5c8d5a 100%);
    color: #2e7d32;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.container {
    width: 90%;
    max-width: 800px;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* 头部样式 */
.header {
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #1b5e20;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.icons i {
    font-size: 1.8rem;
    color: #4caf50;
    transition: transform 0.3s ease;
}

.icons i:hover {
    transform: translateY(-5px);
    color: #2e7d32;
}

/* 倒计时样式 */
.countdown-container {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
    gap: 1rem;
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.time-box {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border: 2px solid #4caf50;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.time-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(76, 175, 80, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.number {
    font-size: 2.2rem;
    font-weight: bold;
    color: #2e7d32;
    transition: all 0.3s ease;
}

.label {
    font-size: 1.1rem;
    color: #388e3c;
    font-weight: 500;
}

/* 进度条样式 */
.progress-container {
    margin: 3rem 0;
    position: relative;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #2e7d32;
}

.progress-bar {
    height: 20px;
    background-color: rgba(46, 125, 50, 0.2);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #81c784 0%, #4caf50 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.3) 100%
    );
    border-radius: 10px;
}

/* 激励语句样式 */
.motivation-text {
    font-size: 1.4rem;
    margin: 2.5rem 0;
    min-height: 4rem;
    color: #1b5e20;
    padding: 1.2rem;
    background-color: rgba(200, 230, 201, 0.6);
    border-radius: 12px;
    border-left: 5px solid #4caf50;
    font-weight: 500;
    transition: all 0.5s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* 高考期间样式 */
.exam-view {
    display: none;
    padding: 2rem 0;
}

.exam-content {
    animation: fadeIn 1s ease;
}

.exam-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1b5e20;
}

.exam-content p {
    font-size: 1.8rem;
    color: #2e7d32;
    margin-bottom: 1.5rem;
}

.exam-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.exam-icons i {
    font-size: 2.5rem;
    color: #ffc107;
    animation: bounce 2s infinite;
}

.exam-icons i:nth-child(2) {
    animation-delay: 0.3s;
}

.exam-icons i:nth-child(3) {
    animation-delay: 0.6s;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .time-box {
        width: 70px;
        height: 70px;
    }
    
    .number {
        font-size: 1.8rem;
    }
    
    .motivation-text {
        font-size: 1.2rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .countdown-container {
        flex-wrap: wrap;
    }
    
    .countdown-box {
        width: 45%;
        margin-bottom: 1rem;
    }
    
    .time-box {
        width: 60px;
        height: 60px;
    }
    
    .number {
        font-size: 1.6rem;
    }
    
    .label {
        font-size: 1rem;
    }
    
    .exam-content h2 {
        font-size: 2rem;
    }
    
    .exam-content p {
        font-size: 1.5rem;
    }
}
