/* ============================================================
   Pracaniz 品牌官网 · 全站样式
   设计原则：
   1. 零外部依赖（不加载 Google Fonts / 任何 CDN）→ 加载快、无需 Cookie 同意弹窗
   2. 移动优先（Pinterest / 短视频 / 社交流量绝大多数是手机）
   3. 温暖木作 + 礼赠气质，与木质家居装饰品类一致
   ============================================================ */

:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --ink: #2B2622;
  --ink-soft: #6B625A;
  --ink-faint: #9A9088;
  --line: #E6DFD5;
  --accent: #8A6A4B;
  --accent-dark: #6D5138;
  --accent-soft: #F1E9DE;
  --amazon: #FF9900;
  --amazon-dark: #E88A00;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1120px;
  --shadow: 0 1px 2px rgba(43, 38, 34, .05), 0 8px 24px rgba(43, 38, 34, .06);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo img { height: 34px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a {
  color: var(--ink-soft); font-size: 15px; font-weight: 500;
  text-decoration: none; padding: 4px 0;
}
.nav a:hover, .nav a[aria-current="page"], .nav a[aria-current="true"] { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"], .nav a[aria-current="true"] { border-bottom: 2px solid var(--accent); }

@media (max-width: 640px) {
  /* 手机上：logo 上一行、导航下一行，导航强行保持一行不折行 */
  .site-header .wrap {
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 2px; padding-top: 10px; padding-bottom: 10px; min-height: 0;
  }
  .nav {
    gap: 15px; flex-wrap: nowrap; overflow-x: auto;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 13.5px; white-space: nowrap; }
  .logo img { height: 28px; }
}

/* ---------- 通用区块 ---------- */
section { padding: 64px 0; }
section.tight { padding: 40px 0; }
.section-head { margin-bottom: 32px; }
.section-head.center { text-align: center; }

@media (max-width: 640px) {
  /* 手机上收紧纵向留白，页面不要拖得太长 */
  section { padding: 40px 0; }
  section.tight { padding: 28px 0; }
  .section-head { margin-bottom: 22px; }
  .grid { gap: 18px; }
  .lede { font-size: 16.5px; }
  .btn-row { gap: 10px; }
  .btn-row .btn { flex: 1 1 0; }
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 12px; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.6vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 18px; }
p { margin: 0 0 14px; }
.lede { font-size: 18px; color: var(--ink-soft); max-width: 60ch; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}

/* ---------- 首屏 ---------- */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--accent-soft); }
.hero-media img { width: 100%; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 22px; }
  .hero { padding: 28px 0 24px; }
  .hero-media { max-width: 520px; margin: 0 auto; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 600; cursor: pointer; text-align: center;
  text-decoration: none; transition: transform .12s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-amazon { background: var(--amazon); color: #221A0F; }
.btn-amazon:hover { background: var(--amazon-dark); color: #221A0F; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 信任条 ---------- */
.trust { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.trust .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: center; }
.trust strong { display: block; font-size: 15px; }
.trust span { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 640px) { .trust .wrap { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- 产品卡片 ---------- */
.grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 1 / 1; background: var(--accent-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 6px; }
.card-body p { font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.card-body .btn { padding: 10px 18px; font-size: 15px; }
.card-tag {
  align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: 3px 10px; margin-bottom: 10px;
}

/* ---------- 产品详情页 ---------- */
.breadcrumb { font-size: 13.5px; color: var(--ink-faint); padding: 20px 0 0; }
.breadcrumb a { color: var(--ink-faint); }

.product { padding: 22px 0 56px; }
.product .wrap { display: grid; grid-template-columns: 1.02fr .98fr; gap: 46px; align-items: start; }
@media (max-width: 880px) { .product .wrap { grid-template-columns: 1fr; gap: 26px; } }

.gallery-main {
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); aspect-ratio: 1 / 1;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.gallery-thumbs img {
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  aspect-ratio: 1 / 1; object-fit: cover; cursor: pointer; background: var(--surface);
}
.gallery-thumbs img:hover { border-color: var(--accent); }

.price-note { font-size: 15px; color: var(--ink-soft); margin-bottom: 18px; }

.buy-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin: 22px 0;
}
.buy-box .btn-amazon { font-size: 17px; padding: 15px 26px; }
.buy-box .micro { font-size: 12.5px; color: var(--ink-faint); margin: 12px 0 0; text-align: center; }

.bullets { list-style: none; padding: 0; margin: 0 0 6px; }
.bullets li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.bullets li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); opacity: .55;
}

.specs { width: 100%; border-collapse: collapse; margin: 8px 0 0; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 40%; color: var(--ink-soft); font-weight: 500; }

details.faq {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 15px 18px; margin-bottom: 10px;
}
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: " +"; color: var(--accent); }
details.faq[open] summary::after { content: " −"; }
details.faq p { margin: 12px 0 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- 通用内容页 ---------- */
.page { padding: 48px 0 72px; }
.page h2 { margin-top: 38px; }
.page h2:first-of-type { margin-top: 0; }
.page ul { padding-left: 22px; }
.page li { margin-bottom: 8px; }

/* ---------- 提示框（占位/待填提醒，上线前请删除） ---------- */
.todo {
  background: #FFF8E6; border: 1px dashed #E0B44A; color: #6B4E12;
  border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 18px; font-size: 14.5px;
}
.todo strong { color: #8A5A00; }

/* ---------- 邮件收集 ---------- */
.signup { background: var(--surface); border-top: 1px solid var(--line); }
.signup form { display: flex; gap: 10px; max-width: 460px; }
.signup input[type="email"] {
  flex: 1; padding: 13px 16px; font-size: 15px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink);
}
.signup input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 560px) { .signup form { flex-direction: column; } }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: #D9D2C9; padding: 46px 0 34px; margin-top: 0; }
.site-footer a { color: #D9D2C9; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #9A9088; margin: 0 0 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 14.5px; }
.footer-brand { margin-bottom: 10px; }
.footer-brand img { height: 30px; width: auto; display: block; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.13); margin-top: 32px; padding-top: 20px;
  font-size: 13px; color: #9A9088; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- 无障碍 ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   A+ 海报区（堆叠式，不留缝，像一张长海报）
   ============================================================ */
.aplus-section { padding: 56px 0 0; background: var(--bg); }
.aplus-stack { max-width: 1120px; margin: 0 auto; }
.aplus-stack picture { display: block; }
.aplus-stack img { width: 100%; height: auto; display: block; }
@media (max-width: 640px) {
  .aplus-section { padding: 36px 0 0; }
}

/* 首页通栏品牌海报 */
.brand-banner { display: block; line-height: 0; }
.brand-banner img { width: 100%; height: auto; display: block; }

/* ============================================================
   图片灯箱（点主图放大）
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 16, 12, .93);
  display: none; align-items: center; justify-content: center;
  padding: 14px; cursor: zoom-out;
}
.lightbox.on { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 8px; }
body.lb-open { overflow: hidden; }
.gallery-main img { cursor: zoom-in; }

/* 缩略图：10 张时自动折成两行 */
.gallery-thumbs { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 640px) {
  .gallery-thumbs { gap: 7px; }
}

/* ============================================================
   售后支持表单（contact.html）
   ============================================================ */
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

h2[id], h3[id] { scroll-margin-top: 84px; }

.support-form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; margin: 4px 0 0;
}
.support-form .field { margin-bottom: 16px; }
.support-form label {
  display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px;
}
.support-form .hint { font-weight: 400; color: var(--ink-faint); font-size: 13px; }
.support-form input[type="text"],
.support-form input[type="email"],
.support-form select,
.support-form textarea {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink);
}
.support-form textarea { min-height: 132px; resize: vertical; line-height: 1.6; }
.support-form input:focus, .support-form select:focus, .support-form textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
.support-form .btn-primary { margin-top: 6px; font-size: 16px; }
.support-form .form-note { font-size: 13px; color: var(--ink-faint); margin: 12px 0 0; }
/* 防机器人蜜罐：人看不见，机器人会填 */
.support-form .hp {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.support-form .form-fallback {
  display: none; background: #FFF8E6; border: 1px dashed #E0B44A; color: #6B4E12;
  border-radius: var(--radius-sm); padding: 14px 16px; margin: 16px 0 0; font-size: 14.5px;
}
.support-form .form-fallback.on { display: block; }
/* 提交成功后的致谢（Web3Forms 把顾客带回本页 ?sent=1 时显示） */
.form-success {
  display: none; background: #EFF6EC; border: 1px dashed #7FA86A; color: #33502A;
  border-radius: var(--radius-sm); padding: 18px 20px; margin: 4px 0 0; font-size: 15px;
}
.form-success.on { display: block; }
@media (max-width: 560px) { .support-form { padding: 18px 16px; } }

/* 首页「订单有问题？」入口条 */
.support-cta {
  background: var(--accent-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.support-cta p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.support-cta strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
@media (max-width: 620px) {
  .support-cta { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; }
}

/* ============================================================
   首页「售后承诺」区块（2026-09-30 新增，首页重点）
   ============================================================ */
.care {
  background: var(--surface);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 58px 0;
}
.care .wrap { text-align: center; }
.care .eyebrow { display: block; }
.care h2 { margin: 10px 0 14px; }
.care .lede { max-width: 660px; margin: 0 auto 26px; }
.care .btn-row { justify-content: center; }
.care-note { font-size: 14px; color: var(--ink-faint); margin: 18px 0 0; }
@media (max-width: 640px) { .care { padding: 40px 0; } }

/* ============================================================
   顶部细条：售后入口，不滚动就能看到（2026-09-30 新增）
   ============================================================ */
.topbar { background: var(--accent); }
.topbar .wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap; text-align: center;
  padding: 10px 20px;
}
.topbar span, .topbar a { color: #fff; font-size: 14px; line-height: 1.45; }
.topbar a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.topbar a:hover { opacity: .85; }
@media (max-width: 560px) { .topbar span, .topbar a { font-size: 13px; } }

/* ============================================================
   首屏产品滑动（2026-09-30 新增）
   目的：让访客一眼看出「不只一款产品」，而不是只有十字架。
   ⚠️ 只有 1 张图时 JS 会自动退出，不显示箭头和圆点。
   ============================================================ */
.slider {
  position: relative; aspect-ratio: 1 / 1;
  background: var(--accent-soft); border-radius: var(--radius); overflow: hidden;
}
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-cap {
  position: absolute; top: 14px; left: 14px;
  background: rgba(43, 38, 34, .74); color: #fff;
  font-size: 13.5px; letter-spacing: .01em;
  padding: 7px 13px; border-radius: 999px;
}
.slide-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .88); color: var(--ink);
  font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .16);
}
.slide-btn:hover { background: #fff; }
.slide-btn.prev { left: 12px; }
.slide-btn.next { right: 12px; }
.slide-dots {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3;
  display: flex; justify-content: center; gap: 8px;
}
.slide-dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .55); box-shadow: 0 1px 4px rgba(0, 0, 0, .22);
}
.slide-dot.is-active { background: #fff; }
@media (max-width: 900px) { .slider { aspect-ratio: 4 / 3; } }
