/* 利亚 LIABAHAI · 清爽明亮主题 */
:root {
  --ink: #1f2a26;
  --ink-2: #5a6b63;
  --ink-3: #8a978f;
  --bg: #faf8f4;
  --card: #ffffff;
  --line: #e9e3d8;
  --brand: #2f6d5a;
  --brand-dark: #245447;
  --brand-soft: #eaf2ee;
  --amber: #c77e32;
  --amber-soft: #fbeedc;
  --danger: #c0564a;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(31, 42, 38, 0.08);
  --shadow-sm: 0 4px 14px rgba(31, 42, 38, 0.06);
}

* { box-sizing: border-box; }
/* hidden 属性必须能压过组件自身的 display，否则弹层关不掉 */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }
.container { width: min(1180px, 92vw); margin: 0 auto; }

/* 顶部公告 */
.topbar { background: var(--brand-dark); color: #eef6f2; font-size: 12.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 7px 0; flex-wrap: wrap; }
.topbar-sep { width: 1px; height: 10px; background: rgba(255, 255, 255, 0.25); }

/* 头部 */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.logo-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); }
.logo-text { font-size: 19px; font-weight: 800; letter-spacing: 1px; }
.logo-text em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--brand); letter-spacing: 2px; margin-left: 5px; }

.nav { display: flex; align-items: center; flex: 1; max-width: 560px; margin-right: 20px; justify-content: space-between; }
.nav-link { text-decoration: none; color: var(--ink-2); font-size: 14px; padding: 7px 11px; border-radius: 9px; white-space: nowrap; }
.nav-link:hover { color: var(--brand); background: var(--brand-soft); }
.nav-link.active { color: var(--brand); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.btn { border: 0; border-radius: 12px; padding: 10px 18px; font-size: 14px; transition: all 0.15s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(47, 109, 90, 0.25); }
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-outline { background: #fff; color: var(--amber); border: 1px solid var(--amber); }
.btn-outline:hover { background: var(--amber-soft); }
.btn-sm { padding: 6px 14px; font-size: 12.5px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn-login { white-space: nowrap; }
.btn-wechat { background: #1aad19; color: #fff; }
.btn-wechat:hover { background: #169217; }

/* 头部「在线定制」入口 */
.btn-customize { gap: 6px; white-space: nowrap; }
.btn-customize .btn-ico { font-size: 12px; line-height: 1; opacity: .75; }
.btn-customize:hover .btn-ico { opacity: 1; }

/* 跳转后短暂高亮，提示已到达定制区 */
.customizer.is-flash { animation: czFlash 1.7s ease; }
@keyframes czFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 109, 90, 0); }
  12% { box-shadow: 0 0 0 5px rgba(47, 109, 90, .26); }
  70% { box-shadow: 0 0 0 5px rgba(47, 109, 90, .16); }
}

.user-area { display: flex; align-items: center; }
.user-chip { display: flex; align-items: center; gap: 8px; background: var(--brand-soft); border-radius: 999px; padding: 4px 6px 4px 4px; }
.user-avatar { width: 30px; height: 30px; border-radius: 999px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.user-name { font-size: 13px; font-weight: 600; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-logout { border: 0; background: transparent; color: var(--ink-3); font-size: 12px; padding: 4px 6px; border-radius: 8px; }
.user-logout:hover { color: var(--danger); background: #fff; }

/* 首屏主视觉：客户案例轮播 */
.hero { position: relative; margin-top: 18px; }
.hero-case-layout { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; background: linear-gradient(120deg, #eef4f0 0%, #faf8f4 62%, #f3ede2 100%); border-radius: 22px; padding: 22px 26px; box-shadow: var(--shadow); overflow: hidden; }
.hero-cta { display: flex; gap: 12px; justify-content: center; }

.hero-cases { min-width: 0; }
.hero-case-stage-wrap { position: relative; }
.hero-case-viewport { position: relative; overflow: hidden; }
.hero-case-stage { position: relative; width: 100%; }

/* 卡位：整行向左滑动，缩放由卡位决定（中间 2 倍、两端 0.5 倍）；位置 / 缩放由 JS 写入 */
.hero-case-slot {
  position: absolute; left: 0; margin: 0;
  border-radius: 14px; overflow: hidden; background: #efe9dd;
  box-shadow: 0 10px 24px rgba(31, 42, 38, 0.13);
  transform-origin: center center;
  transition: transform 0.62s cubic-bezier(0.22, 0.8, 0.3, 1), opacity 0.4s ease;
  will-change: transform;
}
.hero-case-slot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.hero-case-slot:hover img { transform: scale(1.05); }

.hero-case-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.92); color: var(--ink-2); font-size: 20px; line-height: 1; display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: all 0.15s; padding: 0 0 2px; }
.hero-case-arrow:hover { color: var(--brand); transform: translateY(-50%) scale(1.06); }
.hero-case-prev { left: 10px; }
.hero-case-next { right: 10px; }
.hero-case-dots { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
.hero-case-dot { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: rgba(31, 42, 38, 0.18); transition: all 0.2s; }
.hero-case-dot.active { width: 22px; background: var(--brand); }

/* 保障条 */
.assurance { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.assurance li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.assurance b { font-size: 14.5px; color: var(--brand); }
.assurance span { font-size: 12.5px; color: var(--ink-3); }

/* 区块 */
.section { margin-top: 46px; }
/* 吸顶导航会盖住锚点目标，统一预留滚动距离（导航高 66px + 16px 余量） */
.hero, .section, #customizer { scroll-margin-top: 82px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 24px; letter-spacing: 1px; }
.section-sub { margin: 6px 0 0; color: var(--ink-3); font-size: 13.5px; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab { border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 7px 15px; font-size: 13px; }
.filter-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

/* 印刷工艺 */
.craft-block { margin-top: 26px; padding: 22px 22px 24px; background: linear-gradient(180deg, #f6f2ea 0%, #faf8f4 100%); border: 1px solid var(--line); border-radius: 20px; }
.craft-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.craft-kicker { display: inline-block; font-size: 11px; letter-spacing: 2px; color: var(--amber); background: var(--amber-soft); padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.craft-head h3 { margin: 8px 0 0; font-size: 19px; letter-spacing: 0.5px; }
.craft-note { margin: 0; font-size: 12.5px; color: var(--ink-3); }

.craft-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.craft-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: all 0.2s ease; cursor: default; }
.craft-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.craft-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #efe9de; }
.craft-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.craft-card:hover .craft-media img { transform: scale(1.07); }
.craft-en { position: absolute; left: 0; bottom: 0; right: 0; padding: 16px 12px 8px; background: linear-gradient(180deg, rgba(31, 42, 38, 0) 0%, rgba(31, 42, 38, 0.72) 100%); color: #fff; font-size: 9.5px; letter-spacing: 2px; font-weight: 700; text-align: right; }
.craft-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.craft-name { font-size: 15px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; }
.craft-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.craft-desc { margin: 0; font-size: 12px; line-height: 1.65; color: var(--ink-2); min-height: 3.3em; }
.craft-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 3px; }
.craft-tag { font-size: 10.5px; color: var(--ink-3); background: #f4f1ea; padding: 2px 8px; border-radius: 999px; }
.craft-skeleton { aspect-ratio: 4 / 3.6; border-radius: var(--radius); background: linear-gradient(100deg, #efeae1 30%, #f7f4ee 50%, #efeae1 70%); background-size: 220% 100%; animation: craftShimmer 1.3s ease-in-out infinite; }
@keyframes craftShimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* 工艺卡选中态 */
.craft-card { cursor: pointer; }
.craft-card.active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(47, 109, 90, 0.16), var(--shadow); }
.craft-card.active .craft-media::after { content: '✓ 已选'; position: absolute; top: 9px; left: 9px; background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.5px; }

/* 礼盒结构 */
.structure-block { margin-top: 26px; padding: 22px 22px 24px; background: linear-gradient(180deg, #f2f5f3 0%, #f9fbfa 100%); border: 1px solid var(--line); border-radius: 20px; }
.structure-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.structure-kicker { display: inline-block; font-size: 11px; letter-spacing: 2px; color: var(--brand); background: var(--brand-soft); padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.structure-head h3 { margin: 8px 0 0; font-size: 19px; letter-spacing: 0.5px; }
.structure-note { margin: 0; font-size: 12.5px; color: var(--ink-3); }

.structure-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.structure-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: all 0.2s ease; cursor: pointer; }
.structure-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.structure-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #f2f0ec; }
.structure-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.structure-card:hover .structure-media img { transform: scale(1.07); }
.structure-en { position: absolute; left: 0; bottom: 0; right: 0; padding: 16px 12px 8px; background: linear-gradient(180deg, rgba(31, 42, 38, 0) 0%, rgba(31, 42, 38, 0.72) 100%); color: #fff; font-size: 9.5px; letter-spacing: 1.6px; font-weight: 700; text-align: right; }
.structure-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.structure-name { font-size: 15px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; }
.structure-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.structure-desc { margin: 0; font-size: 12px; line-height: 1.65; color: var(--ink-2); min-height: 3.3em; }
.structure-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 3px; }
.structure-tag { font-size: 10.5px; color: var(--ink-3); background: #f4f1ea; padding: 2px 8px; border-radius: 999px; }
.structure-skeleton { aspect-ratio: 1 / 1.3; border-radius: var(--radius); background: linear-gradient(100deg, #e9efec 30%, #f5f8f7 50%, #e9efec 70%); background-size: 220% 100%; animation: craftShimmer 1.3s ease-in-out infinite; }
.structure-card.active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(47, 109, 90, 0.16), var(--shadow); }
.structure-card.active .structure-media::after { content: '✓ 已选'; position: absolute; top: 9px; left: 9px; background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.5px; }

/* 骨架屏 */
.empty-state { text-align: center; color: var(--ink-3); padding: 46px 0; font-size: 14px; }

/* 流程 */
.process-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.process-grid li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.step-num { font-size: 26px; font-weight: 800; color: rgba(47, 109, 90, 0.22); }
.process-grid b { display: block; margin: 6px 0 4px; font-size: 15px; }
.process-grid p { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }

/* 云端状态提示 */
.cloud-status { margin: 26px auto 8px; width: min(1180px, 92vw); font-size: 13px; border-radius: 12px; padding: 12px 16px; }
.cloud-status.ok { background: var(--brand-soft); color: var(--brand-dark); }
.cloud-status.warn { background: #fdf3e7; color: #9a5f22; border: 1px solid #f3ddbd; }
.cloud-status.error { background: #fbeceb; color: var(--danger); border: 1px solid #f0d4d1; }

/* 页脚 */
.footer { margin-top: 60px; background: #24312c; color: #b9c6c0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; padding: 40px 0 26px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text em { color: #7fb5a1; }
.footer-brand p { font-size: 13px; line-height: 1.8; margin: 10px 0 0; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.footer-col b { color: #e7efe9; font-size: 14px; margin-bottom: 4px; }
.footer-col a { color: #b9c6c0; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-copy { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 14px 0 18px; font-size: 12px; color: #7d8d86; }

/* 登录弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(24, 32, 29, 0.45); backdrop-filter: blur(3px); z-index: 90; display: grid; place-items: center; animation: fadeIn 0.18s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { position: relative; width: min(400px, 92vw); background: #fff; border-radius: 20px; padding: 30px 28px 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); animation: popIn 0.2s ease; }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.modal-close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border: 0; border-radius: 9px; background: #f2efe8; color: var(--ink-3); font-size: 13px; }
.modal-close:hover { color: var(--ink); }
.modal-head { text-align: center; margin-bottom: 18px; }
.modal-logo { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 19px; }
.modal-head h3 { margin: 10px 0 4px; font-size: 20px; }
.modal-head p { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.auth-tabs { display: none; }
/* 表单通用 */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; font-size: 14px; outline: 0; background: #fbfaf7; color: var(--ink); transition: border 0.15s; }
.field input:focus, .field textarea:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(47, 109, 90, 0.1); }
.field textarea { resize: vertical; min-height: 58px; font-family: inherit; line-height: 1.6; }
.field input[readonly] { background: #f4f1ea; color: var(--ink-2); font-weight: 700; }
.field-error { color: var(--danger); font-style: normal; font-size: 12px; }
.auth-tip { margin: 0; text-align: center; font-size: 11.5px; color: var(--ink-3); }
.form-error { margin: 12px 0 0; color: var(--danger); font-size: 12.5px; text-align: center; }

/* 询价表单 */
.modal-wide { width: min(560px, 94vw); max-height: 90vh; overflow-y: auto; }
.inq-items-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.inq-items-head span { color: var(--ink-3); font-size: 12px; }
.inq-items { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 208px; overflow-y: auto; }
.inq-item { display: grid; grid-template-columns: 44px 1fr auto 26px; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: #fdfcf9; }
.inq-item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.inq-item-info { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.inq-item-info b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inq-item-info span { font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inq-item-info em { font-style: normal; font-size: 11.5px; color: var(--amber); font-weight: 700; }
.inq-item-qty { display: flex; align-items: center; gap: 4px; }
.inq-item-qty input { width: 58px; text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: 5px 2px; font-size: 13px; outline: 0; background: #fff; }
.inq-item-qty input:focus { border-color: var(--brand); }
.inq-item-del { border: 0; background: transparent; color: var(--ink-3); font-size: 12px; width: 26px; height: 26px; border-radius: 7px; }
.inq-item-del:hover { color: var(--danger); background: #fdf0ee; }
.inq-empty { text-align: center; color: var(--ink-3); font-size: 13px; padding: 18px 0; }
.inq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.inq-success { text-align: center; padding: 26px 6px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.success-mark { width: 56px; height: 56px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 26px; font-weight: 800; }
.inq-success h3 { margin: 6px 0 0; font-size: 19px; }
.inq-success p { margin: 0; font-size: 13px; color: var(--ink-2); }
.inq-success p b { color: var(--brand); letter-spacing: 1px; }
.success-sub { color: var(--ink-3) !important; font-size: 12.5px !important; line-height: 1.7; margin-bottom: 10px !important; }

/* 询价数量加减按钮 */
.qty-btn { width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink-2); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); background: rgba(31, 42, 38, 0.92); color: #fff; font-size: 13.5px; padding: 11px 20px; border-radius: 999px; z-index: 120; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); animation: toastIn 0.25s ease; max-width: 80vw; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }
.toast.hide { opacity: 0; transition: opacity 0.3s; }

/* 响应式 */
@media (max-width: 960px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .craft-grid { grid-template-columns: repeat(3, 1fr); }
  .structure-grid { grid-template-columns: repeat(2, 1fr); }
  .craft-block { padding: 18px 16px 20px; }
  .assurance { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-case-layout { grid-template-columns: 1fr; padding: 20px 18px; gap: 14px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .craft-grid { grid-template-columns: repeat(2, 1fr); }
  .structure-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .header-actions { margin-left: auto; gap: 8px; }
  .header-actions .btn { padding: 9px 13px; font-size: 13px; }
  .btn-customize .btn-ico { display: none; }
  .inq-grid { grid-template-columns: 1fr; }
  .inq-item { grid-template-columns: 40px 1fr auto; grid-template-areas: "img info del" "img qty qty"; row-gap: 6px; }
  .inq-item img { grid-area: img; width: 40px; height: 40px; }
  .inq-item-info { grid-area: info; }
  .inq-item-qty { grid-area: qty; }
  .inq-item-del { grid-area: del; }
  .modal-wide { padding: 24px 18px 20px; }
}


/* 询价单内添加商品 */
.inq-add { display: flex; gap: 8px; margin: -4px 0 16px; }
.inq-add select { flex: 1; min-width: 0; border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--ink-2); background: #fbfaf7; outline: 0; cursor: pointer; }
.inq-add select:focus { border-color: var(--brand); border-style: solid; background: #fff; }
.inq-add .btn { flex: none; padding: 10px 16px; font-size: 13px; border-radius: 12px; }

/* ============================================================
   定制预览器：结构 × 工艺 → 成品图
   ============================================================ */
.customizer { display: grid; grid-template-columns: 1fr; gap: 20px; background: linear-gradient(180deg, #f7f4ee 0%, #fdfbf8 100%); border: 1px solid var(--line); border-radius: 20px; padding: 22px; margin-bottom: 18px; }
.preview-stage { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.preview-canvas { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 38% 32%, #f7f0e2, #ded1b7); box-shadow: 0 16px 36px rgba(31, 42, 38, .16); }
.preview-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--photo-zoom, 1)); transform-origin: var(--photo-origin, 50% 50%); }
.preview-fx { position: absolute; inset: 0; }
.preview-badge { position: absolute; left: 12px; bottom: 12px; background: rgba(31, 42, 38, .74); color: #fff; font-size: 11.5px; letter-spacing: .4px; padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
.preview-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: rgba(255, 255, 255, .74); color: var(--ink-2); font-size: 13.5px; }
.preview-meta { display: flex; flex-direction: column; gap: 6px; }
.preview-meta b { font-size: 16px; }
.preview-meta span { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.preview-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.preview-chips .chip { font-size: 11.5px; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 4px 10px; }
.preview-chips .chip.chip-muted { color: var(--ink-3); background: #f2efe8; }

/* 定制面板：两栏栅格，①② 与摘要通栏，③④ 尺寸/数量并排 */
.customizer-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 26px; align-content: start; min-width: 0; }
.customizer-panel > .panel-block:nth-child(1),
.customizer-panel > .panel-block:nth-child(2) { grid-column: 1 / -1; }
.customizer-panel > .preview-specs,
.customizer-panel > .base-style,
.customizer-panel > #previewInquiryBtn { grid-column: 1 / -1; }
.panel-block { display: flex; flex-direction: column; gap: 8px; }
.panel-label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.panel-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
/* 定制区占位态：云端目录加载中 / 加载失败，避免出现空白面板 */
.mini-grid.is-loading::after,
.mini-grid.is-empty::after {
  content: "款式加载中…";
  grid-column: 1 / -1;
  display: block;
  padding: 20px 8px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-2);
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.mini-grid.is-loading::after { animation: miniPulse 1.2s ease-in-out infinite; }
.mini-grid.is-empty::after { content: "暂无可选款式，请稍后重试"; }
@keyframes miniPulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.mini-card { position: relative; border: 1px solid var(--line); background: #fff; border-radius: 12px; overflow: hidden; padding: 0; display: flex; flex-direction: column; transition: all .16s ease; }
.mini-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mini-card span { font-size: 11.5px; color: var(--ink-2); padding: 5px 2px; text-align: center; line-height: 1.3; }
.mini-card:hover { transform: translateY(-2px); border-color: rgba(47, 109, 90, .45); }
.mini-card.active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(47, 109, 90, .16); }
.mini-card.active span { color: var(--brand); font-weight: 700; }
.mini-card.active::after { content: "✓"; position: absolute; top: 5px; right: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 11px; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.panel-select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--ink-2); background: #fbfaf7; outline: 0; cursor: pointer; }
.panel-select:focus { border-color: var(--brand); background: #fff; }
.panel-toggle { align-self: flex-start; border: 1px solid rgba(47, 109, 90, .3); background: #fff; color: var(--brand); border-radius: 999px; padding: 5px 13px; font-size: 12px; }
.panel-toggle:hover { background: var(--brand-soft); }
.panel-toggle.on { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 600; }

/* ③ 尺寸填写 */
.size-row { display: flex; align-items: flex-end; gap: 6px; }
.size-field { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.size-field i { font-style: normal; font-size: 11px; color: var(--ink-3); padding-left: 2px; }
.size-field input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font-size: 13.5px; color: var(--ink-2); background: #fbfaf7; outline: 0; -moz-appearance: textfield; }
.size-field input::-webkit-outer-spin-button,
.size-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.size-field input:focus { border-color: var(--brand); background: #fff; }
.size-sep { color: var(--ink-3); font-size: 13px; padding-bottom: 10px; }
.size-unit { font-size: 12px; color: var(--ink-3); padding-bottom: 10px; }

/* ④ 数量填写 */
.qty-field { display: flex; align-items: center; gap: 8px; }
.qty-field input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--ink-2); background: #fbfaf7; outline: 0; -moz-appearance: textfield; }
.qty-field input::-webkit-outer-spin-button,
.qty-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-field input:focus { border-color: var(--brand); background: #fff; }
.qty-field input.invalid { border-color: var(--danger); background: #fdf3f1; animation: shake .32s ease; }
.qty-unit { font-size: 12.5px; color: var(--ink-3); flex: none; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* 字段说明 / 校验提示 */
.field-hint { margin: 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
.field-hint.warn { color: var(--danger); font-weight: 600; }
.field-hint.ok { color: var(--brand); }

/* 基准款式行 */
.base-style { display: flex; align-items: center; gap: 10px; }
.base-style-label { font-size: 12px; color: var(--ink-3); white-space: nowrap; flex: none; }
.base-style .panel-select { flex: 1; min-width: 0; }
.base-style .panel-toggle { flex: none; }
.preview-specs { display: grid; grid-template-columns: 68px 1fr; gap: 7px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 12.5px; }
.spec-k { color: var(--ink-3); }
.spec-v { color: var(--ink); font-weight: 600; }

/* —— 成品图上的工艺效果层 —— */
.fx { position: absolute; inset: 0; }
.fx-logo { position: absolute; left: 12%; right: 12%; top: var(--logo-top, 30%); transform: scale(var(--logo-scale, 1)); transform-origin: center top; text-align: center; }
.fx .mark { font-size: clamp(17px, 2.4vw, 29px); font-weight: 800; letter-spacing: .16em; }
.fx .en { font-size: clamp(8px, .78vw, 11px); letter-spacing: .34em; font-weight: 700; margin-top: 3px; }
.fx .sub { font-size: clamp(8px, .72vw, 10.5px); letter-spacing: .1em; margin-top: 6px; }

/* 烫金 */
.gold-mark { background: linear-gradient(118deg, #fff6d2 0%, #e8c169 26%, #a87a1d 50%, #f3e0a4 72%, #8d6714 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 1px rgba(88, 60, 10, .5)); }
.gold-en { color: #b98b2c; }
.gold-sub { color: rgba(150, 112, 42, .9); }
.gold-sweep { position: absolute; left: 10%; right: 10%; top: var(--logo-top, 30%); height: 76px; background: linear-gradient(115deg, transparent 42%, rgba(255, 250, 222, .55) 50%, transparent 58%); mix-blend-mode: overlay; animation: goldSweep 5.5s ease-in-out infinite; }
@keyframes goldSweep { 0%, 100% { transform: translateX(-32%); opacity: 0; } 40% { opacity: .9; } 60% { transform: translateX(32%); opacity: 0; } }

/* 凹凸 */
.emboss-mark { color: rgba(255, 255, 255, .28); text-shadow: 0 -1px 0 rgba(255, 255, 255, .6), 0 1px 1px rgba(0, 0, 0, .38), 0 3px 6px rgba(0, 0, 0, .2); }
.emboss-en { color: rgba(255, 255, 255, .24); text-shadow: 0 1px 1px rgba(0, 0, 0, .4); }
.tone-light .emboss-mark { color: rgba(122, 112, 96, .3); text-shadow: 0 -1px 0 rgba(255, 255, 255, .9), 0 1px 1px rgba(0, 0, 0, .2); }
.tone-light .emboss-en { color: rgba(122, 112, 96, .34); text-shadow: none; }

/* 局部 UV */
.uv-patch { position: absolute; inset: -13px -20px; border-radius: 14px; background: linear-gradient(148deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .04) 46%, rgba(255, 255, 255, .4)); mix-blend-mode: overlay; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(255, 255, 255, .25); }
.uv-patch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(118deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%); }
.uv-mark { position: relative; color: rgba(31, 42, 38, .5); text-shadow: 0 1px 0 rgba(255, 255, 255, .65); }
.uv-en { position: relative; color: rgba(31, 42, 38, .42); }
.tone-dark .uv-mark, .tone-dark .uv-en { color: rgba(255, 255, 255, .55); text-shadow: none; }

/* 模切 */
.die-hole { position: absolute; left: 50%; top: var(--logo-top, 30%); width: 92px; height: 92px; margin: -46px 0 0 -46px; transform: scale(var(--logo-scale, 1)); border-radius: 50%; background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .95), rgba(233, 223, 200, .88) 46%, rgba(172, 156, 128, .95) 100%); box-shadow: inset -7px -9px 16px rgba(0, 0, 0, .26), inset 5px 6px 12px rgba(255, 255, 255, .6); }
.die-ring { position: absolute; left: 50%; top: var(--logo-top, 30%); width: 92px; height: 92px; margin: -46px 0 0 -46px; transform: scale(var(--logo-scale, 1)); border-radius: 50%; border: 2px solid rgba(199, 126, 50, .55); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), 0 4px 10px rgba(0, 0, 0, .18); }
.tone-dark .die-hole { background: radial-gradient(circle at 34% 28%, rgba(120, 104, 80, .9), rgba(58, 47, 34, .95) 55%, rgba(28, 22, 15, .98)); }

/* 激光镂空 */
.laser-grid { position: absolute; left: 50%; top: var(--logo-top, 30%); width: 168px; height: 168px; margin: -84px 0 0 -84px; transform: scale(var(--logo-scale, 1)); background: radial-gradient(circle at 50% 50%, transparent 26%, rgba(255, 238, 196, .9) 27%, transparent 29%), repeating-radial-gradient(circle at 50% 50%, rgba(255, 236, 188, .5) 0 1px, transparent 1px 9px); mix-blend-mode: screen; filter: drop-shadow(0 0 3px rgba(255, 222, 155, .75)); }
.laser-dot { position: absolute; left: 50%; top: var(--logo-top, 30%); width: 36px; height: 36px; margin: -18px 0 0 -18px; transform: scale(var(--logo-scale, 1)); border-radius: 50%; background: radial-gradient(circle, #fff8e8 32%, rgba(255, 236, 190, .85) 62%, rgba(255, 236, 190, .3) 100%); mix-blend-mode: screen; }

/* 易撕线 */
.tear-line { position: absolute; left: 10%; right: 10%; top: calc(var(--logo-top, 30%) + 82px); height: 3px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .92) 0 6px, transparent 6px 14px); box-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.tear-tab { position: absolute; right: 11%; top: calc(var(--logo-top, 30%) + 62px); font-size: 10px; letter-spacing: .08em; color: rgba(31, 42, 38, .6); background: rgba(255, 255, 255, .78); border-radius: 999px; padding: 3px 9px; }
.tone-dark .tear-tab { color: rgba(255, 255, 255, .85); background: rgba(0, 0, 0, .38); }

/* 镭射膜 */
.holo-rainbow { position: absolute; inset: 0; background: repeating-linear-gradient(112deg, rgba(255, 0, 140, .3), rgba(255, 196, 0, .3), rgba(60, 255, 150, .3), rgba(0, 170, 255, .3), rgba(170, 0, 255, .3), rgba(255, 0, 140, .3)); background-size: 300% 300%; mix-blend-mode: color; opacity: .85; animation: holoShift 8s linear infinite; }
.holo-sheen { position: absolute; inset: -30%; background: linear-gradient(112deg, transparent 40%, rgba(255, 255, 255, .5) 50%, transparent 60%); mix-blend-mode: overlay; animation: holoSheen 6s ease-in-out infinite; }
.holo-mark { background: linear-gradient(90deg, #ff6ec7 0%, #ffd166 22%, #7ae7ff 48%, #b48cff 72%, #ff6ec7 100%); background-size: 100% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: holoText 6s linear infinite; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }
.holo-en { color: rgba(255, 255, 255, .85); text-shadow: 0 0 8px rgba(120, 200, 255, .85); }
.tone-dark .holo-rainbow { mix-blend-mode: screen; opacity: .38; }
@keyframes holoShift { to { background-position: 300% 300%; } }
@keyframes holoSheen { 0%, 100% { transform: translateX(-18%); opacity: .3; } 50% { transform: translateX(18%); opacity: .85; } }
@keyframes holoText { 0%, 100% { filter: hue-rotate(0deg) drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); } 50% { filter: hue-rotate(160deg) drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); } }

/* 开窗工艺 */
.win-hole { position: absolute; left: 50%; top: var(--logo-top, 30%); width: 156px; height: 112px; margin: -56px 0 0 -78px; transform: scale(var(--logo-scale, 1)); border-radius: 12px; background: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .3)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85), inset 0 0 24px rgba(255, 255, 255, .5), 0 8px 18px rgba(0, 0, 0, .22); }
.win-glare { position: absolute; left: 50%; top: var(--logo-top, 30%); width: 156px; height: 112px; margin: -56px 0 0 -78px; transform: scale(var(--logo-scale, 1)); border-radius: 12px; background: linear-gradient(118deg, transparent 30%, rgba(255, 255, 255, .9) 44%, transparent 58%); mix-blend-mode: screen; }
.win-film { position: absolute; left: 50%; top: var(--logo-top, 30%); width: 156px; height: 112px; margin: -56px 0 0 -78px; transform: scale(var(--logo-scale, 1)); border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .6); box-shadow: inset 0 0 16px rgba(255, 255, 255, .45), 0 0 0 1px rgba(0, 0, 0, .08); }
.tone-dark .win-hole { background: linear-gradient(160deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .06)); }

/* 定制区响应式 */
@media (max-width: 960px) {
  .customizer { grid-template-columns: 1fr; }
  .customizer-panel { grid-template-columns: 1fr; }
  .preview-canvas { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .customizer { padding: 16px 14px 18px; }
  .preview-specs { grid-template-columns: 60px 1fr; }
  .base-style { flex-wrap: wrap; }
}
