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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #e6b800;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #e6b800;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e6b800;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background: #e6b800;
    color: #1a1a2e;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 184, 0, 0.3);
}

.btn:hover {
    background: #ffcc00;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 184, 0, 0.4);
}

/* 章节样式 */
.section {
    padding: 80px 0;
}

.section-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
}

.section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #1a1a2e;
}

.section-dark .section-title {
    color: #e6b800;
}

/* 介绍部分 */
.intro-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.intro-list {
    margin: 30px 0;
    padding-left: 20px;
}

.intro-list li {
    margin-bottom: 15px;
}

/* 网格布局 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #e6b800;
}

.card-text {
    line-height: 1.7;
    opacity: 0.9;
}

/* 哲学家部分 */
.philosophers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.philosopher-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.philosopher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.philosopher-img {
    height: 200px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.philosopher-placeholder {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.8rem;
    color: #e6b800;
    font-weight: 700;
}

.philosopher-name {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    padding: 20px 20px 5px;
    color: #1a1a2e;
}

.philosopher-dates {
    padding: 0 20px;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.philosopher-desc {
    padding: 0 20px 20px;
    line-height: 1.7;
    color: #555;
}

/* 概念部分 */
.concepts-container {
    max-width: 900px;
    margin: 0 auto;
}

.concept-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #e6b800;
    transition: all 0.3s ease;
}

.concept-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.concept-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #e6b800;
}

.concept-text {
    line-height: 1.7;
    opacity: 0.9;
}

/* 时间线样式 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #e6b800 0%, #1a1a2e 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    padding-right: 50px;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 50px;
}

.timeline-date {
    position: absolute;
    top: 0;
    right: -10px;
    width: 20px;
    height: 20px;
    background: #e6b800;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px #1a1a2e;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -10px;
    right: auto;
}

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 10px;
    right: -10px;
    border: 10px solid transparent;
    border-left-color: white;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
    right: auto;
    border-left-color: transparent;
    border-right-color: white;
}

.timeline-content h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.timeline-content p {
    color: #555;
    line-height: 1.6;
}

/* 资源部分 */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.resource-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.resource-card h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #e6b800;
}

.resource-card ul {
    list-style: none;
}

.resource-card li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.9;
}

.resource-card li:last-child {
    border-bottom: none;
}

.resource-card a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.resource-card a:hover {
    color: #e6b800;
    transform: translateX(5px);
}

.resource-card a::before {
    content: '📚';
    margin-right: 8px;
    font-size: 0.9rem;
}

.resource-card:last-child a::before {
    content: '🔗';
}

/* 页脚样式 */
.footer {
    background: #1a1a2e;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer p {
    margin-bottom: 10px;
    opacity: 0.8;
}

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

    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
        margin-left: 0;
    }

    .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: 10px;
        right: auto;
    }

    .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -10px;
        right: auto;
        border-left-color: transparent;
        border-right-color: white;
    }

    .philosophers-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 150px 0 80px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }

    .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.philosopher-card,
.concept-item,
.timeline-item,
.resource-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1a1a2e;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #16213e;
}