/* reset & base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans CJK SC', 'Helvetica Neue', sans-serif;
    background-color: #fef9f0;
    color: #2c2418;
    line-height: 1.6;
}

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

/* header */
header {
    background-color: #ffffffcc;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e2dcd0;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.logo a {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    color: #a5481a;
    letter-spacing: -0.3px;
}

.logo-en {
    font-size: 0.9rem;
    font-weight: normal;
    color: #7a5a3a;
    margin-left: 8px;
    display: inline-block;
}

/* 语言切换按钮 */
.lang-switch {
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: none;
    border: 1px solid #cbbd9c;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    color: #5c4b32;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background-color: #a5481a;
    border-color: #a5481a;
    color: white;
}

/* 宽屏 Banner (万里长城背景) */
.hero-banner {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1508804185872-d7badad00f7d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center 30%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
}

.banner-text h1 {
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.banner-text p {
    font-size: 1.4rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    max-width: 800px;
    margin: 0 auto;
}

/* 故事卡片网格 */
.story-grid {
    padding: 64px 0;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: #2c2418;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #ede3d4;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #e2dcd0;
}

.card-content {
    padding: 20px 24px 24px;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.card-content p {
    color: #4f3e2c;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background-color: #a5481a;
    color: white;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: 500;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #803a14;
}

/* 故事页面 (复用之前样式) */
.story-container {
    max-width: 880px;
    margin: 48px auto;
    padding: 0 24px;
}

.story-container article {
    background: white;
    border-radius: 32px;
    padding: 32px 40px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.05);
    border: 1px solid #f0e6da;
}

.story-container h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: #2c2418;
}

.story-meta {
    color: #9e7f5e;
    border-bottom: 2px solid #f0e6da;
    padding-bottom: 16px;
    margin-bottom: 32px;
    font-style: italic;
}

.story-container h2 {
    font-size: 1.6rem;
    margin: 40px 0 16px;
    padding-left: 0;
    border-left: 5px solid #a5481a;
    padding-left: 20px;
}

.story-image {
    width: 100%;
    border-radius: 20px;
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: #ede3d4;
}

.story-note {
    background-color: #faf6ef;
    padding: 20px 28px;
    border-radius: 28px;
    margin: 40px 0 20px;
    border-left: 6px solid #a5481a;
    font-size: 0.95rem;
}

.story-nav {
    display: flex;
    justify-content: space-between;
    margin: 40px 0 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 60px;
    border: 1px solid #ede3d4;
}

.story-nav a, .story-nav span {
    text-decoration: none;
    color: #a5481a;
    font-weight: 500;
}

.story-nav .disabled {
    color: #cbbd9c;
    cursor: not-allowed;
}

.back-home {
    background: #f3ede3;
    padding: 6px 20px;
    border-radius: 40px;
}

/* footer */
footer {
    background-color: #2c2418;
    color: #cfc5b4;
    text-align: center;
    padding: 32px 0;
    margin-top: 64px;
    font-size: 0.85rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .hero-banner {
        min-height: 50vh;
    }
    .banner-text h1 {
        font-size: 1.8rem;
    }
    .banner-text p {
        font-size: 1rem;
    }
    .story-container article {
        padding: 24px 20px;
    }
    .story-container h1 {
        font-size: 1.7rem;
    }
    .cards {
        grid-template-columns: 1fr;
    }
    .header-flex {
        flex-direction: column;
        text-align: center;
    }
}