/* 独立站通用样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --primary: #2563eb; --text: #1f2937; --muted: #6b7280; --bg: #f8fafc; --line: #e5e7eb; }
body { font-family: "Segoe UI", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--text); background: var(--bg); }
.container { max-width: 1150px; margin: 0 auto; padding: 0 16px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* 顶部 */
.announcement { background: var(--primary); color: var(--primary-ink, #fff); text-align: center; padding: 8px; font-size: 14px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; flex-wrap: wrap; gap: 8px; }
.logo { font-size: 20px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.logo img { height: 36px; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.nav a:hover { color: var(--primary-strong, var(--primary)); }
.cart-link { font-weight: 600; }

/* Hero */
.hero { min-height: 620px; background: linear-gradient(135deg, #2b2b28, #6b6255); background-size: cover; background-position: center; display: flex; align-items: center; position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.28) 45%, rgba(0,0,0,.1) 100%); }
.hero-inner { position: relative; z-index: 2; padding: 90px 16px; max-width: 1150px; margin: 0 auto; width: 100%; }
.hero-inner h1 { color: #fff; font-size: 62px; line-height: 1.05; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 14px; max-width: 620px; }
.hero-kicker { color: #fff; opacity: .85; letter-spacing: .22em; text-transform: uppercase; font-size: 12px; margin-bottom: 18px; }
.hero-sub { color: #f1ece3; font-size: 18px; margin-bottom: 28px; max-width: 460px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 按钮 */
.btn { display: inline-block; padding: 9px 18px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; font-size: 15px; }
.btn:hover { border-color: var(--primary); color: var(--primary-strong, var(--primary)); }
.btn-primary { background: var(--primary); color: var(--primary-ink, #fff); border-color: var(--primary); }
.btn-primary:hover { opacity: .9; color: #fff; }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-danger { color: #dc2626; border-color: #fecaca; }
.btn-light { background: #fff; color: #111; border-color: #fff; }
.btn-light:hover { background: #f3f4f6; color: #111; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn-dark { background: #111; color: #fff; border-color: #111; }
.btn-dark:hover { opacity: .86; color: #fff; }

/* 商品卡 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px 18px; margin-bottom: 40px; }
.card { background: transparent; border: none; overflow: hidden; display: block; }
.card:hover .card-img img { transform: scale(1.04); }
.card-img img { transition: transform .5s ease; }
.card-img { aspect-ratio: 3/4; background: #f1f0ed; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder { color: #94a3b8; font-size: 14px; }
.img-placeholder.big { font-size: 22px; }
.card-body { padding: 14px 2px 0; }
.card-body h3 { font-size: 14px; font-weight: 500; margin-bottom: 6px; letter-spacing: .01em; }
.price { color: #111; font-weight: 600; font-size: 14px; }
.big-price { font-size: 26px; }
.compare { color: #9ca3af; font-weight: 400; margin-left: 8px; }
.section-title { margin: 26px 0 16px; font-size: 22px; }

/* 商品详情 */
.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin-top: 20px; }
@media (max-width: 760px) { .product-page { grid-template-columns: 1fr; } }
.product-img { background: #f1f5f9; border-radius: 10px; min-height: 420px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-img img { border-radius: 10px; width: 100%; height: 100%; object-fit: cover; }
.add-form { display: flex; gap: 12px; align-items: end; margin: 16px 0; }
.add-form input { width: 80px; padding: 8px; }
.in-stock { color: #16a34a; } .out-stock { color: #dc2626; }
.desc { line-height: 1.7; color: #374151; margin-top: 12px; }
.perks { margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.9; }

/* 表格/表单 */
.table { width: 100%; border-collapse: collapse; background: #fff; margin-bottom: 16px; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: left; }
.cart-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; vertical-align: middle; margin-right: 8px; }
.cart-summary { text-align: right; font-size: 17px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin: 20px 0; }
.narrow { max-width: 620px; margin: 20px auto; }
label { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
input, textarea, select { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; margin-top: 4px; font-size: 14px; font-family: inherit; }
.radio-line { font-weight: 400; display: flex; align-items: center; gap: 8px; }
.radio-line input { width: auto; margin: 0; }
.track-form, .checkout-form input, .checkout-form textarea { }
.flash { padding: 12px 16px; border-radius: 8px; margin: 14px 0; font-size: 15px; }
.flash-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.flash-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.flash-warn { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

/* 结算 */
.checkout-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; align-items: start; }
@media (max-width: 820px) { .checkout-grid { grid-template-columns: 1fr; } }
.sum-line { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.sum-line.total { font-size: 19px; font-weight: 700; border-bottom: none; color: var(--primary-strong, var(--primary)); }
.secure-note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.pay-panel { max-width: 560px; margin: 30px auto; }
.total-line { font-size: 18px; margin-bottom: 16px; }
.muted { color: var(--muted); font-size: 13px; margin-bottom: 10px; }

/* 订单状态条 */
.steps { display: flex; justify-content: space-between; margin: 18px 0; text-align: center; font-size: 13px; color: var(--muted); }
.step { flex: 1; position: relative; }
.step .dot { width: 30px; height: 30px; border-radius: 50%; background: #e5e7eb; color: #6b7280; display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; font-weight: 700; }
.step.done .dot { background: var(--primary); color: var(--primary-ink, #fff); }
.step.done { color: var(--text); }
.badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-paid { background: #dbeafe; color: #1e40af; }
.badge-shipped { background: #ede9fe; color: #6d28d9; }
.badge-completed { background: #dcfce7; color: #166534; }
.badge-refunded { background: #fee2e2; color: #991b1b; }
.badge-cancelled { background: #f3f4f6; color: #6b7280; }

/* 信任行 & 页脚 */
.trust-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; text-align: center; color: #374151; margin-bottom: 30px; }
.site-footer { background: #111827; color: #d1d5db; margin-top: 40px; padding: 34px 0 22px; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 22px; margin-bottom: 18px; }
.footer-cols h4 { color: #fff; margin-bottom: 8px; }
.footer-cols a:hover { color: #fff; }
.footer-pay { text-align: center; color: #9ca3af; border-top: 1px solid #1f2937; padding-top: 14px; }

/* ============ 管理后台 ============ */
.admin-layout { display: flex; min-height: 100vh; }
.admin-side { width: 220px; background: #111827; color: #cbd5e1; padding: 20px 0; flex-shrink: 0; }
.admin-side .brand { color: #fff; font-weight: 700; padding: 0 20px 18px; font-size: 17px; }
.admin-side a { display: block; padding: 11px 20px; font-size: 14px; }
.admin-side a:hover, .admin-side a.active { background: #1f2937; color: #fff; }
.admin-main { flex: 1; padding: 26px 30px; background: var(--bg); }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.stat-card .num { font-size: 24px; font-weight: 700; color: var(--primary-strong, var(--primary)); }
.stat-card .lbl { font-size: 13px; color: var(--muted); margin-top: 4px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); padding: 11px 12px; font-size: 14px; text-align: left; }
.admin-table th { background: #f9fafb; font-size: 13px; color: var(--muted); }
.admin-table tr:hover td { background: #f8fafc; }
.thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; background: #f1f5f9; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.inline-btns { display: flex; gap: 6px; }
.inline-btns form { margin: 0; }
.admin-section { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 22px; }
.admin-section h2 { font-size: 17px; margin-bottom: 14px; }


/* ===== 品牌风格首页 ===== */
.value-strip { background: #fff; border-bottom: 1px solid var(--line); }
.value-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; padding: 18px 16px; }
.value-inner > div { text-align: center; font-size: 13px; color: var(--muted); }
.value-inner strong { display: block; color: #111; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 3px; }

.brand-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 84px 0; }
.brand-media img { width: 100%; height: 100%; max-height: 620px; object-fit: cover; display: block; }
.brand-copy h2 { font-size: 38px; font-weight: 600; line-height: 1.15; margin: 14px 0 18px; letter-spacing: -0.01em; }
.brand-copy p { color: #4b5563; font-size: 16px; line-height: 1.85; margin-bottom: 18px; max-width: 480px; }
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.eyebrow.light { color: rgba(255,255,255,.75); }
.link-arrow { font-size: 14px; letter-spacing: .05em; border-bottom: 1px solid #111; padding-bottom: 3px; }
@media (max-width: 820px) { .brand-row { grid-template-columns: 1fr; gap: 26px; padding: 52px 0; } .brand-copy h2 { font-size: 28px; } }

.sec-head { text-align: center; margin: 56px 0 30px; }
.sec-head h2 { font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
.sec-head p { color: var(--muted); font-size: 14px; margin-top: 8px; }

.cat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cat-tile { position: relative; display: block; overflow: hidden; aspect-ratio: 4/5; background: #efede8; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-tile:hover img { transform: scale(1.04); }
.cat-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: #8b8377; font-size: 15px; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.42) 100%); pointer-events: none; }
.cat-name { position: absolute; z-index: 2; left: 18px; bottom: 16px; color: #fff; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; text-shadow: 0 1px 10px rgba(0,0,0,.45); }

.lookbook { min-height: 460px; background: #2b2b28 center/cover no-repeat; display: flex; align-items: center; margin: 70px 0 10px; position: relative; }
.lookbook::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.15)); }
.lookbook-inner { position: relative; z-index: 2; max-width: 1150px; margin: 0 auto; width: 100%; padding: 60px 16px; }
.lookbook-inner h2 { color: #fff; font-size: 40px; font-weight: 600; margin: 12px 0 12px; }
.lookbook-inner p { color: #e8e2d8; max-width: 420px; line-height: 1.8; margin-bottom: 24px; }

.newsletter { background: #f1efe9; padding: 60px 16px; text-align: center; margin-top: 20px; }
.newsletter-inner { max-width: 560px; margin: 0 auto; }
.newsletter h2 { font-size: 26px; font-weight: 600; margin-bottom: 10px; }
.newsletter p { color: #4b5563; font-size: 14px; margin-bottom: 18px; }
.newsletter-form { display: flex; gap: 8px; max-width: 460px; margin: 0 auto; align-items: stretch; }
.newsletter-form .btn { white-space: nowrap; padding: 0 22px; }
.newsletter-form input { flex: 1; margin-top: 0; background: #fff; }
.newsletter .tiny { font-size: 12px; color: #9ca3af; margin-top: 12px; margin-bottom: 0; }
@media (max-width: 560px) { .newsletter-form { flex-direction: column; } }

/* ==================== v1.3 后台增强（员工/收款/数据/分类/专辑） ==================== */

/* 密码框：显示/隐藏切换 */
.pwd-wrap { position: relative; display: block; width: 100%; }
.pwd-wrap input { width: 100%; padding-right: 42px; }
.pwd-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px;
  border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: 15px; line-height: 1;
  color: #64748b; }
.pwd-eye:hover { background: #eef2f7; }
.pwd-eye.on { color: var(--primary-strong, var(--primary)); }

/* 侧边栏分组 */
.admin-side { display: flex; flex-direction: column; }
.side-user { padding: 0 20px 12px; font-size: 12px; color: #94a3b8; }
.side-user strong { display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }
.side-label { padding: 14px 20px 5px; font-size: 11px; letter-spacing: .12em; color: #6b7280; text-transform: uppercase; }
.side-bottom { margin-top: auto; padding-top: 10px; border-top: 1px solid #1f2937; }

/* 标签 */
.tag { display: inline-block; padding: 2px 8px; margin: 1px 2px 1px 0; border-radius: 999px;
  background: #eef2f7; color: #475569; font-size: 12px; }
.tag-paid, .tag-completed, .tag-shipped { background: #e7f7ee; color: #15803d; }
.tag-pending { background: #fff7e6; color: #b45309; }
.tag-cancelled, .tag-refunded { background: #fdeaea; color: #b91c1c; }
.badge-ok { background: #e7f7ee; color: #15803d; }
.badge-warn { background: #fff7e6; color: #b45309; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; }

/* 提示条 */
.notice { border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; font-size: 14px; line-height: 1.7; }
.notice-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

/* 表单 */
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid label.full, .form-grid .full { grid-column: 1 / -1; }
.form-grid .full { grid-column: 1 / -1; }
.checkline { display: flex; align-items: center; gap: 8px; }
.checkline input { width: auto; margin: 0; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* KPI 卡片 */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.kpi-label { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.kpi-num { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.kpi-sub { font-size: 12px; color: var(--muted); margin-top: 8px; }
.kpi-sub .up { color: #dc2626; font-weight: 600; }
.kpi-sub .down { color: #059669; font-weight: 600; }

/* 图表 */
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.panel-head h2 { margin: 0; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.dot-blue { background: #2563eb; }
.dot-orange { background: #f59e0b; }
.chart-wrap { position: relative; }
.chart { width: 100%; height: 240px; display: block; }
.chart-x { display: flex; font-size: 11px; color: #9ca3af; padding-top: 4px; }
.chart-x span { flex: 1; text-align: center; white-space: nowrap; }
.chart-y { font-size: 12px; margin-top: 4px; }

/* 转化漏斗 */
.funnel-row { display: grid; grid-template-columns: 108px 1fr 100px; align-items: center; gap: 10px;
  font-size: 13px; margin-bottom: 10px; }
.funnel-bar { height: 20px; background: #f1f5f9; border-radius: 6px; overflow: hidden; }
.funnel-bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #3b82f6, #93c5fd); }
.funnel-val { text-align: right; font-weight: 600; }
.funnel-val em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 12px; }
.mini-bar { height: 8px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.mini-bar span { display: block; height: 100%; background: var(--primary); }

/* 两列布局 / 区间切换 */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.range-tabs { display: flex; gap: 6px; }
.range-tabs a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px;
  background: #fff; color: #475569; }
.range-tabs a.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink, #fff); }
.admin-table.compact th, .admin-table.compact td { padding: 8px 10px; font-size: 13px; }

/* 员工权限选择 */
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.perm-item { display: flex; align-items: center; gap: 7px; font-size: 13px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.perm-item input { width: auto; margin: 0; }
.perm-item:hover { border-color: #cbd5e1; }
.perm-cell .tag { font-size: 11px; }
.op-cell { white-space: nowrap; }
.op-cell details summary { cursor: pointer; list-style: none; }
.op-cell details summary::-webkit-details-marker { display: none; }
.inline-form { display: grid; gap: 8px; margin-top: 10px; padding: 12px; background: #f8fafc;
  border: 1px solid var(--line); border-radius: 10px; min-width: 260px; }
.inline-form label { font-size: 12px; }
.inline-form input { margin-top: 4px; }
.inline-actions { display: flex; gap: 8px; }
.op-row td { padding-top: 0; }

/* 三级分类看板 */
.cat-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
@media (max-width: 980px) { .cat-board { grid-template-columns: 1fr; } }
.cat-col { background: #fff; border: 1px solid var(--line); border-radius: 12px; display: flex;
  flex-direction: column; min-height: 320px; }
.cat-col-head { padding: 12px 14px; background: #f8fafc; border-bottom: 1px solid var(--line);
  font-weight: 600; font-size: 13px; border-radius: 12px 12px 0 0; }
.cat-add { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.cat-add input { margin: 0; padding: 8px 10px; font-size: 13px; }
.cat-add .btn { padding: 8px 14px; }
.cat-hint { padding: 12px; font-size: 12px; }
.cat-list { padding: 6px; overflow: auto; max-height: 520px; }
.cat-item { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-radius: 8px; flex-wrap: wrap; }
.cat-item:hover { background: #f8fafc; }
.cat-item.on { background: #eff6ff; }
.cat-item-main { display: flex; flex-direction: column; gap: 2px; font-size: 14px; flex: 1; }
.cat-item-main em { font-style: normal; font-size: 11px; color: var(--muted); }
.cat-edit summary { list-style: none; cursor: pointer; color: #94a3b8; padding: 2px 6px; border-radius: 6px; }
.cat-edit summary::-webkit-details-marker { display: none; }
.cat-edit[open] { flex-basis: 100%; }
.cat-edit form { display: grid; gap: 8px; margin-top: 8px; padding: 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; }
.cat-edit form input { margin-top: 4px; padding: 7px 9px; font-size: 13px; }
.cat-empty { padding: 14px; font-size: 13px; text-align: center; }

/* 专辑选品 */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px;
  max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.pick-item { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 8px; cursor: pointer; }
.pick-item:hover { background: #f8fafc; }
.pick-item input { width: auto; margin: 0; }
.pick-img { width: 40px; height: 52px; background: #f1f0ed; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.pick-img img { width: 100%; height: 100%; object-fit: cover; }
.pick-txt { display: flex; flex-direction: column; font-size: 13px; }
.pick-txt em { font-style: normal; color: var(--muted); font-size: 12px; }

/* 登录页 */
.login-page { background: linear-gradient(135deg, #111827, #1f2937); min-height: 100vh;
  display: flex; align-items: center; justify-content: center; }
.login-card { width: 400px; max-width: 92vw; padding: 28px; }
.login-card label { font-size: 13px; }
.login-card code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* ==================== 前台补充（分类下拉 / 分类 chips / 专辑页） ==================== */
.nav-item { position: relative; display: inline-block; }
.nav-drop { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; min-width: 170px; padding: 8px 0; box-shadow: 0 14px 34px rgba(0,0,0,.1); z-index: 40; }
.nav-drop a { display: block; padding: 8px 16px; font-size: 13px; color: #374151; text-transform: none;
  letter-spacing: 0; }
.nav-drop a:hover { background: #f8fafc; }
.nav-item:hover .nav-drop { display: block; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.chip { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px;
  color: #374151; background: #fff; }
.chip:hover { border-color: #111; }
.chip.on { background: #111; color: #fff; border-color: #111; }
.crumbs { font-size: 12px; color: var(--muted); margin-top: 16px; }
.col-hero { min-height: 320px; background: #2b2b28 center/cover no-repeat; display: flex; align-items: center;
  position: relative; margin-bottom: 22px; }
.col-hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.12)); }
.col-hero-in { position: relative; z-index: 2; width: 100%; padding: 46px 24px; }
.col-hero-in h1 { color: #fff; font-size: 38px; font-weight: 600; margin: 8px 0; }
.col-hero-in p { color: #e8e2d8; max-width: 440px; }

/* ==================== v1.6 球衣站版式 ==================== */
/* 顶栏：深色 + 居中搜索 + 账户/购物车（颜色走 CSS 变量，后台「配色」可改） */
.site-header { background: var(--topbar-bg, #16233a); border-bottom: 0; }
.announcement { background: var(--announce-bg, #0e1a2b); color: var(--announce-text, #e8eefc); }
.hdr-top { display: flex; align-items: center; gap: 20px; padding: 14px 16px 10px; }
.logo { color: var(--topbar-text, #fff); font-size: 22px; font-weight: 800; letter-spacing: .01em; text-transform: none; }
.logo img { height: 34px; }
.hdr-search { flex: 1; max-width: 520px; margin: 0 auto; display: flex; align-items: stretch;
  background: #fff; border-radius: 999px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.10); }
.hdr-search input { border: 0; border-radius: 0; margin: 0; padding: 10px 18px; font-size: 14px;
  background: transparent; color: #0f172a; }
.hdr-search input::placeholder { color: #94a3b8; }
.hdr-search input:focus { outline: none; }
.hdr-search button { border: 0; background: transparent; padding: 0 16px; cursor: pointer; font-size: 15px; }
.hdr-actions { display: flex; gap: 18px; align-items: center; }
.hdr-link { color: var(--topbar-text, #dbe5f4); opacity: .88; font-size: 13px;
  display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.hdr-link:hover { color: var(--topbar-text, #fff); opacity: 1; }
.cart-badge { background: #e11d48; color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 6px; }
.hdr-nav { background: var(--nav-bg, #13203a); border-top: 1px solid rgba(148,163,184,.22); }
.nav-inner { display: flex; gap: 26px; padding: 10px 16px; font-size: 13px; flex-wrap: wrap; }
.nav-inner a { color: var(--nav-text, #cfd9ea); text-transform: none; letter-spacing: .02em; }
.nav-inner a:hover { color: var(--topbar-text, #fff); }
@media (max-width: 760px) {
  .hdr-top { flex-wrap: wrap; }
  .hdr-search { order: 3; flex-basis: 100%; max-width: none; }
}

/* 配送说明条 */
.delivery { margin: 24px 0 8px; }
.delivery-inner { display: grid; grid-template-columns: 1.05fr .75fr 1fr; gap: 26px; align-items: center;
  padding: 24px 26px; background: #f6f8fb; border-radius: 16px; }
.delivery-copy h2 { font-size: 26px; margin-bottom: 6px; letter-spacing: -.01em; }
.delivery-copy p { color: var(--muted); font-size: 14px; }
.delivery-art svg { width: 100%; max-width: 230px; display: block; margin: 0 auto; }
.delivery-notes { list-style: none; display: grid; gap: 10px; }
.delivery-notes li { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 11px 14px 11px 34px; font-size: 14px; position: relative; color: #1f2937; }
.delivery-notes li::before { content: "✔"; position: absolute; left: 13px; color: #2563eb; font-weight: 700; }
@media (max-width: 900px) { .delivery-inner { grid-template-columns: 1fr; gap: 16px; } }

/* 区块标题 */
.block { margin: 34px 0; }
.shelf-head { display: flex; align-items: flex-end; justify-content: space-between;
  margin: 0 0 16px; border-bottom: 1px solid #e8edf4; padding-bottom: 11px; }
.shelf-head h2 { font-size: 22px; letter-spacing: -.01em; font-weight: 600; }
.shelf-more { font-size: 13px; color: var(--muted); }
.shelf-more:hover { color: #111; }

/* 圆形分类导航 */
.circle-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px 14px; }
@media (max-width: 980px) { .circle-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .circle-grid { grid-template-columns: repeat(3, 1fr); } }
.circle-item { text-align: center; }
.circle-img { width: 100%; max-width: 118px; aspect-ratio: 1; margin: 0 auto 9px; border-radius: 50%;
  background: #eef2f7; display: flex; align-items: center; justify-content: center; overflow: hidden;
  transition: transform .25s, box-shadow .25s; }
.circle-item:hover .circle-img { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(15,23,42,.13); }
.circle-img img { width: 100%; height: 100%; object-fit: cover; }
.circle-ph { font-size: 20px; font-weight: 800; color: #64748b; }
.circle-name { font-size: 13px; color: #334155; }

/* 特别版大卡 */
.spotlight { display: grid; grid-template-columns: 1fr 1.05fr; gap: 30px; align-items: center;
  background: #fdf2ec; border-radius: 18px; padding: 28px 32px; margin: 34px 0; }
.spotlight-copy h2 { font-size: 30px; line-height: 1.2; margin: 8px 0 12px; letter-spacing: -.01em; }
.sp-kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #b45309; }
.sp-price { font-size: 22px; font-weight: 700; margin-bottom: 18px; }
.sp-price s { color: #94a3b8; font-weight: 400; font-size: 16px; margin-left: 10px; }
.spotlight-media { position: relative; display: flex; justify-content: center; }
.spotlight-media img { max-height: 380px; width: auto; object-fit: contain; border-radius: 10px; }
.sp-badge { position: absolute; top: 6px; right: 6px; }
@media (max-width: 820px) { .spotlight { grid-template-columns: 1fr; padding: 22px; } .spotlight-copy h2 { font-size: 24px; } }

/* 商品卡（五列） */
.grid.five { grid-template-columns: repeat(5, 1fr); gap: 24px 16px; }
@media (max-width: 1080px) { .grid.five { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px) { .grid.five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .grid.five { grid-template-columns: repeat(2, 1fr); } }
.card { position: relative; }
.card-img { aspect-ratio: 3/4; background: #f2f3f5; border-radius: 10px; position: relative; }
.p-badge { position: absolute; top: 8px; left: 8px; z-index: 2; background: #d81f26; color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px; }
.card-body { padding: 10px 2px 0; }
.p-sub { font-size: 11px; color: #94a3b8; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.card-body h3.p-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.42; min-height: 2.84em; font-weight: 500; color: #0f172a; font-size: 13.5px; }
.card-body .price { font-size: 15px; font-weight: 700; color: #0f172a; margin-top: 4px; }
.p-coupon { display: inline-block; margin-top: 7px; border: 1px solid #e11d48; color: #e11d48;
  font-size: 11px; padding: 1px 7px; border-radius: 3px; }

/* 列表页头 */
.listing-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin: 26px 0 18px; }
.listing-title { font-size: 26px; letter-spacing: -.01em; }
.sort-form select { width: auto; min-width: 170px; margin: 0; }

/* 分类图标缩略图（后台） */
.cat-line { display: flex; align-items: center; gap: 9px; }
.cat-thumb { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: #eef2f7; }

/* v1.6 修正：特别版角标贴右上，不拉伸 */
.sp-badge { left: auto; right: 8px; }
.logo img { height: 40px; }
.hero { min-height: 520px; }

/* v1.6 移动端修正：导航横向滚动、禁止页面横向溢出 */
html, body { max-width: 100%; overflow-x: hidden; }
.hdr-search, .hdr-search input { min-width: 0; }
@media (max-width: 760px) {
  .nav-inner { flex-wrap: nowrap; overflow-x: auto; gap: 20px; padding: 11px 16px; }
  .nav-inner::-webkit-scrollbar { height: 0; display: none; }
  .nav-inner a { white-space: nowrap; }
  .nav-inner .nav-item { flex: 0 0 auto; }
  .hdr-top { gap: 10px; }
}
@media (max-width: 560px) { .circle-img { max-width: 92px; } .delivery-inner { padding: 18px; } }

/* ==================== v1.6.1 后台配色设置 ==================== */
.preset-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 18px; }
.preset-label { font-size: 13px; color: var(--muted); }
.preset { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px;
  font-size: 13px; cursor: pointer; color: #374151; }
.preset:hover { border-color: #94a3b8; background: #f8fafc; }

.color-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .color-grid { grid-template-columns: 1fr; } }
.color-pair { border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; background: #fcfcfd; }
.cp-head { font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 10px; }
.cp-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.cp-cell { font-size: 12px; color: var(--muted); }
.cp-input { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.cp-input input[type=color] { width: 34px; height: 32px; padding: 0; border: 1px solid var(--line);
  border-radius: 6px; background: #fff; cursor: pointer; }
.cp-input .cp-hex { width: 88px; margin: 0; padding: 6px 8px; font-size: 12.5px;
  font-family: ui-monospace, Consolas, monospace; text-transform: lowercase; }
.contrast-badge { font-size: 11.5px; padding: 3px 8px; border-radius: 999px; white-space: nowrap;
  background: #f1f5f9; color: #64748b; }
.contrast-badge.good { background: #e8f7ee; color: #15803d; }
.contrast-badge.warn { background: #fef6e7; color: #b45309; }
.contrast-badge.bad { background: #fdecec; color: #b91c1c; }
.cp-hint { font-size: 11.5px; color: #94a3b8; margin-top: 8px; line-height: 1.5; }

.mini-preview { margin: 18px 0 4px; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; font-size: 13px; }
.mp-announce { padding: 7px 12px; text-align: center; font-size: 12.5px; transition: background .15s, color .15s; }
.mp-top { display: flex; align-items: center; gap: 14px; padding: 12px 14px; transition: background .15s, color .15s; }
.mp-logo { font-weight: 800; letter-spacing: .04em; font-size: 15px; }
.mp-search { flex: 1; background: #fff; color: #94a3b8; border-radius: 999px; padding: 7px 14px;
  font-size: 12.5px; box-shadow: inset 0 0 0 1px rgba(15,23,42,.10); }
.mp-actions { font-size: 12px; opacity: .9; white-space: nowrap; }
.mp-nav { display: flex; gap: 18px; padding: 9px 14px; font-size: 12.5px; transition: background .15s, color .15s; }
.mp-nav a.on { font-weight: 700; }
.cp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.mp-body { display: flex; align-items: center; gap: 14px; padding: 14px; background: #fff; border-top: 1px dashed var(--line); }
.mp-cta { border: 1px solid #1f2937; border-radius: 8px; padding: 8px 20px; font-size: 13px;
  font-weight: 600; cursor: default; }
.mp-price { font-weight: 700; font-size: 15px; }
.color-pair[data-pair="theme_color"] { grid-column: 1 / -1; }
.color-pair[data-pair="theme_color"] .cp-row { align-items: center; }

/* ==================== v1.7 客户账号（前台注册/登录/账户中心） ==================== */
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 7px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.right { text-align: right; }

/* 顶栏账户 + 悬浮菜单 */
.hdr-user { position: relative; display: inline-block; }
.hdr-user .hdr-drop { display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; min-width: 180px; padding: 6px 0;
  box-shadow: 0 16px 36px rgba(15,23,42,.14); }
.hdr-user .hdr-drop a { display: block; padding: 9px 16px; font-size: 13px; color: #334155; white-space: nowrap; }
.hdr-user .hdr-drop a:hover { background: #f8fafc; color: #0f172a; }
.hdr-user:hover .hdr-drop { display: block; }
@media (max-width: 760px) { .hdr-user .hdr-drop { display: none !important; } }

/* 注册 / 登录 双栏 */
.auth-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: start;
  max-width: 980px; margin: 34px auto 50px; }
.auth-wrap.auth-single { grid-template-columns: 1fr; max-width: 480px; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; margin-top: 20px; } }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px 26px; }
.auth-head { margin-bottom: 18px; }
.auth-head h1 { font-size: 25px; font-weight: 650; letter-spacing: -.01em; margin-bottom: 6px; }
.auth-head p { font-size: 14px; }
.auth-form label { font-size: 13.5px; font-weight: 600; color: #334155; }
.auth-form input { font-weight: 400; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.opt { font-weight: 400; color: #94a3b8; font-size: 12px; }
.checkline.consent { font-weight: 400; font-size: 13px; color: #475569; align-items: flex-start; line-height: 1.5;
  margin: 2px 0 14px; }
.checkline.consent input { margin-top: 3px; }
.checkline.consent a { color: #1d4ed8; text-decoration: underline; }
.auth-form .btn-block { margin-top: 6px; }
.auth-alt { font-size: 14px; text-align: center; margin-top: 16px; color: #475569; }
.auth-alt a { color: #1d4ed8; font-weight: 600; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 2px 0 16px;
  flex-wrap: wrap; }
.auth-row .checkline { font-size: 13px; font-weight: 400; color: #475569; margin: 0; }
.tiny-link { font-size: 13px; color: #1d4ed8; }
.tiny-link:hover { text-decoration: underline; }
.auth-foot { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 14px; }
.auth-foot .auth-alt { margin-top: 0; }
.auth-foot .tiny { text-align: center; margin-top: 8px; }
.auth-foot .tiny a { color: #1d4ed8; }

/* 注册右侧卖点 */
.auth-aside { background: #f6f8fb; border: 1px solid #e6ecf5; border-radius: 14px; padding: 26px 24px; }
.auth-aside h2 { font-size: 18px; margin-bottom: 16px; }
.perk-list { list-style: none; display: grid; gap: 14px; }
.perk-list li { padding-left: 26px; position: relative; font-size: 14px; }
.perk-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #16a34a; font-weight: 800; }
.perk-list strong { display: block; color: #0f172a; font-weight: 600; }
.perk-list span { color: #64748b; font-size: 13px; line-height: 1.55; }
.aside-note { font-size: 12.5px; color: #94a3b8; margin-top: 18px; border-top: 1px dashed #dbe3ee; padding-top: 12px; }
.aside-note a { color: #1d4ed8; }

/* 账户中心 */
.acct-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px;
  margin: 30px 0 18px; flex-wrap: wrap; }
.acct-head h1 { font-size: 28px; letter-spacing: -.01em; }
.acct-head-actions { display: flex; gap: 10px; }
.acct-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; margin-bottom: 44px; }
@media (max-width: 900px) { .acct-grid { grid-template-columns: 1fr; } }
.acct-main { display: grid; gap: 18px; }
.acct-block { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.acct-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-bottom: 14px; }
.acct-block-head h2 { font-size: 16px; letter-spacing: -.01em; }
.acct-block-head.sub { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.acct-orders { margin-bottom: 0; }
.acct-orders th { font-size: 12px; color: var(--muted); font-weight: 600; background: #f9fafb; }
.acct-orders td { font-size: 14px; }
.acct-addr { font-style: normal; font-size: 14px; line-height: 1.75; color: #334155; }
.acct-empty { text-align: center; padding: 26px 10px; }
.acct-empty p { color: var(--muted); margin-bottom: 14px; }
.acct-side { display: grid; gap: 14px; }
.acct-stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.acct-stat .num { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.acct-stat .lbl { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.acct-links { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 0; }
.acct-links a { display: block; padding: 10px 18px; font-size: 13.5px; color: #334155; }
.acct-links a:hover { background: #f8fafc; color: #0f172a; }
.danger-zone { border-color: #f4d4d4; background: #fffafa; }

/* 后台客户列表 */
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 14px; }
.list-search { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.list-search input { width: 220px; margin: 0; padding: 8px 11px; font-size: 13.5px; }
.list-search .btn { padding: 8px 14px; font-size: 13.5px; white-space: nowrap; }

/* ==================== v1.7.1 商品详情富文本（规格清单 / 尺码表） ==================== */
.desc h4 { font-size: 15px; font-weight: 650; color: #0f172a; margin: 22px 0 8px; letter-spacing: -.01em; }
.desc h4:first-child { margin-top: 0; }
.desc p { font-size: 14px; line-height: 1.75; color: #475569; margin-bottom: 12px; }
.spec-list { list-style: none; margin: 14px 0 6px; display: grid; gap: 9px; }
.spec-list li { font-size: 14px; line-height: 1.6; color: #475569; padding-left: 20px; position: relative; }
.spec-list li::before { content: "—"; position: absolute; left: 0; color: #cbd5e1; }
.spec-list strong { color: #0f172a; font-weight: 600; }
.size-table { width: 100%; border-collapse: collapse; margin: 12px 0 8px; font-size: 13px; }
.size-table th { text-align: left; background: #f8fafc; color: #334155; font-weight: 600;
  padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.size-table td { padding: 9px 10px; border-bottom: 1px solid #f1f5f9; color: #475569; }
.size-table tbody tr:last-child td { border-bottom: none; }
@media (max-width: 560px) { .size-table { font-size: 12px; } .size-table th, .size-table td { padding: 7px 6px; } }

/* v1.7.1 圆卡：百货 7 个分类一行排满（球衣 6 个时也居中不留大空档） */
.circle-grid { grid-template-columns: repeat(7, 1fr); gap: 20px 12px; justify-items: center; }
@media (max-width: 1080px) { .circle-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 980px) { .circle-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .circle-grid { grid-template-columns: repeat(3, 1fr); } }

/* v1.7.2 政策/介绍页正文：窄栏放宽到 760px，长文更好读 */
.narrow { max-width: 760px; }
@media (max-width: 820px) { .narrow { max-width: 100%; } }
