/* ============================================================
   Wemings Custom — 定制栏目（landing / color wizard / 3D）
   依赖 style.css 的 CSS 变量：--bg/--surface/--line/--ink 等
   ============================================================ */

/* ---------- 通用 ---------- */
.custom-eyebrow {
  letter-spacing: .28em; font-size: 12px; font-weight: 600; color: var(--terracotta);
  text-transform: uppercase; margin: 0 0 10px;
}

/* ---------- Landing hero ---------- */
.custom-hero {
  background: radial-gradient(120% 90% at 50% 0%, #f3ead9 0%, var(--bg) 60%);
  text-align: center; padding: 72px 0 40px;
}
.custom-hero-title {
  font-family: var(--font-serif); font-weight: 600; font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08; margin: 0 0 16px; color: var(--ink);
}
.custom-hero-sub {
  max-width: 620px; margin: 0 auto 26px; color: var(--ink-soft); font-size: 16px; line-height: 1.7;
}
.custom-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 两张入口卡 ---------- */
.custom-cards { padding: 26px 0 8px; }
.custom-cards-section { padding: 56px 0 32px; background: linear-gradient(180deg, #fbf7ee 0%, var(--bg) 100%); }
.custom-cards-head { text-align: center; margin-bottom: 26px; }
.custom-cards-sub {
  max-width: 640px; margin: -12px auto 0; color: var(--ink-soft); font-size: 15px; line-height: 1.7;
}
.cc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cc-card {
  position: relative; display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px 26px; text-decoration: none;
  color: var(--ink); transition: var(--transition); overflow: hidden;
}
.cc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.cc-tag {
  position: absolute; top: 18px; right: 18px; font-size: 10px; letter-spacing: .12em;
  color: var(--celadon-deep); border: 1px solid var(--celadon-soft); border-radius: 99px;
  padding: 4px 10px;
}
.cc-visual { position: relative; width: 100%; height: 240px; margin: 4px 0 12px; border-radius: var(--radius, 10px); overflow: hidden; background: linear-gradient(135deg, #f5ede0 0%, #eadfc8 100%); box-shadow: inset 0 0 0 1px rgba(190,96,42,.08); }
.cc-visual img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .55s ease; }
.cc-card:hover .cc-visual img { transform: scale(1.04); }
.cc-title { font-family: var(--font-serif); font-size: 30px; font-weight: 600; margin: 6px 0 8px; }
.cc-desc { color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; margin: 0 0 12px; }
.cc-link { font-weight: 600; color: var(--celadon-deep); font-size: 14px; }

/* ---------- how it works ---------- */
.custom-how { padding: 34px 0 60px; }
.custom-sec-title {
  font-family: var(--font-serif); font-size: 32px; font-weight: 600; text-align: center; margin: 20px 0 26px;
}
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.how-step {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 20px 18px;
}
.how-n {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--celadon-deep); color: #fff; font-family: var(--font-serif);
  font-size: 15px; margin-bottom: 10px;
}
.how-step h3 { font-family: var(--font-serif); font-size: 19px; margin: 0 0 6px; }
.how-step p { font-size: 13.5px; line-height: 1.65; color: var(--ink-soft); margin: 0; }
.custom-fine { text-align: center; color: var(--ink-faint); font-size: 13px; margin: 26px auto 0; max-width: 640px; line-height: 1.7; }

/* ---------- Color wizard ---------- */
.cw { padding: 34px 0 70px; }
.cw-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.cw-title { font-family: var(--font-serif); font-size: clamp(26px, 3.6vw, 40px); font-weight: 600; margin: 0 0 8px; }
.cw-sub { color: var(--ink-soft); max-width: 640px; line-height: 1.7; margin: 0; font-size: 15px; }
.cw-steps { display: flex; list-style: none; gap: 8px; margin: 0; padding: 0; }
.cw-steps li {
  display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-faint);
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px;
}
.cw-steps li span {
  width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: var(--ink-soft);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
}
.cw-steps li.on { border-color: var(--celadon-deep); color: var(--celadon-deep); background: #f2f6f3; }
.cw-steps li.on span { background: var(--celadon-deep); color: #fff; }
.cw-steps li.na { opacity: .42; border-style: dashed; }

.cw-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.cw-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cw-h3 { font-family: var(--font-serif); font-size: 20px; margin: 0 0 12px; color: var(--ink); }

.cw-shape-list { display: flex; flex-direction: column; gap: 8px; max-height: 430px; overflow: auto; padding-right: 4px; }
.cw-shape {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 8px;
  background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; cursor: pointer; transition: var(--transition);
}
.cw-shape:hover { border-color: var(--gold); }
.cw-shape.on { border-color: var(--celadon-deep); background: #f4f8f5; box-shadow: 0 0 0 1px var(--celadon-deep) inset; }
.cw-shape-img { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 10px; overflow: hidden; background: var(--bg-soft); }
.cw-shape-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cw-shape-empty { display: inline-flex; align-items: center; justify-content: center; color: var(--ink-faint); font-size: 18px; }
.cw-shape-name { font-weight: 600; font-size: 14.5px; display: block; line-height: 1.3; }
.cw-shape-code { font-size: 12px; color: var(--ink-faint); }

.cw-shape-big { margin-top: 14px; }
.cw-big-tabs { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.cw-big-tabs button {
  border: 1px solid var(--line); background: #fff; border-radius: 99px; font-size: 12px;
  padding: 4px 10px; cursor: pointer; color: var(--ink-soft);
}
.cw-big-tabs button.on { border-color: var(--celadon-deep); color: var(--celadon-deep); background: #f2f6f3; }
.cw-shape-big img { width: 100%; border-radius: 10px; mix-blend-mode: multiply; }

.cw-stage-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cw-stage {
  position: relative; background: repeating-conic-gradient(#f2ece1 0% 25%, #fbf8f2 0% 50%) 50%/22px 22px;
  border: 1px solid var(--line); border-radius: var(--radius); min-height: 300px;
  display: flex; align-items: center; justify-content: center; padding: 14px;
}
.cw-stage canvas { max-width: 100%; max-height: 620px; width: auto; height: auto; }
.cw-stage-msg { color: var(--ink-faint); font-size: 14px; position: absolute; }

.cw-zonebar-wrap, .cw-glaze { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cw-bar-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.cw-zonebar { display: flex; gap: 8px; flex-wrap: wrap; }
.cw-zone-chip, .cw-series-chip {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line);
  background: #fff; border-radius: 99px; padding: 6px 12px; font-size: 13px; cursor: pointer; color: var(--ink);
}
.cw-zone-chip .cw-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.cw-zone-chip.on, .cw-series-chip.on { border-color: var(--celadon-deep); color: var(--celadon-deep); background: #f2f6f3; }
.cw-glaze { margin-top: 2px; }
.cw-glaze input[type=range] { flex: 1; min-width: 160px; accent-color: var(--celadon-deep); }
.cw-glaze output { font-weight: 700; color: var(--celadon-deep); min-width: 42px; }
.cw-hint { width: 100%; font-size: 12px; color: var(--ink-faint); margin: 0; }

.cw-series-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.cw-colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cw-color {
  border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 8px 8px;
  cursor: pointer; text-align: center; transition: var(--transition);
}
.cw-color:hover { border-color: var(--gold); transform: translateY(-2px); }
.cw-swatch {
  display: block; width: 100%; height: 52px; border-radius: 8px; margin-bottom: 6px;
  background: var(--sw, #ccc); border: 1px solid rgba(0,0,0,.08);
}
.cw-color-name { font-size: 11.5px; color: var(--ink-soft); line-height: 1.25; display: block; }
.cw-tip { font-size: 12.5px; color: var(--ink-faint); line-height: 1.65; margin: 12px 0 0; }
.cw-empty { color: var(--ink-faint); font-size: 13px; }

/* ---------- Color wizard · text option ---------- */
.cw-textpanel {
  margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line);
}
.cw-textpanel .cw-h3 { font-size: 18px; }
.cw-textpanel .cw-tip { margin: 0 0 12px; }
.ct-area-card { border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px; margin-bottom: 12px; background: #fff; }
.ct-area-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.ct-area-head strong { font-size: 14px; }
.ct-area-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-faint); }
.ct-area-meta .sw-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.ct-text-input {
  width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 15px; color: var(--ink); background: #fff; resize: vertical;
}
.ct-text-input:focus { outline: none; border-color: var(--celadon-soft); box-shadow: 0 0 0 3px rgba(124,154,141,.15); }
.ct-area-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.ct-area-foot .ft-label { font-size: 12px; color: var(--ink-faint); }
.ct-font-select {
  border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font-size: 13px;
  background: #fff; color: var(--ink); max-width: 190px;
}
.ct-area-tip { margin-left: auto; font-size: 11px; color: var(--ink-faint); }
.cw-tcolrow { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.cw-tcolrow .ft-label { margin-right: 2px; }
.cw-tcol {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(0,0,0,.14);
  cursor: pointer; padding: 0; background: var(--tc, #ccc); transition: var(--transition);
}
.cw-tcol:hover { transform: scale(1.12); }
.cw-tcol.on { border-color: var(--celadon-deep); box-shadow: 0 0 0 2px var(--celadon-soft) inset, 0 0 0 2px #fff inset; }
.cw-tcol-name { font-size: 11px; color: var(--ink-faint); }

/* ---------- Send form ---------- */
.cw-send { margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.cw-send-head { margin-bottom: 16px; }
.cw-size-limit {
  font-size: 12.5px; line-height: 1.7; color: var(--ink-soft); margin: 10px 0 0;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid #b3541e; border-radius: var(--radius); padding: 8px 12px;
}
.cw-size-limit b { color: #b3541e; }
.cw-form { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.cw-form label { font-size: 13px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 6px; }
.cw-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cw-form input, .cw-form textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px;
  font-family: inherit; background: #fff; color: var(--ink);
}
.cw-form input:focus, .cw-form textarea:focus { outline: none; border-color: var(--celadon-soft); box-shadow: 0 0 0 3px rgba(124,154,141,.15); }
.cw-form-msg { font-size: 13.5px; }
.cw-form-msg.ok { color: var(--celadon-deep); }
.cw-form-msg.err { color: #b3532d; }
.cw-send .btn-primary { align-self: flex-start; }

/* ---------- 3D page ---------- */
.c3-wrap { padding: 34px 0 70px; }
.c3-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.c3-stage {
  position: relative; background: #f6f1e6; border: 1px solid var(--line); border-radius: var(--radius);
  min-height: 520px; overflow: hidden;
}
.c3-stage canvas { display: block; width: 100%; height: 520px; }
.c3-stage-msg { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center; color: var(--ink-faint); text-align: center; padding: 20px; }
.c3-drop {
  border: 2px dashed var(--celadon-soft); border-radius: 14px; padding: 30px 24px; text-align: center;
  cursor: pointer; transition: var(--transition); background: #fff; color: var(--ink-soft);
}
.c3-drop:hover, .c3-drop.over { border-color: var(--celadon-deep); background: #f4f8f5; }
.c3-drop input { display: none; }
.c3-file-name { font-size: 13px; color: var(--ink-soft); margin-top: 8px; word-break: break-all; }
.c3-panel { display: flex; flex-direction: column; gap: 14px; }
.c3-loading { display: inline-flex; align-items: center; gap: 8px; color: var(--celadon-deep); font-size: 14px; }
.c3-loading::before {
  content: ''; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--celadon-soft); border-top-color: var(--celadon-deep);
  animation: c3spin .8s linear infinite;
}
@keyframes c3spin { to { transform: rotate(360deg); } }
.c3-err { color: #b3532d; font-size: 13.5px; line-height: 1.6; }
.c3-hint { font-size: 12.5px; color: var(--ink-faint); line-height: 1.7; }

@media (max-width: 1180px) {
  .cw-grid { grid-template-columns: 260px minmax(0, 1fr); }
  .cw-palette { grid-column: 1 / -1; }
  .cw-colors { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .c3-grid { grid-template-columns: 1fr; }
  .cc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .cw-grid { grid-template-columns: 1fr; }
  .cw-palette { grid-column: auto; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .cc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cw-form-row { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .c3-stage canvas { height: 380px; }
}

/* ============ 定制支付页（定金 / 尾款） ============ */
.cpay-card { padding: 26px; }
.cpay-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--line-soft); padding-bottom: 14px; }
.cpay-amount { padding: 14px 0 8px; border-bottom: 1px solid var(--line-soft); margin-bottom: 16px; }
.cpay-rules-wrap { background: #faf7f0; border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px; margin: 6px 0 14px; }
.cpay-rules { white-space: pre-wrap; font-size: 12.5px; line-height: 1.65; color: #5a5145; max-height: 210px; overflow: auto; padding-right: 6px; }
.cpay-rule-hint { font-size: 12px; color: #a15a2b; margin: 10px 0 0; border-top: 1px dashed #e6dccb; padding-top: 8px; line-height: 1.6; }
.cpay-agree { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink); margin: 4px 0 12px; cursor: pointer; line-height: 1.5; }
.cpay-agree input { margin-top: 3px; accent-color: #7a2f16; }
.cpay-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px; font-size: 15px; border-radius: 10px; }
.cpay-divider { display: flex; align-items: center; gap: 10px; color: var(--ink-faint); font-size: 12px; margin: 18px 0 10px; }
.cpay-divider::before, .cpay-divider::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); }
.cpay-h3 { font-size: 15px; color: var(--celadon-deep); margin: 4px 0 8px; }
.cpay-muted { font-size: 12.5px; color: var(--ink-faint); line-height: 1.7; margin: 6px 0; }
.cpay-done { text-align: center; padding: 26px 8px 14px; color: var(--ink); }
.cpay-proofs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.cpay-proof-item { border: 1px solid var(--line-soft); border-radius: 10px; padding: 6px; background: #fff; font-size: 12px; max-width: 130px; text-align: center; }
.cpay-proof-item img { width: 100%; height: 84px; object-fit: cover; border-radius: 6px; display: block; margin-bottom: 4px; }
.cpay-payform { margin-top: 4px; }

/* ============ 卡片 lead 小字（Typical lead time） ============ */
.cc-lead {
  display: block; font-size: 12px; color: #a15a2b; margin: -4px 0 10px;
  letter-spacing: .02em;
}

/* ============ Price & time expectations（对齐亚马逊定制透明化） ============ */
.expect-band { padding: 8px 0 14px; }
.expect-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 6px; }
.expect-item {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 18px 16px; text-align: center;
}
.expect-k { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.expect-v { display: block; font-family: var(--font-serif); font-size: 21px; font-weight: 600; color: var(--celadon-deep); line-height: 1.3; }
.expect-s { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 6px; line-height: 1.55; }
@media (max-width: 900px) { .expect-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .expect-grid { grid-template-columns: 1fr; } }

/* ============ B2B 企业通道 ============ */
.b2b-band { padding: 10px 0 56px; }
.b2b-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  background: linear-gradient(120deg, #f4efe3 0%, #eef4ef 100%);
  border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 30px 34px;
}
.b2b-copy { flex: 1 1 420px; }
.b2b-title { font-family: var(--font-serif); font-size: 25px; font-weight: 600; margin: 0 0 8px; }
.b2b-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.75; margin: 0; max-width: 640px; }
.b2b-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ 向导页 Made-to-order 说明（表单下） ============ */
.cw-made-to-order {
  font-size: 12px; color: #a15a2b; line-height: 1.6; margin: 12px 0 0;
  border-top: 1px dashed #e6dccb; padding-top: 10px;
}
