/* next-web-zucai.com.cn · rulebook-columns */
:root {
    color-scheme: light;
    --nzw-paper: #f5f7fb;
    --nzw-ink: #2b2528;
    --nzw-muted: #5e646c;
    --nzw-accent: #287b83;
    --nzw-gold: #ead5a4;
    --nzw-line: #d5dde3;
    --nzw-panel: #ffffff;
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--nzw-ink);
    background: var(--nzw-paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.nzw-body {
    margin: 0;
    min-width: 320px;
    background: radial-gradient(circle at 12% 8%, rgba(40, 123, 131, .09), transparent 26rem), var(--nzw-paper);
    line-height: 1.72;
}
a { color: #17666f; text-underline-offset: .2em; }
a:hover, a:focus-visible { color: var(--nzw-ink); }
img { display: block; max-width: 100%; height: auto; }

.nzw-header {
    position: relative;
    z-index: 2;
    max-width: 1480px;
    margin: auto;
    padding: 22px clamp(16px, 4vw, 54px) 14px;
    border-bottom: 1px solid var(--nzw-line);
    background: rgba(255, 255, 255, .83);
}
.nzw-masthead { display: flex; align-items: baseline; gap: 18px; padding-bottom: 17px; }
.nzw-brand { color: var(--nzw-ink); font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 800; text-decoration: none; }
.nzw-masthead span { color: var(--nzw-muted); font-size: .9rem; }
.nzw-main-nav {
    display: flex;
    gap: 8px 17px;
    overflow-x: auto;
    padding: 10px 0 3px;
    border-top: 1px solid var(--nzw-line);
    white-space: nowrap;
    scrollbar-color: var(--nzw-gold) transparent;
}
.nzw-main-nav a { flex: 0 0 auto; color: #394247; font-size: .86rem; text-decoration: none; }
.nzw-main-nav a:hover, .nzw-main-nav a:focus-visible { color: var(--nzw-accent); text-decoration: underline; }

.nzw-home, .nzw-page { width: min(100% - 38px, 1360px); margin: auto; padding: 32px 0 78px; }
.nzw-home > h1 { max-width: 1120px; margin: 0 auto 22px; font-size: clamp(1.7rem, 4vw, 3.6rem); line-height: 1.18; letter-spacing: -.035em; }
.nzw-eyebrow { margin: 0 0 7px; color: var(--nzw-accent); font-size: .74rem; font-weight: 800; letter-spacing: .14em; }
.nzw-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(180px, .55fr);
    align-items: center;
    gap: clamp(22px, 4vw, 50px);
    padding: clamp(22px, 4vw, 48px);
    border: 1px solid var(--nzw-line);
    border-left: 7px solid var(--nzw-accent);
    background: linear-gradient(125deg, #fff 0%, #edf4f4 68%, #efe4cc 100%);
}
.nzw-hero h2, .nzw-page-intro h1 { margin: 0 0 14px; font-size: clamp(1.45rem, 3vw, 2.45rem); line-height: 1.24; }
.nzw-hero-copy > p:not(.nzw-eyebrow), .nzw-page-intro p { max-width: 78ch; color: #414b50; }
.nzw-hero-figure { display: grid; justify-items: center; gap: 8px; margin: 0; padding: 15px; background: rgba(255,255,255,.72); }
.nzw-hero-figure img { max-height: 250px; object-fit: contain; }
figcaption { color: var(--nzw-muted); font-size: .81rem; text-align: center; }
.nzw-hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.nzw-hero-facts span { padding: 5px 10px; border: 1px solid var(--nzw-line); background: #fff; font-size: .83rem; }

.nzw-rulebook-layout { display: grid; grid-template-columns: minmax(210px, .31fr) minmax(0, 1fr); align-items: start; gap: clamp(22px, 4vw, 54px); margin-top: 38px; }
.nzw-term-rail { position: sticky; top: 16px; padding: 17px; border-top: 4px solid var(--nzw-accent); background: #eaf0f2; }
.nzw-term-rail > h2 { margin: 0 0 12px; font-size: 1.12rem; }
.nzw-term { padding: 12px 0; border-top: 1px solid #c7d3d8; }
.nzw-term h3 { margin: 0 0 4px; color: var(--nzw-accent); font-size: .94rem; }
.nzw-term p { margin: 0; color: #515c62; font-size: .86rem; line-height: 1.58; }
.nzw-home-flow, .nzw-page-flow { display: grid; gap: clamp(34px, 5vw, 62px); min-width: 0; }
.nzw-home-section { min-width: 0; padding-top: 20px; border-top: 1px solid var(--nzw-line); }
.nzw-home-section > header, .nzw-definition-stack { margin-bottom: 18px; }
.nzw-home-section h2, .nzw-page-intro h1 { font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.3; }
.nzw-home-section > p { max-width: 78ch; color: #465158; }

.nzw-community-grid, .nzw-rules-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.nzw-community-grid article, .nzw-rules-cards article { padding: 17px; border: 1px solid var(--nzw-line); background: var(--nzw-panel); }
.nzw-community-grid h3, .nzw-rules-cards h3 { margin: 0 0 8px; font-size: 1.02rem; }
.nzw-community-grid p, .nzw-rules-cards p { margin: 0; color: var(--nzw-muted); font-size: .92rem; }
.nzw-competition-ribbon, .nzw-defense-steps, .nzw-number-band { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.nzw-competition-ribbon span, .nzw-defense-steps span, .nzw-number-band strong { padding: 8px 12px; border: 1px solid var(--nzw-line); background: #fff; }
.nzw-competition-ribbon b, .nzw-number-band span { color: var(--nzw-accent); }
.nzw-faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 16px; }
.nzw-faq-card { padding: 15px 17px; border: 1px solid var(--nzw-line); background: #fff; }
.nzw-faq-card summary { cursor: pointer; font-weight: 750; }
.nzw-faq-card p { margin-bottom: 0; color: #505c62; }
.nzw-definition-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, .42fr); align-items: center; gap: 22px; }
.nzw-definition-layout figure { display: grid; justify-items: center; gap: 8px; margin: 0; padding: 15px; background: #eaf0f2; }
.nzw-definition-layout img { max-height: 200px; object-fit: contain; }
.nzw-definition-layout dl { display: grid; gap: 8px; }
.nzw-definition-layout dl div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 8px 10px; background: #fff; }
.nzw-definition-layout dt { color: var(--nzw-accent); font-weight: 800; }
.nzw-definition-layout dd { margin: 0; color: var(--nzw-muted); }
.nzw-defense-section > figure { margin: 18px 0 0; padding: 12px; background: #eaf0f2; }
.nzw-defense-section > figure img { max-height: 128px; object-fit: contain; }
.nzw-story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.nzw-story-card { min-width: 0; padding: 16px; border-bottom: 3px solid var(--nzw-gold); background: #fff; }
.nzw-story-card h3 { margin: 7px 0; font-size: 1rem; line-height: 1.45; }
.nzw-story-card h3 a { color: var(--nzw-ink); text-decoration: none; }
.nzw-story-card h3 a:hover { color: var(--nzw-accent); text-decoration: underline; }
.nzw-story-card p { margin: 0; color: var(--nzw-muted); font-size: .9rem; }
.nzw-story-image { max-height: 115px; margin: 0 auto 10px; object-fit: contain; }

.nzw-page-intro { max-width: 980px; margin: 0 auto 28px; padding: 23px clamp(18px, 4vw, 40px); border-left: 6px solid var(--nzw-accent); background: #eaf0f2; }
.nzw-page-intro h1 { margin: 0 0 8px; }
.nzw-page-intro p:last-child { margin-bottom: 0; }
.nzw-definition-stack, .nzw-data-stack, .nzw-news-ledger { display: grid; gap: 14px; min-width: 0; }
.nzw-definition-card, .nzw-data-card { position: relative; padding: 18px 20px; border: 1px solid var(--nzw-line); background: #fff; }
.nzw-definition-card h2, .nzw-data-card h2 { margin: 0 0 8px; font-size: 1.12rem; }
.nzw-definition-card p, .nzw-data-card p { margin: 0; color: #505b62; }
.nzw-image-band { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; padding: 16px; background: #eaf0f2; }
.nzw-image-band figure { display: grid; justify-items: center; gap: 6px; max-width: 22%; margin: 0; }
.nzw-image-band img { max-height: 116px; object-fit: contain; }
.nzw-news-article { padding: 18px; border: 1px solid var(--nzw-line); border-top: 3px solid var(--nzw-accent); background: #fff; scroll-margin-top: 18px; }
.nzw-news-article h2 { margin: 0 0 9px; font-size: 1.16rem; line-height: 1.45; }
.nzw-news-article p { margin: 0; color: #4b565c; }
.nzw-news-article .nzw-story-image { max-height: 135px; margin: 0 0 12px; }
.nzw-card-index { float: right; color: #718086; font-variant-numeric: tabular-nums; }
.nzw-data-card { scroll-margin-top: 18px; }

.nzw-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding: 22px max(18px, calc((100vw - 1360px) / 2)); border-top: 1px solid var(--nzw-line); background: #eaf0f2; font-size: .88rem; }
.nzw-footer-main p { margin: 5px 0 0; color: var(--nzw-muted); }
.nzw-footer nav { display: flex; gap: 16px; align-items: flex-start; }

@media (max-width: 850px) {
    .nzw-rulebook-layout { grid-template-columns: 1fr; }
    .nzw-term-rail { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
    .nzw-term-rail > h2 { grid-column: 1 / -1; }
    .nzw-term:first-of-type { border-top: 1px solid #c7d3d8; }
}
@media (max-width: 620px) {
    .nzw-header { padding: 17px 14px 12px; }
    .nzw-masthead { align-items: flex-start; flex-direction: column; gap: 1px; padding-bottom: 12px; }
    .nzw-home, .nzw-page { width: min(100% - 26px, 1360px); padding-top: 22px; }
    .nzw-hero, .nzw-definition-layout { grid-template-columns: 1fr; }
    .nzw-community-grid, .nzw-rules-cards, .nzw-faq-grid, .nzw-story-grid { grid-template-columns: 1fr; }
    .nzw-term-rail { grid-template-columns: 1fr; }
    .nzw-image-band figure { max-width: 44%; }
    .nzw-definition-layout dl div { grid-template-columns: 1fr; gap: 2px; }
    .nzw-footer { padding: 18px 14px; }
}
