:root {
    --ink: #1a1612;
    --char: #3a332b;
    --gold: #c4a36a;
    --gold-deep: #8a6a32;
    --gold-soft: #e8d7b0;
    --paper: #f6f3ee;
    --card: #fffcf8;
    --line: #e7dfd2;
    --muted: #7a7166;
    --price: #8c2f2b;
    --up: #c23b32;
    --down: #1c7a4a;
    --danger: #8c2f2b;
    --jade: #100e0c;
    --serif: "Songti SC", "STSong", "SimSun", "PMingLiU", serif;
    --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --num: "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.75;
    background:
        radial-gradient(980px 420px at 70% -120px, rgba(196,163,106,.18), transparent 62%),
        radial-gradient(720px 360px at 0% 180px, rgba(196,163,106,.08), transparent 60%),
        var(--paper);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: .06em; }
.muted { color: var(--muted); }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }

.announce { background: #070605; color: #d7c4a0; overflow: hidden; white-space: nowrap; font-size: 12px; letter-spacing: .18em; border-bottom: 1px solid rgba(196,163,106,.28); }
.announce-track { display: inline-block; padding: 7px 0; animation: marquee 42s linear infinite; }
.announce-track span { margin-right: 64px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.site-head { position: sticky; top: 0; z-index: 30; background: var(--jade); color: #f6f1e6; box-shadow: 0 12px 28px rgba(12,10,8,.18); }
.head-row { display: flex; align-items: center; gap: 20px; padding: 14px 28px 12px; }
.brand { flex: none; }
.brand img { height: 42px; width: auto; }
.m-nav { display: none; }
body.is-mall .quote-bar { display: none; }
.main-nav { display: flex; gap: 16px; flex: 1; align-items: center; font-size: 14px; letter-spacing: .1em; }
.main-nav > a, .nav-item > a { position: relative; padding: 10px 0; white-space: nowrap; color: #f3eadc; }
.main-nav > a::after, .nav-item > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: #c4a36a; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.main-nav > a:hover, .nav-item > a:hover { color: #f0d7a4; }
.main-nav > a:hover::after, .nav-item:hover > a::after, .nav-item:focus-within > a::after { transform: scaleX(1); }
.nav-item { position: relative; }
.nav-panel { display: none; position: absolute; top: calc(100% + 8px); left: -18px; width: 620px; padding: 22px 18px 20px; background: #161310; border: 1px solid rgba(196,163,106,.38); box-shadow: 0 22px 48px rgba(0,0,0,.35); grid-template-columns: repeat(4, 1fr); gap: 8px 18px; z-index: 40; }
.nav-item:hover .nav-panel, .nav-item:focus-within .nav-panel { display: grid; }
.nav-panel a { display: block; padding: 5px 0; color: #f4efe6; letter-spacing: .08em; font-size: 13px; }
.nav-panel a:hover { color: #f0d7a4; }
.nav-panel strong { color: #e4c98a; font-weight: 500; letter-spacing: .22em; font-size: 12px; }
.head-tools { display: flex; align-items: center; gap: 14px; flex: none; white-space: nowrap; font-size: 13px; letter-spacing: .08em; color: #f3eadc; }
.head-tools a:hover { color: #f0d7a4; }
.search input { background: transparent; border: 1px solid rgba(196,163,106,.45); color: #fff; padding: 8px 12px; width: 132px; letter-spacing: .06em; }
.search input::placeholder { color: #a89880; }
.cart-link sup { color: #e4c98a; margin-left: 2px; font-family: var(--num); }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--gold); color: var(--gold); padding: 6px 12px; letter-spacing: .16em; }
.quote-bar { display: flex; gap: 0; align-items: stretch; flex-wrap: wrap; background: #0a0908; border-top: 1px solid rgba(196,163,106,.22); }
.quote { min-width: 160px; flex: 1; display: grid; gap: 1px; padding: 14px 20px 12px; font-size: 12px; color: #cfc4b4; border-right: 1px solid rgba(196,163,106,.16); }
.quote b { font-weight: 500; letter-spacing: .28em; font-size: 12px; color: #e4c98a; }
.quote strong { font-family: var(--num); font-size: 28px; letter-spacing: .02em; line-height: 1.15; font-weight: 500; }
.quote.up strong, .quote.up em { color: #f0a398; }
.quote.down strong, .quote.down em { color: #8ed4ae; }
.quote em { font-style: normal; letter-spacing: .02em; }
.quote span { color: #b7aa9a; letter-spacing: .06em; }
.quote-note { margin: 0; color: #9c9184; font-size: 12px; letter-spacing: .08em; padding: 0 20px 12px; flex: 1 0 100%; }

.page { width: min(1220px, calc(100% - 40px)); margin: 28px auto 72px; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; margin: 0 0 48px; padding: 42px 42px 42px 46px; background:
    linear-gradient(145deg, rgba(196,163,106,.16), transparent 34%),
    linear-gradient(180deg, #1a1612 0%, #0e0c0a 100%);
    color: #f6f1e6;
    border: 1px solid rgba(196,163,106,.38);
    box-shadow: 0 24px 50px rgba(16,14,12,.14), inset 0 0 0 1px rgba(255,244,220,.04);
}
.kicker { color: var(--gold-deep); letter-spacing: .34em; font-size: 12px; margin: 0 0 8px; }
.hero .kicker { color: #e4c98a; }
.hero h1 { font-size: 56px; line-height: 1.08; margin: 6px 0 14px; letter-spacing: .14em; font-weight: 500; }
.hero h1::after { content: ""; display: block; width: 52px; height: 1px; margin-top: 18px; background: linear-gradient(90deg, #e4c98a, transparent); }
.hero-lead { max-width: 36em; color: #e6dccb; margin: 0; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 26px; color: #e4c98a; font-size: 13px; letter-spacing: .18em; }
.hero-points span { border-bottom: 1px solid rgba(228,201,138,.35); padding-bottom: 4px; }
.hero-photo { min-height: 420px; background: #1b1814 center/cover no-repeat; border: 1px solid rgba(228,201,138,.55); box-shadow: 0 0 0 10px rgba(228,201,138,.08); }
.section-head { display: flex; justify-content: space-between; align-items: end; margin: 48px 0 18px; }
.section-head h2 { margin: 0; font-size: 30px; letter-spacing: .16em; display: flex; align-items: center; gap: 14px; }
.section-head h2::after { content: ""; width: 42px; height: 1px; background: linear-gradient(90deg, #c4a36a, transparent); }
.section-head a { color: var(--gold-deep); letter-spacing: .14em; font-size: 13px; }
.section-head a:hover { color: var(--ink); }
.cat-grid, .card-grid, .service-grid, .tool-grid { display: grid; gap: 18px; }
.cat-grid { grid-template-columns: repeat(4, 1fr); counter-reset: cat; }
.card-grid { grid-template-columns: repeat(4, 1fr); }
.service-grid, .tool-grid { grid-template-columns: repeat(2, 1fr); }
.tile, .card, .panel, .tool-card { background: var(--card); border: 1px solid rgba(231,223,210,.9); box-shadow: 0 10px 28px rgba(26,22,18,.04); }
.tile { padding: 26px 22px 22px; min-height: 148px; position: relative; }
.tile::before { counter-increment: cat; content: counter(cat, decimal-leading-zero); display: block; font-family: var(--num); font-size: 12px; letter-spacing: .22em; color: #c4a36a; margin-bottom: 16px; }
.tile strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: .12em; margin-bottom: 8px; }
.tile:hover, .card:hover { border-color: #c4a36a; transform: translateY(-3px); box-shadow: 0 16px 36px rgba(26,22,18,.08); transition: .22s ease; }
.tile span { display: block; color: var(--muted); font-size: 13px; letter-spacing: .04em; }
.card { display: flex; flex-direction: column; overflow: hidden; }
.card .photo { aspect-ratio: 1; margin: 12px 12px 0; background: #f3efe8 center/cover no-repeat; }
.gallery-main { width: 100%; height: auto; object-fit: contain; background: #f3efe8; border: 1px solid rgba(196,163,106,.35); }
.card .body, .pad { padding: 14px 16px 18px; }
.card h3 { margin: 6px 0 4px; font-size: 18px; line-height: 1.45; letter-spacing: .06em; }
.card .body > p { margin: 4px 0; font-size: 13px; color: var(--char); }
.price { font-family: var(--num); color: var(--price); font-size: 22px; margin-top: 10px; letter-spacing: .02em; }
.price small { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-left: 6px; letter-spacing: .08em; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 2px; }
.tag { border: 1px solid rgba(138,106,50,.28); padding: 0 7px; font-size: 12px; color: #7a6240; letter-spacing: .08em; background: #fbf7f0; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; padding: 12px 22px; cursor: pointer; background: var(--jade); color: #f6f1e6; letter-spacing: .18em; font-size: 13px; transition: .2s ease; }
.btn:hover { background: #2a241c; }
.btn-gold { background: linear-gradient(180deg, #edd7a4 0%, #c4a36a 48%, #a68545 100%); color: #1c140c; box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.btn-gold:hover { filter: brightness(1.06); color: #1c140c; }
.btn-line { background: transparent; color: var(--ink); border: 1px solid #2a241c; }
.btn-line:hover { border-color: #c4a36a; color: var(--gold-deep); background: transparent; }
.btn-ink { background: var(--jade); color: #f6f1e6; }
.hero .btn-line { color: #f6f1e6; border-color: rgba(228,201,138,.7); }
.hero .btn-line:hover { color: #e4c98a; border-color: #e4c98a; background: transparent; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.row-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: start; }
.split h1 { font-size: 36px; letter-spacing: .1em; margin: 4px 0 8px; line-height: 1.25; }
.band { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; background:
    linear-gradient(160deg, rgba(196,163,106,.14), transparent 40%),
    #14110e;
    color: #f6f1e7; padding: 36px 34px; margin-top: 42px; border: 1px solid rgba(196,163,106,.28); }
.band h2 { letter-spacing: .14em; margin-top: 0; }
.band p { color: #e4d9c8; }
.band .btn-line { color: #f6f1e7; border-color: rgba(228,201,138,.7); }
.band .btn-line:hover { color: #e4c98a; border-color: #e4c98a; }
.risk { border-left: 2px solid var(--gold); background: #fbf7f0; padding: 14px 16px; color: #5c4d38; font-size: 13px; }
.lines { width: 100%; border-collapse: collapse; }
.lines th, .lines td { border-bottom: 1px solid var(--line); text-align: left; padding: 10px 0; vertical-align: top; }
.lines th { white-space: nowrap; padding-right: 16px; color: var(--muted); font-weight: 500; letter-spacing: .06em; }
.lines td:last-child, .lines th:last-child { text-align: right; }
#live-price { border: 1px solid var(--line); box-shadow: none; }
#live-price .price { font-size: 26px; }
label { display: grid; gap: 6px; margin: 12px 0; font-size: 13px; letter-spacing: .06em; color: var(--char); }
input, select, textarea { border: 1px solid #e0d6c8; background: #fff; padding: 10px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #c4a36a; box-shadow: 0 0 0 3px rgba(196,163,106,.16); }
textarea { min-height: 90px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; }
.auth-pick button { text-align: left; background: #fffcf8; border: 1px solid rgba(196,163,106,.45); padding: 28px 22px; cursor: pointer; }
.auth-pick strong { display: block; font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: .16em; }
.auth-pick span { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; letter-spacing: .04em; line-height: 1.6; }
.auth-pick button:hover { border-color: #c4a36a; }
.auth-pick.is-off { display: none; }
.auth-form { display: none; max-width: 520px; margin-top: 0; }
.auth-form.is-on { display: block; }
.auth-form h2 { font-family: var(--serif); font-weight: 500; letter-spacing: .14em; margin: 8px 0 16px; }
.form-error { color: var(--danger); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a { border: 1px solid var(--line); padding: 7px 16px; background: #fff; letter-spacing: .12em; font-size: 13px; }
.tabs a.on { background: var(--jade); color: #f6f1e6; border-color: var(--jade); }
.gallery { display: grid; grid-template-columns: 78px 1fr; gap: 12px; }
.gallery-main { width: 100%; border: 1px solid rgba(196,163,106,.35); background: #f3efe8; object-fit: cover; }
.thumbs button { border: 1px solid var(--line); padding: 0; background: #fff; margin-bottom: 8px; cursor: pointer; }
.thumbs button:hover, .thumbs button:focus { border-color: #c4a36a; }
.thumbs img, .cart-item img { width: 78px; height: 78px; object-fit: cover; }
.cart-item { display: grid; grid-template-columns: 24px 78px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.summary { position: sticky; top: 148px; }
.count { font-family: var(--num); font-size: 32px; color: var(--price); }
.pager { display: flex; gap: 8px; margin-top: 22px; }
.pager a, .pager span { border: 1px solid var(--line); padding: 6px 12px; background: #fff; }
.pager a:hover { border-color: #c4a36a; }
.empty { padding: 48px 10px; text-align: center; color: var(--muted); letter-spacing: .08em; }
.site-foot { background: #0e0c0a; color: #f3eadc; border-top: 1px solid rgba(196,163,106,.28); padding: 42px 32px 22px; }
.foot-grid { width: min(1220px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: 22px; }
.foot-grid h3 { color: #e4c98a; font-size: 16px; letter-spacing: .2em; margin: 8px 0 12px; }
.foot-grid a, .foot-grid p { display: block; margin: 6px 0; color: #d9d0c3; }
.foot-grid a:hover { color: #f0d7a4; }
.foot-grid .muted { color: #9c9184; }
.foot-logo { height: 44px; }
.copy { width: min(1220px, 100%); margin: 22px auto 0; padding-top: 16px; border-top: 1px solid rgba(196,163,106,.18); color: #9c9184; font-size: 12px; letter-spacing: .06em; }
.rail { position: fixed; left: 14px; top: 50%; transform: translateY(-50%); z-index: 40; width: 58px; background: rgba(14,12,10,.94); border: 1px solid rgba(196,163,106,.5); display: flex; flex-direction: column; backdrop-filter: blur(8px); box-shadow: 0 16px 36px rgba(0,0,0,.22); }
@media (min-width: 901px) {
    body:not(.admin-body):not(.install-body) { padding-left: 86px; }
}
.rail a, .rail button { width: 58px; height: 64px; border: 0; border-bottom: 1px solid rgba(196,163,106,.2); background: transparent; color: #f6f1e7; cursor: pointer; display: grid; align-content: center; justify-items: center; gap: 3px; padding: 0; }
.rail a:last-child, .rail button:last-child { border-bottom: 0; }
.rail i { font-style: normal; font-size: 12px; letter-spacing: .14em; }
.rail span { font-size: 10px; letter-spacing: .18em; color: #e4c98a; }
.rail a:hover, .rail button:hover { background: rgba(196,163,106,.16); color: #fff; }
.chat { position: fixed; left: 86px; bottom: 24px; width: min(380px, calc(100vw - 24px)); height: 500px; background: #fff; border: 1px solid rgba(196,163,106,.4); z-index: 50; display: grid; grid-template-rows: auto 1fr auto auto; box-shadow: 0 20px 48px rgba(22,18,14,.22); }
.chat header { display: flex; justify-content: space-between; gap: 8px; padding: 12px 14px; background: #14110e; color: #f6f1e6; letter-spacing: .16em; }
.chat header button { background: transparent; border: 0; color: #e4c98a; cursor: pointer; letter-spacing: .12em; }
.chat form, .chat-quick { display: flex; justify-content: space-between; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-quick button { border: 1px solid var(--line); background: #fbf7f0; padding: 4px 8px; cursor: pointer; font-size: 12px; letter-spacing: .06em; }
.chat-log { overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #fbf9f6; }
.bubble { max-width: 90%; padding: 8px 12px; background: #f3efe6; white-space: pre-wrap; }
.bubble.user { align-self: flex-end; background: #1c1915; color: #f6f1e6; }
.modal { position: fixed; inset: 0; background: rgba(14,12,10,.52); display: grid; place-items: center; z-index: 60; padding: 16px; }
.modal[hidden], .chat[hidden] { display: none; }
.modal-card { width: min(460px, 100%); background: #fff; padding: 28px 26px; border: 1px solid rgba(196,163,106,.4); box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.modal-card h2 { letter-spacing: .14em; margin-top: 0; }
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; }
.toast { background: #1c1915; color: #f6f1e6; padding: 12px 16px; margin-top: 8px; letter-spacing: .06em; border: 1px solid rgba(196,163,106,.35); }
.toast.err { background: var(--danger); border-color: transparent; }
.captcha { width: 110px; height: 40px; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.auth-card { max-width: 420px; margin: 0 auto; }
.auth-captcha { display: flex; align-items: center; gap: 8px; }
.auth-captcha input { flex: 1; min-width: 0; }
.auth-switch { margin: 14px 0 0; }
label.agree-line { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0; letter-spacing: 0; line-height: 1.5; }
label.agree-line input { width: auto; margin: 3px 0 0; flex: none; }
label.agree-line span { flex: 1; }
.h5-legal { display: none; }
.filter { display: grid; gap: 8px; }
.layout-cat { display: grid; grid-template-columns: 240px 1fr; gap: 22px; }
.help-layout { display: grid; grid-template-columns: 240px 1fr; gap: 22px; }
.side-menu a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); letter-spacing: .06em; }
.side-menu a.on { color: var(--gold-deep); }
.filter a { display: block; padding: 4px 0; letter-spacing: .06em; }
.filter a strong { letter-spacing: .14em; }
.spec-block { margin: 16px 0 6px; }
.spec-label { margin: 0 0 10px; letter-spacing: .22em; font-size: 12px; color: var(--muted); }
.spec-list { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-list button { border: 1px solid #e0d6c8; background: #fff; min-width: 76px; padding: 9px 10px; cursor: pointer; letter-spacing: .08em; }
.spec-list button:hover { border-color: #c4a36a; }
.spec-list button.on { border-color: #8a6a32; color: #8a6a32; background: #fbf6ee; box-shadow: inset 0 0 0 1px #8a6a32; }
.spec-list button:disabled { opacity: .35; cursor: not-allowed; }
.home-quotes { display: none; }
.qual-lead { margin: 0 0 16px; max-width: 46em; color: var(--char); }
.qual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; counter-reset: qual; }
.qual-card { background: var(--card); border: 1px solid var(--line); padding: 18px 18px 16px; box-shadow: 0 10px 28px rgba(26,22,18,.04); }
.qual-card::before { counter-increment: qual; content: counter(qual, decimal-leading-zero); display: block; font-family: var(--num); font-size: 12px; letter-spacing: .2em; color: #c4a36a; margin-bottom: 8px; }
.qual-card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: .12em; }
.qual-card p { margin: 0; color: var(--char); font-size: 14px; }
.tabbar { display: none; }
.page-head { margin-bottom: 22px; }
.page-head h1 { margin: 0 0 10px; font-size: 40px; letter-spacing: .14em; }
.page-head h1::after { content: ""; display: block; width: 42px; height: 1px; margin-top: 12px; background: #c4a36a; }
.chart-box { background: #100e0c; padding: 12px 8px 4px; min-width: 0; border: 1px solid rgba(196,163,106,.28); }
canvas { width: 100%; height: 360px; display: block; }
.market-board { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: stretch; }
.market-side { background: #fff; border: 1px solid var(--line); padding: 22px 22px 14px; box-shadow: 0 10px 28px rgba(26,22,18,.04); }
.market-label { margin: 0; letter-spacing: .2em; font-size: 12px; color: var(--muted); }
.market-px { margin: 8px 0 0; font-family: var(--num); font-size: 46px; line-height: 1; font-weight: 500; }
.market-chg { margin: 8px 0 14px; font-family: var(--num); }
.market-px.up, .market-chg.up { color: var(--up); }
.market-px.down, .market-chg.down { color: var(--down); }
.market-src { color: var(--muted); font-size: 12px; }
.tab-gap { width: 12px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step { background: #fff; border: 1px solid var(--line); padding: 16px; box-shadow: 0 8px 20px rgba(26,22,18,.03); }
.account-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.install-body { background: var(--paper); }
.install-wrap { width: min(760px, calc(100% - 24px)); margin: 32px auto; }
.install-brand img { height: 48px; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.check-list .bad { color: var(--danger); }
.install-log { background: #141210; color: #e6d3a8; padding: 12px; min-height: 160px; white-space: pre-wrap; }
.admin-body { margin: 0; background: var(--paper); }
.admin-shell { display: grid; grid-template-columns: 210px 1fr; min-height: 100vh; }
.admin-side { background: #100e0c; color: #f4efe6; padding: 18px 14px; }
.admin-side a { display: block; padding: 8px 6px; color: #f4efe6; }
.admin-side a:hover { color: #e4c98a; }
.admin-side .btn-line { color: #f6f1e6; border-color: rgba(228,201,138,.7); }
.admin-side .btn-line:hover { color: #e4c98a; border-color: #e4c98a; }
.admin-main { padding: 22px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; font-size: 13px; vertical-align: top; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1100px) {
    .brand img { height: 36px; }
    .main-nav { gap: 10px; letter-spacing: .04em; font-size: 13px; }
    .search input { width: 96px; }
    .head-row { gap: 12px; padding-left: 16px; padding-right: 16px; }
    .card-grid, .cat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .announce { display: none; }
    .main-nav, .head-tools, .nav-toggle { display: none; }
    .m-nav { display: flex; align-items: center; gap: 16px; margin-left: auto; }
    .m-nav a { color: #f4ecdf; font-size: 15px; letter-spacing: .14em; }
    .m-nav a.on { color: #e4c98a; }
    .brand img { height: 32px; }
    .hero, .split, .band, .layout-cat, .help-layout, .foot-grid, .form-grid, .admin-shell, .market-board { grid-template-columns: 1fr; }
    .layout-cat { display: flex; flex-direction: column; }
    .layout-cat > aside { order: 2; }
    .layout-cat > div { order: 1; }
    .hero { padding: 28px 20px; }
    .card-grid, .cat-grid, .steps, .account-grid, .stat-grid { grid-template-columns: 1fr 1fr; }
    .auth-pick { grid-template-columns: 1fr; }
    .hero h1 { font-size: 36px; letter-spacing: .1em; }
    body { padding-left: 0; }
    .rail { top: auto; left: auto; right: 10px; bottom: 16px; width: 54px; transform: none; flex-direction: column; }
    .rail a, .rail button { width: 54px; height: 54px; flex: none; border-right: 0; border-bottom: 1px solid rgba(196,163,106,.22); }
    .rail .rail-cart { display: none; }
    .page { padding-bottom: 28px; }
    .site-foot { padding-bottom: 28px; }
    .chat { left: 8px; right: 72px; bottom: 16px; width: auto; }
    body.is-home .quote-bar { display: none; }
    .home-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 16px; }
    .home-quote { display: grid; gap: 2px; padding: 14px 12px 12px; background: #100e0c; color: #f6f1e6; border: 1px solid rgba(196,163,106,.32); }
    .home-quote b { letter-spacing: .22em; font-size: 12px; font-weight: 500; color: #e4c98a; }
    .home-quote strong { font-family: var(--num); font-size: 26px; line-height: 1.1; font-weight: 500; }
    .home-quote em { font-style: normal; font-family: var(--num); font-size: 12px; }
    .home-quote span { color: #b7aa9a; font-size: 12px; letter-spacing: .04em; }
    .home-quote.up strong, .home-quote.up em { color: #f0a398; }
    .home-quote.down strong, .home-quote.down em { color: #8ed4ae; }
    .home-quote-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; letter-spacing: .04em; }
    .search { display: none; }
    .summary { position: static; }
}
@media (max-width: 640px) {
    .card-grid, .cat-grid, .service-grid, .tool-grid, .steps, .account-grid, .qual-grid, .auth-pick { grid-template-columns: 1fr; }
    body.is-mall .card-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .head-row { padding: 10px 12px; }
    .gallery { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 24px 64px 1fr; }
    .quote { min-width: 46%; flex: 1 1 46%; padding: 12px 12px 10px; }
    .quote strong { font-size: 22px; }
    .hero-photo { min-height: 240px; }
    .hero .btn { padding: 10px 12px; letter-spacing: .08em; }
    .hero .row-actions { gap: 8px; }
    .page { width: min(1220px, calc(100% - 24px)); }
}

.h5-board, .h5-bar, .h5-tab, .mob-only, .h5-buybar, .h5-prep, .h5-hours, .h5-spec, .h5-labor, .h5-store { display: none; }

@media (max-width: 900px) {
    .site-head, .announce, .site-foot, .rail, .desk-only { display: none !important; }
    .mob-only { display: block; }
    body { background: #f4f5f7; padding-left: 0; }
    .page { width: 100%; margin: 0; padding: 12px 12px 28px; }
    body.h5-tabs .page { padding-bottom: 78px; }
    .h5-bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: center; height: 48px; background: #fff; color: #1a1a1a; font-size: 17px; font-weight: 600; }
    .h5-bar .h5-back { position: absolute; left: 8px; width: 40px; height: 40px; line-height: 40px; text-align: center; font-size: 28px; color: #222; }
    body.is-home { background: #100e0c; color: #f6f1e6; }
    body.is-home .h5-bar { background: #100e0c; color: #f4ecdf; }
    body.is-home .page { padding: 0 0 78px; }
    body.is-home .page > :not(.h5-board) { display: none; }
    .h5-board { display: block; padding: 8px 14px 24px; }
    .h5-brand { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 16px; padding: 16px; border: 1px solid rgba(196,163,106,.35); border-radius: 12px; }
    .h5-brand p { margin: 0; letter-spacing: .22em; font-size: 11px; color: #e4c98a; }
    .h5-brand strong { display: block; margin-top: 6px; font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: .12em; }
    .h5-brand span { color: #b7aa9a; font-size: 12px; }
    .h5-brand img.h5-mark, .h5-brand img.h5-logo-custom { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 14px; flex: none; }
    .h5-open { text-align: right; color: #8ed4ae; font-size: 12px; }
    .h5-marquee { color: #d7c4a0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .h5-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
    .h5-table th { color: #b7aa9a; font-weight: 500; font-size: 13px; text-align: right; padding: 8px 4px; }
    .h5-table th:first-child, .h5-table td:first-child { text-align: left; }
    .h5-table td { text-align: right; padding: 14px 4px; border-top: 1px solid rgba(255,255,255,.06); font-family: var(--num); }
    .h5-table td:first-child a { color: #f0d7a4; letter-spacing: .08em; font-family: var(--serif); font-size: 16px; }
    .h5-table .q-buy, .h5-table .q-lo { color: #8ed4ae; }
    .h5-table .q-sell, .h5-table .q-hi { color: #f0a398; }
    .h5-table .q-hi, .h5-table .q-lo { display: block; font-size: 13px; }
    .h5-foot { color: #8d8274; font-size: 12px; }
    .h5-tab { display: none; }
    body.h5-tabs .h5-tab { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(3, 1fr); height: 62px; background: #fff; border-top: 1px solid #eee; }
    .h5-tab a { display: grid; justify-items: center; align-content: center; gap: 3px; color: #9a9a9a; font-size: 11px; letter-spacing: .08em; }
    .h5-tab svg { width: 22px; height: 22px; }
    .h5-tab a.on { color: #c4a36a; }
    body.is-account .h5-bar { display: none; }
    body.is-account .page { padding: 0 0 78px; background: #f3f4f6; }
    .mine-head { padding: 22px 18px 56px; background: linear-gradient(180deg, #2a241c, #14110e); color: #fff; }
    .mine-head h1 { margin: 0 0 16px; font-size: 22px; }
    .mine-user { display: flex; align-items: center; gap: 12px; color: #fff; }
    .mine-user i { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #f0d7a4, #a68545); color: #3a2a12; font-style: normal; font-size: 20px; }
    .mine-user strong, .mine-user small { display: block; }
    .mine-user small { color: #d9d0c3; letter-spacing: .08em; }
    .mine-user em { margin-left: auto; font-style: normal; font-size: 22px; color: #e4c98a; }
    .mine-shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); margin: -28px 12px 16px; padding: 16px 8px; background: #fff; border-radius: 14px; text-align: center; }
    .mine-shortcuts a { color: #333; font-size: 13px; }
    .mine-shortcuts b { width: 42px; height: 42px; margin: 0 auto 6px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 500; }
    .c1 { background: #d4a24a; } .c2 { background: #4c8dff; } .c3 { background: #8b6cff; } .c4 { background: #5b7cff; } .c5 { background: #6a63f6; }
    .mine-kicker { margin: 8px 16px; color: #8a8a8a; font-size: 13px; }
    .mine-list { margin: 0 12px; background: #fff; border-radius: 14px; overflow: hidden; }
    .mine-list a { display: flex; align-items: center; gap: 12px; padding: 14px 12px; border-bottom: 1px solid #f2f2f2; color: #222; }
    .mine-list b { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
    .mine-list small { margin-left: auto; color: #c4a36a; }
    .mine-list a::after { content: "›"; color: #ccc; margin-left: 6px; }
    .mine-logout { display: block; width: calc(100% - 24px); margin: 16px auto; height: 48px; border: 0; border-radius: 12px; background: #fff; font-size: 16px; }
    .h5-store { display: block; }
    .h5-banner { margin-bottom: 12px; padding: 22px 18px; border-radius: 16px; color: #fff; background: linear-gradient(120deg, #243044, #1b2433 55%, #c4a36a); }
    .h5-banner p { margin: 0; letter-spacing: .2em; opacity: .8; }
    .h5-banner strong { display: block; margin: 8px 0 4px; font-size: 26px; letter-spacing: .08em; }
    .h5-today { display: block; margin-bottom: 16px; padding: 16px; border-radius: 16px; background: #2a241c; color: #f6f1e6; }
    .h5-today span, .h5-today em { font-size: 12px; color: #d7c4a0; font-style: normal; }
    .h5-today em { float: right; }
    .h5-today strong { display: block; clear: both; font-size: 32px; font-family: var(--num); color: #f3d48a; }
    .h5-today small { font-size: 14px; }
    body.is-mall .layout-cat > aside { display: none; }
    body.is-mall .page-head { display: flex; justify-content: space-between; align-items: baseline; }
    body.is-mall .page-head .kicker { display: none; }
    body.is-mall .card { border-radius: 12px; overflow: hidden; }
    body.is-mall .card .tags, body.is-mall .card .muted, body.is-mall .card .body > p:not(.h5-hours):not(.h5-spec):not(.h5-labor):not(.price) { display: none; }
    body.is-mall .h5-hours, body.is-mall .h5-spec, body.is-mall .h5-labor { display: block; margin: 6px 0; font-size: 12px; color: #666; }
    body.is-mall .h5-hours { display: flex; gap: 8px; margin: 0 -12px 8px; padding: 6px 8px; background: #c23b3b; color: #fff; }
    body.is-mall .h5-hours b { font-weight: 500; font-size: 11px; line-height: 1.3; }
    body.is-mall .h5-labor i { float: right; font-style: normal; color: #999; }
    body.is-mall .card .price { color: #e23d3d; font-size: 18px; }
    .h5-prep { display: block; margin-top: 12px; background: #fff; border-radius: 12px; padding: 12px; }
    .h5-prep a { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid #f2f2f2; }
    .h5-prep span { color: #c4a36a; }
    body.is-mall .h5-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; display: flex; align-items: center; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #eee; }
    .h5-buybar strong { display: block; color: #c4a36a; font-size: 20px; }
    .h5-buybar .btn { border-radius: 999px; }
    body.is-mall.h5-sub .page { padding-bottom: 84px; }
    .h5-chips { display: flex; gap: 8px; overflow: auto; margin: 0 0 16px; }
    .h5-chips a { flex: none; padding: 6px 14px; border-radius: 999px; background: #fff; color: #666; }
    .h5-chips a.on { background: #c4a36a; color: #fff; }
    .sheet-note, .sheet-warn { display: block; margin-bottom: 12px; padding: 14px; border-radius: 12px; background: #241f1a; color: #f6f1e6; }
    .sheet-warn { background: #fff6e8; color: #9a5b16; display: flex; justify-content: space-between; }
    .sheet-form, .sheet-row { background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 12px; }
    .sheet-head { display: flex; justify-content: space-between; align-items: baseline; }
    .btn-block { width: 100%; border-radius: 999px; margin-top: 8px; }
    body.is-auth { background: #f7f1e8; }
    body.is-auth .page { padding: 12px 16px 36px; }
    body.is-auth.has-toast .page { padding-top: 64px; }
    body.is-auth .auth-card { margin: 8px auto 0; padding: 28px 18px 22px; background: #fff; border: 0; border-radius: 18px; box-shadow: 0 12px 32px rgba(60,40,10,.08); }
    body.is-auth .auth-brand { margin-bottom: 16px; text-align: center; }
    body.is-auth .auth-brand img.auth-mark { display: block; width: 64px; height: 64px; margin: 0 auto; }
    body.is-auth .auth-brand img.auth-upload { width: 72px; height: 72px; object-fit: contain; }
    body.is-auth .auth-brand strong { display: block; margin-top: 8px; color: #c4a36a; font-size: 22px; font-weight: 600; letter-spacing: .14em; }
    body.is-auth .auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 16px; padding: 4px; background: #f6f1e8; border-radius: 12px; }
    body.is-auth .auth-tabs a { padding: 10px 0; border-radius: 10px; color: #8a8175; text-align: center; }
    body.is-auth .auth-tabs a.on { background: #fff; color: #2a241c; font-weight: 600; box-shadow: 0 1px 4px rgba(40,30,10,.06); }
    body.is-auth .auth-field { display: block; margin: 0 0 12px; }
    body.is-auth .auth-field > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    body.is-auth .auth-field input { width: 100%; height: 46px; padding: 0 12px; border: 1px solid #e7e0d6; border-radius: 8px; background: #fff; }
    body.is-auth .captcha { width: 112px; height: 46px; border: 1px solid #e7e0d6; border-radius: 8px; }
    body.is-auth .agree-line { margin: 6px 0; color: #6d655c; font-size: 13px; }
    body.is-auth .agree-line a { color: #b08948; }
    body.is-auth .btn-block { height: 46px; margin-top: 14px; letter-spacing: .2em; }
    body.is-auth .toast-wrap { top: 56px; bottom: auto; width: min(340px, calc(100% - 48px)); }
    body.is-auth .toast { border-radius: 12px; background: #fff; color: #8c2f2b; border: 1px solid #f0d2c8; text-align: center; }
    body.is-auth .toast.ok { color: #3d6b4f; border-color: #d5eadc; }
    .h5-legal { display: block; padding: 8px 16px 12px; color: #9a9084; font-size: 12px; line-height: 1.7; text-align: center; }
    .h5-legal p { margin: 0; }
    .h5-legal a { color: inherit; }
    body.h5-tabs .h5-legal { position: fixed; left: 0; right: 0; bottom: 62px; z-index: 44; padding: 6px 16px 8px; background: #f6f3ee; }
    body.is-home.h5-tabs .h5-legal { background: #100e0c; }
    body.h5-tabs.has-legal .page { padding-bottom: 118px; }
    body.is-home .h5-legal { color: #b7aa9a; }
    body.is-chat .chat { left: 0; right: 0; top: 48px; bottom: 0; width: auto; height: auto; border: 0; border-radius: 0; }
}
