/* 全局样式 */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --accent-color: #e74c3c;
    --text-color: #333;
    --background-color: #ffffff;
    --transition-speed: 0.3s;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all var(--transition-speed);
    text-align: center;
}

.btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.primary-btn {
    background: var(--primary-color);
}

.secondary-btn {
    background: transparent;
    border: 2px solid white;
}

.secondary-btn:hover {
    background: white;
    color: var(--primary-color);
}

.text-center {
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.section-header p {
    color: #666;
    font-size: 18px;
}

/* 头部样式 */
header {
    background-color: var(--dark-color);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

header.scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    flex-direction: column;
}

header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 0;
}

nav ul {
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
}

nav a:hover, nav a.active {
    background-color: var(--primary-color);
    color: white;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.svg') repeat;
    opacity: 0.1;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: left;
    max-width: 600px;
    margin-right: 30px;
}

.hero-image {
    position: relative;
    flex: 0 0 400px;
}

.blob-shape {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blob-animation 8s ease-in-out infinite alternate;
}

@keyframes blob-animation {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    100% {
        border-radius: 50% 60% 30% 70% / 40% 40% 70% 60%;
    }
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.animated-text {
    position: relative;
    display: inline-block;
}

.animated-text::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    bottom: 0;
    left: 0;
    background-color: white;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.5s ease;
}

.animated-text:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.scroll-down a:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* 特性区域样式 */
.features {
    padding: 100px 0;
    background-color: var(--light-color);
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-box {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed);
    opacity: 0;
    transform: translateY(20px);
}

.feature-box.scrolled {
    opacity: 1;
    transform: translateY(0);
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-box .icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-box p {
    color: #666;
}

/* 引用区域样式 */
.quote {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quote::before {
    content: '"';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 200px;
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

blockquote {
    font-size: 28px;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

blockquote cite {
    display: block;
    margin-top: 20px;
    font-size: 16px;
    opacity: 0.8;
    font-style: normal;
}

/* 关于预览区域样式 */
.about-preview {
    padding: 100px 0;
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.about-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: all var(--transition-speed);
    box-shadow: var(--box-shadow);
    opacity: 0;
    transform: translateY(20px);
}

.about-card.scrolled {
    opacity: 1;
    transform: translateY(0);
}

.about-card:hover {
    transform: translateY(-10px);
    background-color: var(--primary-color);
    color: white;
}

.about-card:hover .about-icon {
    color: white;
}

.about-icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* 经历时间线样式 */
.experience {
    padding: 100px 0;
    background-color: var(--light-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(20px);
}

.timeline-item.scrolled {
    opacity: 1;
    transform: translateY(0);
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 0;
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.timeline-content p {
    color: #666;
}

/* CTA 区域样式 */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 页面头部样式 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.svg') repeat;
    opacity: 0.1;
}

.page-header h2 {
    font-size: 36px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

/* 关于页面样式 */
.about {
    padding: 80px 0;
}

.about-content h3 {
    font-size: 24px;
    margin: 30px 0 20px;
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.about-content p {
    margin-bottom: 20px;
}

/* 兴趣爱好页面样式 */
.hobbies {
    padding: 80px 0;
}

.hobby-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed);
}

.hobby-card:hover {
    transform: translateY(-5px);
}

.hobby-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.hobby-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-color);
    text-align: center;
}

.hobby-card p {
    color: #666;
    margin-bottom: 15px;
}

.hobby-card ul {
    padding-left: 20px;
    list-style-type: disc;
}

.hobby-card li {
    margin-bottom: 5px;
}

/* 读书历程页面样式 */
.books {
    padding: 80px 0;
}

.book-journey {
    max-width: 800px;
    margin: 0 auto;
}

.book-journey h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--dark-color);
    text-align: center;
}

.book-intro {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.book-phase {
    margin-bottom: 40px;
}

.book-phase h4 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.book-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.book-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    transition: transform var(--transition-speed);
}

.book-item:hover {
    transform: translateY(-5px);
}

.book-cover {
    font-size: 40px;
    margin-right: 15px;
}

.book-details h5 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.book-details p {
    font-size: 14px;
    color: #666;
}

.book-outro {
    font-style: italic;
    text-align: center;
    margin-top: 20px;
}

.favorite-quote {
    margin-top: 60px;
}

/* 联系页面样式 */
.contact {
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3, .contact-form h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.contact-method {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-method i {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-method h4 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

/* 页脚样式 */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3, .footer-links h3, .footer-contact h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-about h3::after, .footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-about p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: white;
    font-size: 20px;
    transition: transform var(--transition-speed);
    opacity: 0.8;
}

.social-links a:hover {
    transform: scale(1.2);
    color: var(--primary-color);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.7;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        margin-right: 0;
        margin-bottom: 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .timeline-content {
        width: 100%;
        left: 0 !important;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-dot {
        left: 20px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        align-items: center;
        margin-bottom: 15px;
    }
    
    nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav.active {
        display: block;
        width: 100%;
    }
    
    nav.active ul {
        flex-direction: column;
        align-items: center;
    }
    
    .hero h2 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        margin-bottom: 40px;
    }
    
    blockquote {
        font-size: 22px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 28px;
    }
    
    .page-header h2 {
        font-size: 28px;
    }
    
    .feature-box, .hobby-card, .book-item {
        padding: 20px;
    }
    
    .book-list {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .blob-shape {
        width: 280px;
        height: 280px;
    }
}

/* 动画效果 */
.scroll-animation {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animation.scrolled {
    opacity: 1;
    transform: translateY(0);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* 主题切换按钮 */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--dark-color);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(30deg);
}

body.dark-theme .theme-toggle {
    background-color: var(--light-color);
    color: var(--dark-color);
}

body.dark-theme .theme-toggle i.fa-moon {
    display: none;
}

body.dark-theme .theme-toggle i.fa-sun {
    display: inline-block;
}

.theme-toggle i.fa-sun {
    display: none;
}

/* 暗色主题 */
body.dark-theme {
    --text-color: #ecf0f1;
    --background-color: #1a1a1a;
    --light-color: #2c3e50;
}

body.dark-theme .feature-box,
body.dark-theme .hobby-card,
body.dark-theme .book-item,
body.dark-theme .contact-method,
body.dark-theme .about-card {
    background-color: #2c3e50;
    color: #ecf0f1;
}

body.dark-theme .feature-box p,
body.dark-theme .hobby-card p,
body.dark-theme .book-details p {
    color: #bdc3c7;
}

body.dark-theme .section-header p {
    color: #bdc3c7;
} 