/* ============================================================
   Stone Vessels — Guide（长文阅读 · /stories/stone-vessels）
   令牌：沿用 Cormorant + Source Sans；不写 :root
   ============================================================ */

.page-stone-guide {
    --sg-ink: #1c1916;
    --sg-muted: #6b635a;
    --sg-line: rgba(28, 25, 22, 0.12);
    --sg-paper: #f7f3ec;
    --sg-paper-deep: #efe8dc;
    --sg-accent: #8a6a45;
    --sg-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sg-sans: "Source Sans 3", "Segoe UI", sans-serif;
    --sg-pad-x: clamp(20px, 4vw, 48px);
    background: var(--sg-paper);
    color: var(--sg-ink);
    font-family: var(--sg-sans);
}

.sg-kicker {
    margin: 0 0 12px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sg-accent);
}

/* ── Hero 壳层；媒体 Ken Burns = stories_hero_ken_burns.css ─── */
.sg-hero {
    position: relative;
    min-height: min(72vh, 640px);
    display: flex;
    align-items: flex-end;
    color: #f4efe8;
    overflow: hidden;
}

.sg-hero__copy {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    padding: clamp(48px, 8vw, 96px) var(--sg-pad-x) clamp(40px, 6vw, 72px);
}

.sg-hero__copy .sg-kicker {
    color: rgba(232, 214, 184, 0.85);
}

.sg-hero__title {
    margin: 0 0 18px;
    font-family: var(--sg-serif);
    font-weight: 400;
    font-size: clamp(2.2rem, 5.2vw, 3.4rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.sg-hero__title-line {
    display: block;
}

.sg-hero__lead {
    margin: 0;
    max-width: 34em;
    font-size: clamp(1.02rem, 1.5vw, 1.15rem);
    line-height: 1.55;
    color: rgba(244, 239, 232, 0.88);
}

/* ── Layout：目录 + 正文 ──────────────────────────────────── */
.sg-layout {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 72px) var(--sg-pad-x) clamp(24px, 4vw, 40px);
}

.sg-toc {
    position: sticky;
    top: 96px;
    padding: 18px 0;
}

.sg-toc__label {
    margin: 0 0 14px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sg-muted);
}

.sg-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.sg-toc__list a {
    color: var(--sg-ink);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.35;
    border-bottom: 1px solid transparent;
}

.sg-toc__list a:hover,
.sg-toc__list a:focus-visible {
    border-bottom-color: var(--sg-accent);
    color: var(--sg-accent);
}

.sg-main {
    min-width: 0;
}

/* ── Sections ─────────────────────────────────────────────── */
.sg-section {
    margin: 0 0 clamp(48px, 7vw, 80px);
    padding: 0 0 clamp(40px, 5vw, 64px);
    border-bottom: 1px solid var(--sg-line);
    scroll-margin-top: 88px;
}

.sg-section:last-of-type {
    border-bottom: 0;
}

.sg-section__heading {
    margin: 0 0 20px;
    font-family: var(--sg-serif);
    font-weight: 500;
    font-size: clamp(1.65rem, 2.8vw, 2.2rem);
    line-height: 1.2;
}

.sg-section__sub {
    margin: 28px 0 12px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.sg-section__p {
    margin: 0 0 1.1em;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #2a2622;
    max-width: 40em;
}

.sg-section__p:last-child {
    margin-bottom: 0;
}

.sg-callout {
    margin: 0 0 1.25em;
    padding: 18px 20px;
    border-left: 3px solid var(--sg-accent);
    background: var(--sg-paper-deep);
    font-family: var(--sg-serif);
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-style: italic;
    line-height: 1.45;
    color: var(--sg-ink);
}

.sg-bullets {
    margin: 0 0 1.2em;
    padding-left: 1.2em;
    max-width: 42em;
}

.sg-bullets li {
    margin: 0 0 0.75em;
    line-height: 1.6;
    color: #2a2622;
}

.sg-advice {
    margin: 1.2em 0 0;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--sg-line);
    font-size: 0.98rem;
    line-height: 1.6;
    max-width: 42em;
}

.sg-steps {
    list-style: none;
    margin: 1.4em 0 0;
    padding: 0;
    display: grid;
    gap: 16px;
    counter-reset: sg-step;
}

.sg-steps__item {
    counter-increment: sg-step;
    padding: 18px 18px 18px 56px;
    position: relative;
    background: #fff;
    border: 1px solid var(--sg-line);
}

.sg-steps__item::before {
    content: counter(sg-step, decimal-leading-zero);
    position: absolute;
    left: 16px;
    top: 18px;
    font-family: var(--sg-serif);
    font-size: 1.15rem;
    color: var(--sg-accent);
}

.sg-steps__title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 600;
}

.sg-steps__text {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--sg-muted);
}

/* ── Table ────────────────────────────────────────────────── */
.sg-table-wrap {
    margin: 1.5em 0 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--sg-line);
    background: #fff;
}

.sg-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.sg-table th,
.sg-table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--sg-line);
    line-height: 1.5;
}

.sg-table thead th {
    background: var(--sg-paper-deep);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--sg-muted);
}

.sg-table tbody th {
    font-weight: 600;
    white-space: nowrap;
    color: var(--sg-ink);
}

.sg-table tbody tr:last-child th,
.sg-table tbody tr:last-child td {
    border-bottom: 0;
}

/* ── Figures ────────────────────────────────────────────────
   ⚠ aspect-ratio / background 只挂在 img，禁止挂在 picture：
   否则 picture=4:3、img=16:9 时会出现「上图 + 下空白米色块」。
   三端：宽度 100%；裁切由 object-fit；源图由 landing_picture 三端 sources。
   ──────────────────────────────────────────────────────────── */
.sg-figure {
    margin: 1.5em 0 0;
    max-width: 100%;
}

.sg-figure__picture {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    line-height: 0; /* 去掉替换元素底缝 */
}

.sg-figure__image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    background: var(--sg-paper-deep);
}

.sg-figure__caption {
    margin: 10px 0 0;
    font-size: 0.88rem;
    color: var(--sg-muted);
    font-style: italic;
    line-height: 1.4;
}

.sg-section--figure-right,
.sg-section--figure-left {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(24px, 3vw, 40px);
    align-items: start;
}

.sg-section--figure-left {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.sg-section--figure-left .sg-figure {
    order: -1;
    margin-top: 0;
}

.sg-section--figure-right .sg-figure {
    margin-top: 0;
}

.sg-section--figure-below .sg-figure {
    margin-top: 1.75em;
}

.sg-section--figure-below .sg-figure__image {
    aspect-ratio: 16 / 9;
}

.sg-disclaimer {
    margin: 0 0 8px;
    padding: 16px 0 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--sg-muted);
    max-width: 46em;
}

/* ── CTA ──────────────────────────────────────────────────── */
.sg-cta {
    padding: clamp(48px, 6vw, 72px) var(--sg-pad-x);
    background: #171512;
    color: #f4efe8;
    text-align: center;
}

.sg-cta__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    justify-content: center;
    align-items: center;
}

.sg-cta__primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    background: #f4efe8;
    color: #171512;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.sg-cta__primary:hover,
.sg-cta__primary:focus-visible {
    background: #fff;
}

.sg-cta__secondary {
    color: rgba(244, 239, 232, 0.9);
    text-decoration: none;
    border-bottom: 1px solid rgba(244, 239, 232, 0.45);
    padding-bottom: 2px;
}

.sg-cta__secondary:hover,
.sg-cta__secondary:focus-visible {
    border-bottom-color: #f4efe8;
}

/* ── Pad ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .sg-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .sg-toc {
        position: static;
        padding: 0 0 8px;
        border-bottom: 1px solid var(--sg-line);
    }

    .sg-toc__list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    .sg-section--figure-right,
    .sg-section--figure-left {
        grid-template-columns: 1fr;
    }

    .sg-section--figure-left .sg-figure {
        order: 0;
    }
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .sg-hero {
        min-height: min(68vh, 560px);
        align-items: center;
    }

    .sg-hero__copy {
        padding-bottom: 40px;
    }

    .sg-section {
        scroll-margin-top: 72px;
    }

    .sg-table {
        font-size: 0.86rem;
    }
}
