/* ==========================================================================
   拾光饰集 · 前台样式
   设计基调：暖白底 + 香槟金主色 + 大留白，突出实物商品照片本身
   ========================================================================== */

:root {
    --color-bg: #faf7f2;
    --color-surface: #ffffff;
    --color-gold: #b8935f;
    --color-gold-dark: #9a7748;
    --color-gold-light: #f3e9d8;
    --color-ink: #2f2a26;
    --color-text: #57504a;
    --color-muted: #94877b;
    --color-line: #eee6da;
    --color-accent: #a2543f;
    --color-success: #4c8c6b;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 10px rgba(120, 95, 60, .06);
    --shadow: 0 10px 30px rgba(120, 95, 60, .10);
    --shadow-lg: 0 18px 46px rgba(120, 95, 60, .16);
    --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 60px;
}

a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-gold-dark); }
img { max-width: 100%; display: block; border: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--color-ink); font-weight: 600; line-height: 1.4; }
p { margin: 0 0 10px; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 980px; }

/* ---------- 顶部 ---------- */
.topbar {
    background: linear-gradient(90deg, #f6efe5, #fbf8f4);
    color: var(--color-muted);
    font-size: 12px;
    border-bottom: 1px solid var(--color-line);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a { color: var(--color-muted); }
.topbar span + span { margin-left: 18px; }

.header {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(1.2) blur(8px);
    border-bottom: 1px solid var(--color-line);
    position: sticky;
    top: 0;
    z-index: 60;
}
.header .container {
    display: flex; align-items: center; gap: 24px; height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; color: var(--color-ink); font-weight: 700; letter-spacing: 2px; white-space: nowrap; }
.logo .mark {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: #fff; font-size: 15px; display: flex; align-items: center; justify-content: center;
    letter-spacing: 0; box-shadow: var(--shadow-sm);
}
.logo small { display: block; font-size: 11px; color: var(--color-muted); letter-spacing: 1px; font-weight: 400; }

.nav { display: flex; gap: 26px; font-size: 15px; }
.nav a { color: var(--color-ink); padding: 6px 0; position: relative; }
.nav a.active::after, .nav a:hover::after {
    content: ""; position: absolute; left: 50%; transform: translateX(-50%);
    bottom: -2px; width: 22px; height: 2px; background: var(--color-gold); border-radius: 2px;
}

.search {
    flex: 1; max-width: 380px; display: flex; align-items: center;
    background: #f6f1ea; border: 1px solid transparent; border-radius: 999px; padding: 0 6px 0 16px;
    transition: border-color .2s ease;
}
.search:focus-within { border-color: var(--color-gold); background: #fff; }
.search input {
    flex: 1; border: 0; outline: 0; background: transparent; height: 38px; font-size: 13px; color: var(--color-ink);
    font-family: var(--font);
}
.search button {
    border: 0; background: var(--color-gold); color: #fff; height: 32px; padding: 0 18px;
    border-radius: 999px; cursor: pointer; font-size: 13px; font-family: var(--font);
}
.search button:hover { background: var(--color-gold-dark); }

.header-actions { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.header-actions .cart-link { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.header-actions .badge {
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--color-accent);
    color: #fff; font-size: 11px; line-height: 18px; text-align: center; display: inline-block;
}
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 1px solid var(--color-gold); background: var(--color-gold); color: #fff;
    padding: 9px 22px; border-radius: 999px; cursor: pointer; font-size: 13px; font-family: var(--font);
    transition: all .2s ease;
}
.btn:hover { background: var(--color-gold-dark); border-color: var(--color-gold-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--color-gold); }
.btn.ghost:hover { background: var(--color-gold-light); color: var(--color-gold-dark); }
.btn.light { background: #fff; border-color: var(--color-line); color: var(--color-ink); }
.btn.light:hover { border-color: var(--color-gold); color: var(--color-gold-dark); background: #fff; }
.btn.block { width: 100%; }
.btn.lg { padding: 13px 30px; font-size: 15px; }

.menu-toggle { display: none; border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--color-ink); }

/* ---------- 轮播 ---------- */
.banner { position: relative; height: 420px; overflow: hidden; background: #efe7db; }
.banner .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.banner .slide.active { opacity: 1; }
.banner .slide img { width: 100%; height: 100%; object-fit: cover; }
.banner .caption {
    position: absolute; left: 8%; bottom: 16%; color: #fff; max-width: 420px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}
.banner .caption h2 { color: #fff; font-size: 34px; letter-spacing: 3px; margin-bottom: 8px; }
.banner .caption p { font-size: 15px; margin-bottom: 18px; opacity: .95; }
.banner .dots { position: absolute; right: 8%; bottom: 18%; display: flex; gap: 8px; }
.banner .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .5); cursor: pointer; }
.banner .dots i.on { background: #fff; width: 22px; border-radius: 6px; }

/* ---------- 区块 ---------- */
.section { padding: 54px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.section-head h2 { font-size: 24px; letter-spacing: 1px; }
.section-head .sub { color: var(--color-muted); font-size: 13px; margin-top: 4px; }
.section-head .more { font-size: 13px; color: var(--color-gold-dark); }

/* 分类导航（实物图片） */
.cat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 18px; }
.cat-item { text-align: center; }
.cat-item .thumb {
    width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #fff;
    box-shadow: var(--shadow-sm); border: 3px solid #fff; transition: transform .25s ease, box-shadow .25s ease;
}
.cat-item:hover .thumb { transform: translateY(-5px); box-shadow: var(--shadow); }
.cat-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-item p { margin: 10px 0 0; font-size: 13px; color: var(--color-ink); }

/* ---------- 商品卡片 ---------- */
.goods-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.goods-grid.col3 { grid-template-columns: repeat(3, 1fr); }
.goods-card {
    background: var(--color-surface); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; position: relative;
}
.goods-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.goods-card .pic { position: relative; aspect-ratio: 1; overflow: hidden; background: #f2ece3; }
.goods-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.goods-card:hover .pic img { transform: scale(1.06); }
.goods-card .tag {
    position: absolute; left: 12px; top: 12px; background: rgba(184, 147, 95, .94); color: #fff;
    font-size: 11px; padding: 3px 10px; border-radius: 999px;
}
.goods-card .body { padding: 16px 18px 20px; }
.goods-card .name {
    font-size: 15px; color: var(--color-ink); font-weight: 500; margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.goods-card .desc {
    font-size: 12px; color: var(--color-muted); height: 22px; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; margin-bottom: 12px;
}
.goods-card .price-row { display: flex; align-items: baseline; justify-content: space-between; }
.goods-card .price { color: var(--color-accent); font-size: 19px; font-weight: 600; }
.goods-card .price small { font-size: 12px; font-weight: 400; }
.goods-card .origin { color: var(--color-muted); font-size: 12px; text-decoration: line-through; margin-left: 6px; }
.goods-card .sales { font-size: 12px; color: var(--color-muted); }

/* ---------- 服务保障 ---------- */
.service-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 0; border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.service-item { text-align: center; }
.service-item h4 { font-size: 15px; margin-bottom: 4px; }
.service-item p { font-size: 12px; color: var(--color-muted); margin: 0; }

/* ---------- 品牌故事 ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.story img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.story h2 { font-size: 26px; margin-bottom: 16px; }
.story p { color: var(--color-text); }

/* ---------- 面包屑 ---------- */
.crumb { padding: 22px 0 6px; font-size: 13px; color: var(--color-muted); }
.crumb a { color: var(--color-muted); }
.crumb span { margin: 0 6px; }

/* ---------- 筛选栏 ---------- */
.filter-bar {
    background: #fff; border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow-sm);
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 18px 0 24px;
}
.filter-bar .opts { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-bar .opts a {
    padding: 6px 16px; border-radius: 999px; background: #f6f1ea; color: var(--color-text); font-size: 13px;
}
.filter-bar .opts a.active { background: var(--color-gold); color: #fff; }
.filter-bar .count { font-size: 13px; color: var(--color-muted); }

/* ---------- 商品详情 ---------- */
.detail-wrap { display: grid; grid-template-columns: 460px 1fr; gap: 44px; padding: 10px 0 40px; }
.gallery .main-pic { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); aspect-ratio: 1; }
.gallery .main-pic img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.gallery .thumbs img {
    aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer;
    border: 2px solid transparent; transition: border-color .2s ease;
}
.gallery .thumbs img.on { border-color: var(--color-gold); }

.detail-info h1 { font-size: 26px; margin-bottom: 10px; }
.detail-info .subtitle { color: var(--color-muted); font-size: 14px; margin-bottom: 18px; }
.price-box { background: linear-gradient(120deg, #fdf6ec, #f7efe2); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 22px; }
.price-box .now { color: var(--color-accent); font-size: 30px; font-weight: 600; }
.price-box .old { color: var(--color-muted); text-decoration: line-through; margin-left: 10px; }
.price-box .meta { display: flex; gap: 24px; margin-top: 10px; font-size: 13px; color: var(--color-muted); }
.attr-list { margin-bottom: 22px; }
.attr-list .row { display: flex; margin-bottom: 12px; font-size: 13px; }
.attr-list .row .label { width: 68px; color: var(--color-muted); }
.attr-list .row .value { color: var(--color-ink); }
.buy-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--color-line); border-radius: 999px; overflow: hidden; background: #fff; }
.stepper button { width: 34px; height: 34px; border: 0; background: #fff; cursor: pointer; font-size: 16px; color: var(--color-ink); }
.stepper input { width: 46px; height: 34px; border: 0; text-align: center; font-size: 14px; font-family: var(--font); color: var(--color-ink); }
.detail-content { margin-top: 40px; background: #fff; border-radius: var(--radius); padding: 30px 34px; box-shadow: var(--shadow-sm); }
.detail-content h3 { font-size: 18px; margin-bottom: 14px; padding-left: 12px; border-left: 3px solid var(--color-gold); }
.detail-content .body { line-height: 2; color: var(--color-text); }

/* ---------- 表格 / 列表（购物车、订单） ---------- */
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 24px; }
.panel-head { padding: 16px 22px; border-bottom: 1px solid var(--color-line); font-size: 16px; color: var(--color-ink); font-weight: 600; }
.panel-body { padding: 22px; }

.cart-item {
    display: grid; grid-template-columns: 96px 1fr 140px 120px 60px; gap: 18px; align-items: center;
    padding: 18px 22px; border-bottom: 1px solid var(--color-line);
}
.cart-item img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item .name { color: var(--color-ink); font-size: 15px; }
.cart-item .spec { color: var(--color-muted); font-size: 12px; }
.cart-item .price { color: var(--color-accent); font-weight: 600; }
.cart-summary { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; background: #fdfaf6; }
.cart-summary .total { font-size: 15px; }
.cart-summary .total b { color: var(--color-accent); font-size: 24px; }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { background: #faf6f0; color: var(--color-ink); font-weight: 600; padding: 12px 16px; text-align: left; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--color-line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); }

.status { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; }
.status.wait { background: #fdf1e4; color: #b47b2c; }
.status.doing { background: #e8f1fb; color: #2f6db5; }
.status.done { background: #e8f5ee; color: #3f8560; }
.status.off { background: #f2f0ee; color: #91897f; }

/* ---------- 表单 ---------- */
.form-page { max-width: 460px; margin: 40px auto 60px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 38px 40px; }
.form-page h2 { font-size: 22px; text-align: center; margin-bottom: 6px; }
.form-page .tip { text-align: center; color: var(--color-muted); font-size: 13px; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--color-ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
    width: 100%; border: 1px solid var(--color-line); background: #fdfbf8; border-radius: var(--radius-sm);
    padding: 11px 14px; font-size: 14px; font-family: var(--font); color: var(--color-ink); outline: 0;
    transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-gold); background: #fff; }
.field .hint { font-size: 12px; color: var(--color-muted); margin-top: 5px; }
.field-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.error-tip { background: #fdecec; color: #b3453a; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px; }
.ok-tip { background: #eaf6ef; color: #3f8560; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px; }

.upload-box { border: 1px dashed var(--color-line); border-radius: var(--radius-sm); padding: 18px; text-align: center; background: #fdfbf8; }
.upload-box img { max-height: 160px; margin: 0 auto 10px; border-radius: var(--radius-sm); }

.agree { font-size: 13px; color: var(--color-muted); }
.agree a { color: var(--color-gold-dark); }

/* ---------- 入驻流程 ---------- */
.step-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 30px 0; }
.step-flow .step { text-align: center; }
.step-flow .num {
    width: 42px; height: 42px; border-radius: 50%; background: var(--color-gold-light); color: var(--color-gold-dark);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-weight: 600;
}
.step-flow p { font-size: 13px; margin: 0; color: var(--color-muted); }

/* ---------- 文档中心 ---------- */
.doc-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.doc-card { background: #fff; border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.doc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.doc-card h3 { font-size: 17px; margin-bottom: 10px; }
.doc-card p { font-size: 13px; color: var(--color-muted); margin-bottom: 16px; min-height: 44px; }
.doc-card .go { font-size: 13px; color: var(--color-gold-dark); }

.doc-body { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 40px 46px; margin-bottom: 40px; }
.doc-body h1 { font-size: 26px; margin-bottom: 8px; }
.doc-body .meta { color: var(--color-muted); font-size: 12px; margin-bottom: 26px; padding-bottom: 16px; border-bottom: 1px solid var(--color-line); }
.doc-body h3 { font-size: 17px; margin: 24px 0 10px; }
.doc-body p { line-height: 2; }

/* ---------- 个人中心 ---------- */
.user-layout { display: grid; grid-template-columns: 220px 1fr; gap: 26px; padding: 30px 0 50px; }
.user-side { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px 0; align-self: start; }
.user-side .avatar { text-align: center; padding: 10px 0 18px; border-bottom: 1px solid var(--color-line); margin-bottom: 10px; }
.user-side .avatar .circle {
    width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 10px; color: #fff; font-size: 22px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    display: flex; align-items: center; justify-content: center;
}
.user-side a { display: block; padding: 11px 24px; font-size: 14px; color: var(--color-text); border-left: 3px solid transparent; }
.user-side a.active, .user-side a:hover { color: var(--color-gold-dark); background: #fdf8f1; border-left-color: var(--color-gold); }

.count-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.count-box { background: #fff; border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow-sm); }
.count-box b { display: block; font-size: 24px; color: var(--color-gold-dark); }
.count-box span { font-size: 12px; color: var(--color-muted); }

/* ---------- 结果页 ---------- */
.result-box { max-width: 620px; margin: 60px auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 46px 44px; text-align: center; }
.result-box .icon {
    width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 20px; color: #fff; font-size: 36px;
    background: linear-gradient(135deg, #6cb490, #4c8c6b); display: flex; align-items: center; justify-content: center;
}
.result-box h2 { font-size: 22px; margin-bottom: 10px; }
.result-box p { color: var(--color-muted); }
.result-box .info { text-align: left; background: #fdfaf6; border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; font-size: 13px; }
.result-box .actions { display: flex; gap: 12px; justify-content: center; }

/* ---------- 分页 ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 34px 0; flex-wrap: wrap; }
.pagination li { list-style: none; }
.pagination a, .pagination span {
    display: inline-block; min-width: 36px; height: 36px; line-height: 36px; text-align: center; padding: 0 10px;
    border-radius: var(--radius-sm); background: #fff; color: var(--color-text); box-shadow: var(--shadow-sm); font-size: 13px;
}
.pagination .active span { background: var(--color-gold); color: #fff; }
.pagination .disabled span { color: #c9c2b8; }

/* ---------- 页脚 ---------- */
.footer { background: #2f2a26; color: #c8bfb4; margin-top: 50px; padding: 46px 0 0; font-size: 13px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 30px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 600; }
.footer a { color: #c8bfb4; display: block; padding: 4px 0; }
.footer a:hover { color: var(--color-gold); }
.footer .about p { line-height: 1.9; }
.footer .bottom {
    border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; display: flex;
    justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #9d948a;
}
.footer .bottom a { display: inline; color: #9d948a; }
.footer .bottom a:hover { color: var(--color-gold); }

/* ---------- 移动端底部导航 ---------- */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: none;
    background: #fff; border-top: 1px solid var(--color-line); padding: 6px 0;
}
.tabbar a { flex: 1; text-align: center; font-size: 11px; color: var(--color-muted); }
.tabbar a .ic { display: block; font-size: 19px; line-height: 1.4; }
.tabbar a.active { color: var(--color-gold-dark); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .goods-grid { grid-template-columns: repeat(3, 1fr); }
    .detail-wrap { grid-template-columns: 380px 1fr; gap: 30px; }
}

@media (max-width: 860px) {
    .banner { height: 260px; }
    .banner .caption h2 { font-size: 22px; }
    .detail-wrap { grid-template-columns: 1fr; }
    .story { grid-template-columns: 1fr; gap: 22px; }
    .doc-list { grid-template-columns: repeat(2, 1fr); }
    .user-layout { grid-template-columns: 1fr; }
    .count-grid { grid-template-columns: repeat(3, 1fr); }
    .service-bar { grid-template-columns: repeat(2, 1fr); }
    .step-flow { grid-template-columns: repeat(2, 1fr); }
    .cart-item { grid-template-columns: 76px 1fr; gap: 14px; }
    .cart-item .col-num, .cart-item .col-op { grid-column: span 1; }
}

@media (max-width: 720px) {
    body { padding-bottom: 62px; }
    .header .container { height: 58px; gap: 12px; }
    .logo { font-size: 17px; letter-spacing: 1px; }
    .logo .mark { width: 32px; height: 32px; font-size: 13px; }
    .nav, .header-actions .txt, .topbar .left { display: none; }
    .menu-toggle { display: block; }
    .search { max-width: none; }
    .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .goods-grid, .goods-grid.col3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .section { padding: 34px 0; }
    .section-head h2 { font-size: 19px; }
    .doc-list { grid-template-columns: 1fr; }
    .detail-info h1 { font-size: 20px; }
    .price-box .now { font-size: 24px; }
    .form-page { padding: 26px 22px; margin: 20px auto 40px; }
    .doc-body { padding: 24px 20px; }
    .panel-body { padding: 16px; }
    .table th:nth-child(n+4), .table td:nth-child(n+4) { display: none; }
    .footer .cols { grid-template-columns: 1fr 1fr; gap: 20px; }
    .tabbar { display: flex; }
    .mobile-nav {
        display: none; position: fixed; inset: 58px 0 0; background: #fff; z-index: 70; padding: 18px;
        overflow-y: auto;
    }
    .mobile-nav.open { display: block; }
    .mobile-nav a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--color-line); font-size: 15px; color: var(--color-ink); }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .goods-grid { grid-template-columns: repeat(2, 1fr); }
    .count-grid { grid-template-columns: repeat(2, 1fr); }
    .banner { height: 210px; }
}
