/* ===== 假发独立站样式 v2 ===== */
:root {
  --rose: #d4a5a5;
  --rose-dark: #b97f7f;
  --gold: #c9a86a;
  --bg: #fdf9f6;
  --card: #ffffff;
  --text: #3d3230;
  --text-light: #8a7a77;
  --wa: #25d366;
  --shadow: 0 4px 20px rgba(180, 140, 120, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 249, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f0e4e0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.brand-logo-img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; display: block; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: var(--text-light); text-decoration: none; font-size: 0.92rem; transition: color .2s; }
.nav a:hover { color: var(--rose-dark); }
.lang-box { display: inline-flex; align-items: center; gap: 5px; }
.lang-globe { font-size: 1rem; }
.lang-select {
  border: 1px solid #e5d8d3;
  background: #fff;
  color: var(--text);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
}
.lang-select:hover { border-color: var(--rose); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #fdf2ee 0%, #f7e3dc 100%);
  text-align: center;
  padding: 64px 16px 56px;
}
.hero h1 { font-size: 1.9rem; margin-bottom: 10px; letter-spacing: 1px; }
.hero p { color: var(--text-light); margin-bottom: 24px; font-size: 1.02rem; }
.hero-ctas { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ===== 按钮 ===== */
.btn-wa {
  display: inline-block;
  background: var(--wa);
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  transition: transform .2s, box-shadow .2s;
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45); }
.btn-wa-lg { padding: 15px 36px; font-size: 1.05rem; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--rose-dark);
  border: 1.5px solid var(--rose-dark);
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
}
.btn-outline:hover { background: var(--rose-dark); color: #fff; }

/* ===== 信任条 ===== */
.trust-strip { background: #fff; border-bottom: 1px solid #f0e4e0; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 26px 16px;
}
.trust-item { text-align: center; }
.trust-ico { font-size: 1.6rem; margin-bottom: 4px; }
.trust-t { font-weight: 600; font-size: 0.95rem; }
.trust-d { color: var(--text-light); font-size: 0.82rem; }

/* ===== 产品区 ===== */
.section-title {
  text-align: center;
  font-size: 1.5rem;
  margin: 48px 0 6px;
}
.section-hint { text-align: center; color: var(--text-light); font-size: 0.9rem; margin-bottom: 28px; }
.count { color: var(--rose-dark); font-size: 1rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* ===== 分类标签栏 ===== */
.cat-bar, .tone-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.tone-bar { margin-bottom: 26px; }
.tone-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-right: 4px;
}
.cat-btn {
  border: 1px solid #e5d8d3;
  background: #fff;
  color: var(--text-light);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.cat-btn:hover { border-color: var(--rose); color: var(--rose-dark); }
.cat-btn.active {
  background: var(--rose-dark);
  border-color: var(--rose-dark);
  color: #fff;
}
.tone-chip {
  border: 1px solid #e5d8d3;
  background: #fff;
  color: var(--text-light);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.tone-chip:hover { border-color: var(--rose); color: var(--rose-dark); }
.tone-chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* ===== 产品卡片 ===== */
.card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(180, 140, 120, 0.2); }

.card-media { position: relative; background: #000; aspect-ratio: 9 / 16; }
.card-media video {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.card-media video.is-playing { object-fit: contain; }

.play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  transition: background .2s;
  border: none; cursor: pointer;
}
.card:hover .play-btn { background: rgba(0, 0, 0, 0.15); }
.play-btn .icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex; align-items: center; justify-content: center;
  color: var(--rose-dark);
  font-size: 1.3rem;
  padding-left: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.card.hidden-play .play-btn { display: none; }

/* 库存角标 */
.stock-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  color: #fff;
  letter-spacing: 0.3px;
}
.stock-badge.in_stock { background: rgba(37, 211, 102, 0.92); }
.stock-badge.preorder { background: rgba(201, 168, 106, 0.95); }
.stock-badge.custom { background: rgba(185, 127, 127, 0.95); }

/* 产品编号 */
.prod-id {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  background: rgba(61, 50, 48, 0.55);
  padding: 3px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-weight: 600; font-size: 0.95rem; line-height: 1.4; }

/* 规格 chips */
.spec-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.spec-chip {
  font-size: 0.72rem;
  color: var(--text-light);
  background: #faf3f0;
  border: 1px solid #f0e4e0;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
.spec-chip b { color: var(--text); font-weight: 600; }

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--gold);
  background: #faf3e6;
  padding: 2px 10px;
  border-radius: 20px;
}

/* 询盘按钮 */
.card-actions { margin-top: auto; }
.btn-ask {
  display: block;
  width: 100%;
  background: var(--wa);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
.btn-ask:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4); }

/* ===== Wig Finder ===== */
.finder { background: linear-gradient(180deg, #fdf9f6 0%, #f7e3dc 100%); padding-bottom: 40px; }
.quiz {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px 26px;
  min-height: 260px;
}
.quiz-progress { color: var(--text-light); font-size: 0.82rem; margin-bottom: 8px; }
.quiz-q { font-size: 1.15rem; font-weight: 700; margin-bottom: 18px; }
.quiz-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.quiz-opt {
  border: 1.5px solid #e5d8d3;
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  padding: 14px 10px;
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
}
.quiz-opt:hover { border-color: var(--rose); }
.quiz-opt.sel { border-color: var(--rose-dark); background: #fdf2ee; font-weight: 600; }
.quiz-ctls { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.quiz-ctls .btn-wa { padding: 10px 24px; font-size: 0.92rem; }
.quiz-hint { color: var(--text-light); font-size: 0.85rem; margin-top: 14px; text-align: center; min-height: 1.4em; }
.quiz-restart {
  background: none;
  border: none;
  color: var(--text-light);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
}

/* 匹配结果 */
.result-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.result-card { border: 1px solid #f0e4e0; border-radius: 14px; overflow: hidden; background: #fff; }
.result-card img, .result-card .result-ph { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: #f7ece7; }
.result-ph { display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 0.8rem; }
.result-body { padding: 10px 12px; }
.result-body .rc-title { font-size: 0.85rem; font-weight: 600; line-height: 1.35; }
.result-body .rc-id { font-size: 0.75rem; color: var(--rose-dark); font-weight: 600; margin-top: 2px; }
.result-empty { text-align: center; color: var(--text-light); padding: 10px 0; }

/* ===== 工厂实拍 ===== */
.factory-wrap {
  position: relative;
  max-width: 640px;
  margin: 0 auto 40px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  background: #f7ece7;
}
.factory-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.factory-play {
  position: absolute; inset: 0;
  margin: auto;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rose-dark);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  display: flex; align-items: center; justify-content: center;
  padding-left: 5px;
  transition: transform .2s;
}
.factory-play:hover { transform: scale(1.08); }
.factory-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light);
  font-size: 0.95rem;
  background: #f7ece7;
}

/* ===== Before / After ===== */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.ba-tile { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3/4; }
.ba-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--text-light);
  font-size: 0.82rem;
  background: linear-gradient(135deg, #f7ece7, #fdf2ee);
  padding: 10px;
}

/* ===== 批发 ===== */
.ws { background: #fff; border-top: 1px solid #f0e4e0; border-bottom: 1px solid #f0e4e0; padding-bottom: 44px; }
.ws-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.ws-card {
  background: var(--bg);
  border: 1px solid #f0e4e0;
  border-radius: 16px;
  padding: 22px 16px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.ws-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ws-ico { font-size: 1.7rem; margin-bottom: 6px; }
.ws-t { font-weight: 700; font-size: 0.98rem; }
.ws-d { color: var(--text-light); font-size: 0.84rem; }
.ws-ctas { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ===== 联系 / 表单 ===== */
.contact { text-align: center; padding: 20px 0 50px; }
.contact p { color: var(--text-light); margin-bottom: 20px; }

.form-card {
  max-width: 640px;
  margin: 40px auto 0;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px 26px;
  text-align: left;
}
.form-card h3 { text-align: center; font-size: 1.2rem; margin-bottom: 4px; }
.form-sub { text-align: center; color: var(--text-light); font-size: 0.88rem; margin-bottom: 18px !important; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form input, .form textarea {
  width: 100%;
  border: 1.5px solid #e5d8d3;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .2s;
}
.form input:focus, .form textarea:focus { border-color: var(--rose); }
.form textarea { resize: vertical; }
.form .btn-wa { align-self: center; border: none; }
.form-err { color: #c0392b; font-size: 0.85rem; text-align: center; }
.form-note { text-align: center; color: var(--text-light); font-size: 0.85rem; margin-top: 14px; }

/* ===== 页脚 ===== */
.footer {
  border-top: 1px solid #f0e4e0;
  padding: 26px 0;
  text-align: center;
  color: var(--text-light);
  font-size: 0.88rem;
}
.footer-grid { display: flex; flex-direction: column; gap: 6px; }
.footer-info .dot { margin: 0 6px; }

/* ===== 悬浮按钮 ===== */
.wa-float {
  position: fixed;
  right: 20px; bottom: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 100;
  transition: transform .2s;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.08); }

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .ws-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hero { padding: 48px 16px 40px; }
  .hero h1 { font-size: 1.5rem; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-title { font-size: 0.85rem; }
  .nav { gap: 10px; }
  .nav a { font-size: 0.8rem; }
  .lang-select { padding: 4px 8px; font-size: 0.8rem; }
  .quiz-opts { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .trust-grid, .ws-grid, .ba-grid { grid-template-columns: repeat(2, 1fr); }
}
