:root {
    --bg: #f4efe6;
    --bg-soft: #fcf8f2;
    --card: #fffaf4;
    --card-strong: #ffffff;
    --ink: #1f1a17;
    --muted: #6f655d;
    --muted-strong: #4f4741;
    --line: #e7dacb;
    --accent: #c95d35;
    --accent-dark: #8d3317;
    --accent-soft: #f3d8bf;
    --sage: #dfe9df;
    --sage-dark: #3f5c4b;
    --shadow-lg: 0 24px 60px rgba(68, 42, 24, 0.12);
    --shadow-md: 0 12px 30px rgba(68, 42, 24, 0.08);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(201, 93, 53, 0.08), transparent 26%),
        radial-gradient(circle at top right, rgba(141, 51, 23, 0.08), transparent 18%),
        linear-gradient(180deg, #f7f2eb 0%, #f3ede4 100%);
    line-height: 1.72;
}

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

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

.site-shell {
    min-height: 100vh;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(16px);
    background: rgba(247, 242, 235, 0.88);
    border-bottom: 1px solid rgba(231, 218, 203, 0.8);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-family: "Noto Serif SC", serif;
    font-size: 1.4rem;
    box-shadow: var(--shadow-md);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.brand-copy strong {
    font-size: 1rem;
    white-space: nowrap;
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted-strong);
    font-size: 0.94rem;
    font-weight: 700;
}

.site-nav a.active,
.site-nav a:hover {
    background: var(--card);
    color: var(--accent-dark);
    box-shadow: 0 8px 18px rgba(68, 42, 24, 0.08);
}

.hero {
    padding: 56px 0 26px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.82fr);
    gap: 22px;
    align-items: stretch;
}

.hero-copy,
.feature-panel,
.prose-card,
.sidebar-card,
.info-block,
.article-card,
.feature-panel-copy,
.library-controls,
.recipe-card {
    background: var(--card);
}

.hero-copy {
    padding: 30px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(231, 218, 203, 0.95);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
.page-title {
    margin: 0;
    font-family: "Noto Serif SC", serif;
    font-size: clamp(2rem, 3.8vw, 3.6rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.hero-lead,
.lead {
    margin: 18px 0 0;
    font-size: 1.05rem;
    color: var(--muted-strong);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
}

.button-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    box-shadow: var(--shadow-md);
}

.button-secondary {
    background: #fff;
    color: var(--accent-dark);
    border: 1px solid var(--line);
}

.hero-points,
.check-list,
.faq-list,
.prose-longform ul {
    padding-left: 20px;
}

.hero-points {
    margin: 20px 0 0;
    color: var(--muted-strong);
}

.hero-media-stack {
    display: grid;
    gap: 16px;
}

.feature-panel {
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(231, 218, 203, 0.95);
}

.feature-panel img,
.article-card img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
}

.feature-panel-copy {
    padding: 22px 24px 24px;
}

.feature-panel-copy span,
.label {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--accent-dark);
    background: var(--accent-soft);
}

.feature-panel-copy h2,
.section-heading h2,
.article-card-copy h2,
.article-card-copy h3,
.prose-card h2,
.prose-card h3,
.sidebar-card h3,
.info-block h3,
.faq-list h3 {
    margin: 0 0 10px;
    font-family: "Noto Serif SC", serif;
    line-height: 1.3;
}

.feature-panel-copy p,
.section-heading p,
.article-card-copy p,
.prose-card p,
.sidebar-card p,
.info-block p,
.faq-list p {
    margin: 0;
    color: var(--muted-strong);
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stats-strip > div {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.stats-strip strong {
    display: block;
    font-size: 1.6rem;
    color: var(--accent-dark);
}

.stats-strip span {
    color: var(--muted);
    font-size: 0.92rem;
}

.section {
    padding: 30px 0 18px;
}

.section-soft {
    padding: 40px 0 28px;
}

.section-heading {
    max-width: 900px;
    margin-bottom: 24px;
}

.section-heading h2 {
    font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.section-heading p:last-child {
    margin-top: 10px;
}

.three-up,
.article-grid,
.category-board,
.footer-grid {
    display: grid;
    gap: 24px;
}

.three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-block,
.sidebar-card,
.prose-card {
    padding: 28px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.article-grid-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.article-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.article-card-copy {
    padding: 24px;
}

.article-card a,
.prose-card a,
.sidebar-card a,
.site-footer a,
.contact-card a {
    color: var(--accent-dark);
    font-weight: 800;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 24px;
    align-items: start;
}

.category-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-board a {
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.category-board strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.category-board span {
    color: var(--muted);
    font-size: 0.95rem;
}

.faq-list {
    display: grid;
    gap: 20px;
    padding-left: 0;
}

.faq-list article {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--card);
    border: 1px solid var(--line);
}

.article-shell {
    padding: 48px 0 34px;
}

.prose-longform {
    max-width: 940px;
}

.prose-longform p,
.prose-longform li {
    color: var(--muted-strong);
}

.prose-longform h2 {
    margin-top: 30px;
    font-size: 1.7rem;
}

.prose-longform h3 {
    margin-top: 20px;
    font-size: 1.2rem;
}

.hero-image {
    margin: 22px 0 10px;
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.table-wrap {
    overflow-x: auto;
    margin: 18px 0;
}

table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: #f7efe5;
    font-weight: 800;
}

.library-controls {
    margin-top: 16px;
    padding: 28px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.search-row {
    display: grid;
    gap: 14px;
}

.search-row input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
    font: inherit;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-row button {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted-strong);
    font: inherit;
    font-weight: 800;
}

.chip-row button.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.results-line {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.94rem;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.recipe-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

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

.recipe-card-copy {
    padding: 20px;
}

.recipe-card h3 {
    margin: 0 0 6px;
    font-size: 1.08rem;
}

.recipe-card p {
    margin: 0 0 10px;
    color: var(--muted-strong);
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-pill {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.recipe-modal.hidden {
    display: none;
}

.recipe-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
}

.recipe-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 12, 8, 0.58);
    backdrop-filter: blur(6px);
}

.recipe-modal-panel {
    position: relative;
    width: min(920px, calc(100% - 24px));
    max-height: calc(100vh - 24px);
    margin: 12px auto;
    overflow: auto;
    border-radius: 28px;
    background: var(--card);
    box-shadow: 0 30px 70px rgba(38, 24, 16, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.recipe-modal-close {
    position: sticky;
    top: 14px;
    left: calc(100% - 58px);
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    font-size: 1.6rem;
    line-height: 1;
}

.recipe-modal-content {
    padding: 6px 24px 24px;
}

.modal-hero {
    display: grid;
    grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.modal-hero img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    border-radius: 22px;
}

.modal-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-copy h2 {
    margin: 0;
    font-size: 2rem;
}

.modal-copy p {
    margin: 0;
    color: var(--muted-strong);
}

.modal-section {
    margin-top: 24px;
}

.modal-section h3 {
    margin: 0 0 10px;
    font-family: "Noto Serif SC", serif;
    font-size: 1.3rem;
}

.modal-list {
    display: grid;
    gap: 10px;
    padding-left: 18px;
}

.modal-list li {
    color: var(--muted-strong);
}

.workflow-box {
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
}

.workflow-box ol {
    margin: 0;
    padding-left: 18px;
}

.workflow-box li {
    margin: 8px 0;
}

.site-footer {
    padding: 46px 0 64px;
    border-top: 1px solid rgba(231, 218, 203, 0.9);
}

.footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
}

.footer-grid h3,
.footer-grid h4 {
    margin: 0 0 10px;
    font-family: "Noto Serif SC", serif;
}

.footer-grid p,
.footer-grid a {
    color: var(--muted-strong);
}

.footer-grid a {
    display: block;
    margin: 8px 0;
}

@media (max-width: 1080px) {
    .hero-grid,
    .split-layout,
    .three-up,
    .article-grid,
    .article-grid-wide,
    .category-board,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .site-header {
        position: static;
    }

    .header-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .container {
        width: min(var(--container), calc(100% - 24px));
    }

    .hero,
    .article-shell,
    .section,
    .section-soft {
        padding-top: 26px;
    }

    .hero-copy,
    .feature-panel-copy,
    .info-block,
    .sidebar-card,
    .prose-card,
    .article-card-copy,
    .library-controls {
        padding: 20px;
    }

    .stats-strip {
        grid-template-columns: 1fr;
    }

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

    .recipe-modal-panel {
        width: min(100% - 12px, 920px);
        margin: 6px auto;
        max-height: calc(100vh - 12px);
        border-radius: 22px;
    }

    .recipe-modal-content {
        padding: 0 16px 18px;
    }

    .modal-hero {
        grid-template-columns: 1fr;
    }
}
