/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 樱花效果样式 */
.sakura-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.sakura {
    position: absolute;
    width: 10px;
    height: 10px;
    background: pink;
    border-radius: 50% 0 50% 0;
    animation: fall linear infinite;
    opacity: 0.7;
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(255, 182, 193, 0.8);
}

@keyframes fall {
    0% {
        transform: translateY(-100vh) rotate(45deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) rotate(45deg);
        opacity: 0;
    }
}

/* 基础样式设置 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #87CEEB 0%, #1E90FF 50%, #4682B4 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* 初始页面样式 */
.initial-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #87CEEB 0%, #1E90FF 50%, #4682B4 100%);
    transition: all 0.5s ease;
}

/* 头像容器 */
.avatar-container {
    margin-bottom: 2rem;
}

/* 头像样式 */
.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    object-fit: cover;
}

.avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.8);
}

/* 动态文字样式 */
.dynamic-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* 博客页面样式 */
.blog-page {
    background: linear-gradient(135deg, #87CEEB 0%, #1E90FF 50%, #4682B4 100%);
    min-height: 100vh;
}

/* 侧边栏导航样式 */
.sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.sidebar-header h2 {
    color: #1E90FF;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
}

.sidebar-nav {
    padding: 2rem 0;
}

.sidebar-link {
    display: block;
    padding: 1rem 2rem;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border-left: 4px solid transparent;
}

.sidebar-link:hover {
    background: rgba(30, 144, 255, 0.1);
    color: #1E90FF;
    border-left-color: #1E90FF;
    transform: translateX(5px);
}

/* 侧边栏开关按钮 */
.sidebar-toggle {
    position: fixed;
    left: 20px;
    top: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: all 0.3s ease;
    color: #1E90FF;
}

.sidebar-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.3);
}

/* 主内容区域样式 */
.main-container {
    transition: all 0.3s ease;
}

.sidebar.open + .main-container {
    margin-left: 280px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar.open + .main-container {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        position: fixed;
    }
}

/* 时间和日期显示样式 */
.time-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.time-display {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.date-display {
    font-size: 1.2rem;
    color: #666;
}

/* 日历样式 */
.calendar-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.calendar-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.calendar-nav {
    background: #667eea;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-nav:hover {
    background: #5568d3;
    transform: scale(1.05);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    text-align: center;
    padding: 0.5rem;
    font-weight: bold;
    color: #666;
}

.calendar-date {
    background: #f0f0f0;
    border-radius: 5px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.calendar-date:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.calendar-date.today {
    background: #667eea;
    color: #fff;
    font-weight: bold;
}

.calendar-date.holiday {
    background: #ff6b6b;
    color: #fff;
    font-weight: bold;
}

.calendar-date.birthday {
    background: #4ecdc4;
    color: #fff;
    font-weight: bold;
}

/* 主要内容样式 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 博客头部样式 */
.blog-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    color: #fff;
}

.blog-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    object-fit: cover;
    transition: all 0.3s ease;
}

.blog-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.8);
}

.blog-header-text {
    text-align: center;
}

.blog-header-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: #fff;
    border-bottom: none;
}

.blog-header-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-style: italic;
}

/* 通用章节样式 */
section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

section h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

/* 座右铭样式 */
.motto-section {
    text-align: center;
}

.motto {
    font-size: 1.5rem;
    font-style: italic;
    color: #666;
    margin: 0;
}

/* 时间线样式 */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: #667eea;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-icon {
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 20px;
    height: 20px;
    background: #667eea;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #667eea;
}

.timeline-content {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

/* 梦想样式 */
.dream-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* 目标大学样式 */
.university-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.university-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.university-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.university-item h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.university-item p {
    color: #555;
    line-height: 1.6;
}

/* 书单样式 */
.books-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.book-item {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    font-weight: 600;
    color: #667eea;
    cursor: pointer;
}

.book-item:hover {
    background: #667eea;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 书单描述样式 */
.books-description {
    margin-top: 1.5rem;
    font-style: italic;
    color: #666;
    text-align: center;
    font-size: 1.1rem;
}

/* 项目样式 */
.projects-list {
    list-style: none;
    padding-left: 0;
}

.projects-list li {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    color: #555;
    font-weight: 600;
}

.projects-list li:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.projects-description {
    margin-top: 1.5rem;
    font-style: italic;
    color: #666;
    text-align: center;
    font-size: 1.1rem;
}

/* 日历日期样式增强 */
.calendar-date {
    position: relative;
}

.calendar-date .holiday-name {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #ff6b6b;
    font-weight: bold;
    white-space: nowrap;
}

.calendar-date .birthday-name {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #4ecdc4;
    font-weight: bold;
    white-space: nowrap;
}

/* 联系方式样式 */
.contact-info {
    margin-bottom: 2rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #555;
}

.contact-info a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: #5568d3;
    text-decoration: underline;
}

/* 标签样式 */
.tags-section h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: #667eea;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag:hover {
    background: #5568d3;
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

/* 音乐控制按钮样式 */
.music-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1001;
}

.music-btn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    color: #1E90FF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.music-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 页脚样式 */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    color: #666;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .time-display {
        font-size: 2rem;
    }

    .calendar-grid {
        gap: 0.25rem;
    }

    .calendar-date {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .university-container {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 1rem;
    }

    section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .avatar {
        width: 150px;
        height: 150px;
    }

    .dynamic-text {
        font-size: 1.2rem;
    }

    .nav-title {
        font-size: 1.5rem;
    }

    .time-display {
        font-size: 1.5rem;
    }

    .calendar-title {
        font-size: 1.2rem;
    }
}