/* ============================================================
   纪念唐山地震 50 周年 - 共用样式
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Serif SC", "Source Han Serif SC", "思源宋体", "宋体", serif;
    color: #2a2a2a;
    background-color: #f5f1ea;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* -------------------- 顶部导航 -------------------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(6px);
    color: #f5f1ea;
    border-bottom: 1px solid rgba(201, 169, 110, 0.3);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.lang-toggle {
    flex-shrink: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 6px 14px;
    color: #f5f1ea;
    background: transparent;
    border: 1px solid rgba(201, 169, 110, 0.6);
    border-radius: 2px;
    cursor: pointer;
    transition: color 0.25s, background 0.25s, border-color 0.25s;
}

.lang-toggle:hover {
    color: #1a1a1a;
    background: #c9a96e;
    border-color: #c9a96e;
}

html.lang-en body {
    font-family: "Noto Serif SC", Georgia, "Times New Roman", serif;
}

.nav-brand {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #c9a96e;
}

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

.nav-links a {
    font-size: 15px;
    letter-spacing: 1px;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.25s, border-color 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #c9a96e;
    border-bottom-color: #c9a96e;
}

/* -------------------- Hero 区 -------------------- */
.hero {
    position: relative;
    height: 70vh;
    min-height: 420px;
    background-image: url("../images/banner.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5f1ea;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(28px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: 6px;
    margin-bottom: 18px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.hero-years {
    font-size: clamp(24px, 4.5vw, 50px);
    letter-spacing: 8px;
    color: #ffffff;
    margin-bottom: 14px;
}

.hero-subtitle {
    font-size: clamp(14px, 1.6vw, 18px);
    letter-spacing: 3px;
    max-width: 720px;
    margin: 0 auto;
    opacity: 0.9;
}

/* -------------------- 通用容器 -------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-title {
    text-align: center;
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: 4px;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 16px;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: #c9a96e;
    margin: 16px auto 0;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 15px;
    letter-spacing: 2px;
    margin-bottom: 48px;
}

.section-block--spaced {
    margin-top: 64px;
    padding-top: 64px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.section-header {
    position: relative;
    z-index: 2;
    margin-bottom: 48px;
}

.section-block .section-title {
    color: #2a2a2a;
    font-weight: 700;
}

.section-block .section-subtitle {
    color: #555;
    margin-bottom: 0;
}
.entry-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.entry-cards--pair {
    grid-template-columns: repeat(2, 1fr);
}

.entry-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

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

.entry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.entry-card:hover img {
    transform: scale(1.06);
}

.entry-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.75) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    color: #f5f1ea;
}

.entry-card-title {
    font-size: 26px;
    letter-spacing: 4px;
    margin-bottom: 6px;
}

.entry-card-desc {
    font-size: 14px;
    letter-spacing: 2px;
    opacity: 0.85;
}

.entry-card--insight {
    cursor: default;
}

a.entry-card--insight {
    cursor: pointer;
}

.entry-card--insight:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.entry-card-visual {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}


/* -------------------- 唐山大地震介绍 -------------------- */
.intro-article {
    max-width: 880px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 3px solid #c9a96e;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.intro-figure {
    margin: 0;
    line-height: 0;
}

.intro-figure img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.intro-figure--video video {
    width: 100%;
    max-height: 520px;
    height: auto;
    display: block;
    background: #1a1a1a;
    object-fit: contain;
}

.intro-text {
    padding: 36px 40px 40px;
    font-size: 16px;
    color: #444;
    line-height: 2;
    letter-spacing: 1px;
    text-align: justify;
}

.intro-lead,
.intro-text > p:not(.intro-stats-title) {
    margin: 0 0 1em;
    text-indent: 2em;
}

.intro-text > p:last-child {
    margin-bottom: 0;
}

.intro-stats-title {
    margin: 0.5em 0 0.75em;
    font-size: 17px;
    font-weight: 600;
    color: #2a2a2a;
    text-indent: 0;
}

.intro-stats {
    list-style: none;
    margin: 0 0 1.5em;
    padding: 0 0 0 2em;
}

.intro-stats li {
    padding: 2px 0;
}

.intro-stats li strong {
    color: #2a2a2a;
    font-weight: 600;
}

.intro-lead strong {
    color: #2a2a2a;
    font-weight: 600;
}

.intro-text .intro-section + .intro-section {
    margin-top: 1.5em;
}

.intro-text .intro-section .intro-stats {
    margin-bottom: 0;
}

html.lang-en .intro-lead,
html.lang-en .intro-text > p:not(.intro-stats-title) {
    text-indent: 0;
}

.rescue-content {
    padding: 48px 48px 52px;
    font-size: 17px;
    color: #444;
    line-height: 2.2;
    letter-spacing: 0.5px;
    text-align: justify;
}

.rescue-section + .rescue-section {
    margin-top: 48px;
    padding-top: 44px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.rescue-content h2 {
    font-size: 22px;
    color: #2a2a2a;
    font-weight: 700;
    letter-spacing: 3px;
    margin: 0 0 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(201, 169, 110, 0.45);
}

.rescue-lead,
.rescue-item p {
    margin: 0;
    text-indent: 2em;
}

.rescue-lead {
    margin-bottom: 32px;
    color: #3a3a3a;
}

.rescue-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rescue-item {
    padding: 22px 28px;
    background: #faf8f4;
    border-radius: 4px;
    border-left: 3px solid #c9a96e;
}

.rescue-item p strong {
    color: #2a2a2a;
    font-weight: 600;
}

html.lang-en .rescue-lead,
html.lang-en .rescue-item p {
    text-indent: 0;
}

@media (max-width: 768px) {
    .intro-text {
        padding: 24px 20px 28px;
        font-size: 15px;
    }

    .rescue-content {
        padding: 28px 20px 32px;
        font-size: 15px;
        line-height: 2;
    }

    .rescue-item {
        padding: 18px 20px;
    }

    .rescue-section + .rescue-section {
        margin-top: 36px;
        padding-top: 32px;
    }
}

/* -------------------- 子页面页头 -------------------- */
.page-header {
    background: #1a1a1a;
    color: #f5f1ea;
    padding: 80px 24px 60px;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: 6px;
    margin-bottom: 14px;
    color: #c9a96e;
}

.page-header p {
    font-size: 16px;
    letter-spacing: 3px;
    opacity: 0.85;
}

/* -------------------- 故事条目（子页面） -------------------- */
.story-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.story-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 3px solid #c9a96e;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}

.story-row:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

.story-media {
    background: #2a2a2a;
    color: #c9a96e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 24px;
    text-align: center;
    letter-spacing: 3px;
    font-size: 14px;
}

.story-media .placeholder-icon {
    font-size: 42px;
    margin-bottom: 12px;
    opacity: 0.85;
}

.story-media--no-photo {
    background: #000;
    color: #b0b0b0;
    letter-spacing: 3px;
    font-size: 20px;
    line-height: 1.8;
}

.story-media--no-photo p {
    margin: 0;
}

.story-media--photo:not(.story-media--photo-contain) {
    padding: 0;
    display: block;
    min-height: 220px;
}

.story-media--photo:not(.story-media--photo-contain) img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

.story-media--photo-contain {
    padding: 16px;
    background: #f5f1ea;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    overflow: visible;
}

.story-media--photo-contain img {
    width: 100%;
    height: auto;
    max-height: 200px;
    min-height: unset;
    object-fit: contain;
    object-position: center;
    display: block;
}

.story-media--video {
    padding: 0;
    display: block;
    min-height: 220px;
    background: #1a1a1a;
    line-height: 0;
}

.story-media--video video {
    width: 100%;
    min-height: 220px;
    max-height: 480px;
    object-fit: contain;
    display: block;
    background: #000;
}

.story-row--video-feature {
    display: block;
}

.story-feature {
    display: flex;
    flex-direction: column;
}

.story-feature-header {
    padding: 28px 32px 0;
}

.story-feature-header .story-name {
    margin-bottom: 0;
    padding-bottom: 18px;
    border-bottom: 2px solid rgba(201, 169, 110, 0.4);
}

.story-feature-video {
    margin: 0;
    line-height: 0;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 24px;
}

.story-feature-video video {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 440px;
    object-fit: contain;
    display: block;
    background: #000;
}

.story-feature-video img {
    width: auto;
    max-width: min(100%, 360px);
    max-height: 280px;
    height: auto;
    object-fit: contain;
    display: block;
    background: transparent;
}

.story-feature-content {
    padding: 28px 32px 32px;
}

.story-brief {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 28px;
    padding: 20px 24px;
    margin-bottom: 28px;
    background: #faf8f4;
    border-radius: 4px;
    border-left: 3px solid #c9a96e;
}

.story-brief-item {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: #555;
    letter-spacing: 1px;
}

.story-section + .story-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.story-section-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: #2a2a2a;
    letter-spacing: 2px;
}

.story-section-text {
    margin: 0;
    font-size: 15px;
    color: #444;
    line-height: 2;
    letter-spacing: 0.5px;
    text-align: justify;
    text-indent: 2em;
}

html.lang-en .story-section-text {
    text-indent: 0;
}

.story-info {
    padding: 28px 32px;
}

.story-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.story-meta {
    color: #888;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.story-details .story-meta {
    margin-bottom: 10px;
    padding-bottom: 0;
    border-bottom: none;
    line-height: 1.8;
}

.story-details .story-meta:last-child {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.story-details .story-meta {
    color: #555;
}

.story-meta-label {
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 2px;
}

.story-text {
    font-size: 15px;
    color: #444;
    line-height: 1.9;
    text-align: justify;
}

.sample-tag {
    display: inline-block;
    background: rgba(201, 169, 110, 0.15);
    color: #8a6f3d;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 2px;
    letter-spacing: 1px;
    margin-left: 10px;
    vertical-align: middle;
}

/* -------------------- 页脚 / 计数器 -------------------- */
.site-footer {
    background: #1a1a1a;
    color: #ccc;
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid rgba(201, 169, 110, 0.2);
}

.visit-counter {
    font-size: 15px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.visit-counter #visit-count {
    color: #c9a96e;
    font-weight: 700;
    font-size: 20px;
    padding: 0 6px;
}

.footer-quote {
    font-size: 13px;
    opacity: 0.7;
    letter-spacing: 4px;
}

/* -------------------- 响应式 -------------------- */
@media (max-width: 768px) {
    .nav-inner {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }

    .nav-brand {
        font-size: 16px;
        letter-spacing: 1px;
    }

    .nav-right {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero {
        height: 56vh;
    }

    .container {
        padding: 50px 16px;
    }

    .entry-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .story-row {
        grid-template-columns: 1fr;
    }

    .story-media {
        min-height: 180px;
    }

    .story-media--photo:not(.story-media--photo-contain) img {
        min-height: 180px;
    }

    .story-media--photo-contain img {
        max-height: 180px;
    }

    .story-info {
        padding: 20px 22px;
    }

    .story-feature-header {
        padding: 20px 22px 0;
    }

    .story-feature-content {
        padding: 20px 22px 24px;
    }

    .story-brief {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 16px 18px;
        margin-bottom: 22px;
    }

    .story-feature-video {
        padding: 16px;
    }

    .story-feature-video video {
        max-height: 240px;
    }

    .story-feature-video img {
        max-width: min(100%, 280px);
        max-height: 220px;
    }

    .story-section + .story-section {
        margin-top: 20px;
        padding-top: 20px;
    }
}
