/* ============ 瑞隆纺织 · 瑜伽面料选款站 ============ */
/* 配色：米白/浅灰底 + 深蓝主色，画册式留白 */
:root {
  --bg: #F7F5F0;
  --panel: #FFFFFF;
  --ink: #242A35;
  --muted: #878D98;
  --line: #E7E3D9;
  --brand: #1C2B4A;
  --brand-2: #2C4068;
  --gold: #B08D57;
  --green: #3E7C59;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 43, 74, .10);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------------- 顶部 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: baseline; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #F3EBDD;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 18px; align-self: center;
}
.brand-name { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: 2px; color: var(--brand); }
.brand-sub { font-size: 10px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; }
.search-box { flex: 1; max-width: 420px; display: flex; border: 1px solid var(--line); border-radius: 99px; background: #fff; overflow: hidden; }
.search-box input { flex: 1; border: none; outline: none; padding: 9px 18px; font-size: 14px; background: transparent; }
.search-box button { border: none; background: var(--brand); color: #fff; padding: 0 20px; font-size: 13px; cursor: pointer; letter-spacing: 1px; }
.search-box button:hover { background: var(--brand-2); }
.main-nav { display: flex; gap: 26px; margin-left: auto; flex-shrink: 0; }
.main-nav a { font-size: 14px; color: var(--ink); position: relative; padding: 4px 0; white-space: nowrap; }
.main-nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--gold); transition: width .25s; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

/* ---------------- Hero ---------------- */
.hero { background: linear-gradient(135deg, #182642 0%, #22355C 55%, #2C4068 100%); color: #F2EEE6; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; opacity: .06;
  background: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 90px),
              repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 90px); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 72px 24px 80px; position: relative; }
.hero-kicker { font-size: 12px; letter-spacing: 5px; color: var(--gold); text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font-family: var(--serif); font-size: 44px; line-height: 1.35; font-weight: 700; letter-spacing: 2px; }
.hero p.sub { margin: 20px 0 32px; color: rgba(242, 238, 230, .75); font-size: 15px; max-width: 460px; }
.hero-cta { display: inline-flex; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 99px; padding: 12px 30px; font-size: 14px; letter-spacing: 1px; cursor: pointer; border: 1px solid transparent; transition: all .2s; }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: #9C7B49; transform: translateY(-1px); }
.btn-outline { border-color: rgba(242, 238, 230, .45); color: #F2EEE6; background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--brand-2); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); padding: 9px 20px; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* Hero 轮播 */
.hero-slider { position: relative; aspect-ratio: 4 / 4.6; max-height: 520px; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.hero-slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero-slider .slide.on { opacity: 1; }
.hero-slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 26px 22px; background: linear-gradient(transparent, rgba(16, 24, 42, .88)); color: #F2EEE6; }
.slide-info h3 { font-family: var(--serif); font-size: 22px; letter-spacing: 1px; margin: 6px 0 2px; }
.slide-info p { font-size: 12.5px; color: rgba(242, 238, 230, .7); }
.chip { display: inline-block; font-size: 11px; letter-spacing: 2px; padding: 3px 12px; border-radius: 99px; background: var(--gold); color: #fff; }
.hero-dots { position: absolute; right: 18px; bottom: 20px; display: flex; gap: 7px; z-index: 2; }
.hero-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .4); cursor: pointer; transition: all .3s; }
.hero-dots i.on { background: #fff; width: 20px; border-radius: 99px; }

/* ---------------- 筛选区 ---------------- */
.filter-bar { margin-top: 40px; }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-family: var(--serif); font-size: 26px; color: var(--brand); letter-spacing: 2px; }
.section-head .en { font-size: 11px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; }
.cat-pills { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; }
.cat-pills button {
  flex-shrink: 0; border: 1px solid var(--line); background: var(--panel); border-radius: 99px;
  padding: 8px 20px; font-size: 13.5px; cursor: pointer; color: var(--ink); transition: all .2s;
}
.cat-pills button:hover { border-color: var(--brand); color: var(--brand); }
.cat-pills button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.filter-row select {
  border: 1px solid var(--line); background: var(--panel); border-radius: 10px;
  padding: 9px 14px; font-size: 13.5px; color: var(--ink); outline: none; cursor: pointer; min-width: 120px;
}
.filter-row select:focus { border-color: var(--brand); }
.result-count { margin-left: auto; font-size: 13px; color: var(--muted); }

/* ---------------- 面料卡片 ---------------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding: 28px 0 70px; }
.card {
  background: var(--panel); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s; opacity: 0; transform: translateY(14px);
}
.card.show { opacity: 1; transform: none; transition: opacity .5s, transform .5s, box-shadow .25s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-img { position: relative; aspect-ratio: 4 / 5; background: #EDE9E0; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-img img { transform: scale(1.05); }
.tag-stock { position: absolute; top: 12px; left: 12px; font-size: 11px; letter-spacing: 1px; padding: 3px 10px; border-radius: 99px; color: #fff; background: var(--green); }
.tag-stock.order { background: var(--gold); }
.tag-new { position: absolute; top: 12px; right: 12px; font-size: 11px; letter-spacing: 1px; padding: 3px 10px; border-radius: 99px; background: var(--brand); color: #F3EBDD; }
.card-body { padding: 16px 18px 18px; }
.card-body h3 { font-family: var(--serif); font-size: 16.5px; color: var(--ink); letter-spacing: .5px; }
.card-body .code { font-size: 12px; color: var(--muted); margin: 3px 0 8px; letter-spacing: 1px; }
.card-body .meta { font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; }
.empty-tip { text-align: center; color: var(--muted); padding: 70px 0 90px; font-size: 14px; }

/* ---------------- 关于/页脚 ---------------- */
.about { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 64px 24px; align-items: center; }
.about h2 { font-family: var(--serif); font-size: 28px; color: var(--brand); letter-spacing: 2px; margin-bottom: 16px; }
.about p { color: #4A5160; font-size: 14.5px; }
.about-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-feats div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.about-feats b { display: block; font-family: var(--serif); color: var(--brand); font-size: 16px; margin-bottom: 4px; }
.about-feats span { font-size: 12.5px; color: var(--muted); }

.site-footer { background: var(--brand); color: rgba(242, 238, 230, .8); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 40px; padding: 52px 24px 40px; }
.f-brand { font-family: var(--serif); font-size: 22px; color: #F3EBDD; letter-spacing: 2px; }
.f-slogan { font-size: 13px; color: var(--gold); margin: 6px 0 12px; letter-spacing: 1px; }
.f-note { font-size: 12.5px; line-height: 1.9; max-width: 320px; }
.site-footer h4 { font-size: 13px; letter-spacing: 2px; color: #F3EBDD; margin-bottom: 14px; }
.site-footer p, .site-footer a { font-size: 13.5px; display: block; margin-bottom: 8px; }
.site-footer a:hover { color: var(--gold); }
.f-qr { width: 96px; height: 96px; border-radius: 10px; background: #fff; padding: 6px; }
.f-qr img { width: 100%; height: 100%; object-fit: contain; }
.f-copy { border-top: 1px solid rgba(255, 255, 255, .12); text-align: center; padding: 18px; font-size: 12px; color: rgba(242, 238, 230, .5); }

/* 浮动选款单 */
.cart-fab {
  position: fixed; right: 22px; bottom: 26px; z-index: 60;
  background: var(--brand); color: #F3EBDD; border-radius: 99px; padding: 13px 22px;
  font-size: 14px; letter-spacing: 1px; box-shadow: 0 12px 28px rgba(28, 43, 74, .35);
  display: inline-flex; align-items: center; gap: 9px; transition: transform .2s;
}
.cart-fab:hover { transform: translateY(-2px); background: var(--brand-2); }
.cart-count { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--gold); color: #fff; font-size: 11.5px; display: none; align-items: center; justify-content: center; }

/* ---------------- 详情页 ---------------- */
.crumb { font-size: 12.5px; color: var(--muted); padding: 22px 0 0; }
.crumb a:hover { color: var(--brand); }
.detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; padding: 22px 0 70px; }
.gallery-main { border-radius: 16px; overflow: hidden; background: #EDE9E0; aspect-ratio: 4 / 4.4; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.gallery-thumbs img { width: 76px; height: 88px; object-fit: cover; border-radius: 10px; cursor: pointer; border: 2px solid transparent; opacity: .75; transition: all .2s; }
.gallery-thumbs img.on, .gallery-thumbs img:hover { border-color: var(--brand); opacity: 1; }
.d-info h1 { font-family: var(--serif); font-size: 30px; color: var(--brand); letter-spacing: 1px; }
.d-code { color: var(--muted); font-size: 13px; letter-spacing: 1px; margin: 6px 0 14px; }
.d-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.d-tags span { font-size: 12px; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: #4A5160; }
.d-tags span.stk { border: none; color: #fff; background: var(--green); }
.d-tags span.stk.order { background: var(--gold); }
.param-table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 26px; }
.param-table td { padding: 11px 18px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.param-table tr:last-child td { border-bottom: none; }
.param-table td:first-child { width: 108px; color: var(--muted); background: #FBFAF6; }
.d-actions { display: flex; gap: 14px; }
.d-actions .btn { flex: 1; padding: 14px; font-size: 15px; }
.related h2 { font-family: var(--serif); font-size: 22px; color: var(--brand); margin-bottom: 20px; letter-spacing: 2px; }
.related .grid { grid-template-columns: repeat(4, 1fr); padding-bottom: 80px; }

/* ---------------- 弹窗 ---------------- */
.modal-mask { position: fixed; inset: 0; z-index: 80; background: rgba(22, 28, 42, .55); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-mask.open { display: flex; }
.modal { background: var(--panel); border-radius: 18px; max-width: 560px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 32px 34px; position: relative; animation: up .25s ease; }
@keyframes up { from { transform: translateY(16px); opacity: 0; } }
.modal-close { position: absolute; top: 14px; right: 16px; border: none; background: none; font-size: 22px; color: var(--muted); cursor: pointer; line-height: 1; }
.modal h3 { font-family: var(--serif); font-size: 22px; color: var(--brand); letter-spacing: 1px; margin-bottom: 4px; }
.modal .m-sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.quote-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.quote-ways .way { border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; background: #FBFAF6; }
.way b { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; letter-spacing: 1px; }
.way .phone-big { font-size: 19px; font-weight: 700; color: var(--brand); letter-spacing: .5px; }
.way .qr { width: 96px; height: 96px; margin: 4px auto 6px; border-radius: 8px; background: repeating-conic-gradient(#222 0 25%, #fff 0 50%) 0 0 / 16px 16px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.way .qr img { width: 100%; height: 100%; object-fit: cover; }
.way .qr span { background: rgba(255,255,255,.9); font-size: 10.5px; color: var(--muted); padding: 3px 6px; border-radius: 4px; }
.m-divider { text-align: center; font-size: 12px; color: var(--muted); margin: 6px 0 16px; position: relative; }
.m-divider::before, .m-divider::after { content: ''; position: absolute; top: 50%; width: 32%; height: 1px; background: var(--line); }
.m-divider::before { left: 0; } .m-divider::after { right: 0; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; color: #4A5160; margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
  font-size: 14px; outline: none; font-family: var(--sans); background: #fff; color: var(--ink);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--brand); }
.form-row textarea { resize: vertical; min-height: 76px; }

/* ---------------- 选款单页 ---------------- */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-family: var(--serif); font-size: 30px; color: var(--brand); letter-spacing: 2px; }
.page-head p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; padding: 24px 0 80px; align-items: start; }
.cart-item { display: flex; gap: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.cart-item img { width: 96px; height: 112px; object-fit: cover; border-radius: 10px; }
.cart-item .ci-body { flex: 1; }
.cart-item h3 { font-family: var(--serif); font-size: 16.5px; color: var(--ink); }
.cart-item .ci-code { font-size: 12px; color: var(--muted); margin: 2px 0 6px; }
.cart-item .ci-meta { font-size: 12.5px; color: var(--muted); }
.ci-remove { border: none; background: none; color: var(--muted); cursor: pointer; font-size: 12.5px; align-self: flex-start; padding: 4px 8px; }
.ci-remove:hover { color: #B0413E; }
.cart-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 92px; }
.cart-form h3 { font-family: var(--serif); font-size: 19px; color: var(--brand); margin-bottom: 16px; }
.cart-empty { text-align: center; padding: 90px 0 110px; color: var(--muted); }
.success-box { text-align: center; padding: 80px 0 100px; }
.success-box .ok-ico { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: var(--green); color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center; }
.success-box h2 { font-family: var(--serif); color: var(--brand); font-size: 24px; margin-bottom: 10px; }
.success-box p { color: var(--muted); font-size: 14px; }

/* ---------------- Toast ---------------- */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(16px); z-index: 99; background: rgba(28, 34, 48, .92); color: #fff; font-size: 13.5px; padding: 11px 24px; border-radius: 99px; opacity: 0; transition: all .3s; pointer-events: none; max-width: 80vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- 管理后台 ---------------- */
.admin-topbar { background: var(--brand); color: #F3EBDD; }
.admin-topbar .wrap { display: flex; align-items: center; gap: 22px; height: 58px; }
.admin-topbar .t { font-family: var(--serif); font-size: 17px; letter-spacing: 2px; }
.admin-topbar a, .admin-topbar button.link { font-size: 13px; color: rgba(243, 235, 221, .75); background: none; border: none; cursor: pointer; margin-left: auto; }
.admin-topbar button.link:hover, .admin-topbar a:hover { color: var(--gold); }
.admin-tabs { display: flex; gap: 8px; padding: 22px 0 0; flex-wrap: wrap; }
.admin-tabs button { border: 1px solid var(--line); background: var(--panel); border-radius: 99px; padding: 8px 22px; font-size: 13.5px; cursor: pointer; }
.admin-tabs button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.admin-body { padding: 24px 0 80px; }
.admin-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.admin-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-toolbar h2 { font-family: var(--serif); font-size: 20px; color: var(--brand); margin-right: auto; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { text-align: left; color: var(--muted); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 12.5px; }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid #F0EDE4; vertical-align: middle; }
.admin-table img.thumb { width: 44px; height: 52px; object-fit: cover; border-radius: 6px; }
.admin-table .mini { font-size: 11px; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.mini.g { background: #E4F0E9; color: var(--green); }
.mini.o { background: #F5EBDD; color: var(--gold); }
.mini.off { background: #EEE; color: var(--muted); }
.row-btn { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 12px; font-size: 12px; cursor: pointer; margin-right: 6px; white-space: nowrap; }
.row-btn:hover { border-color: var(--brand); color: var(--brand); }
.row-btn.danger:hover { border-color: #B0413E; color: #B0413E; }
.login-box { max-width: 380px; margin: 90px auto; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 40px 36px; box-shadow: var(--shadow); }
.login-box h2 { font-family: var(--serif); color: var(--brand); font-size: 24px; text-align: center; letter-spacing: 2px; }
.login-box .sub { text-align: center; color: var(--muted); font-size: 12.5px; margin: 8px 0 26px; }
.inq-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 14px; background: #FBFAF6; }
.inq-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.inq-head b { font-size: 15px; color: var(--brand); }
.inq-head a.tel { color: var(--gold); font-weight: 600; }
.inq-head time { font-size: 12px; color: var(--muted); }
.inq-items { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.inq-items span { font-size: 12px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 3px 12px; }
.inq-msg { font-size: 13px; color: #4A5160; }
.img-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.img-list .it { position: relative; width: 74px; }
.img-list img { width: 74px; height: 86px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.img-list .it.main img { border-color: var(--gold); }
.img-list .it .m { position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); font-size: 10px; background: var(--gold); color: #fff; border-radius: 99px; padding: 1px 8px; white-space: nowrap; }
.img-list .it .x { position: absolute; top: -7px; right: -7px; width: 19px; height: 19px; border-radius: 50%; border: none; background: rgba(20, 26, 40, .8); color: #fff; font-size: 11px; cursor: pointer; line-height: 1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.check-row { display: flex; gap: 22px; align-items: center; padding: 6px 0 12px; font-size: 13.5px; }
.check-row label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.cat-manage { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.cat-manage .c { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 99px; padding: 7px 16px; background: #FBFAF6; font-size: 13.5px; }
.cat-manage .c button { border: none; background: none; cursor: pointer; color: var(--muted); font-size: 12px; }
.cat-manage .c button:hover { color: var(--brand); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .related .grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 12px; }
  .search-box { order: 3; max-width: none; flex-basis: 100%; }
  .main-nav { overflow-x: auto; gap: 18px; }
  .hero-inner { grid-template-columns: 1fr; padding: 48px 24px 56px; gap: 30px; }
  .hero h1 { font-size: 32px; }
  .hero-slider { aspect-ratio: 4 / 3.4; }
  .detail { grid-template-columns: 1fr; gap: 26px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-form { position: static; }
  .about-inner { grid-template-columns: 1fr; gap: 26px; padding: 46px 24px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .related .grid { grid-template-columns: repeat(2, 1fr); }
  .card-body { padding: 12px 13px 14px; }
  .card-body h3 { font-size: 14.5px; }
  .brand-sub { display: none; }
  .section-head h2 { font-size: 22px; }
  .hero h1 { font-size: 27px; }
  .d-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 40px 24px 30px; }
  .modal { padding: 26px 22px; }
  .quote-ways { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
}
