/* ============================================================
   英文内容页版式（/en/poets、/en/journey 共用）
   仅提供英文排版的阅读宽度、时间轴、作品卡、行迹图与站点网格；
   配色、字体、纸面质感全部沿用 css/themes 中的既有令牌，不另立视觉体系。
   依赖：css/mobile-optimization.css（含 colors/typography/footer 组件）
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg-paper, #F7F3E9);
    color: var(--ink-black, #2B2620);
    font-family: var(--font-family-secondary, Georgia, 'Times New Roman', serif);
    font-size: 17px;
    line-height: 1.75;
    font-variant-ligatures: common-ligatures;
}

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

a {
    color: var(--primary-dark, #6D3510);
}

a:hover {
    color: var(--accent-cinnabar, #A63A2B);
}

:focus-visible {
    outline: 2px solid var(--accent-cinnabar, #A63A2B);
    outline-offset: 3px;
}

.en-wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 顶部导航（沿用站内墨色/金线语汇） ---------- */
.en-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.4);
    background: rgba(247, 243, 233, 0.96);
}

.en-brand {
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink-black, #2B2620);
}

.en-brand span {
    color: var(--accent-cinnabar, #A63A2B);
}

.en-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.en-nav a {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: #5C5347;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
}

.en-nav a:hover,
.en-nav a[aria-current="page"] {
    color: var(--accent-cinnabar, #A63A2B);
    border-bottom-color: var(--gold-line, #C9A227);
}

/* ---------- 首屏 ---------- */
.en-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 44px;
    align-items: end;
    padding: 56px 0 40px;
}

.en-kicker {
    display: block;
    margin: 0 0 14px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-cinnabar, #A63A2B);
}

.en-h1 {
    margin: 0 0 12px;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.en-dates {
    margin: 0 0 10px;
    font-size: 15px;
    letter-spacing: 0.1em;
    color: var(--primary-dark, #6D3510);
}

.en-epithet {
    margin: 0 0 22px;
    font-size: 15px;
    color: #5C5347;
}

.en-lead {
    margin: 0;
    max-width: 60ch;
    font-size: 17px;
    line-height: 1.8;
    color: #3B342C;
}

.en-figure {
    margin: 0;
    padding: 8px;
    background: #FFFDF7;
    border: 1px solid rgba(201, 162, 39, 0.55);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.08));
}

.en-figure img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.en-figure figcaption {
    padding: 10px 4px 2px;
    font-size: 12px;
    line-height: 1.6;
    color: #6B6154;
}

/* ---------- 事实栏 ---------- */
.en-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 0 0 8px;
    border: 1px solid rgba(201, 162, 39, 0.4);
    background: rgba(201, 162, 39, 0.4);
}

.en-facts div {
    padding: 16px 18px;
    background: #FBF8EF;
}

.en-facts dt {
    margin: 0 0 4px;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7A6E5E;
}

.en-facts dd {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink-black, #2B2620);
}

/* ---------- 章节 ---------- */
.en-main {
    padding-bottom: 24px;
}

.en-section {
    padding: 44px 0 8px;
    border-top: 1px solid rgba(139, 69, 19, 0.12);
}

.en-section-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 0 0 22px;
}

.en-section-head h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--primary-dark, #6D3510);
}

.en-section-head span {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8C8172;
}

.en-prose {
    max-width: 68ch;
}

.en-prose p {
    margin: 0 0 1.1em;
}

.en-prose p:first-child::first-letter {
    float: left;
    margin: 0.06em 0.12em 0 0;
    font-size: 3.2em;
    line-height: 0.82;
    color: var(--accent-cinnabar, #A63A2B);
}

/* ---------- 年表 ---------- */
.en-timeline {
    margin: 0;
    padding: 0 0 0 8px;
    list-style: none;
    border-left: 2px solid rgba(201, 162, 39, 0.45);
}

.en-timeline li {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 20px;
    padding: 0 0 22px 24px;
    position: relative;
}

.en-timeline li::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color, #8B4513);
    border: 2px solid var(--bg-paper, #F7F3E9);
}

.en-timeline .year {
    font-size: 14px;
    letter-spacing: 0.06em;
    color: var(--primary-dark, #6D3510);
}

.en-timeline .event {
    margin: 0;
}

.en-timeline .place {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8C8172;
}

/* ---------- 代表作 ---------- */
.en-works {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.en-work {
    padding: 22px 24px;
    background: rgba(255, 253, 247, 0.9);
    border: 1px solid rgba(139, 69, 19, 0.14);
    border-top: 3px solid var(--gold-line, #C9A227);
}

.en-work .num {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9A8B74;
}

.en-work h3 {
    margin: 8px 0 10px;
    font-size: 1.15rem;
    line-height: 1.35;
    font-weight: 600;
    color: var(--primary-dark, #6D3510);
}

.en-work p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #4A4238;
}

.en-work .prov {
    display: inline-block;
    margin-top: 12px;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #8C8172;
}

/* ---------- 阅读注记 ---------- */
.en-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.en-note {
    padding: 22px 24px;
    background: rgba(201, 162, 39, 0.07);
    border-left: 3px solid var(--accent-cinnabar, #A63A2B);
}

.en-note h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 600;
    color: var(--primary-dark, #6D3510);
}

.en-note p {
    margin: 0;
    font-size: 15px;
    line-height: 1.72;
    color: #4A4238;
}

/* ---------- 行迹图 ---------- */
.en-map-card {
    margin: 0 0 10px;
    padding: 14px;
    background: #FFFDF7;
    border: 1px solid rgba(201, 162, 39, 0.5);
}

.en-route-map {
    width: 100%;
    height: auto;
    display: block;
    background: #FBF7EA;
}

.en-map-caption {
    margin: 10px 2px 0;
    font-size: 12px;
    line-height: 1.6;
    color: #6B6154;
}

.en-legend {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 18px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: #4A4238;
}

.en-legend li {
    display: flex;
    gap: 8px;
    align-items: baseline;
}

.en-legend .n {
    min-width: 18px;
    text-align: right;
    color: var(--accent-cinnabar, #A63A2B);
    font-size: 11px;
}

/* ---------- 站点卡 ---------- */
.en-stations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 6px;
}

.en-station {
    margin: 0;
    background: #FFFDF7;
    border: 1px solid rgba(139, 69, 19, 0.14);
}

.en-station img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.en-station figcaption {
    padding: 16px 18px 18px;
}

.en-station .meta {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8C8172;
}

.en-station h3 {
    margin: 6px 0 8px;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 600;
    color: var(--primary-dark, #6D3510);
}

.en-station .now {
    display: block;
    margin: -4px 0 10px;
    font-size: 12px;
    color: #7A6E5E;
}

.en-station p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.68;
    color: #4A4238;
}

.en-station .poem {
    display: inline-block;
    margin-top: 12px;
    padding: 3px 9px;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--primary-dark, #6D3510);
    background: rgba(201, 162, 39, 0.14);
    border: 1px solid rgba(201, 162, 39, 0.35);
}

/* ---------- 行迹各站原诗：英译在上、中文原文在下 ---------- */
.station-poem {
    margin-top: 12px;
    padding: 10px 12px 9px;
    background: rgba(201, 162, 39, 0.07);
    border-left: 2px solid rgba(201, 162, 39, 0.45);
}

.en-timeline .station-poem .poem-en {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.62;
    color: #5A5147;
    font-style: italic;
}

.en-timeline .station-poem .poem-zh {
    margin: 9px 0 0;
    font-size: 14px;
    line-height: 1.85;
    color: #2E2A24;
    letter-spacing: 0.02em;
}

.en-timeline .station-poem .poem-note {
    margin: 7px 0 0;
    font-size: 11px;
    line-height: 1.5;
    color: #8C8172;
}

.en-timeline .station-poem .poem-partial {
    display: block;
    margin-top: 4px;
    font-style: italic;
}

/* ---------- 页尾引导与页脚 ---------- */
.en-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 34px 0 10px;
    padding: 22px 24px;
    background: rgba(139, 69, 19, 0.05);
    border: 1px solid rgba(139, 69, 19, 0.16);
}

.en-cta p {
    margin: 0;
    max-width: 52ch;
    font-size: 15px;
    color: #4A4238;
}

.en-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: #FFFDF7;
    background: var(--primary-color, #8B4513);
    border: 1px solid var(--primary-dark, #6D3510);
}

.en-btn:hover {
    color: #FFFDF7;
    background: var(--primary-dark, #6D3510);
}

.en-footer {
    margin-top: 46px;
    padding: 26px 24px 12px;
    border-top: 1px solid rgba(201, 162, 39, 0.4);
    text-align: center;
    color: #7A6E5E;
}

.en-footer .note {
    margin: 0 auto 10px;
    max-width: 64ch;
    font-size: 12.5px;
    line-height: 1.7;
}

.en-footer .links {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.en-footer .links a {
    text-decoration: none;
    border-bottom: 1px solid rgba(139, 69, 19, 0.35);
    padding-bottom: 1px;
}

.en-footer .links .sep {
    margin: 0 10px;
    color: #C8B896;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .en-hero {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 36px;
    }

    .en-figure {
        max-width: 560px;
    }

    .en-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .en-legend {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .en-stations {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .en-wrap {
        padding: 0 18px;
    }

    .en-nav {
        padding: 12px 18px;
    }

    .en-nav ul {
        gap: 2px 12px;
    }

    .en-timeline li {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
        padding-left: 18px;
    }

    .en-works,
    .en-notes {
        grid-template-columns: 1fr;
    }

    .en-legend {
        grid-template-columns: 1fr;
    }

    .en-cta {
        padding: 18px;
    }
}

@media print {
    .en-nav,
    .en-btn {
        display: none;
    }

    body {
        background: #fff;
    }
}
