/* =========================================================
   臻选 Laravel Shop · 前台设计系统（方向一：臻选极简）
   暖白纸色底 + 墨色 + 金色点缀，衬线标题，大留白
   ========================================================= */
:root {
    --ink: #1a1a1a;
    --ink-2: #3d3a36;
    --muted: #8a8580;
    --line: #ebe7e1;
    --paper: #faf8f5;
    --surface: #ffffff;
    --soft: #f3efe9;
    --gold: #a8824f;
    --gold-soft: #f6efe4;
    --price: #b8402f;
    --success: #4f7a5a;
    --radius: 2px;
    --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", Georgia, serif;
    --sans: "PingFang SC", "Microsoft YaHei", -apple-system, "Helvetica Neue", sans-serif;
    --container: 1200px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; }
.serif { font-family: var(--serif); }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.price { color: var(--price); font-family: Georgia, var(--serif); font-weight: 500; white-space: nowrap; }
.price small { font-size: .7em; margin-right: 1px; }
.price-origin { color: #b5b0a8; text-decoration: line-through; font-size: 12px; margin-left: 6px; }

/* ---------- 按钮 ---------- */
.btn-ink, .btn-line, .btn-gold { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 28px; font-size: 14px; letter-spacing: 2px; border-radius: var(--radius); border: 1px solid var(--ink); cursor: pointer; transition: all .2s; white-space: nowrap; font-family: var(--sans); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; color: #fff; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: #94713f; color: #fff; }
.btn-ink:disabled, .btn-line:disabled, .btn-gold:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { padding: 6px 16px; font-size: 12px; letter-spacing: 1px; }
.btn-lg { padding: 15px 44px; font-size: 15px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font-size: 13px; }
.link-btn:hover { color: var(--gold); }

/* ---------- 顶部 / 导航 ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar nav { display: flex; gap: 22px; align-items: center; }
.topbar .balance { color: var(--gold); }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.site-header .wrap { display: flex; align-items: center; height: 80px; gap: 44px; }
.logo { display: flex; flex-direction: column; line-height: 1.1; }
.logo b { font-family: var(--serif); font-size: 26px; letter-spacing: 6px; font-weight: 600; color: var(--ink); }
.logo small { font-family: Georgia, serif; font-size: 9px; letter-spacing: 4px; color: var(--gold); margin-top: 4px; }
.main-nav { display: flex; gap: 30px; font-size: 15px; white-space: nowrap; }
.main-nav a { padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a.on { color: var(--gold); border-bottom-color: var(--gold); }
.main-nav a.hot { color: var(--price); }
.search { margin-left: auto; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 20px; padding: 0 6px 0 16px; width: 260px; background: var(--paper); }
.search input { border: 0; background: transparent; outline: none; flex: 1; height: 36px; font-size: 13px; }
.search button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; }
.header-icons { display: flex; gap: 22px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.header-icons .badge-dot { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; text-align: center; line-height: 18px; }

/* ---------- 通用区块 ---------- */
main { min-height: 60vh; }
.section { padding-top: 64px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.section-head h2 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: 2px; }
.section-head h2 small { display: block; font-family: Georgia, serif; font-size: 11px; letter-spacing: 5px; color: var(--gold); margin-bottom: 8px; text-transform: uppercase; }
.section-head .more { color: var(--muted); font-size: 13px; }
.panel { background: var(--surface); border: 1px solid var(--line); padding: 28px; }
.panel-title { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: 2px; margin: 0 0 20px; }
.page-title { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: 2px; margin: 36px 0 24px; }
.breadcrumb-lite { font-size: 12px; color: var(--muted); margin: 24px 0 0; }
.breadcrumb-lite a:hover { color: var(--gold); }
.empty { text-align: center; padding: 80px 0; color: var(--muted); }
.empty .icon { font-size: 44px; color: #d5cec4; display: block; margin-bottom: 12px; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }
.tag-gold { display: inline-block; font-size: 11px; padding: 2px 8px; background: var(--gold-soft); color: var(--gold); letter-spacing: 1px; }
.tag-red { display: inline-block; font-size: 11px; padding: 2px 8px; background: #fbeceb; color: var(--price); }

/* ---------- 提示 ---------- */
.flash { margin: 20px 0 0; padding: 12px 18px; border: 1px solid; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.flash-success { border-color: #cfe0d3; background: #f3f8f4; color: var(--success); }
.flash-error { border-color: #f0d3cf; background: #fcf3f2; color: var(--price); }
.flash .close { background: none; border: 0; cursor: pointer; color: inherit; font-size: 16px; }
.toast-wrap { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 8px; }
.toast-item { background: var(--ink); color: #fff; padding: 12px 24px; font-size: 14px; letter-spacing: 1px; box-shadow: 0 8px 24px rgba(0,0,0,.15); animation: toastIn .2s ease; }
.toast-item.error { background: var(--price); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- 首页 ---------- */
.hero { position: relative; height: 520px; overflow: hidden; background: #2b2723; }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero .slide.active { opacity: 1; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero .slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26,22,18,.78) 0%, rgba(26,22,18,.45) 38%, transparent 68%); }
.hero .caption { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); left: max(16px, calc((100% - var(--container)) / 2 + 16px)); max-width: 480px; color: #fff; }
.hero .eyebrow { font-family: Georgia, serif; font-size: 12px; letter-spacing: 6px; color: #e9d3ae; text-transform: uppercase; }
.hero h1 { font-family: var(--serif); font-size: 50px; line-height: 1.25; margin: 16px 0; font-weight: 600; text-shadow: 0 2px 24px rgba(0,0,0,.2); }
.hero p { color: #f3efe9; font-size: 16px; line-height: 1.8; margin: 0 0 28px; }
.hero .btn-ink { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn-ink:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.hero .dots { position: absolute; z-index: 2; bottom: 28px; left: max(16px, calc((100% - var(--container)) / 2 + 16px)); display: flex; gap: 10px; }
.hero .dots button { width: 28px; height: 2px; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; }
.hero .dots button.active { background: #fff; }
.promise { background: var(--surface); border-bottom: 1px solid var(--line); }
.promise .wrap { display: flex; justify-content: space-between; height: 62px; align-items: center; color: #6b6660; font-size: 13px; }
.promise i { color: var(--gold); margin-right: 8px; }

.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-tile { position: relative; height: 200px; overflow: hidden; display: block; background: var(--soft); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; color: #fff; font-family: var(--serif); font-size: 18px; letter-spacing: 3px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }

.flash-sale { display: grid; grid-template-columns: 280px 1fr; background: var(--surface); border: 1px solid var(--line); }
.flash-sale .intro { padding: 40px 36px; border-right: 1px solid var(--line); background: linear-gradient(160deg, #fff, #f6f0e7); }
.flash-sale .intro h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: 3px; margin: 0; }
.flash-sale .intro p { color: var(--muted); margin: 10px 0 24px; font-size: 13px; }
.flash-sale .items { display: grid; grid-template-columns: repeat(4, 1fr); }
.flash-item { padding: 22px; border-right: 1px solid var(--line); display: block; }
.flash-item:last-child { border-right: 0; }
.flash-item img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--soft); }
.flash-item .name { margin-top: 12px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flash-item .price { font-size: 20px; }
.progress-gold { height: 3px; background: #efe9df; margin-top: 10px; }
.progress-gold i { display: block; height: 3px; background: var(--gold); }
.countdown { display: inline-flex; gap: 6px; align-items: center; font-family: Georgia, serif; }
.countdown span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; background: var(--ink); color: #fff; font-size: 18px; padding: 0 6px; }
.countdown.sm span { min-width: 26px; height: 26px; font-size: 13px; }

/* ---------- 商品卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.product-grid.cols-5 { grid-template-columns: repeat(5, 1fr); gap: 24px 16px; }
.product-card { display: block; background: var(--surface); transition: box-shadow .3s; }
.product-card:hover { box-shadow: 0 12px 32px rgba(60,45,25,.08); color: inherit; }
.product-card .img { position: relative; aspect-ratio: 1; background: var(--soft); overflow: hidden; }
.product-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .img img { transform: scale(1.04); }
.product-card .img .tag-gold { position: absolute; left: 12px; top: 12px; background: #fff; }
.product-card .body { padding: 16px 16px 20px; }
.product-card .title { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card .sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.product-card .meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; }
.product-card .price { font-size: 20px; }
.product-card .sales { font-size: 12px; color: var(--muted); }

/* ---------- 列表筛选 ---------- */
.filter-bar { background: var(--surface); border: 1px solid var(--line); padding: 20px 24px; margin-top: 28px; }
.filter-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.filter-row + .filter-row { border-top: 1px dashed var(--line); }
.filter-row > label { width: 64px; flex-shrink: 0; color: var(--muted); font-size: 13px; padding-top: 4px; }
.filter-row .opts { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.filter-row .opts a { font-size: 13px; padding: 4px 0; border-bottom: 1px solid transparent; }
.filter-row .opts a.on { color: var(--gold); border-bottom-color: var(--gold); }
.pager { display: flex; justify-content: center; margin-top: 48px; }
.pager .pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.pager .page-link { display: block; min-width: 36px; padding: 6px 12px; text-align: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.pager .page-item.active .page-link { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .page-item.disabled .page-link { color: #ccc; }

/* ---------- 详情 ---------- */
.detail { display: grid; grid-template-columns: 540px 1fr; gap: 56px; margin-top: 28px; background: var(--surface); border: 1px solid var(--line); padding: 36px; }
.gallery .main { aspect-ratio: 1; background: var(--soft); overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery .thumbs img { width: 72px; height: 72px; object-fit: cover; cursor: pointer; border: 1px solid transparent; opacity: .7; }
.gallery .thumbs img.on { border-color: var(--gold); opacity: 1; }
.info h1 { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: 1px; margin: 0 0 8px; line-height: 1.4; }
.info .subtitle { color: var(--muted); margin: 0 0 24px; }
.price-box { background: linear-gradient(120deg, #faf6ef, #f4ede2); padding: 20px 24px; display: flex; align-items: baseline; gap: 12px; }
.price-box .label { color: var(--muted); font-size: 13px; }
.price-box .price { font-size: 34px; }
.price-box .sales { margin-left: auto; color: var(--muted); font-size: 13px; }
.opt-row { display: flex; gap: 20px; margin-top: 26px; align-items: flex-start; }
.opt-row > label { width: 48px; color: var(--muted); font-size: 13px; padding-top: 8px; flex-shrink: 0; }
.sku-list { display: flex; flex-wrap: wrap; gap: 10px; }
.sku-btn { padding: 8px 20px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 13px; transition: all .2s; font-family: var(--sans); }
.sku-btn:hover { border-color: var(--ink); }
.sku-btn.on { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.sku-btn:disabled { color: #ccc; cursor: not-allowed; text-decoration: line-through; }
.qty { display: inline-flex; border: 1px solid var(--line); }
.qty button { width: 38px; border: 0; background: var(--surface); cursor: pointer; font-size: 16px; }
.qty input { width: 56px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); height: 38px; outline: none; font-size: 14px; }
.buy-actions { display: flex; gap: 12px; margin-top: 36px; }
.fav-btn { width: 52px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 18px; color: var(--muted); }
.fav-btn.on { color: var(--price); }
.service-list { display: flex; gap: 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.service-list i { color: var(--gold); margin-right: 4px; }
.desc-panel { margin-top: 24px; }
.desc-body { line-height: 2; color: var(--ink-2); font-size: 15px; }
.desc-gallery img { display: block; width: 100%; max-width: 560px; margin: 24px auto 0; }

/* ---------- 表格类（购物车/结算/订单） ---------- */
.table-lite { width: 100%; border-collapse: collapse; }
.table-lite th { font-weight: 400; color: var(--muted); font-size: 13px; text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); background: var(--paper); }
.table-lite td { padding: 20px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table-lite tr.disabled td { opacity: .45; }
.goods-cell { display: flex; gap: 16px; align-items: center; }
.goods-cell img { width: 80px; height: 80px; object-fit: cover; background: var(--soft); flex-shrink: 0; }
.goods-cell .name { font-size: 14px; }
.goods-cell .spec { font-size: 12px; color: var(--muted); margin-top: 4px; }
.summary-bar { display: flex; justify-content: flex-end; align-items: center; gap: 24px; padding: 24px 0 0; }
.summary-bar .total .price { font-size: 26px; }
.check { width: 16px; height: 16px; accent-color: var(--ink); cursor: pointer; }

.addr-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.addr-card { display: block; border: 1px solid var(--line); padding: 18px; cursor: pointer; position: relative; background: var(--surface); transition: border-color .2s; }
.addr-card:hover { border-color: #cfc6b8; }
.addr-card input { position: absolute; opacity: 0; }
.addr-card.on, .addr-card:has(input:checked) { border-color: var(--gold); background: #fffcf7; }
.addr-card .who { font-weight: 600; }
.addr-card .where { color: var(--muted); font-size: 13px; margin-top: 6px; }
.addr-card .tag-gold { position: absolute; right: 12px; top: 12px; }
.amount-lines { margin-left: auto; width: 340px; }
.amount-lines div { display: flex; justify-content: space-between; padding: 6px 0; color: var(--ink-2); }
.amount-lines .grand { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 15px; color: var(--ink); }
.amount-lines .grand .price { font-size: 28px; }
.select-lite, .input-lite, .textarea-lite { width: 100%; border: 1px solid var(--line); background: var(--surface); padding: 10px 14px; font-size: 14px; outline: none; font-family: var(--sans); border-radius: var(--radius); }
.select-lite:focus, .input-lite:focus, .textarea-lite:focus { border-color: var(--gold); }

/* ---------- 收银台 ---------- */
.cashier-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.cashier-head .price { font-size: 34px; }
.pay-methods { display: flex; gap: 14px; margin: 18px 0 8px; }
.pay-method { flex: 0 0 220px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); padding: 16px 20px; cursor: pointer; background: var(--surface); }
.pay-method:has(input:checked) { border-color: var(--gold); background: #fffcf7; }
.pay-method input { accent-color: var(--gold); }
.pay-method i { font-size: 24px; }
.balance-box { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); padding: 16px 20px; margin-top: 14px; background: var(--surface); cursor: pointer; }
.balance-box:has(input:checked) { border-color: var(--gold); background: #fffcf7; }
.balance-box input { accent-color: var(--gold); width: 16px; height: 16px; }
.mock-tip { margin-top: 28px; padding: 14px 18px; background: #fbf7ef; border: 1px dashed #e2d3b9; font-size: 13px; color: #7a6544; }

/* ---------- 秒杀 ---------- */
.seckill-banner { margin-top: 28px; background: linear-gradient(120deg, #2b2723, #4a3f33); color: #fff; padding: 44px 48px; display: flex; justify-content: space-between; align-items: center; }
.seckill-banner h1 { font-family: var(--serif); font-size: 34px; font-weight: 500; letter-spacing: 4px; margin: 0; }
.seckill-banner p { color: #d9cdb8; margin: 8px 0 0; }
.seckill-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.seckill-card { display: flex; gap: 24px; background: var(--surface); border: 1px solid var(--line); padding: 20px; }
.seckill-card img { width: 160px; height: 160px; object-fit: cover; background: var(--soft); }
.seckill-card .body { flex: 1; display: flex; flex-direction: column; }
.seckill-card .name { font-family: var(--serif); font-size: 18px; }
.seckill-card .price { font-size: 26px; }
.seckill-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.seckill-price-bar { background: linear-gradient(120deg, #2b2723, #4a3f33); color: #fff; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; }
.seckill-price-bar .price { color: #fff; font-size: 34px; }
.seckill-price-bar .price-origin { color: #a99c88; }
.result-box { margin-top: 18px; padding: 14px 18px; font-size: 14px; }
.result-box.ok { background: #f3f8f4; color: var(--success); border: 1px solid #cfe0d3; }
.result-box.fail { background: #fcf3f2; color: var(--price); border: 1px solid #f0d3cf; }
.result-box.wait { background: var(--gold-soft); color: #7a6544; border: 1px solid #e8dac3; }

/* ---------- 登录注册 ---------- */
.auth-page { min-height: calc(100vh - 115px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-visual { position: relative; background: #2b2723 center/cover no-repeat; }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(26,22,18,.25), rgba(26,22,18,.7)); }
.auth-visual .txt { position: absolute; z-index: 1; left: 64px; bottom: 72px; color: #fff; }
.auth-visual h2 { font-family: var(--serif); font-size: 40px; font-weight: 500; letter-spacing: 4px; margin: 0 0 12px; }
.auth-visual p { color: #e8dfd2; margin: 0; letter-spacing: 2px; }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 48px 16px; background: var(--surface); }
.auth-form { width: 100%; max-width: 380px; }
.auth-form h1 { font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: 3px; margin: 0 0 6px; }
.auth-form .lead { color: var(--muted); margin: 0 0 32px; font-size: 13px; }
.tabs-lite { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tabs-lite button, .tabs-lite a { background: none; border: 0; padding: 0 0 12px; margin-bottom: -1px; font-size: 15px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; font-family: var(--sans); }
.tabs-lite .on { color: var(--ink); border-bottom-color: var(--ink); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; letter-spacing: 1px; }
.field input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 15px; outline: none; background: transparent; font-family: var(--sans); }
.field input:focus { border-bottom-color: var(--ink); }
.field-code { display: flex; gap: 12px; align-items: flex-end; }
.field-code input { flex: 1; }
.field-code button { flex-shrink: 0; }
.auth-foot { display: flex; justify-content: space-between; margin-top: 20px; font-size: 13px; color: var(--muted); }
.auth-form .btn-ink { width: 100%; margin-top: 8px; }

/* ---------- 个人中心 ---------- */
.user-shell { display: grid; grid-template-columns: 220px 1fr; gap: 24px; margin-top: 32px; }
.user-side { background: var(--surface); border: 1px solid var(--line); align-self: start; }
.user-card { padding: 28px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 26px; }
.user-card .name { font-family: var(--serif); font-size: 17px; }
.user-card .account { font-size: 12px; color: var(--muted); }
.user-menu { padding: 10px 0; }
.user-menu .group { font-size: 11px; letter-spacing: 3px; color: #b8b1a6; padding: 14px 24px 6px; }
.user-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 24px; font-size: 14px; color: var(--ink-2); border-left: 2px solid transparent; }
.user-menu a.on { color: var(--gold); border-left-color: var(--gold); background: #fffcf7; }
.user-main { background: var(--surface); border: 1px solid var(--line); padding: 32px; min-height: 520px; }
.user-main h2 { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: 2px; margin: 0 0 24px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card { border: 1px solid var(--line); padding: 22px 24px; display: block; background: linear-gradient(160deg, #fff, #faf6ef); }
.stat-card .label { font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.stat-card .value { font-family: Georgia, var(--serif); font-size: 30px; margin-top: 6px; }
.stat-card .act { font-size: 12px; color: var(--gold); margin-top: 6px; }
.order-status-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-top: 24px; }
.order-status-row a { text-align: center; padding: 22px 0; border-right: 1px solid var(--line); position: relative; }
.order-status-row a:last-child { border-right: 0; }
.order-status-row i { font-size: 26px; color: var(--gold); display: block; }
.order-status-row .num { position: absolute; top: 14px; left: 56%; min-width: 18px; height: 18px; border-radius: 9px; background: var(--price); color: #fff; font-size: 11px; line-height: 18px; }
.order-card { border: 1px solid var(--line); margin-bottom: 16px; }
.order-card .head { display: flex; justify-content: space-between; background: var(--paper); padding: 12px 20px; font-size: 13px; color: var(--muted); }
.order-card .head .status { color: var(--ink); }
.order-card .head .status.pending { color: var(--price); }
.order-card .content { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; gap: 20px; }
.order-card .goods { display: flex; flex-direction: column; gap: 12px; }
.order-card .ops { display: flex; gap: 8px; align-items: center; }
.sub-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.sub-tabs a { padding: 0 0 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); }
.sub-tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-block { border: 1px solid var(--line); padding: 20px; font-size: 13px; line-height: 2; }
.info-block h4 { font-family: var(--serif); font-size: 16px; font-weight: 500; margin: 0 0 6px; }
.notice-bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: #fbf7ef; border: 1px solid #ecdfc8; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; max-width: 640px; }
.form-grid .full { grid-column: span 2; }
.form-grid label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }

/* ---------- 优惠券 ---------- */
.coupon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.coupon { display: flex; border: 1px solid var(--line); background: var(--surface); min-height: 112px; position: relative; }
.coupon .value { width: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--gold); border-right: 1px dashed #d9cfbf; background: linear-gradient(160deg, #fffaf2, #f6efe4); }
.coupon .value b { font-family: Georgia, var(--serif); font-size: 36px; font-weight: 500; line-height: 1; }
.coupon .value b small { font-size: 16px; }
.coupon .value span { font-size: 12px; margin-top: 8px; color: #9c8564; }
.coupon .detail-c { flex: 1; min-width: 0; padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; }
.coupon .detail-c .name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coupon .detail-c .meta { font-size: 12px; color: var(--muted); margin-top: 6px; }
.coupon .action { width: 112px; display: flex; align-items: center; justify-content: center; padding: 12px; }
.coupon.disabled { opacity: .55; }
.coupon.disabled .value { color: #aaa; background: #f6f6f6; }
.coupon .stamp { position: absolute; right: 18px; top: 50%; transform: translateY(-50%) rotate(-14deg); border: 2px solid #c9c2b6; color: #b8b1a6; padding: 4px 10px; font-size: 13px; letter-spacing: 2px; }
.coupon-select { display: flex; flex-direction: column; gap: 10px; }
.coupon-option { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); padding: 12px 16px; cursor: pointer; }
.coupon-option:has(input:checked) { border-color: var(--gold); background: #fffcf7; }
.coupon-option input { accent-color: var(--gold); }
.coupon-option .amt { color: var(--gold); font-family: Georgia, serif; font-size: 18px; width: 90px; }

/* ---------- 钱包 ---------- */
.wallet-hero { background: linear-gradient(120deg, #2b2723, #4a3f33); color: #fff; padding: 32px 36px; display: flex; justify-content: space-between; align-items: center; }
.wallet-hero .label { color: #d9cdb8; font-size: 13px; letter-spacing: 2px; }
.wallet-hero .amount { font-family: Georgia, var(--serif); font-size: 44px; margin-top: 4px; }
.preset-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.preset { border: 1px solid var(--line); padding: 14px 0; text-align: center; cursor: pointer; font-family: Georgia, serif; font-size: 18px; background: var(--surface); }
.preset:has(input:checked) { border-color: var(--gold); color: var(--gold); background: #fffcf7; }
.preset input { display: none; }
.log-amount.in { color: var(--success); }
.log-amount.out { color: var(--price); }

/* ---------- 活动弹窗 ---------- */
.popup-mask { position: fixed; inset: 0; background: rgba(20,17,14,.55); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 16px; }
.popup-mask.show { display: flex; animation: fadeIn .25s ease; }
.popup { width: 420px; max-width: 100%; background: var(--surface); position: relative; overflow: hidden; animation: popIn .3s ease; }
.popup .img { height: 220px; background: linear-gradient(140deg, #2b2723, #5a4a38); position: relative; display: flex; align-items: center; justify-content: center; }
.popup .img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.popup .img .ticket { position: relative; color: #f3e6cf; text-align: center; font-family: var(--serif); }
.popup .img .ticket b { display: block; font-family: Georgia, serif; font-size: 64px; font-weight: 500; line-height: 1; color: #fff; }
.popup .img .ticket span { letter-spacing: 6px; font-size: 13px; }
.popup .body { padding: 28px 32px 32px; text-align: center; }
.popup h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: 2px; margin: 0 0 8px; }
.popup p { color: var(--muted); margin: 0 0 24px; font-size: 13px; }
.popup .btn-ink { width: 100%; }
.popup .close { position: absolute; right: 12px; top: 12px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.35); color: #fff; cursor: pointer; font-size: 16px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 96px; background: #1f1d1b; color: #8f8a83; padding: 56px 0 28px; font-size: 13px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer b { color: #e8e2d8; font-weight: 500; display: block; margin-bottom: 14px; letter-spacing: 2px; }
.site-footer .brand b { font-family: var(--serif); font-size: 22px; letter-spacing: 6px; }
.site-footer a { display: block; line-height: 2.2; }
.site-footer a:hover { color: #e8d3ae; }
.site-footer .copy { border-top: 1px solid #34302c; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
    .main-nav { display: none; }
    .product-grid, .product-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
    .detail { grid-template-columns: 1fr; }
    .flash-sale { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .site-header .wrap { height: 64px; gap: 16px; }
    .search { width: auto; flex: 1; }
    .header-icons span.txt { display: none; }
    .topbar { display: none; }
    .hero { height: 380px; }
    .hero h1 { font-size: 32px; }
    .promise .wrap { overflow-x: auto; gap: 24px; white-space: nowrap; }
    .product-grid, .product-grid.cols-5 { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .flash-sale .items { grid-template-columns: repeat(2, 1fr); }
    .seckill-list, .coupon-grid, .addr-list, .info-grid, .stat-row { grid-template-columns: 1fr; }
    .user-shell, .auth-page { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .site-footer .cols { grid-template-columns: 1fr 1fr; }
    .detail { padding: 16px; gap: 24px; }
    .preset-grid { grid-template-columns: repeat(3, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .full { grid-column: auto; }
}

/* ---------- 售后 / 评价 / 消息 ---------- */
.type-pick { display: flex; gap: 12px; flex-wrap: wrap; }
.type-pick label { flex: 1; min-width: 200px; border: 1px solid var(--line); padding: 14px 16px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); }
.type-pick label small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.type-pick label:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.upload-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.upload-grid .thumb, .upload-grid .add { width: 84px; height: 84px; border: 1px solid var(--line); background: var(--paper); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.upload-grid .thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-grid .add { cursor: pointer; color: var(--muted); flex-direction: column; font-size: 12px; gap: 4px; border-style: dashed; }
.upload-grid .add i { font-size: 22px; }
.img-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.img-row a img { width: 72px; height: 72px; object-fit: cover; background: var(--soft); display: block; }
.steps { display: flex; margin: 8px 0 28px; }
.steps .step { flex: 1; text-align: center; position: relative; font-size: 13px; color: var(--muted); }
.steps .step::before { content: ''; position: absolute; top: 9px; left: -50%; width: 100%; height: 1px; background: var(--line); z-index: 0; }
.steps .step:first-child::before { display: none; }
.steps .step .dot { width: 19px; height: 19px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: block; margin: 0 auto 8px; position: relative; z-index: 1; }
.steps .step.done { color: var(--ink); }
.steps .step.done .dot { background: var(--ink); border-color: var(--ink); }
.steps .step.done::before { background: var(--ink); }
.steps .step.fail .dot { background: var(--price); border-color: var(--price); }
.status-hero { padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 20px; }
.status-hero .title { font-family: var(--serif); font-size: 20px; margin-bottom: 6px; }
.status-hero .desc { color: var(--muted); font-size: 13px; line-height: 1.8; }
.kv { font-size: 13px; line-height: 2.1; }
.kv span:first-child { color: var(--muted); display: inline-block; width: 84px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { display: none; }
.star-input label { font-size: 22px; color: #ddd5c8; cursor: pointer; line-height: 1; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--gold); }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; }
.stars .off { color: #ddd5c8; }
.review-item { padding: 22px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; }
.review-item .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--serif); flex-shrink: 0; }
.review-item .meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.review-item .text { margin-top: 10px; line-height: 1.8; font-size: 14px; }
.review-item .reply { margin-top: 12px; background: var(--paper); padding: 10px 14px; font-size: 13px; color: var(--ink-2); }
.review-item .reply b { color: var(--gold); font-weight: 500; }
.review-summary { display: flex; align-items: center; gap: 28px; margin-bottom: 8px; }
.review-summary .rate { font-family: Georgia, var(--serif); font-size: 40px; color: var(--price); line-height: 1; }
.review-summary .rate small { font-size: 14px; color: var(--muted); font-family: var(--sans); margin-left: 4px; }
.review-card { border: 1px solid var(--line); padding: 20px; margin-bottom: 16px; }
.review-card .goods-cell { margin-bottom: 16px; }
.msg-item { display: flex; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
.msg-item:hover { background: var(--paper); }
.msg-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--price); margin-top: 7px; flex-shrink: 0; }
.msg-item.read .dot { background: transparent; }
.msg-item.read .title { color: var(--muted); }
.msg-item .title { font-size: 14px; }
.msg-item .content { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.7; }
.msg-item .time { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.user-menu .badge-dot { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; border-radius: 9px; background: var(--price); color: #fff; font-size: 11px; text-align: center; margin-left: auto; }
.qty-input { width: 90px; }
@media (max-width: 768px) {
    .type-pick label { min-width: 100%; }
    .review-summary { flex-wrap: wrap; gap: 12px; }
}

/* ---------- 搜索下拉 / 足迹 / 发票 ---------- */
.search { position: relative; }
.search-pop { position: absolute; top: 42px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.08); padding: 14px 16px; z-index: 60; display: none; }
.search.open .search-pop { display: block; }
.search-pop .label { font-size: 12px; color: var(--muted); margin: 0 0 8px; display: flex; justify-content: space-between; }
.search-pop .words { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.search-pop .words a { font-size: 12px; padding: 3px 10px; background: var(--paper); color: var(--ink-2); border-radius: 12px; }
.search-pop .words a.hot { color: var(--price); }
.search-pop .words a:hover { background: var(--gold-soft); color: var(--gold); }
.hot-words { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; font-size: 13px; }
.hot-words a { color: var(--muted); }
.hot-words a:hover { color: var(--gold); }
.foot-day { font-family: var(--serif); font-size: 15px; margin: 24px 0 12px; }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.foot-item { border: 1px solid var(--line); background: var(--surface); position: relative; }
.foot-item img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--soft); display: block; }
.foot-item .body { padding: 10px 12px; font-size: 13px; }
.foot-item .body .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foot-item.invalid img { opacity: .4; }
.foot-item .pick { position: absolute; top: 8px; left: 8px; }
@media (max-width: 768px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 第三方登录 ---------- */
.social-login { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 12px; color: var(--muted); }
.social-login a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.social-login a.wechat { color: #07c160; }
.social-login a:hover { border-color: #07c160; background: #f0fbf5; }
.bind-row { display: flex; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.bind-row .icon { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.bind-row .ops { margin-left: auto; }
