/* ============================================
   丹心印商城 - 高级定制版样式
   深酒红 · 古金 · 墨黑 · 暖象牙
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  /* 主色系 - 深酒红 */
  --cinnabar: #8B1A1A;
  --cinnabar-dark: #6B0F0F;
  --cinnabar-light: #A52828;
  --cinnabar-pale: rgba(139,26,26,.20);
  --cinnabar-glow: rgba(139,26,26,.22);

  /* 金色系 - 古金 */
  --gold: #C9A961;
  --gold-dark: #B8923D;
  --gold-light: #E0C887;
  --gold-pale: rgba(201,169,97,.12);
  --gold-gradient: linear-gradient(135deg, #E0C887 0%, #C9A961 50%, #B8923D 100%);

  /* 墨色系 → 深色主题反相为象牙文字 */
  --ink: #F4EAD8;
  --ink-light: #C9BCA8;
  --ink-pale: #9A8F7F;
  --ink-faint: #6A5F52;

  /* 底色系 - 深色轻奢（暗底 + 描金面板） */
  --paper: #171312;
  --paper-warm: #201914;
  --paper-dark: #2A211A;
  --white: #1F1A16;
  --border: rgba(201,169,97,.20);
  --border-light: rgba(201,169,97,.10);

  /* 阴影系统 - 分层 */
  --shadow-xs: 0 1px 2px rgba(26,26,26,.04);
  --shadow-sm: 0 2px 8px rgba(26,26,26,.06), 0 1px 2px rgba(26,26,26,.04);
  --shadow: 0 4px 16px rgba(26,26,26,.08), 0 1px 4px rgba(26,26,26,.04);
  --shadow-lg: 0 8px 32px rgba(26,26,26,.10), 0 2px 8px rgba(26,26,26,.06);
  --shadow-xl: 0 16px 48px rgba(26,26,26,.14), 0 4px 16px rgba(26,26,26,.08);
  --shadow-gold: 0 4px 20px rgba(201,169,97,.25);
  --shadow-cinnabar: 0 4px 20px rgba(139,26,26,.20);

  /* 圆角 */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  /* 过渡曲线 */
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);

  /* Safe Area — 刘海屏/Home指示器适配 */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

/* iOS 11.0-11.2 兼容 */
@supports (padding-top: constant(safe-area-inset-top)) {
  :root {
    --safe-top: constant(safe-area-inset-top);
    --safe-bottom: constant(safe-area-inset-bottom);
    --safe-left: constant(safe-area-inset-left);
    --safe-right: constant(safe-area-inset-right);
  }
}

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #0E0C0B;
  background-image:
    radial-gradient(120% 80% at 50% -10%, #2a2320 0%, #171312 55%, #0e0c0b 100%),
    radial-gradient(circle at 20% 40%, rgba(139,26,26,.10) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(201,169,97,.08) 0%, transparent 55%);
  background-attachment: fixed;
  color: var(--ink);
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,.12), 0 0 1px rgba(0,0,0,.05);
  -webkit-font-smoothing: antialiased;
}

/* 自定义滚动条 */
::-webkit-scrollbar { width: 0; height: 0; }

/* ===== Header - 玻璃态 ===== */
.app-header {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--safe-top) 16px 0;
  background: rgba(20,16,14,.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(201,169,97,.18);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all .3s var(--ease);
  box-sizing: content-box;
}

/* 透明标题栏 — 定制页用，叠加在3D区上 */
#header.header-transparent .app-header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  position: absolute;
  width: 100%;
  pointer-events: none;
}

#header.header-transparent .app-header .app-header-title {
  color: rgba(255,255,255,.85);
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

#header.header-transparent .app-header .app-header-back {
  color: rgba(255,255,255,.7);
}

#header.header-transparent .app-header .app-header-right {
  pointer-events: auto;
  color: rgba(255,255,255,.7);
}

.app-header-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--cinnabar);
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(139,26,26,.08);
}

.app-header-back {
  font-size: 24px;
  color: var(--ink);
  cursor: pointer;
  width: 32px;
  text-align: left;
  transition: all .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.app-header-back:active { transform: scale(.85); }

.app-header-right {
  font-size: 13px;
  color: var(--ink-light);
  cursor: pointer;
  transition: all .2s var(--ease);
}

/* ===== Page Container ===== */
.page-container {
  min-height: calc(100vh - 52px - 60px - var(--safe-top) - var(--safe-bottom));
  min-height: calc(100dvh - 52px - 60px - var(--safe-top) - var(--safe-bottom));
  padding-bottom: 16px;
}

.page {
  animation: pageIn .4s var(--ease);
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== TabBar - 高级底部导航 ===== */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: flex-start;
  padding: 8px 0 0;
  padding-bottom: var(--safe-bottom);
  background: rgba(21,16,13,.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(201,169,97,.18);
  z-index: 200;
  box-shadow: 0 -2px 20px rgba(0,0,0,.4);
  box-sizing: content-box;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--ink-pale);
  cursor: pointer;
  position: relative;
  transition: all .25s var(--ease);
}

.tab-item.active {
  color: var(--cinnabar);
}

.tab-item.active::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold-gradient);
  box-shadow: 0 1px 6px rgba(201,169,97,.4);
}

.tab-item svg { width: 22px; height: 22px; transition: all .25s var(--ease); }
.tab-item:active svg { transform: scale(.88); }
.tab-item.active svg { transform: scale(1.05); }

/* ===== 备案号页脚 ===== */
.site-footer {
  margin-top: 28px;
  padding: 18px 16px calc(20px + var(--safe-bottom));
  text-align: center;
  font-size: 11px;
  line-height: 1.8;
  color: var(--ink-pale, #9a8f86);
  border-top: 1px solid rgba(201,169,97,.14);
}
.site-footer-inner {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
  max-width: 360px;
}
.site-footer a {
  color: var(--cinnabar, #b03a2e);
  text-decoration: none;
  border-bottom: 1px solid rgba(176,58,46,.35);
  padding-bottom: 1px;
}
.site-footer a:active { opacity: .7; }
.site-footer-sep { opacity: .45; }

.tab-center-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cinnabar-light) 0%, var(--cinnabar) 40%, var(--cinnabar-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  margin-top: -20px;
  box-shadow: 0 6px 20px rgba(139,26,26,.35), 0 2px 6px rgba(139,26,26,.2), inset 0 1px 2px rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.08);
  transition: all .25s var(--ease-bounce);
}

.tab-center-btn:active { transform: scale(.9); }

.tab-center-btn svg { width: 24px; height: 24px; color: #fff; }

.tab-center-btn::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(201,169,97,.15);
}

.tab-badge {
  position: absolute;
  top: -2px;
  right: calc(50% - 22px);
  background: linear-gradient(135deg, var(--cinnabar-light), var(--cinnabar-dark));
  color: #fff;
  font-size: 10px;
  min-width: 17px; height: 17px;
  border-radius: 9px;
  display: none;
  align-items: center; justify-content: center;
  padding: 0 5px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(139,26,26,.3);
  border: 1.5px solid var(--white);
}

/* ===== 通用按钮 ===== */
.btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s var(--ease);
  position: relative;
  overflow: hidden;
  letter-spacing: .5px;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .3s;
}

.btn:active::after { opacity: 1; }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--cinnabar-light) 0%, var(--cinnabar) 40%, var(--cinnabar-dark) 100%);
  color: #fff;
  box-shadow: 0 3px 12px rgba(139,26,26,.25), inset 0 1px 2px rgba(255,255,255,.1);
  border: 1px solid rgba(139,26,26,.2);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #fff;
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--cinnabar);
  color: var(--cinnabar);
}

.btn-outline:active {
  background: var(--cinnabar-pale);
}

.btn-block { width: 100%; padding: 14px; font-size: 15px; }

.price { color: var(--cinnabar); font-weight: 700; }
.price-symbol { font-size: 12px; }
.price-num { font-size: 18px; }

/* 区块标题 */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  margin-bottom: 12px;
}

.section-title h3 {
  font-size: 16px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
  letter-spacing: .5px;
}

.section-title h3::before {
  content: ''; width: 3px; height: 18px;
  background: var(--gold-gradient);
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(201,169,97,.3);
}

.section-title .more {
  font-size: 12px; color: var(--ink-pale); cursor: pointer;
  transition: all .2s;
}
.section-title .more:active { color: var(--cinnabar); }

/* ===== 首页搜索 + 分类悬浮条 ===== */
.home-sticky-bar {
  position: sticky;
  top: calc(52px + var(--safe-top)); /* 在app-header下方 */
  z-index: 99;
  background: rgba(20,16,14,.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding-bottom: 0;
}

.home-search {
  padding: 10px 16px 4px;
  display: flex; gap: 10px;
}

.search-box {
  flex: 1; height: 40px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  display: flex; align-items: center;
  padding: 0 16px; gap: 8px;
  border: 1px solid var(--border);
  transition: all .25s var(--ease);
  box-shadow: var(--shadow-xs);
}

.search-box:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,97,.1);
  background: var(--white);
}

.search-box svg { width: 16px; height: 16px; color: var(--ink-pale); flex-shrink: 0; }
.search-box input { border: none; outline: none; font-size: 13px; flex: 1; background: transparent; color: var(--ink); }
.search-box input::placeholder { color: var(--ink-pale); }

.search-btn {
  background: linear-gradient(135deg, var(--cinnabar), var(--cinnabar-dark));
  color: #fff; border: none;
  padding: 8px 18px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer;
  box-shadow: 0 2px 8px rgba(139,26,26,.2);
  transition: all .2s var(--ease);
  letter-spacing: 1px;
}
.search-btn:active { transform: scale(.95); }

/* ===== 轮播图 - 电影级渐变 ===== */
.banner {
  margin: 0 16px 14px;
  height: 160px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

.banner-slide {
  width: 100%; height: 100%;
  display: flex; align-items: center;
  padding: 0 28px;
  position: relative;
  transition: opacity .6s var(--ease);
}

/* 图片模式轮播 — 覆盖铺满 */
.banner-img {
  padding: 0;
  background-size: cover;
  background-position: center;
}

.banner-1 {
  background:
    radial-gradient(circle at 80% 20%, rgba(201,169,97,.15) 0%, transparent 50%),
    linear-gradient(135deg, #6B0F0F 0%, #8B1A1A 40%, #4A0808 100%);
}
.banner-2 {
  background:
    radial-gradient(circle at 20% 80%, rgba(139,26,26,.1) 0%, transparent 50%),
    linear-gradient(135deg, #8B6914 0%, #B8923D 40%, #6B4F0A 100%);
}
.banner-3 {
  background:
    radial-gradient(circle at 70% 30%, rgba(201,169,97,.12) 0%, transparent 50%),
    linear-gradient(135deg, #4A0808 0%, #6B0F0F 40%, #8B1A1A 100%);
}

/* 噪点纹理叠加 */
.banner-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.banner-content { position: relative; z-index: 2; }
.banner-content h2 {
  color: var(--gold-light); font-size: 24px; font-weight: 800;
  margin-bottom: 6px; letter-spacing: 2px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4), 0 0 30px rgba(201,169,97,.15);
}
.banner-content p {
  color: rgba(255,255,255,.82); font-size: 13px; letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.banner-deco {
  position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  width: 90px; height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.2), rgba(201,169,97,.05));
  border: 1px solid rgba(201,169,97,.25);
  box-shadow: 0 0 40px rgba(201,169,97,.1);
}

.banner-dots {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
  z-index: 3;
}

.banner-dot {
  width: 6px; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,.3);
  transition: all .35s var(--ease);
}
.banner-dot.active {
  width: 22px;
  background: var(--gold-light);
  box-shadow: 0 0 8px rgba(224,200,135,.5);
}

/* ===== 分类导航 ===== */
.category-nav {
  display: flex; justify-content: space-around;
  padding: 10px 8px 18px;
}

.category-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; transition: all .2s var(--ease);
}

.category-item:active { transform: scale(.92); }

.category-icon {
  width: 50px; height: 50px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: linear-gradient(135deg, var(--cinnabar-pale), rgba(139,26,26,.10));
  border: 1px solid rgba(139,26,26,.08);
  box-shadow: var(--shadow-xs);
  transition: all .25s var(--ease);
}

.category-item:hover .category-icon {
  box-shadow: var(--shadow-sm), var(--shadow-cinnabar);
  transform: translateY(-2px);
}

.category-icon.gold-bg {
  background: linear-gradient(135deg, var(--gold-pale), rgba(201,169,97,.10));
  border-color: rgba(201,169,97,.1);
}
.category-icon.warm-bg {
  background: linear-gradient(135deg, var(--paper-warm), rgba(201,169,97,.06));
}

.category-name { font-size: 11px; color: var(--ink-light); letter-spacing: .5px; }

/* ===== 文化卡片 ===== */
.culture-card {
  margin: 0 16px 18px;
  background:
    linear-gradient(135deg, rgba(201,169,97,.14), rgba(139,26,26,.10));
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(201,169,97,.2);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.culture-card::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,97,.08) 0%, transparent 70%);
}

.culture-card h4 { font-size: 14px; color: var(--cinnabar-dark); margin-bottom: 6px; letter-spacing: 1px; }
.culture-card p { font-size: 12px; color: var(--ink-light); line-height: 1.7; }
.culture-icon { position: absolute; right: 16px; bottom: 10px; font-size: 36px; opacity: .1; }

/* ===== 商品网格 ===== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all .3s var(--ease);
  border: 1px solid var(--border-light);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(201,169,97,.3);
}

.product-card:active { transform: scale(.97); }

.product-img {
  width: 100%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--paper), var(--paper-warm));
}

.product-img svg { width: 80%; height: 80%; transition: transform .3s var(--ease); }
.product-card:hover .product-img svg { transform: scale(1.08); }
.product-img img { width: 100%; height: 100%; object-fit: cover; }

.product-tag {
  position: absolute; top: 8px; left: 8px;
  background: linear-gradient(135deg, var(--cinnabar), var(--cinnabar-dark));
  color: #fff;
  font-size: 9px; padding: 3px 8px;
  border-radius: 6px; font-weight: 700;
  letter-spacing: .5px;
  box-shadow: 0 2px 6px rgba(139,26,26,.2);
}

.product-tag.gold {
  background: var(--gold-gradient);
  box-shadow: var(--shadow-gold);
}

.product-info { padding: 10px 12px 12px; }
.product-name {
  font-size: 13px; font-weight: 600; margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink);
}
.product-desc {
  font-size: 11px; color: var(--ink-pale); margin-bottom: 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.product-price-row { display: flex; justify-content: space-between; align-items: center; }
.product-card .price { font-size: 17px; }

.cart-add-btn {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cinnabar), var(--cinnabar-dark));
  color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(139,26,26,.25);
  transition: all .2s var(--ease-bounce);
}
.cart-add-btn:active { transform: scale(.8); }

/* ===== 商品列表页 ===== */
.products-tabs {
  display: flex; gap: 0;
  padding: 4px 16px 4px;
  overflow-x: auto;
}
/* sticky bar 内的 products-tabs 无需独立背景 */
.home-sticky-bar .products-tabs {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}

.products-tab {
  padding: 7px 16px; font-size: 13px;
  color: var(--ink-light); white-space: nowrap;
  cursor: pointer; border-radius: 18px; transition: all .25s var(--ease);
  letter-spacing: .5px;
}

.products-tab.active {
  background: linear-gradient(135deg, var(--cinnabar), var(--cinnabar-dark));
  color: #fff; font-weight: 600;
  box-shadow: 0 2px 8px rgba(139,26,26,.2);
}

/* ============================================
   定制页 —— 高级珠宝工坊级设计
   ============================================ */
.custom-page { padding-bottom: calc(70px + var(--safe-bottom)); background: linear-gradient(180deg, #1a0e08 0%, #2d1810 30%, #1a0a05 100%); min-height: 100vh; }

/* 顶部固定区 */
.custom-sticky-top {
  position: sticky;
  top: 0;
  z-index: 101;
  background: linear-gradient(180deg, #1a0e08 0%, rgba(26,14,8,.95) 100%);
  padding-bottom: 6px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* 3D 展示台 — 暗金珠宝展柜 */
.custom-3d-area {
  background:
    radial-gradient(ellipse at 50% 35%, rgba(201,169,97,.15) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 60%, rgba(139,26,26,.08) 0%, transparent 50%),
    radial-gradient(ellipse at center, #140D08 0%, #080403 100%);
  height: 360px;
  position: relative;
  overflow: hidden;
  margin: 8px 12px;
  border-radius: 24px;
  border: 1.5px solid rgba(201,169,97,.25);
  box-shadow:
    inset 0 -40px 80px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(201,169,97,.12),
    0 12px 40px rgba(0,0,0,.3),
    0 4px 12px rgba(0,0,0,.15);
}

/* 金边内框装饰 */
.custom-3d-area::before {
  content: '';
  position: absolute; inset: 8px;
  border: 1px solid rgba(201,169,97,.1);
  border-radius: 14px;
  pointer-events: none; z-index: 2;
  box-shadow: inset 0 0 40px rgba(201,169,97,.04);
}

/* 噪点纹理 */
.custom-3d-area::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1;
}

.custom-3d-area canvas { display: block; width: 100% !important; height: 100% !important; position: relative; z-index: 0; }

/* 3D加载态 */
.custom-3d-loading {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  z-index: 3;
}

.custom-3d-loading .loading-ring {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid rgba(201,169,97,.15);
  border-top-color: rgba(201,169,97,.5);
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.custom-3d-loading-text {
  color: rgba(201,169,97,.45); font-size: 12px; letter-spacing: 1px;
}

/* 3D操作提示 */
.custom-3d-hint {
  position: absolute; bottom: 14px; left: 50%;
  transform: translateX(-50%);
  color: rgba(201,169,97,.25);
  font-size: 11px; letter-spacing: 2px;
  z-index: 2;
  background: rgba(10,5,4,.5);
  padding: 4px 14px; border-radius: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* 信息统计条 — 暗金玻璃标签 */
.custom-info-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 12px; margin: 4px 10px 0;
  background: linear-gradient(135deg, rgba(20,10,6,.92), rgba(30,16,10,.92));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 10px;
  border: 1px solid rgba(201,169,97,.18);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.custom-info-bar .bead-count {
  font-size: 10px; color: rgba(255,255,255,.45); letter-spacing: .5px;
  display: flex; align-items: center; gap: 4px;
}

.custom-info-bar .bead-count strong {
  color: var(--gold-light); font-size: 14px;
  min-width: 14px; text-align: center;
}

.custom-info-bar .bead-count-divider {
  width: 1px; height: 12px; background: rgba(201,169,97,.18); margin: 0 8px;
}

.custom-price-display { display: flex; align-items: baseline; gap: 2px; }
.custom-price-display .price-symbol { font-size: 11px; color: var(--gold-light); font-weight: 600; }
.custom-price-display .price-num { font-size: 20px; color: var(--gold-light); font-weight: 700; letter-spacing: -1px; }

/* 手串填充进度条 */
.bracelet-fill-track {
  margin: 0 12px;
  height: 4px;
  background: rgba(139, 26, 26, .1);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.bracelet-fill-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold));
  border-radius: 2px;
  transition: width .4s cubic-bezier(.4,0,.2,1);
  min-width: 2px;
}
.bracelet-fill-bar.full { background: linear-gradient(90deg, var(--gold), #E8B84B); }
.bracelet-fill-label {
  position: absolute; right: 8px; top: -16px;
  font-size: 10px; color: var(--ink-light); opacity: .5; font-weight: 500;
}

/* 珠子序列 — 深色丝绒背景 */
.bead-sequence {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin: 10px 12px 0;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(201,169,97,.12);
  box-shadow: 0 2px 16px rgba(0,0,0,.15);
}

.bead-sequence-title {
  font-size: 12px; color: rgba(255,255,255,.85); font-weight: 600;
  margin-bottom: 8px;
  display: flex; justify-content: space-between; align-items: center;
  letter-spacing: .5px;
}

.bead-sequence-clear {
  font-size: 11px; color: var(--cinnabar); cursor: pointer;
  font-weight: 500; transition: all .2s;
  padding: 2px 8px; border-radius: 10px;
}
.bead-sequence-clear:hover { background: rgba(139,26,26,.06); }
.bead-sequence-clear:active { opacity: .5; }

.bead-sequence-list {
  display: flex; gap: 8px;
  overflow-x: auto; padding-bottom: 2px;
  min-height: 34px; align-items: center;
  scroll-behavior: smooth;
}

.bead-sequence-list::-webkit-scrollbar { height: 2px; }
.bead-sequence-list::-webkit-scrollbar-thumb {
  background: rgba(201,169,97,.2); border-radius: 2px;
}

.bead-sequence-empty {
  display: flex; align-items: center; justify-content: center;
  width: 100%; font-size: 12px; color: var(--ink-pale); height: 32px;
  letter-spacing: 1px; gap: 6px;
}

.bead-seq-item {
  width: 34px; height: 34px; border-radius: 50%;
  flex-shrink: 0; position: relative; cursor: pointer;
  border: 2px solid rgba(255,255,255,.8);
  transition: all .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 2px 8px rgba(0,0,0,.1), 0 0 0 1px rgba(0,0,0,.04);
}

.bead-seq-item:hover {
  border-color: var(--gold);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 18px rgba(201,169,97,.25), 0 0 0 1px rgba(201,169,97,.15);
}

.bead-seq-item .remove-x {
  position: absolute; top: -5px; right: -5px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--cinnabar); color: #fff;
  font-size: 8px; line-height: 14px; text-align: center;
  display: none; z-index: 2;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.bead-seq-item:hover .remove-x { display: block; }

/* 材料区 — 深色玻璃卡片 */
.material-section {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin: 8px 12px 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(201,169,97,.12);
  box-shadow: 0 2px 16px rgba(0,0,0,.15);
  transition: box-shadow .3s;
}

.material-section-title {
  font-size: 14px; font-weight: 700; margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.9);
  letter-spacing: 1px;
}

.material-section-title::before {
  content: '';
  width: 4px; height: 16px;
  background: linear-gradient(180deg, var(--gold-light), var(--cinnabar));
  border-radius: 2px;
  box-shadow: 0 1px 6px rgba(201,169,97,.3);
}

/* 材料子标签 */
.material-sub-tabs {
  display: flex; gap: 0;
  margin-bottom: 16px;
  background: rgba(255,255,255,.05);
  border-radius: 14px;
  padding: 4px;
  overflow-x: auto;
}

.material-sub-tab {
  padding: 7px 16px; font-size: 12px; border-radius: 11px;
  color: rgba(255,255,255,.55); white-space: nowrap;
  cursor: pointer; transition: all .3s cubic-bezier(.4,0,.2,1);
  font-weight: 500; letter-spacing: .5px;
  flex: 1; text-align: center;
  position: relative; z-index: 1;
}

.material-sub-tab.active {
  background: rgba(255,255,255,.12);
  color: var(--gold-light);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* 加入购物车按钮 */
.btn-add-cart-inline {
  width: 100%; margin-top: 14px;
  padding: 13px; border: none; border-radius: 14px;
  background: linear-gradient(135deg, #C0392B 0%, #8B0000 100%);
  color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 4px 16px rgba(139,0,0,.3);
  letter-spacing: 1px;
}
.btn-add-cart-inline:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(139,0,0,.35);
}
.btn-add-cart-inline:active { transform: scale(.97); }
.btn-add-cart-inline svg { width: 18px; height: 18px; flex-shrink: 0; }

.material-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}

.material-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; padding: 10px 4px 8px; border-radius: 16px;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  border: 1.5px solid rgba(201,169,97,.08);
  background: rgba(255,255,255,.04);
  position: relative; overflow: hidden;
}

.material-item::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(201,169,97,.12) 0%, transparent 70%);
  opacity: 0; transition: opacity .3s;
}

.material-item:hover {
  border-color: rgba(201,169,97,.4);
  background: rgba(255,255,255,.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.material-item:hover::before { opacity: 1; }
.material-item:active { transform: scale(.94); background: var(--cinnabar-pale); }

/* 添加反馈 */
.material-item.feedback {
  border-color: var(--gold);
  background: var(--gold-pale);
  animation: matFeedback .5s var(--ease);
}

@keyframes matFeedback {
  0% { transform: scale(1); }
  30% { transform: scale(.9); }
  100% { transform: scale(1); }
}

/* 手串已满 - 材料禁用状态 */
.material-item.disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(.5);
  border-color: var(--border-light);
}
.material-item.disabled:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: var(--border-light);
}
.material-full-tag {
  position: absolute; top: 4px; right: 4px;
  font-size: 10px; color: var(--gold-dark);
  background: rgba(201,169,97,.12);
  padding: 1px 6px; border-radius: 8px;
  font-weight: 600; backdrop-filter: blur(4px);
}

.material-bead-circle {
  width: 52px; height: 52px; border-radius: 50%;
  position: relative;
  box-shadow:
    0 4px 16px rgba(0,0,0,.25),
    inset 0 1px 3px rgba(255,255,255,.15),
    inset 0 -2px 4px rgba(0,0,0,.2);
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s;
}
.material-item:hover .material-bead-circle {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0,0,0,.35), inset 0 1px 3px rgba(255,255,255,.2);
}

.material-bead-circle svg { width: 100%; height: 100%; }

.material-name {
  font-size: 11px; color: rgba(255,255,255,.75); text-align: center; line-height: 1.3;
  font-weight: 500; letter-spacing: .5px;
}
.material-price {
  font-size: 11px; color: var(--gold-light); font-weight: 700;
  letter-spacing: .5px;
}

/* 珠子序列空状态 */
.bead-sequence-empty {
  display: flex; align-items: center; justify-content: center;
  width: 100%; font-size: 12px; color: rgba(255,255,255,.35); height: 32px;
  letter-spacing: 1px; gap: 6px;
}

.bead-sequence-empty {
  display: flex; align-items: center; justify-content: center;
  width: 100%; font-size: 12px; color: rgba(255,255,255,.35); height: 32px;
  letter-spacing: 1px; gap: 6px;
}

/* 绳色选择（暗色主题） */
.cord-colors { display: flex; gap: 14px; flex-wrap: wrap; }

.cord-color-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; padding: 8px; border-radius: 14px;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  border: 1.5px solid transparent;
}
.cord-color-item:hover { border-color: rgba(201,169,97,.35); background: rgba(255,255,255,.06); }

.cord-color-circle {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.15); transition: all .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  position: relative;
}

.cord-color-item.active {
  background: rgba(201,169,97,.1);
  border-color: rgba(201,169,97,.2);
}
.cord-color-item.active .cord-color-circle {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,169,97,.15), 0 4px 18px rgba(201,169,97,.25);
}

.cord-color-name { font-size: 11px; color: rgba(255,255,255,.55); font-weight: 500; }
.cord-color-item.active .cord-color-name { color: var(--gold-light); }

/* ===== 手围选择器（升级版） ===== */
.wrist-slider-wrap {
  padding: 8px 4px 0; position: relative;
}
.wrist-value-display {
  text-align: center; margin-bottom: 6px;
  font-size: 13px; color: var(--ink);
}
.wrist-value-display span {
  font-size: 26px; font-weight: 700; color: var(--cinnabar);
  letter-spacing: -1px;
}
.wrist-slider {
  width: 100%; -webkit-appearance: none;
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, #E8D5C8, #C9A961, var(--cinnabar));
  outline: none; cursor: pointer;
}
.wrist-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, #F0D890, var(--gold), var(--gold-dark));
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(201,169,97,.35), 0 0 0 5px rgba(201,169,97,.06);
  border: 2px solid #fff; transition: all .2s cubic-bezier(.4,0,.2,1);
}
.wrist-slider::-webkit-slider-thumb:active { transform: scale(1.15); }
.wrist-labels {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--ink-pale);
  padding: 3px 2px 0;
}

/* ===== 尺寸选择器 */
.size-options { display: flex; gap: 6px; flex-wrap: wrap; }
.size-opt {
  padding: 6px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  background: rgba(255,255,255,.05); color: var(--ink);
  border: 1.5px solid rgba(201,169,97,.18);
  transition: all .25s cubic-bezier(.4,0,.2,1);
  user-select: none;
}
.size-opt:hover { border-color: var(--gold); background: var(--gold-pale); }
.size-opt.active {
  background: linear-gradient(135deg, var(--cinnabar), #8B0000);
  color: #fff; border-color: transparent;
  box-shadow: 0 3px 12px rgba(139,26,26,.25);
  font-weight: 700;
}
.size-opt:active { transform: scale(.94); }

/* ===== 一键填满 */
.auto-fill-hint {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding: 10px 14px;
  background: linear-gradient(135deg, rgba(201,169,97,.08), rgba(139,26,26,.04));
  border-radius: 12px; border: 1px solid rgba(201,169,97,.15);
  gap: 10px;
}
.auto-fill-hint span {
  font-size: 12px; color: var(--ink-light); flex: 1; line-height: 1.4;
}
.auto-fill-btn {
  padding: 7px 16px; border-radius: 16px; border: none;
  background: linear-gradient(135deg, var(--cinnabar), #8B0000);
  color: #fff; font-size: 12px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: all .3s; box-shadow: 0 2px 8px rgba(139,26,26,.2);
  flex-shrink: 0;
}
.auto-fill-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(139,26,26,.3); }
.auto-fill-btn:active { transform: scale(.95); }

/* ===== 首页装修模块 */
.home-section {
  margin: 12px 12px 0; border-radius: 16px;
  overflow: hidden; position: relative;
  background: linear-gradient(135deg, #1a0a05 0%, #3d1a12 40%, #8B1A1A 100%);
  min-height: 120px;
  display: flex; align-items: center;
  border: 1px solid rgba(201,169,97,.08);
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transition: transform .3s, box-shadow .3s;
}
.home-section:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.home-section.banner { min-height: 160px; }
.home-section.feature { min-height: 100px; background: linear-gradient(135deg, #241d18 0%, #1a1512 100%); }
.home-section-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .85;
}
.home-section-content {
  position: relative; z-index: 1; padding: 24px 20px;
  text-align: center; width: 100%;
}
.home-section.feature .home-section-content { color: var(--ink); }
.home-section-title {
  font-size: 20px; font-weight: 700; color: #fff;
  letter-spacing: 2px; text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.home-section.feature .home-section-title { color: var(--ink); text-shadow: none; }
.home-section-subtitle {
  font-size: 12px; color: rgba(255,255,255,.7);
  margin-top: 6px; letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.home-section.feature .home-section-subtitle { color: var(--ink-light); text-shadow: none; }
.home-section.no-img .home-section-content { background: linear-gradient(135deg, rgba(0,0,0,.3), transparent); }

/* 旧的尺寸滑块保留兼容 */
.size-slider-wrap { padding: 4px 2px; position: relative; }
.size-slider {
  width: 100%; -webkit-appearance: none;
  height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, #E8D5C8, var(--cinnabar-pale), var(--cinnabar));
  outline: none;
}
.size-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #F0D890, var(--gold), var(--gold-dark));
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(201,169,97,.4), 0 0 0 6px rgba(201,169,97,.06);
  border: 2.5px solid #fff; transition: all .2s cubic-bezier(.4,0,.2,1);
}
.size-slider::-webkit-slider-thumb:active { transform: scale(1.15); }
.size-value-inline {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 11px; font-weight: 700; color: var(--cinnabar);
  pointer-events: none; z-index: 5;
  background: rgba(31,26,22,.95); color: var(--gold-light);
  padding: 2px 10px; border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
  letter-spacing: .5px;
}

.size-options { display: flex; gap: 8px; flex-wrap: wrap; }

.size-opt {
  padding: 0 14px; height: 30px; line-height: 30px;
  border-radius: 15px; font-size: 13px; cursor: pointer;
  border: 1.5px solid rgba(201,169,97,.18);
  background: rgba(255,255,255,.05);
  color: var(--ink-light); font-weight: 500;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  letter-spacing: .5px; flex: 1; text-align: center; min-width: 50px;
}

.size-opt:hover { border-color: rgba(201,169,97,.4); background: rgba(255,255,255,.1); }

.size-opt.active {
  border-color: var(--cinnabar-light);
  background: linear-gradient(135deg, rgba(139,26,26,.35), rgba(139,26,26,.18));
  color: var(--gold-light); font-weight: 700;
  box-shadow: 0 2px 12px rgba(139,26,26,.3);
}

/* 内联加入购物车按钮 */
.btn-add-cart-inline {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: calc(100% - 20px); margin: 14px 10px;
  padding: 13px 20px;
  border: none; border-radius: 24px;
  background: linear-gradient(135deg, var(--cinnabar-light), var(--cinnabar));
  color: #FFF; font-size: 15px; font-weight: 600;
  letter-spacing: .5px; cursor: pointer;
  box-shadow: 0 4px 20px rgba(139,26,26,.28), inset 0 1px 2px rgba(255,255,255,.2);
  transition: all .3s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
}
.btn-add-cart-inline:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(139,26,26,.35), inset 0 1px 2px rgba(255,255,255,.25);
}
.btn-add-cart-inline:active { transform: scale(.97); }
.btn-add-cart-inline svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ============================================
   AI 智能搭配面板 —— 金黑高端主题
   ============================================ */
.ai-recommend-bar { padding: 12px 10px 0; }

.ai-recommend-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border: none; border-radius: var(--radius);
  background: linear-gradient(135deg, #1A0F0A 0%, #2D1810 40%, #3D2015 100%);
  color: var(--gold-light); font-size: 15px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,.15), 0 1px 2px rgba(201,169,97,.1);
  border: 1px solid rgba(201,169,97,.2);
  transition: all .3s var(--ease); position: relative; overflow: hidden;
  letter-spacing: 1.5px;
}

.ai-recommend-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(201,169,97,.08) 0%, transparent 70%);
  opacity: 0; transition: opacity .4s;
}
.ai-recommend-btn:hover::before { opacity: 1; }

.ai-recommend-btn::after {
  content: '';
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(201,169,97,.06) 0%, transparent 50%);
  animation: aiShimmer 4s infinite;
}

@keyframes aiShimmer {
  0%, 100% { transform: translate(-20%, -20%) rotate(0deg); }
  50% { transform: translate(20%, 20%) rotate(180deg); }
}

.ai-recommend-btn:active { transform: scale(.97); border-color: var(--gold); }

.ai-icon { font-size: 20px; animation: aiPulse 2.5s infinite; }
@keyframes aiPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

.ai-sparkle { font-size: 14px; animation: aiSparkle 2s infinite; opacity: .7; }
@keyframes aiSparkle {
  0%, 100% { opacity: .7; transform: scale(1) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.25) rotate(12deg); }
}

/* AI 推荐按钮 — 材料区内联版 */
.ai-recommend-btn-inline {
  margin-left: auto;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(201,169,97,.35);
  background: linear-gradient(135deg, rgba(201,169,97,.12), rgba(139,26,26,.08));
  color: var(--gold);
  cursor: pointer;
  letter-spacing: .5px;
  transition: all .2s;
}
.ai-recommend-btn-inline:hover {
  background: linear-gradient(135deg, rgba(201,169,97,.22), rgba(139,26,26,.14));
  border-color: var(--gold);
}

/* AI 偏好选择面板 */
.ai-panel { padding: 0 0 24px; }

.ai-panel-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 20px 0;
}

.ai-panel-title {
  font-size: 18px; font-weight: 700; color: var(--ink);
  letter-spacing: 1px;
}

.ai-panel-subtitle {
  font-size: 12px; color: var(--ink-pale); padding: 6px 20px 16px;
  letter-spacing: .5px;
}

.ai-section { padding: 16px 20px; }
.ai-section + .ai-section { border-top: 1px solid var(--border-light); }

.ai-section-label {
  font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 12px;
  letter-spacing: .5px; display: flex; align-items: center; gap: 6px;
}
.ai-section-label::before {
  content: '';
  width: 2px; height: 14px; border-radius: 1px;
  background: var(--gold-gradient);
}

.ai-option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ai-occa-grid { grid-template-columns: repeat(4, 1fr); }
.ai-budget-grid { grid-template-columns: repeat(3, 1fr); }

.ai-option-card {
  padding: 14px 8px; border-radius: 12px; border: 1.5px solid var(--border);
  text-align: center; cursor: pointer; transition: all .3s var(--ease);
  background: var(--paper); position: relative; overflow: hidden;
}

.ai-option-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(201,169,97,.06) 0%, transparent 70%);
  opacity: 0; transition: opacity .3s;
}

.ai-option-card:hover {
  border-color: var(--gold);
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
.ai-option-card:hover::before { opacity: 1; }

.ai-option-card.active {
  border-color: var(--cinnabar);
  background: linear-gradient(135deg, var(--cinnabar-pale), rgba(139,26,26,.10));
  box-shadow: 0 4px 16px rgba(139,26,26,.12);
}

.ai-option-icon { font-size: 22px; display: block; margin-bottom: 5px; }
.ai-option-name { font-size: 13px; font-weight: 600; display: block; color: var(--ink); letter-spacing: .5px; }
.ai-option-desc { font-size: 10px; color: var(--ink-pale); display: block; margin-top: 3px; }

.ai-action-row {
  display: flex; gap: 12px; padding: 18px 20px;
  border-top: 1px solid var(--border-light);
}

.ai-action-row .btn { flex: 1; padding: 15px; font-size: 15px; font-weight: 700; border-radius: 26px; letter-spacing: 1px; }

.ai-generate-btn {
  background: linear-gradient(135deg, var(--cinnabar-dark), var(--cinnabar), var(--cinnabar-light));
  color: #fff; border: none; cursor: pointer;
  transition: all .3s var(--ease);
  box-shadow: 0 4px 16px rgba(139,26,26,.25);
}
.ai-generate-btn:active { transform: scale(.97); }

.ai-loading-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-light); animation: aiDot 1s infinite;
  margin-right: 5px;
}

@keyframes aiDot {
  0%, 100% { opacity: .3; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* AI 推荐结果摘要 */
.ai-summary { padding: 24px 20px; }

.ai-summary-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(201,169,97,.06), rgba(139,26,26,.04));
  border-radius: var(--radius);
  border: 1px solid rgba(201,169,97,.15);
}

.ai-summary-sparkle { font-size: 32px; animation: aiSparkle 2s infinite; }

.ai-summary-title {
  font-size: 20px; font-weight: 700;
  background: linear-gradient(135deg, var(--cinnabar-dark), var(--cinnabar));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1.5px;
}

.ai-summary-design {
  background: linear-gradient(135deg, var(--paper-warm), rgba(201,169,97,.06));
  border-radius: 12px; padding: 16px; margin-bottom: 18px;
  border: 1px solid var(--border);
}

.ai-summary-desc { font-size: 13px; color: var(--ink-light); line-height: 1.8; letter-spacing: .5px; }

.ai-summary-detail {
  background: var(--white); border-radius: 12px;
  border: 1px solid var(--border); overflow: hidden; margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.ai-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 18px; border-bottom: 1px solid var(--border-light);
}
.ai-summary-row:last-child { border-bottom: none; }

.ai-summary-label { font-size: 13px; color: var(--ink-light); letter-spacing: .5px; }
.ai-summary-value { font-size: 13px; color: var(--ink); font-weight: 600; letter-spacing: .5px; }

.ai-summary-blessing {
  background: linear-gradient(135deg, var(--gold-pale), rgba(201,169,97,.10));
  border-radius: 12px; padding: 18px; margin-bottom: 22px;
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid rgba(201,169,97,.2);
  position: relative; overflow: hidden;
}
.ai-summary-blessing::before {
  content: '';
  position: absolute; top: -16px; right: -16px;
  width: 60px; height: 60px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,97,.1) 0%, transparent 70%);
}

.ai-summary-blessing-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; position: relative; z-index: 1; }
.ai-summary-blessing-text {
  font-size: 13px; color: var(--cinnabar-dark); line-height: 1.9;
  font-style: italic; position: relative; z-index: 1;
}

.ai-summary-actions { display: flex; gap: 12px; }
.ai-summary-actions .btn { flex: 1; padding: 15px; font-size: 15px; font-weight: 700; border-radius: 26px; letter-spacing: 1px; }

/* ===== 购物车 ===== */
.cart-page { padding: 12px 16px 90px; }

.cart-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 80px 0; gap: 16px;
}

.cart-empty svg { width: 64px; height: 64px; color: var(--ink-pale); opacity: .4; }
.cart-empty p { font-size: 14px; color: var(--ink-pale); }

.cart-item {
  display: flex; gap: 12px; background: var(--white);
  border-radius: var(--radius); padding: 14px; margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  align-items: center;
  border: 1px solid var(--border-light);
  transition: all .25s var(--ease);
}

.cart-item:active { transform: scale(.98); }

.cart-item-img {
  width: 72px; height: 72px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--paper), var(--paper-warm));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}

.cart-item-img svg { width: 80%; height: 80%; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item-desc { font-size: 11px; color: var(--ink-pale); margin-bottom: 6px; }

.cart-item-bottom { display: flex; justify-content: space-between; align-items: center; }
.cart-item-price { font-size: 16px; color: var(--cinnabar); font-weight: 700; }

.cart-qty { display: flex; align-items: center; gap: 8px; }

.qty-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--white);
  font-size: 14px; color: var(--ink-light);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all .2s var(--ease);
}

.qty-btn:active { background: var(--paper-warm); transform: scale(.88); }
.qty-num { font-size: 14px; font-weight: 600; min-width: 22px; text-align: center; }

.cart-footer {
  position: fixed; bottom: calc(60px + var(--safe-bottom)); left: 0; right: 0;
  width: 100%; max-width: 480px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  background: rgba(21,16,13,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 150;
  box-shadow: 0 -2px 16px rgba(26,26,26,.04);
}

.cart-total { font-size: 13px; color: var(--ink-light); }
.cart-total .price { font-size: 22px; }

.cart-checkout-btn {
  background: linear-gradient(135deg, var(--cinnabar), var(--cinnabar-dark));
  color: #fff; border: none; padding: 12px 30px;
  border-radius: 25px; font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 14px rgba(139,26,26,.25);
  transition: all .2s var(--ease);
  letter-spacing: 1px;
}
.cart-checkout-btn:active { transform: scale(.95); }

/* ===== 结算页 ===== */
.checkout-page { padding: 12px 16px 72px; }

.checkout-section {
  background: var(--white); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.checkout-section h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; letter-spacing: .5px; }

.form-group { margin-bottom: 12px; }
.form-label { font-size: 12px; color: var(--ink-light); margin-bottom: 5px; display: block; letter-spacing: .5px; }

.form-input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; background: var(--paper);
  color: var(--ink);
  outline: none; transition: all .25s var(--ease);
}
.form-input::placeholder { color: var(--ink-pale); }

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,97,.1);
  background: var(--white);
}

.form-textarea { min-height: 60px; resize: vertical; }

.checkout-item {
  display: flex; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--border-light); align-items: center;
}

.checkout-item:last-child { border-bottom: none; }

.checkout-item-img {
  width: 50px; height: 50px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--paper), var(--paper-warm));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.checkout-item-img svg { width: 80%; height: 80%; }
.checkout-item-name { font-size: 13px; font-weight: 600; flex: 1; }
.checkout-item-price { font-size: 13px; color: var(--cinnabar); font-weight: 700; }
.checkout-item-body { flex: 1; min-width: 0; }
.ck-detail { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ck-detail .ck-row { font-size: 11px; color: var(--ink-pale); }
.ck-detail .ck-row b { color: var(--ink); font-weight: 600; margin-right: 3px; }
.ck-detail-sm { gap: 3px 8px; }
.ck-detail-sm .ck-row { font-size: 10.5px; }
.ck-only-note { font-size: 11.5px; color: var(--ink-pale); background: rgba(201,162,75,.08);
  border: 1px dashed var(--border-light); border-radius: var(--radius-sm); padding: 7px 10px; margin-bottom: 6px; }

/* ========== 地址管理 ========== */
.addr-empty { text-align:center; padding:28px 0 10px; color: var(--ink-pale); }
.addr-empty-icon { font-size:36px; margin-bottom:8px; }
.addr-empty p { font-size:13px; margin-bottom:14px; }
.addr-add-btn-sm { display:inline-block; padding:7px 18px; border-radius:20px;
  background:linear-gradient(120deg,var(--wine),var(--wine-soft)); color:#fff; border:none;
  font-size:13px; cursor:pointer; letter-spacing:.5px; }
.addr-add-btn { display:flex; align-items:center; justify-content:center; gap:4px;
  width:100%; padding:11px; border:1px dashed var(--gold); border-radius:12px;
  background:rgba(201,162,75,.06); color:var(--gold-soft); font-size:13px; cursor:pointer;
  transition:.15s; margin-top:8px; }
.addr-add-btn:hover { background:rgba(201,162,75,.12); }
.addr-add-btn-lg { padding:14px; font-size:14px; border-style:solid; background:transparent; }

/* 未登录引导（结算页 / 地址管理页） */
.addr-login-gate { display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:30px 16px; text-align:center; background:rgba(201,162,75,.05);
  border:1px dashed var(--border-light); border-radius:12px; }
.addr-login-gate--page { min-height:50vh; }
.addr-login-icon { font-size:34px; margin-bottom:10px; opacity:.85; }
.addr-login-tip { font-size:13px; color:var(--ink-soft); margin:0 0 16px; }
.addr-login-btn { padding:10px 30px; border:none; border-radius:22px;
  background:linear-gradient(120deg,var(--wine),var(--wine-soft)); color:#fff;
  font-size:14px; font-weight:600; letter-spacing:1px; cursor:pointer;
  box-shadow:0 6px 18px rgba(110,20,35,.4); }
.addr-login-btn:active { transform:scale(.97); }

/* 地址卡片 */
.addr-card { display:flex; align-items:flex-start; gap:10px; padding:12px 12px;
  border:1.5px solid var(--border-light); border-radius:12px; margin-bottom:8px;
  background:var(--paper); transition:border-color .15s; cursor:pointer; position:relative; }
.addr-card:hover { border-color: rgba(201,162,75,.35); }
.addr-card--selected { border-color: var(--cinnabar); background: rgba(198,40,40,.03);
  box-shadow: 0 0 0 2px rgba(198,40,40,.08); }
.addr-check { flex-shrink:0; width:20px; height:20px; border-radius:50%;
  border:2px solid var(--border); display:flex; align-items:center; justify-content:center;
  font-size:11px; color:#fff; background:transparent; margin-top:2px; transition:.15s; }
.addr-card--selected .addr-check { border-color: var(--cinnabar); background: var(--cinnabar); }
.addr-body { flex:1; min-width:0; }
.addr-top { display:flex; align-items:center; gap:8px; margin-bottom:3px; }
.addr-name { font-size:14px; font-weight:600; color: var(--ink); }
.addr-phone { font-size:13px; color: var(--ink-mid); }
.addr-text { font-size:12.5px; color: var(--ink-pale); line-height:1.45; word-break:break-all; }
.addr-tag { display:inline-block; font-size:10px; padding:1px 7px; border-radius:8px;
  background: rgba(201,162,75,.12); color:var(--gold); letter-spacing:.5px; }
.addr-tag--switch { background: transparent; border:1px dashed var(--border-light); color: var(--ink-pale); }
.addr-actions { display:flex; gap:6px; flex-shrink:0; opacity:0; transition:opacity .15s; }
.addr-card:hover .addr-actions { opacity:1; }
/* 管理页地址操作始终可见（移动端无 hover） */
.addr-card--mgmt .addr-actions { opacity:1; }
.addr-switch-hint { font-size:11px; color: var(--ink-pale); margin:6px 0 0; padding-left:2px; }
.addr-act-btn { padding:4px 10px; border:1px solid var(--border); border-radius:8px;
  background:var(--paper); font-size:11.5px; color:var(--ink-mid); cursor:pointer; white-space:nowrap; }
.addr-act-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.addr-act-del:hover { border-color: #c44; color: #c44; }

/* 地址弹窗 */
.addr-modal { position:relative; width:90%; max-width:380px; max-height:85vh;
  overflow-y:auto; background:var(--paper); border-radius:16px; box-shadow:0 24px 60px rgba(0,0,0,.35);
  display:flex; flex-direction:column; animation:addrIn .2s ease; }
@keyframes addrIn { from{opacity:0; transform:translateY(16px) scale(.97);} to{opacity:1; transform:none;} }
.addr-modal-head { display:flex; align-items:center; justify-content:space-between;
  padding:16px 16px 0; }
.addr-modal-head h3 { font-size:16px; font-weight:700; color:var(--ink); margin:0; }
.addr-modal-close { background:none; border:none; font-size:18px; color:var(--ink-pale);
  cursor:pointer; padding:4px 8px; line-height:1; }
.addr-modal-body { padding:14px 16px; }
.addr-fg { margin-bottom:10px; }
.addr-fg-row { display:flex; gap:8px; }
.addr-fg-s { flex:1; min-width:0; }
.addr-label { display:block; font-size:12px; font-weight:600; color:var(--ink-mid); margin-bottom:4px; }
.addr-input { width:100%; padding:9px 12px; border:1.5px solid var(--border); border-radius:10px;
  font-size:14px; color:var(--ink); background:#fff; outline:none; transition:border-color .15s;
  box-sizing:border-box; font-family:inherit; }
.addr-input:focus { border-color: var(--cinnabar); box-shadow:0 0 0 3px rgba(198,40,40,.08); }
.addr-textarea { resize:vertical; min-height:56px; line-height:1.5; }
.addr-default-lbl { display:flex; align-items:center; gap:6px; font-size:13px; color:var(--ink-mid);
  cursor:pointer; margin-top:4px; user-select:none; }
.addr-default-lbl input[type=checkbox] { accent-color: var(--cinnabar); width:16px; height:16px; }
.addr-modal-foot { display:flex; gap:10px; padding:12px 16px 16px; }
.addr-modal-btn { flex:1; padding:10px; border-radius:10px; font-size:14px; font-weight:600;
  cursor:pointer; border:none; transition:.15s; }
.addr-modal-cancel { background:var(--border-light); color:var(--ink-mid); }
.addr-modal-save { background:linear-gradient(120deg,var(--wine),#b82e3c); color:#fff;
  box-shadow:0 4px 14px rgba(110,20,35,.35); }

/* 地址管理页 */
.addr-mgmt { max-width:520px; margin:0 auto; padding:4px 0 100px; }
.addr-list-mgmt { padding:0 16px; }
.addr-card--mgmt { cursor:default; }
.addr-card--mgmt .addr-actions { opacity:1; }
.addr-mgmt-foot { position:fixed; left:0; right:0; bottom:0; padding:12px 16px 24px;
  background:linear-gradient(0deg,var(--paper),var(--paper) 80%, transparent); }

.pay-methods { display: flex; gap: 10px; }

.pay-method {
  flex: 1; padding: 14px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); text-align: center; cursor: pointer;
  transition: all .25s var(--ease);
  background: var(--paper);
}

.pay-method.active {
  border-color: var(--cinnabar);
  background: var(--cinnabar-pale);
  box-shadow: 0 2px 10px rgba(139,26,26,.08);
}

.pay-method-icon { font-size: 28px; margin-bottom: 4px; }
.pay-method-name { font-size: 12px; font-weight: 600; }

.checkout-total {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--border-light);
}

.checkout-total-label { font-size: 14px; color: var(--ink-light); }
.checkout-total-amount { font-size: 24px; color: var(--cinnabar); font-weight: 700; }

.checkout-footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  width: 100%; max-width: 480px; margin: 0 auto;
  padding: 14px 16px;
  padding-bottom: calc(14px + var(--safe-bottom));
  background: rgba(21,16,13,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 250;
  box-shadow: 0 -2px 16px rgba(26,26,26,.04);
}

.pay-btn {
  width: 100%; padding: 15px; border: none; border-radius: 26px;
  background: linear-gradient(135deg, var(--cinnabar), var(--cinnabar-dark));
  color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 14px rgba(139,26,26,.25);
  letter-spacing: 2px;
  transition: all .2s var(--ease);
}
.pay-btn:active { transform: scale(.97); }
.pay-btn:disabled { opacity: .6; pointer-events: none; }

/* ===== 支付页 ===== */
.pay-page { padding: 40px 24px 120px; text-align: center; min-height: 100dvh; }

.pay-amount { font-size: 36px; color: var(--cinnabar); font-weight: 700; margin-bottom: 4px; font-family: 'PingFang SC', sans-serif; }

/* 支付方式卡片 */
.pay-methods-card {
  background: var(--white); border-radius: var(--radius-lg);
  margin: 24px 0; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border-light);
  text-align: left;
}
.pay-methods-title {
  padding: 14px 18px; font-size: 14px; font-weight: 600;
  color: var(--ink-light); border-bottom: 1px solid var(--border-light);
  background: var(--paper-warm);
}
.pay-method-row {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
  font-size: 15px; font-weight: 500;
}
.pay-method-row:last-child { border-bottom: none; }
.pay-method-row .pm-check {
  margin-left: auto; color: var(--cinnabar);
  opacity: 0; transition: opacity .15s;
  font-size: 18px; font-weight: 700;
}
.pay-method-row.active { background: rgba(139,26,26,.04); }
.pay-method-row.active .pm-check { opacity: 1; }

/* 支付操作区 */
.pay-actions { margin-top: 20px; }

/* 支付底部链接 */
.pay-footer-links {
  margin-top: 16px; display: flex;
  justify-content: center; gap: 20px;
}
.pay-footer-links a {
  color: var(--ink-light); font-size: 13px;
  text-decoration: none;
}

/* 二维码区域 */
.qr-container {
  margin: 20px auto; text-align: center;
}
.qr-container canvas {
  border: 8px solid var(--white); border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.qr-tip { font-size: 13px; color: var(--ink-light); margin-top: 12px; }

/* 支付状态提示 */
.pay-status-hint {
  font-size: 14px; color: var(--ink-mid); margin-top: 12px;
  animation: pulseHint 2s infinite;
}
@keyframes pulseHint {
  0%, 100% { opacity: .6; }
  50% { opacity: 1; }
}

/* 支付成功 */
.pay-success .success-icon {
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(135deg, #27AE60, #1E8449);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 36px; margin: 0 auto 16px;
  box-shadow: 0 6px 24px rgba(39,174,96,.25);
  animation: successPop .5s var(--ease-bounce);
}
.pay-success .success-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.pay-success .success-amount { font-size: 28px; color: var(--cinnabar); font-weight: 700; margin-bottom: 4px; }
.pay-success .success-order-no { font-size: 13px; color: var(--ink-light); }

/* ===== 订单成功页 ===== */
.order-success-page { padding: 40px 24px; text-align: center; }

.success-icon {
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(135deg, #27AE60, #1E8449);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; margin: 0 auto 16px;
  box-shadow: 0 6px 24px rgba(39,174,96,.25);
  animation: successPop .5s var(--ease-bounce);
}

@keyframes successPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.success-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; letter-spacing: 1px; }
.success-desc { font-size: 14px; color: var(--ink-light); margin-bottom: 24px; }

.order-info-card {
  background: var(--white); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); text-align: left;
  border: 1px solid var(--border-light);
}

.order-info-row {
  display: flex; justify-content: space-between;
  padding: 7px 0; font-size: 13px;
}

.order-info-row .label { color: var(--ink-light); }
.order-info-row .value { color: var(--ink); font-weight: 500; }

/* ===== 订单列表 ===== */
.orders-page { padding: 12px 16px; }

.order-card {
  background: var(--white); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all .2s var(--ease);
}

.order-card:active { transform: scale(.98); }

.order-card-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px; border-bottom: 1px solid var(--border-light); margin-bottom: 10px;
}

.order-no { font-size: 12px; color: var(--ink-light); letter-spacing: .5px; }
.order-status-badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 12px; letter-spacing: .5px; }
.order-status-pending { background: #FFF3CD; color: #856404; }
.order-status-paid { background: #D1ECF1; color: #0C5460; }
.order-status-shipped { background: #D4EDDA; color: #155724; }
.order-status-completed { background: rgba(201,169,97,.18); color: var(--gold-light); }
.order-status-cancelled { background: #F5C6CB; color: #721C24; }

.order-items-summary { font-size: 13px; color: var(--ink); margin-bottom: 8px; line-height: 1.5; }
.order-total-row { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid var(--border-light); }
.order-total-amount { font-size: 17px; color: var(--cinnabar); font-weight: 700; }

/* ===== 个人中心 - 深色轻奢风 ===== */
.pf-hero {
  position: relative; overflow: hidden;
  padding: 54px 20px 26px;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(201,169,97,.18) 0%, transparent 45%),
    radial-gradient(120% 90% at 0% 100%, rgba(139,26,26,.25) 0%, transparent 50%),
    linear-gradient(160deg, #6E1423 0%, #4A0C16 55%, #2A070D 100%);
}
.pf-hero-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(201,169,97,.08) 1px, transparent 1px);
  background-size: 14px 14px;
}
.pf-settings {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: rgba(244,234,216,.75);
  background: rgba(255,255,255,.06); border: 1px solid rgba(201,169,97,.25);
}
.pf-user { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.pf-avatar {
  width: 62px; height: 62px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(145deg, #E7C77E, #C9A24B 55%, #9C7A2E);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; color: #3A0A12;
  border: 2px solid rgba(244,234,216,.35);
  box-shadow: 0 6px 18px rgba(0,0,0,.35), inset 0 1px 3px rgba(255,255,255,.3);
}
.pf-avatar--lg { width: 84px; height: 84px; font-size: 34px; margin: 0 auto 14px; }
.pf-userinfo { display: flex; flex-direction: column; gap: 8px; }
.pf-name { color: #F4EAD8; font-size: 20px; font-weight: 700; letter-spacing: 1px; margin: 0; }
.pf-name--center { text-align: center; }
.pf-sub { color: rgba(244,234,216,.65); font-size: 12px; margin: 10px 0 0; letter-spacing: .5px; }
.pf-sub--center { text-align: center; }
.pf-badge {
  align-self: flex-start;
  font-size: 11px; padding: 3px 10px; border-radius: 999px;
  color: #2A070D; font-weight: 700; letter-spacing: 1px;
  background: linear-gradient(135deg, #E7C77E, #C9A24B);
  box-shadow: 0 2px 8px rgba(201,169,97,.35);
}
.pf-login-btn {
  display: block; margin: 22px auto 0;
  padding: 11px 46px; border-radius: 999px;
  background: linear-gradient(135deg, #E7C77E, #C9A24B);
  color: #2A070D; font-size: 15px; font-weight: 700; letter-spacing: 2px;
  border: none; box-shadow: 0 6px 18px rgba(201,169,97,.3); cursor: pointer;
}

/* 数据卡 */
.pf-stats {
  display: flex; justify-content: space-around;
  margin: -18px 16px 0; padding: 18px 8px;
  background: linear-gradient(180deg, #221B16, #1A1410);
  border: 1px solid rgba(201,169,97,.22); border-radius: var(--radius);
  position: relative; z-index: 2;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.pf-stat { flex: 1; text-align: center; cursor: pointer; transition: transform .15s var(--ease); }
.pf-stat:active { transform: scale(.92); }
.pf-stat-num { font-size: 19px; font-weight: 700; color: #E7C77E; }
.pf-stat-label { font-size: 11px; color: rgba(244,234,216,.55); margin-top: 4px; }

/* 菜单分区 */
.pf-section { margin: 18px 16px 0; }
.pf-section-title {
  font-size: 12px; color: rgba(201,169,97,.7); letter-spacing: 2px;
  padding: 0 4px 10px; font-weight: 600;
}
.pf-menu {
  background: linear-gradient(180deg, #221B16, #1A1410);
  border: 1px solid rgba(201,169,97,.18); border-radius: var(--radius);
  overflow: hidden;
}
.pf-item {
  display: flex; align-items: center; padding: 15px 16px; cursor: pointer;
  border-bottom: 1px solid rgba(244,234,216,.06); transition: background .2s var(--ease);
}
.pf-item:last-child { border-bottom: none; }
.pf-item:active { background: rgba(201,169,97,.08); }
.pf-item-icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; margin-right: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  background: rgba(201,169,97,.12); border: 1px solid rgba(201,169,97,.2);
}
.pf-item-icon--danger { background: rgba(139,26,26,.18); border-color: rgba(178,58,58,.35); }
.pf-item-text { flex: 1; font-size: 14px; color: #F4EAD8; }
.pf-item--danger .pf-item-text { color: #E08A8A; }
.pf-item-arrow { color: rgba(244,234,216,.4); font-size: 16px; }
.pf-foot { text-align: center; padding: 24px 20px 32px; color: rgba(244,234,216,.35); font-size: 11px; letter-spacing: 1px; }

/* ===== 商品详情弹窗 ===== */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; max-width: 480px; margin: 0 auto;
  background: rgba(10,5,3,.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 300;
  display: none; align-items: flex-end; justify-content: center;
}

.modal-overlay.show { display: flex; animation: fadeIn .25s var(--ease); }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  width: 100%; background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  max-height: 85%;
  overflow-y: auto;
  animation: slideUp .35s var(--ease-bounce);
  box-shadow: 0 -8px 40px rgba(0,0,0,.12);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.product-detail { padding: 18px; position: relative; }

.detail-close {
  position: absolute; top: 14px; right: 18px;
  font-size: 24px; color: var(--ink-pale); cursor: pointer; z-index: 1;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  transition: all .2s var(--ease);
}

.detail-close:active { background: var(--paper-warm); transform: rotate(90deg); }

.detail-img {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--paper), var(--paper-warm));
  margin-bottom: 16px; overflow: hidden;
  border: 1px solid var(--border-light);
}

.detail-img svg { width: 70%; height: 70%; }
.detail-img img { width: 100%; height: 100%; object-fit: cover; }

.detail-name { font-size: 18px; font-weight: 700; margin-bottom: 6px; letter-spacing: .5px; }
.detail-desc { font-size: 13px; color: var(--ink-light); margin-bottom: 12px; line-height: 1.6; }
.detail-price { font-size: 26px; color: var(--cinnabar); font-weight: 700; margin-bottom: 16px; }

.detail-price .original {
  font-size: 13px; color: var(--ink-pale);
  text-decoration: line-through; margin-left: 8px; font-weight: 400;
}

.detail-attrs { margin-bottom: 16px; }
.detail-attr-row { margin-bottom: 12px; }
.detail-attr-label { font-size: 13px; color: var(--ink-light); margin-bottom: 6px; }
.detail-attr-options { display: flex; gap: 8px; flex-wrap: wrap; }

.detail-attr-opt {
  padding: 6px 14px; border-radius: 16px;
  border: 1px solid var(--border); font-size: 12px; color: var(--ink); cursor: pointer;
  transition: all .2s var(--ease);
}

.detail-attr-opt.active {
  border-color: var(--cinnabar);
  background: var(--cinnabar-pale);
  color: var(--cinnabar);
  box-shadow: 0 2px 8px rgba(139,26,26,.1);
}

.detail-info-box {
  background: linear-gradient(135deg, var(--gold-pale), rgba(201,169,97,.10));
  border-radius: var(--radius-sm); padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(201,169,97,.2);
}

.detail-info-box-title { font-size: 12px; color: var(--cinnabar-dark); font-weight: 700; margin-bottom: 5px; letter-spacing: .5px; }
.detail-info-box-content { font-size: 11px; color: var(--ink-light); line-height: 1.7; }

.detail-action { display: flex; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.detail-action .btn { flex: 1; padding: 14px; font-size: 15px; }

/* ===== 登录弹窗 ===== */
.login-modal {
  padding: 28px 24px 24px;
  position: relative;
}

.login-close {
  position: absolute; top: 14px; right: 18px;
  font-size: 24px; color: var(--ink-pale); cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s var(--ease);
}
.login-close:active { background: var(--paper-warm); transform: rotate(90deg); }

.login-logo {
  font-size: 30px; font-weight: 800;
  background: linear-gradient(135deg, var(--cinnabar), var(--cinnabar-dark));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  letter-spacing: 2px;
}

.login-subtitle {
  font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 4px;
  letter-spacing: .5px;
}

.login-desc {
  font-size: 12px; color: var(--ink-pale); margin-bottom: 24px;
}

.login-form { display: flex; flex-direction: column; gap: 14px; }

.login-input-group {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid var(--border); border-radius: 12px;
  background: var(--paper); overflow: hidden; transition: all .25s var(--ease);
}

.login-input-group:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,97,.1);
  background: var(--white);
}

.login-input-prefix {
  padding: 0 12px; font-size: 15px; font-weight: 600;
  color: var(--ink); border-right: 1px solid var(--border);
  height: 48px; display: flex; align-items: center;
}

.login-input {
  flex: 1; border: none; outline: none;
  height: 48px; padding: 0 12px; font-size: 15px;
  background: transparent; color: var(--ink);
}

.login-input::placeholder { color: var(--ink-pale); }

.login-code-btn {
  flex-shrink: 0; border: none; background: transparent;
  color: var(--cinnabar); font-size: 13px; font-weight: 600;
  padding: 0 14px; height: 48px; cursor: pointer; white-space: nowrap;
  border-left: 1px solid var(--border); transition: opacity .2s;
}

.login-code-btn:disabled { color: var(--ink-pale); cursor: not-allowed; }

.login-submit-btn {
  width: 100%; height: 50px; border: none; border-radius: 25px;
  background: linear-gradient(135deg, var(--cinnabar), var(--cinnabar-dark));
  color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 14px rgba(139,26,26,.25);
  transition: all .2s var(--ease); margin-top: 4px;
  letter-spacing: 3px;
}

.login-submit-btn:active { transform: scale(.97); }
.login-submit-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

.login-agreement {
  font-size: 11px; color: var(--ink-pale); text-align: center;
  margin-top: 16px; line-height: 1.6;
}

.login-link { color: var(--cinnabar); }

.login-tip {
  font-size: 12px; text-align: center; margin-top: 10px;
  color: var(--ink-light); opacity: 0; transition: opacity .3s;
  min-height: 16px;
}

.login-tip.show, .login-tip.error { opacity: 1; }
.login-tip.error { color: var(--cinnabar); }

/* 退出登录弹窗 */
.logout-modal { padding: 32px 24px 24px; text-align: center; }

.logout-icon { font-size: 40px; margin-bottom: 12px; }
.logout-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.logout-desc { font-size: 13px; color: var(--ink-light); margin-bottom: 20px; }

.logout-actions { display: flex; gap: 10px; }
.logout-actions .btn { flex: 1; padding: 12px; font-size: 14px; }
.logout-confirm-btn { background: linear-gradient(135deg, var(--cinnabar), var(--cinnabar-dark)); }

/* ===== Toast ===== */
.toast {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: rgba(20,10,5,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  padding: 13px 26px; border-radius: 26px;
  font-size: 14px; z-index: 999;
  pointer-events: none; opacity: 0;
  transition: all .3s var(--ease);
  max-width: 300px; text-align: center;
  letter-spacing: .5px;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.06);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
  animation: toastIn .3s var(--ease-bounce);
}

@keyframes toastIn {
  0% { transform: translate(-50%,-50%) scale(.8); opacity: 0; }
  100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
}

/* ===== 空状态 ===== */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 80px 0; gap: 12px;
}

.empty-state svg { width: 64px; height: 64px; color: var(--ink-pale); opacity: .4; }
.empty-state p { font-size: 14px; color: var(--ink-pale); }

/* ===== 自定义入口卡片 ===== */
.custom-entry-card {
  margin: 16px;
  background:
    radial-gradient(circle at 80% 20%, rgba(201,169,97,.1) 0%, transparent 50%),
    linear-gradient(135deg, var(--cinnabar-dark) 0%, var(--cinnabar) 40%, #5A0808 100%);
  border-radius: var(--radius); padding: 18px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  border: 1px solid rgba(201,169,97,.15);
  box-shadow: var(--shadow-lg), inset 0 1px 2px rgba(255,255,255,.05);
  position: relative; overflow: hidden;
  transition: all .25s var(--ease);
}

.custom-entry-card:active { transform: scale(.97); }

.custom-entry-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

.custom-entry-title {
  color: var(--gold-light); font-size: 16px; font-weight: 700;
  margin-bottom: 4px; letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.custom-entry-desc { color: rgba(255,255,255,.7); font-size: 12px; letter-spacing: .5px; }
.custom-entry-btn {
  background: rgba(201,169,97,.15); padding: 8px 18px; border-radius: 20px;
  color: var(--gold-light); font-size: 12px; font-weight: 600;
  border: 1px solid rgba(201,169,97,.2);
  letter-spacing: .5px;
}

/* ============================================
   响应式适配 — 覆盖市面所有手机 (320px ~ 430px+)
   ============================================ */

/* 极小屏: iPhone SE 1代 / 小安卓 (≤350px) */
@media (max-width: 350px) {
  .custom-3d-area { height: 260px !important; border-radius: 14px !important; }
  .custom-info-strip { padding: 4px 8px !important; }
  .custom-info-strip .info-price { font-size: 14px !important; }
  .custom-info-strip .info-item { font-size: 10px !important; margin-right: 8px !important; }
  .bead-seq-item { width: 28px !important; height: 28px !important; }
  .bead-seq-item .bead-dot { width: 20px !important; height: 20px !important; }
  .material-section { padding: 6px 10px !important; }
  .material-bead-circle { width: 44px !important; height: 44px !important; }
  .material-name { font-size: 10px !important; }
  .btn-add-cart-inline { padding: 11px 16px !important; font-size: 13px !important; }
  .size-opt { min-width: 40px !important; font-size: 11px !important; padding: 4px 8px !important; }
  .bracelet-fill-bar { height: 4px !important; }
  .app-header-title { font-size: 16px !important; }
  .custom-sticky-top { padding: 0 4px 2px !important; }
  .home-sticky-bar { top: calc(44px + var(--safe-top)) !important; }
  .home-search { padding: 8px 10px 4px !important; }
  .search-box { height: 34px !important; }
  .search-box input { font-size: 12px !important; }
  .search-btn { padding: 6px 12px !important; font-size: 11px !important; }
  .products-tabs { padding: 4px 10px 6px !important; }
  .products-tab { padding: 5px 12px !important; font-size: 11px !important; }
}

/* 小屏: iPhone SE 2/3, iPhone 6/7/8, small Android (351-380px) */
@media (min-width: 351px) and (max-width: 380px) {
  .custom-3d-area { height: 290px !important; }
  .btn-add-cart-inline { font-size: 13px !important; }
}

/* 大屏: iPhone 14/15/16 Pro Max, 大安卓 (≥390px) */
@media (min-width: 390px) {
  .custom-3d-area { height: 370px !important; }
  .custom-info-strip { padding: 6px 14px !important; }
  .material-bead-circle { width: 56px !important; height: 56px !important; }
  .material-name { font-size: 12px !important; }
}

/* 横屏/宽屏设备: 防止内容撑满屏幕 */
@media (min-width: 481px) {
  body { border-radius: 20px; }
  .tabbar { border-radius: 0 0 20px 0; }
}

/* ===== 定制页 2D 版（新） ===== */
.nc-page{ padding:10px 0 96px; }
.nc-preview{ margin:10px 16px 4px; border:1px solid var(--line, rgba(201,162,75,.22)); border-radius:22px;
  background:linear-gradient(160deg, rgba(42,20,16,.7), rgba(15,8,6,.9));
  box-shadow:0 14px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
  padding:14px; position:relative; }
.nc-ptag{ position:absolute; top:12px; left:14px; font-size:11px; letter-spacing:2px; color:rgba(244,234,216,.45); }
#nc3dArea{ width:100%; height:340px; position:relative; overflow:hidden; border-radius:18px;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(201,169,97,.16) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 60%, rgba(139,26,26,.10) 0%, transparent 50%),
    radial-gradient(ellipse at center, #140D08 0%, #080403 100%);
  border:1.5px solid rgba(201,169,97,.22);
  box-shadow: inset 0 -40px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(201,169,97,.12), 0 10px 34px rgba(0,0,0,.3); }
#nc3dArea canvas{ display:block; width:100% !important; height:100% !important; }
.nc-summary{ text-align:center; font-size:12.5px; color:#E3C77E; margin-top:6px; min-height:18px; letter-spacing:.5px; }
.nc-panel{ margin:14px 16px 0; border:1px solid var(--line, rgba(201,162,75,.22)); border-radius:18px;
  background:rgba(30,17,12,.55); padding:14px 14px 16px; backdrop-filter:blur(6px); }
.nc-ptitle{ display:flex; align-items:baseline; gap:8px; font-size:15px; font-weight:600; color:#F4EAD8; margin-bottom:12px; }
.nc-ptitle .nc-opt{ margin-left:auto; font-size:12px; color:#C9A24B; font-weight:400; }
.nc-toggle{ display:flex; background:rgba(0,0,0,.3); border:1px solid var(--line, rgba(201,162,75,.22)); border-radius:12px; padding:3px; margin-bottom:12px; }
.nc-toggle div{ flex:1; text-align:center; padding:8px 0; font-size:13px; border-radius:9px; color:rgba(244,234,216,.6); cursor:pointer; transition:.2s; }
.nc-toggle div.on{ background:linear-gradient(120deg,#6E1423,#9A2E3C); color:#F4EAD8; box-shadow:0 4px 12px rgba(110,20,35,.5); }
.nc-hint{ font-size:11.5px; color:rgba(244,234,216,.45); margin-top:10px; line-height:1.5; }
.nc-swatches{ display:flex; flex-wrap:wrap; gap:12px; }
.nc-swatch{ width:54px; text-align:center; cursor:pointer; }
.nc-dot{ width:42px; height:42px; border-radius:50%; margin:0 auto 5px; border:2px solid rgba(255,255,255,.12);
  box-shadow:0 4px 10px rgba(0,0,0,.4), inset 0 4px 8px rgba(255,255,255,.18); transition:.15s; position:relative; background:#6E1423; }
.nc-dot img{ width:100%; height:100%; border-radius:50%; object-fit:cover; }
.nc-swatch.on .nc-dot{ border-color:#C9A24B; box-shadow:0 0 0 3px rgba(201,162,75,.35), 0 4px 12px rgba(0,0,0,.5); transform:scale(1.06); }
.nc-swatch .nc-name{ font-size:11px; color:rgba(244,234,216,.8); }
.nc-swatch.on .nc-name{ color:#E3C77E; }
.nc-seg{ display:flex; flex-wrap:wrap; gap:8px; }
.nc-seg-item{ flex:1; min-width:54px; text-align:center; padding:10px 4px; border-radius:11px; cursor:pointer;
  border:1px solid var(--line, rgba(201,162,75,.22)); background:rgba(0,0,0,.22); font-size:14px; color:rgba(244,234,216,.7); transition:.15s; }
.nc-seg-item small{ font-size:10px; color:rgba(244,234,216,.4); display:block; }
.nc-seg-item.on{ background:linear-gradient(120deg,#6E1423,#9A2E3C); color:#F4EAD8; border-color:#C9A24B; }
.nc-seg.sm .nc-seg-item{ font-size:13px; padding:8px 2px; }
.nc-charms{ display:flex; gap:10px; }
.nc-charm{ flex:1; text-align:center; padding:12px 4px; border-radius:14px; cursor:pointer;
  border:1px solid var(--line, rgba(201,162,75,.22)); background:rgba(0,0,0,.22); transition:.15s; }
.nc-ico{ font-size:26px; color:#E3C77E; line-height:1.2; }
.nc-nm{ font-size:12px; color:rgba(244,234,216,.85); margin-top:4px; }
.nc-pr{ font-size:11px; color:rgba(244,234,216,.5); margin-top:2px; }
.nc-charm.on{ border-color:#C9A24B; background:linear-gradient(160deg,rgba(110,20,35,.5),rgba(0,0,0,.3)); box-shadow:0 0 0 2px rgba(201,162,75,.25); }
.nc-charm.on .nc-pr{ color:#C9A24B; }
.nc-engrave{ width:100%; padding:12px 14px; border-radius:12px; background:rgba(0,0,0,.25);
  border:1px solid var(--line, rgba(201,162,75,.22)); color:#F4EAD8; font-size:14px; outline:none; letter-spacing:2px; box-sizing:border-box; }
.nc-engrave::placeholder{ color:rgba(244,234,216,.35); letter-spacing:1px; }
.nc-actionbar{ position:sticky; bottom:0; display:flex; align-items:center; gap:10px; padding:14px 16px 18px; margin-top:14px;
  background:linear-gradient(0deg, #150a07 80%, rgba(21,10,7,0)); }
.nc-price{ display:flex; flex-direction:column; }
.nc-price .lbl{ font-size:10px; color:rgba(244,234,216,.5); }
.nc-price .val{ font-size:22px; color:#E3C77E; font-weight:700; }
.nc-btn{ flex:1; border:none; border-radius:13px; padding:13px 0; font-size:14px; font-weight:600; cursor:pointer; letter-spacing:1px; }
.nc-btn.cart{ background:rgba(201,162,75,.16); color:#E3C77E; border:1px solid #C9A24B; }
.nc-btn.buy{ background:linear-gradient(120deg,#6E1423,#9A2E3C); color:#fff; box-shadow:0 6px 18px rgba(110,20,35,.5); }
.nc-btn:active{ transform:scale(.97); }
.nc-order-box{ text-align:center; }
.nc-order-box h3{ margin:0 0 8px; color:#E3C77E; letter-spacing:2px; font-family:"Songti SC",serif; }
.nc-order-box p{ font-size:13px; color:rgba(244,234,216,.8); line-height:1.7; margin:8px 0 16px; white-space:pre-line; }
.nc-ord-summary{ color:#E3C77E !important; }
.nc-field{ margin:10px 0; text-align:left; }
.nc-field label{ display:block; font-size:12px; color:rgba(244,234,216,.6); margin-bottom:5px; }
.nc-field input{ width:100%; padding:10px 12px; border-radius:10px; background:rgba(0,0,0,.3); border:1px solid var(--line, rgba(201,162,75,.22)); color:#F4EAD8; font-size:14px; outline:none; box-sizing:border-box; }
.nc-order-btn{ width:100%; margin-top:10px; background:linear-gradient(120deg,#6E1423,#9A2E3C); color:#fff; border:none; border-radius:11px; padding:11px 28px; font-size:14px; cursor:pointer; }

/* 定制板块：原型 danxinyin-bracelet-custom.html 以 iframe 原封不动嵌入 */
.proto-wrap{ position:fixed; top:0; left:0; right:0; bottom:calc(60px + var(--safe-bottom)); max-width:480px; margin:0 auto; background:#171312; z-index:5; box-shadow:0 0 40px rgba(0,0,0,.3); }
.proto-frame{ width:100%; height:100%; border:0; display:block; background:#171312; }
