/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 章节标题 */
.section-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* 欢迎区域 */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #4285f4);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,128L48,144C96,160,192,192,288,186.7C384,181,480,139,576,144C672,149,768,203,864,224C960,245,1056,235,1152,213.3C1248,192,1344,160,1392,144L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom center;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.welcome-title {
    font-family: var(--font-title);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.welcome-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* 打字机效果 */
.dynamic-text {
    border-right: 3px solid var(--white);
    animation: typing 3s steps(30, end), blink-caret 0.75s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
}

/* 倒计时区域 */
.countdown-section {
    padding: 80px 0;
    background-color: var(--white);
}

.holiday-section {
    padding: 80px 0;
    background-color: var(--section-background);
}

/* 倒计时显示 */
.countdown-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    min-width: 120px;
    transition: all var(--transition-fast) ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.countdown-number {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1;
    transition: all var(--transition-fast) ease;
}

.countdown-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.countdown-separator {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 10px;
    animation: pulse 1s infinite;
}

/* 节假日标签 */
.holiday-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.holiday-tab {
    padding: 10px 20px;
    background-color: var(--white);
    color: var(--text-secondary);
    border: 2px solid var(--medium-gray);
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--transition-fast) ease;
    box-shadow: var(--shadow-light);
}

.holiday-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.holiday-tab.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.holiday-name {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    font-weight: 500;
}

/* 个人信息区域 */
.profile-section {
    padding: 80px 0;
    background-color: var(--white);
}

.profile-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: all var(--transition-fast) ease;
    max-width: 800px;
    margin: 0 auto;
    gap: 2rem;
    flex-wrap: wrap;
}

.profile-card:hover {
    box-shadow: var(--shadow-medium);
}

.profile-avatar {
    flex-shrink: 0;
}

.profile-avatar img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    transition: all var(--transition-fast) ease;
    animation: fadeIn 1s ease-out;
}

.profile-avatar img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.profile-info {
    flex: 1;
    min-width: 300px;
}

.profile-name {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.profile-bio {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-label {
    font-weight: 600;
    color: var(--text-primary);
}

.detail-value {
    color: var(--text-secondary);
}

/* 个人信息链接样式 */
.profile-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.profile-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all var(--transition-fast) ease;
    box-shadow: var(--shadow-light);
}

.profile-link:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.profile-link:active {
    transform: translateY(0);
}

/* 每日激励区域 */
.motivation-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), #4285f4);
    color: var(--white);
    text-align: center;
}

.motivation-section .section-title {
    color: var(--white);
}

.motivation-section .section-title::after {
    background-color: var(--white);
}

.quote-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    transition: all var(--transition-fast) ease;
}

.quote-container:hover {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-medium);
}

.quote-text {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.quote-author {
    font-size: 1.2rem;
    opacity: 0.9;
}

.refresh-quote {
    padding: 12px 24px;
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-fast) ease;
    box-shadow: var(--shadow-light);
}

.refresh-quote:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background-color: var(--light-gray);
}

.refresh-quote:active {
    transform: translateY(0);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--white);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeOutIn {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* 平滑过渡类 */
.fade-transition {
    animation: fadeOutIn 0.5s ease;
}

/* 响应式设计基础 */
@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 {
        padding: 1rem;
        min-width: 80px;
    }
    
    .profile-card {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar img {
        width: 150px;
        height: 150px;
    }
    
    .quote-text {
        font-size: 1.2rem;
    }
}