/* ========================================
   糖心家居装修与好物推荐 - 主样式表
   莫兰迪色系高级家居风格
   ======================================== */

:root {
  --m60: #A8A29E;
  --p73: #D7CCC8;
  --v10: #FAF9F7;
  --f40: #FFFFFF;
  --m83: #5D4037;
  --z66: #3E2723;
  --k11: 8px;
  --f57: 0 2px 8px rgba(0,0,0,0.04);
  --j65: #6D4C41;
  --g7: #EFEBE9;
  --u16: #7CB342;
  --j35: #FF8F00;
  --j44: -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --n41: -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --k43: "JetBrains Mono", "Fira Code", "SF Mono", monospace;
  --t58: 1200px;
  --a22: 64px;
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--n41);
  color: var(--z66);
  background-color: var(--v10);
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--m83);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--z66);
}

ul, ol {
  list-style: none;
}

/* 容器 */
.container {
  max-width: var(--t58);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   头部导航
   ======================================== */
.w5l6n2 {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--g7);
  height: var(--a22);
  display: flex;
  align-items: center;
}

.i6b8b7 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--t58);
  margin: 0 auto;
  padding: 0 20px;
}

._6veqo {
  font-family: var(--j44);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--m83);
  letter-spacing: -0.5px;
}

._6veqo span {
  color: var(--m60);
}

._pa0q2 {
  display: flex;
  gap: 28px;
  align-items: center;
}

._pa0q2 a {
  font-size: 0.9rem;
  color: var(--j65);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

._pa0q2 a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--m83);
  transition: width 0.3s ease;
}

._pa0q2 a:hover::after,
._pa0q2 a.active::after {
  width: 100%;
}

.k3f3i7 {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.k3f3i7 span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--z66);
  transition: all 0.3s ease;
}

/* ========================================
   首屏英雄区
   ======================================== */
.p3p7w1 {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--p73) 0%, var(--v10) 100%);
}

.a1j5y7 {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.a1j5y7 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.mv-mark {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 20px;
  max-width: 800px;
}

.mv-mark h1 {
  font-family: var(--j44);
  font-size: 3rem;
  font-weight: 800;
  color: var(--m83);
  margin-bottom: 16px;
  line-height: 1.3;
}

.mv-mark .r7m8d6 {
  font-size: 1.2rem;
  color: var(--j65);
  margin-bottom: 32px;
  line-height: 1.8;
}

.h1q1w9 {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 按钮 */
._rw9q3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--k11);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.jm-wrap {
  background: var(--m83);
  color: #fff;
}

.jm-wrap:hover {
  background: #4E342E;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(93, 64, 55, 0.3);
}

.rp-col {
  background: var(--f40);
  color: var(--m83);
  border: 1px solid var(--g7);
}

.rp-col:hover {
  border-color: var(--m83);
  transform: translateY(-2px);
}

/* ========================================
   栏目区块
   ======================================== */
.xz-tag {
  padding: 80px 0;
}

.rp-card {
  background: var(--f40);
}

._hjhpi {
  text-align: center;
  margin-bottom: 48px;
}

._hjhpi h2 {
  font-family: var(--j44);
  font-size: 2rem;
  font-weight: 700;
  color: var(--z66);
  margin-bottom: 12px;
}

._hjhpi p {
  font-size: 1rem;
  color: var(--j65);
  max-width: 600px;
  margin: 0 auto;
}

/* 卡片网格 */
._sjccd {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

._gakuh {
  background: var(--f40);
  border-radius: var(--k11);
  overflow: hidden;
  box-shadow: var(--f57);
  transition: all 0.3s ease;
  border: 1px solid var(--g7);
}

._gakuh:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.vw-card {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

._m14xd {
  padding: 20px;
}

._m14xd h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--z66);
}

._m14xd p {
  font-size: 0.9rem;
  color: var(--j65);
  line-height: 1.7;
}

.tx-col {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--m60);
}

._xvlwe {
  display: inline-block;
  padding: 2px 10px;
  background: var(--v10);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--j65);
}

._fxp75 {
  font-family: var(--k43);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--m83);
}

/* ========================================
   Before/After 对比滑块
   ======================================== */
.r5r3g4 {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--k11);
  cursor: col-resize;
  aspect-ratio: 16/10;
}

.r5r3g4 img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.r5r3g4 .sl-pan {
  clip-path: inset(0 50% 0 0);
}

.r5r3g4 .z7w9i5 {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: #fff;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.r5r3g4 .nf-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  font-size: 1.2rem;
  color: var(--m83);
}

.sl-head {
  position: absolute;
  bottom: 16px;
  padding: 4px 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.8rem;
  border-radius: 4px;
  z-index: 5;
}

.vw-mark { left: 16px; }
.lq-flow { right: 16px; }

/* ========================================
   预算计算器
   ======================================== */
.y9r6t7 {
  background: var(--f40);
  border-radius: var(--k11);
  padding: 32px;
  box-shadow: var(--f57);
  border: 1px solid var(--g7);
  max-width: 600px;
  margin: 0 auto;
}

.y9r6t7 h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  text-align: center;
  color: var(--m83);
}

.xz-item {
  margin-bottom: 20px;
}

.xz-item label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--z66);
}

.xz-item input,
.xz-item select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--g7);
  border-radius: var(--k11);
  font-size: 0.95rem;
  color: var(--z66);
  background: var(--v10);
  transition: border-color 0.3s ease;
}

.xz-item input:focus,
.xz-item select:focus {
  outline: none;
  border-color: var(--m83);
}

._tkyvv {
  margin-top: 24px;
  padding: 20px;
  background: var(--v10);
  border-radius: var(--k11);
  text-align: center;
}

._tlpib {
  font-family: var(--k43);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--m83);
}

.dk-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

._ve2zo {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--f40);
  border-radius: 4px;
  font-size: 0.85rem;
}

/* ========================================
   场景切换
   ======================================== */
.dk-line {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

._dgnh5 {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  background: var(--f40);
  border: 1px solid var(--g7);
  color: var(--j65);
  transition: all 0.3s ease;
}

._dgnh5.active,
._dgnh5:hover {
  background: var(--m83);
  color: #fff;
  border-color: var(--m83);
}

._fnepy {
  display: none;
  animation: fadeIn 0.5s ease;
}

._fnepy.active {
  display: block;
}

/* ========================================
   设计师卡片
   ======================================== */
.dk-zone {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--f40);
  border-radius: var(--k11);
  border: 1px solid var(--g7);
  transition: all 0.3s ease;
}

.dk-zone:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.n1h1n3 {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--p73);
}

.s6t6i6 h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.s6t6i6 p {
  font-size: 0.85rem;
  color: var(--j65);
}

._66li6 {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--m60);
}

/* ========================================
   好物清单
   ======================================== */
.vw-line {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bx-tag {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--f40);
  border-radius: var(--k11);
  border: 1px solid var(--g7);
  transition: all 0.3s ease;
}

.bx-tag:hover {
  border-color: var(--m83);
}

.fn-flow {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid var(--m60);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.fn-flow.q9w5r1 {
  background: var(--m83);
  border-color: var(--m83);
}

.fn-flow.q9w5r1::after {
  content: '✓';
  color: #fff;
  font-size: 0.7rem;
}

._8qi7d {
  width: 60px;
  height: 60px;
  border-radius: var(--k11);
  object-fit: cover;
}

._4ef14 {
  flex: 1;
}

._4ef14 h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

._4ef14 .m3n8h1 {
  font-size: 0.8rem;
  color: var(--m60);
}

.qr-head {
  font-family: var(--k43);
  font-weight: 700;
  color: var(--m83);
}

/* ========================================
   面包屑
   ======================================== */
.p5g4f3 {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--j65);
}

.p5g4f3 a {
  color: var(--m60);
}

.p5g4f3 span {
  margin: 0 8px;
  color: var(--g7);
}

/* ========================================
   FAQ
   ======================================== */
._vtf02 {
  max-width: 800px;
  margin: 0 auto;
}

._fp9zb {
  border-bottom: 1px solid var(--g7);
  padding: 20px 0;
}

.fn-unit {
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--z66);
}

.fn-unit::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--m60);
  transition: transform 0.3s ease;
}

._fp9zb.open .fn-unit::after {
  transform: rotate(45deg);
}

.e8d1m6 {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: var(--j65);
  font-size: 0.9rem;
  line-height: 1.8;
}

._fp9zb.open .e8d1m6 {
  max-height: 500px;
  padding-top: 12px;
}

/* ========================================
   页脚
   ======================================== */
.l2o7p6 {
  background: var(--z66);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 30px;
  margin-top: auto;
}

._etd2r {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.k8d2i7 h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.k8d2i7 p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
}

._2tx03 h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

._2tx03 a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color 0.3s ease;
}

._2tx03 a:hover {
  color: #fff;
}

.bx-pill {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ========================================
   搜索页
   ======================================== */
._aitql {
  max-width: 600px;
  margin: 40px auto;
  position: relative;
}

._aitql input {
  width: 100%;
  padding: 16px 50px 16px 20px;
  border: 2px solid var(--g7);
  border-radius: 30px;
  font-size: 1rem;
  background: var(--f40);
  transition: border-color 0.3s ease;
}

._aitql input:focus {
  outline: none;
  border-color: var(--m83);
}

._aitql button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--m83);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
}

._zi3cy {
  margin-top: 32px;
}

.xz-card {
  padding: 20px;
  border-bottom: 1px solid var(--g7);
}

.xz-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.xz-card h3 a {
  color: var(--m83);
}

.xz-card p {
  font-size: 0.9rem;
  color: var(--j65);
}

/* ========================================
   404 页面
   ======================================== */
.z6d5f5 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 40px 20px;
}

.z6d5f5 h1 {
  font-size: 6rem;
  color: var(--p73);
  font-weight: 800;
}

.z6d5f5 h2 {
  font-size: 1.5rem;
  margin: 16px 0;
  color: var(--z66);
}

.z6d5f5 p {
  color: var(--j65);
  margin-bottom: 32px;
}

/* ========================================
   内页通用
   ======================================== */
.i1i4c6 {
  background: linear-gradient(135deg, var(--p73) 0%, var(--v10) 100%);
  padding: 60px 0;
  text-align: center;
}

.i1i4c6 h1 {
  font-family: var(--j44);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--m83);
  margin-bottom: 12px;
}

.i1i4c6 p {
  font-size: 1rem;
  color: var(--j65);
  max-width: 600px;
  margin: 0 auto;
}

._9ly2k {
  padding: 48px 0;
}

.mv-pill {
  margin-bottom: 48px;
}

.mv-pill h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--z66);
}

.mv-pill h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--z66);
}

.mv-pill p {
  margin-bottom: 16px;
  line-height: 1.8;
  color: var(--j65);
}

/* 表格 */
._isntb {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

._isntb th,
._isntb td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--g7);
}

._isntb th {
  background: var(--v10);
  font-weight: 600;
  color: var(--z66);
}

._isntb tr:hover td {
  background: var(--v10);
}

/* 评分星星 */
.q1t4b4 {
  color: #FFA000;
  font-size: 0.9rem;
}

/* 标签组 */
._u18qp {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.l1g7c7 {
  padding: 4px 12px;
  background: var(--v10);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--j65);
  border: 1px solid var(--g7);
}

/* ========================================
   动画
   ======================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heartBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

._p75pt {
  animation: slideUp 0.6s ease forwards;
  opacity: 0;
}

.xz-col {
  animation: heartBounce 0.4s ease;
}

/* 数字滚动 */
._ib6nb {
  font-family: var(--k43);
  font-size: 2rem;
  font-weight: 800;
  color: var(--m83);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
  :root {
    --a22: 56px;
  }

  ._pa0q2 {
    position: fixed;
    top: var(--a22);
    left: 0;
    right: 0;
    background: var(--f40);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--g7);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  ._pa0q2.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .k3f3i7 {
    display: flex;
  }

  .mv-mark h1 {
    font-size: 2rem;
  }

  .mv-mark .r7m8d6 {
    font-size: 1rem;
  }

  ._sjccd {
    grid-template-columns: 1fr;
  }

  ._etd2r {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .xz-tag {
    padding: 48px 0;
  }

  ._hjhpi h2 {
    font-size: 1.5rem;
  }

  .dk-zone {
    flex-direction: column;
    text-align: center;
  }

  .dk-foot {
    grid-template-columns: 1fr;
  }

  .r5r3g4 {
    aspect-ratio: 4/3;
  }

  .i1i4c6 h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .mv-mark h1 {
    font-size: 1.6rem;
  }

  ._rw9q3 {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .h1q1w9 {
    flex-direction: column;
    align-items: center;
  }
}

/* ========================================
   打印样式
   ======================================== */
@media print {
  .w5l6n2,
  .l2o7p6,
  .k3f3i7 {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
