:root {
    --ink: #15241c;
    --pine: #1e3a2f;
    --moss: #2f6b4f;
    --terra: #c45c26;
    --clay: #f4eee6;
    --paper: #f8f4ee;
    --line: #d7cdc0;
    --muted: #5d6a62;
    --card: #fffaf4;
}

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

html {
    scrollbar-gutter: stable;
}

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        linear-gradient(180deg, rgba(248, 244, 238, 0.94) 0%, rgba(244, 238, 230, 0.96) 100%),
        url("../image/page-mist.jpg");
    background-size: cover;
    background-position: center top;
    line-height: 1.65;
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
}

a {
    color: var(--moss);
}

a:hover {
    color: #8a3d14;
}

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

.shell {
    width: min(1140px, calc(100% - 36px));
    margin: 0 auto;
}

.ribbon {
    background: var(--pine);
    color: #e6dcc8;
    font-size: 0.8rem;
}

.ribbon-in {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 8px 0;
}

.ribbon a {
    color: #f3c89a;
    text-decoration: none;
}

.site-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(248, 244, 238, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    flex-wrap: wrap;
}

.lockup {
    text-decoration: none;
    color: var(--ink);
}

.lockup strong {
    display: block;
    font-size: 1.3rem;
    letter-spacing: 0.12em;
}

.lockup small {
    display: block;
    color: var(--muted);
    font-size: 0.74rem;
    margin-top: 2px;
}

.site-menu ul {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
}

.site-menu a {
    text-decoration: none;
    color: #314238;
    font-weight: 600;
    font-size: 0.93rem;
    border-bottom: 2px solid transparent;
    padding-bottom: 3px;
}

.site-menu a:hover,
.site-menu a.is-on {
    color: var(--pine);
    border-bottom-color: var(--terra);
}

.menu-btn {
    display: none;
    border: 1px solid var(--pine);
    background: #fff;
    color: var(--pine);
    border-radius: 999px;
    padding: 8px 16px;
    font: inherit;
    cursor: pointer;
}

@media (max-width: 860px) {
    .menu-btn {
        display: inline-flex;
    }

    .site-menu {
        display: none;
        width: 100%;
        border-top: 1px solid var(--line);
        padding-top: 12px;
    }

    .site-menu.is-open {
        display: block;
    }

    .site-menu ul {
        flex-direction: column;
        gap: 12px;
    }
}

.banner {
    min-height: clamp(320px, 52vh, 580px);
    background-image:
        linear-gradient(105deg, rgba(18, 36, 28, 0.88), rgba(47, 107, 79, 0.42)),
        url("../image/hero-arena.jpg");
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
}

.banner-copy {
    padding: 76px 0;
    max-width: 700px;
}

.kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 10px;
    border: 1px solid rgba(243, 200, 154, 0.7);
    color: #f3c89a;
    font-size: 0.76rem;
    letter-spacing: 0.14em;
}

.banner h1 {
    font-size: clamp(1.75rem, 4.2vw, 2.65rem);
    line-height: 1.24;
}

.banner p {
    margin: 16px 0 22px;
    color: #ebe3d4;
    font-size: 1.04rem;
}

.act-row,
.mark-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    display: inline-block;
    text-decoration: none;
    border-radius: 3px;
    padding: 11px 20px;
    font-weight: 700;
    border: 1px solid transparent;
}

.btn-terra {
    background: var(--terra);
    color: #fffdf8 !important;
    border-color: #d97a3e;
}

.btn-line {
    background: transparent;
    color: #fff !important;
    border-color: #f3c89a;
}

.btn-ink {
    background: transparent;
    color: var(--pine) !important;
    border-color: var(--pine);
}

.mark {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(243, 200, 154, 0.35);
    border-radius: 3px;
    padding: 8px 12px;
    font-size: 0.86rem;
    color: #f6edd6;
}

.meter {
    background: var(--pine);
    color: #e8dfcf;
}

.meter-in {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 22px 0;
}

.meter b {
    display: block;
    color: #fff;
    font-size: 1.35rem;
}

.meter span {
    font-size: 0.86rem;
}

.lane {
    padding: 68px 0;
    scroll-margin-top: 88px;
}

.lane-later {
    content-visibility: auto;
    contain-intrinsic-size: 1px 720px;
}

.lane-title {
    margin-bottom: 28px;
}

.lane-title h2 {
    font-size: 1.68rem;
    line-height: 1.3;
}

.lane-title h2::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    margin-top: 10px;
    background: var(--terra);
}

.lane-title p {
    color: var(--muted);
    margin-top: 10px;
    max-width: 640px;
}

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

.kit-card {
    background: var(--card);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    contain: content;
}

.kit-card:hover {
    border-color: var(--terra);
}

.kit-photo {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #1a2a22;
}

.kit-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kit-body {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.pill {
    align-self: flex-start;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--pine);
    background: #e4efe8;
    padding: 2px 8px;
}

.kit-body h3 {
    font-size: 1.08rem;
}

.kit-body p {
    color: #4a5a51;
    font-size: 0.92rem;
}

.more {
    margin-top: auto;
    font-weight: 700;
    text-decoration: none;
    color: var(--pine);
}

.kind-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.kind-rail button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    padding: 7px 14px;
    font: inherit;
    cursor: pointer;
}

.kind-rail button.is-on {
    background: var(--pine);
    color: #fff;
    border-color: var(--pine);
}

.pair {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: center;
}

.pair img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.rail {
    display: grid;
    gap: 0;
    border-left: 3px solid var(--terra);
    padding-left: 18px;
}

.rail article {
    padding: 14px 0;
    border-bottom: 1px dashed var(--line);
}

.rail article:last-child {
    border-bottom: 0;
}

.rail h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.rail p {
    color: #4d5c55;
    font-size: 0.93rem;
}

.case-stack {
    display: grid;
    gap: 14px;
}

.case {
    background: var(--card);
    border: 1px solid var(--line);
    padding: 18px 20px;
}

.case h3 {
    margin-bottom: 8px;
    font-size: 1.06rem;
}

.case p {
    color: #4d5c55;
    font-size: 0.93rem;
}

.fold-list {
    display: grid;
    gap: 10px;
}

.fold {
    background: var(--card);
    border: 1px solid var(--line);
}

.fold button {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    font: inherit;
    font-weight: 700;
    padding: 14px 16px;
    cursor: pointer;
    color: var(--ink);
}

.fold p {
    display: none;
    padding: 0 16px 14px;
    color: #4d5c55;
    font-size: 0.93rem;
}

.fold.is-open p {
    display: block;
}

.ask-card {
    background: var(--pine);
    color: #efe7d4;
    padding: 28px;
}

.ask-card h2 {
    color: #fff;
}

.ask-card h2::after {
    background: var(--terra);
}

.ask-card p,
.ask-card li {
    color: #d9d0bc;
}

.ask-card a {
    color: #f3c89a;
}

.ask-list {
    list-style: none;
    margin: 16px 0 20px;
}

.ask-list li {
    margin: 8px 0;
}

.paper {
    max-width: 860px;
    margin: 0 auto;
}

.paper h1 {
    font-size: 1.88rem;
    margin-bottom: 12px;
}

.paper h2 {
    font-size: 1.22rem;
    margin: 28px 0 10px;
}

.paper p,
.paper li {
    color: #3d4b44;
    margin-bottom: 12px;
}

.paper ul {
    padding-left: 1.2rem;
}

.sku-stage {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: start;
}

.sku-shot {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border: 1px solid var(--line);
    background: #1a2a22;
}

.spec {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 22px;
    font-size: 0.92rem;
}

.spec th,
.spec td {
    border: 1px solid var(--line);
    padding: 10px 12px;
    text-align: left;
}

.spec th {
    width: 30%;
    background: #e8efe6;
}

.path {
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 18px;
}

.path a {
    text-decoration: none;
}

.foot {
    background: #122018;
    color: #c9c0ad;
    padding: 36px 0 22px;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.75fr 1.15fr;
    gap: 24px;
}

.foot h3 {
    color: #f4ead2;
    font-size: 1rem;
    margin-bottom: 10px;
}

.foot a {
    color: #efc08a;
    text-decoration: none;
}

.foot p,
.foot li {
    font-size: 0.88rem;
    line-height: 1.7;
}

.foot ul {
    list-style: none;
}

.legal {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid #2a3a32;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .kit-grid,
    .pair,
    .sku-stage,
    .foot-grid,
    .meter-in {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .shell {
        width: calc(100% - 28px);
    }

    .lane {
        padding: 44px 0;
    }

    .lane-later {
        contain-intrinsic-size: 1px 580px;
    }

    .kit-grid,
    .pair,
    .sku-stage,
    .foot-grid,
    .meter-in {
        grid-template-columns: 1fr;
    }

    .pair img,
    .sku-shot {
        height: 240px;
    }

    .banner-copy {
        padding: 48px 0;
    }
}
