/* 响应式设计 */

/* 大屏幕 (桌面端) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* 中等屏幕 (平板横屏) */
@media (max-width: 1024px) {
    .welcome-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
    
    .countdown-separator {
        font-size: 2.5rem;
    }
    
    .countdown-item {
        min-width: 100px;
        padding: 1.5rem;
    }
    
    .profile-card {
        padding: 1.5rem;
    }
    
    .quote-text {
        font-size: 1.3rem;
    }
}

/* 小屏幕 (平板竖屏) */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2.5rem;
    }
    
    .welcome-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-separator {
        font-size: 2rem;
    }
    
    .countdown-item {
        min-width: 80px;
        padding: 1rem;
    }
    
    .countdown-label {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .holiday-tabs {
        gap: 8px;
    }
    
    .holiday-tab {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .profile-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .profile-avatar img {
        width: 150px;
        height: 150px;
    }
    
    .profile-name {
        font-size: 1.8rem;
    }
    
    .profile-bio {
        font-size: 1rem;
    }
    
    .quote-text {
        font-size: 1.2rem;
    }
    
    .quote-author {
        font-size: 1rem;
    }
    
    .refresh-quote {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* 超小屏幕 (手机) */
@media (max-width: 480px) {
    .hero-section {
        height: 80vh;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .countdown-display {
        gap: 10px;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
    
    .countdown-separator {
        font-size: 1.8rem;
        margin: 0 5px;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 0.8rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
        margin-top: 0.3rem;
    }
    
    .holiday-tabs {
        gap: 6px;
        margin-bottom: 1.5rem;
    }
    
    .holiday-tab {
        padding: 6px 12px;
        font-size: 0.8rem;
        border-radius: 20px;
    }
    
    .holiday-name {
        font-size: 1.2rem;
    }
    
    .profile-card {
        padding: 1rem;
        gap: 1rem;
    }
    
    .profile-avatar img {
        width: 120px;
        height: 120px;
    }
    
    .profile-name {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .profile-bio {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .profile-details {
        align-items: center;
    }
    
    .detail-item {
        font-size: 0.9rem;
    }
    
    .quote-container {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }
    
    .quote-text {
        font-size: 1.1rem;
    }
    
    .refresh-quote {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    /* 调整各区块的内边距 */
    .countdown-section,
    .holiday-section,
    .profile-section,
    .motivation-section {
        padding: 60px 0;
    }
}

/* 横竖屏切换 */
@media (orientation: landscape) and (max-width: 768px) {
    .hero-section {
        height: 100vh;
    }
    
    .countdown-section,
    .holiday-section,
    .profile-section,
    .motivation-section {
        padding: 40px 0;
    }
    
    .countdown-display {
        gap: 15px;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 0.8rem;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
}

/* 高分辨率屏幕适配 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::before {
        background-size: 100% auto;
    }
}

/* 滚动条样式优化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--medium-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-gray);
}

/* 打印样式 */
@media print {
    .hero-section {
        height: auto;
        padding: 2rem 0;
    }
    
    .countdown-section,
    .holiday-section,
    .profile-section,
    .motivation-section {
        padding: 2rem 0;
    }
    
    .holiday-tabs,
    .refresh-quote {
        display: none;
    }
    
    .countdown-item {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
    
    .profile-card {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
    
    .quote-container {
        box-shadow: none;
        border: 1px solid var(--border-color);
        background-color: var(--white);
        color: var(--text-primary);
    }
}