* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d4af37;
    --secondary-color: #8b4513;
    --text-color: #333;
    --light-bg: #f9f6f2;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

/* ========== 导航栏样式 ========== */
.navbar {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #654321 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo-text {
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 10px;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: var(--transition);
}

/* ========== 响应式菜单 ========== */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 15px 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu-toggle {
        display: flex;
    }
}

/* ========== 容器通用样式 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 首页英雄区域 ========== */
.hero {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 20px;
    gap: 50px;
    min-height: 600px;
}

.hero-content {
    flex: 1;
    animation: slideInLeft 0.8s ease;
}

.hero-title {
    font-size: 72px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 28px;
    color: #654321;
    margin-bottom: 15px;
    font-weight: 500;
}

.hero-info {
    font-size: 18px;
    color: #333;
    margin-bottom: 30px;
    padding: 10px 0;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: #8b4513;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: slideInRight 0.8s ease;
}

.hero-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

/* ========== 通用章节样式 ========== */
.section {
    padding: 80px 20px;
}

.section.hero {
    background-image: url('/libai.jfif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section.bg-light {
    background-color: var(--light-bg);
}

.section-title {
    font-size: 48px;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* ========== 时间轴样式 ========== */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    top: 0;
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: calc(50% + 40px);
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: calc(50% + 40px);
    margin-right: 0;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    border: 4px solid var(--white);
    border-radius: 50%;
    top: 0;
    z-index: 10;
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    color: var(--secondary-color);
    font-size: 20px;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        text-align: left;
    }

    .timeline-dot {
        left: 0;
    }
}

/* ========== 作品卡片网格 ========== */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.work-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.work-image {
    font-size: 60px;
    text-align: center;
    margin-bottom: 20px;
}

.work-card h3 {
    color: var(--secondary-color);
    font-size: 22px;
    margin-bottom: 8px;
}

.work-subtitle {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
}

.work-text {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
    padding: 15px;
    background-color: var(--light-bg);
    border-left: 3px solid var(--primary-color);
    border-radius: 3px;
    font-style: italic;
}

.work-desc {
    color: #888;
    font-size: 14px;
    line-height: 1.6;
}

/* ========== 风格特性框 ========== */
.style-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-box {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-box:hover {
    background-color: var(--light-bg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.feature-box h3 {
    color: var(--secondary-color);
    font-size: 24px;
    margin-bottom: 15px;
}

.feature-box p {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
}

/* ========== 影响内容 ========== */
.influence-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.influence-item {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.influence-item h3 {
    color: var(--secondary-color);
    font-size: 20px;
    margin-bottom: 12px;
}

.influence-item p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

/* ========== 轶事网格 ========== */
.anecdotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.anecdote-card {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.anecdote-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.anecdote-card h3 {
    color: var(--secondary-color);
    font-size: 20px;
    margin-bottom: 15px;
}

.anecdote-card p {
    color: #333;
    font-size: 15px;
    line-height: 1.7;
}

/* ========== 页脚 ========== */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
}

.footer p {
    font-size: 15px;
    margin: 10px 0;
}

/* ========== 动画 ========== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 50px 20px;
        min-height: auto;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-image img {
        width: 200px;
        height: 200px;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .works-grid,
    .style-features,
    .influence-content,
    .anecdotes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .nav-menu {
        gap: 0;
    }

    .section {
        padding: 50px 15px;
    }

    .section-title {
        font-size: 24px;
    }
}
