/* 北海威龙宅配定制工厂 - 全屋定制网站样式
   浅色主题 / 移动端适配 / 清晰可读，便于用户与AI爬虫理解 */

:root {
  --bg: #fffdf9;
  --surface: #ffffff;
  --ink: #2b2320;
  --ink-soft: #6b5f55;
  --line: #ece3d8;
  --brand: #b5651d;      /* 木色主品牌色 */
  --brand-dark: #8a4a12;
  --brand-soft: #f6ede1;
  --accent: #2f7d6e;     /* 环保绿 */
  --radius: 14px;
  --maxw: 1140px;
  --shadow: 0 6px 24px rgba(80, 50, 20, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

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

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--brand-dark);
  letter-spacing: 0.3px;
}
.nav-logo {
  height: 1.5em;
  width: auto;
  flex-shrink: 0;
}
.brand small { display: block; font-weight: 500; font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 1px; }
.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 1.1rem; cursor: pointer; }

/* ===== 区块通用 ===== */
section { padding: 64px 0; }
.hero {
  position: relative;
  background-image: linear-gradient(135deg, rgba(255,247,236,0.86) 0%, rgba(246,237,225,0.90) 100%), url("../images/hero-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 14px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
  margin: 0 0 6px;
  color: var(--brand-dark);
}
.hero-logo {
  height: 0.82em;
  width: auto;
  flex-shrink: 0;
}
.hero-sub {
  font-size: clamp(0.8rem, 1.77vw, 1.33rem);
  line-height: 1.2;
  margin: 0 0 14px;
  color: #000;
  font-weight: 800;
  letter-spacing: 1px;
}
.hero p.lead { font-size: 1.12rem; color: #000; max-width: 720px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brand-dark);
}
.badges .badge {
  background: none;
  border: none;
  border-radius: 0;
  padding: 2px 2px 5px;
  border-bottom: 2px solid var(--brand);
}

/* ===== 合作板材面板 ===== */
.brands-panel {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.brands-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  color: #fff;
  background: var(--brand);
  padding: 6px 14px;
  border-radius: 9px;
  font-size: 0.92rem;
  letter-spacing: 1px;
}
.brands-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.brands-note { color: var(--brand-dark); font-size: 0.86rem; font-weight: 600; }
.badge-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.egger-logo {
  height: 1.1em;
  width: auto;
  vertical-align: middle;
}

h2.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 8px;
  color: var(--brand-dark);
}
.section-sub { color: var(--ink-soft); margin: 0 0 32px; }

/* ===== 卡片网格 ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; color: var(--brand-dark); font-size: 1.12rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ===== 优势列表 ===== */
.feature { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.feature .dot {
  flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center; font-weight: 800;
}
.feature h3 { margin: 0 0 2px; font-size: 1.02rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }

/* ===== 数据条 ===== */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 18px; text-align: center; }
.stat .num { font-size: 2rem; font-weight: 800; color: var(--brand); }
.stat .label { color: var(--ink-soft); font-size: 0.9rem; }

/* ===== 面包屑 ===== */
.crumb { font-size: 0.85rem; color: var(--ink-soft); margin: 18px 0 0; }
.crumb a { color: var(--ink-soft); }

/* ===== 表单 ===== */
.form-grid { display: grid; gap: 14px; max-width: 560px; }
label { font-weight: 600; font-size: 0.92rem; }
input, textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 1rem; font-family: inherit; background: #fff;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
button.btn {
  background: var(--brand); color: #fff; border: none; border-radius: 10px;
  padding: 13px 22px; font-size: 1rem; font-weight: 700; cursor: pointer;
}
button.btn:hover { background: var(--brand-dark); }

/* ===== 信息表 ===== */
.info-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.info-table th, .info-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { width: 130px; color: var(--brand-dark); }

/* ===== 页脚 ===== */
.site-footer {
  background: #2b2320; color: #e9e0d4; padding: 44px 0 26px;
}
.site-footer a { color: #f3c89a; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.footer-cols p { margin: 4px 0; font-size: 0.92rem; color: #cdbfae; }
.footer-bottom { border-top: 1px solid #3d3330; margin-top: 28px; padding-top: 16px; font-size: 0.82rem; color: #a49788; }

/* ===== 响应式 ===== */
@media (max-width: 760px) {
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--surface);
    border-bottom: 1px solid var(--line); padding: 10px 20px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
}

/* ===== 案例页（本地落地案例 + 客户评价） ===== */
.add-hint {
  background: #fff; border: 1px dashed var(--brand);
  border-radius: 10px; padding: 14px 18px; margin: 0 0 30px;
  color: var(--brand-dark); font-size: 0.94rem; font-weight: 600;
}
.cases { display: grid; gap: 26px; }
.case {
  display: grid; grid-template-columns: 320px 1fr; gap: 24px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  align-items: start;
}
.case-media {
  border-radius: 10px; overflow: hidden; background: var(--brand-soft);
  min-height: 210px; display: flex; align-items: center; justify-content: center;
}
.case-media > img { width: 100%; height: 100%; object-fit: cover; }
.case-media.noimg::after { content: "案例图片"; color: var(--brand-dark); font-weight: 700; }
.case-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  width: 100%; padding: 8px;
}
.case-gallery img {
  width: 100%; height: 110px; object-fit: cover;
  border-radius: 6px; cursor: pointer; transition: transform .2s;
}
.case-gallery img:hover { transform: scale(1.03); }
.case-body h3 { margin: 0 0 8px; color: var(--brand-dark); font-size: 1.18rem; }
.case-desc { margin: 0 0 10px; color: var(--ink); }
.case-tags { margin: 0 0 14px; color: var(--brand-dark); font-weight: 600; font-size: 0.9rem; }
.reviews { border-top: 1px dashed var(--line); padding-top: 12px; }
.reviews summary {
  cursor: pointer; color: var(--brand); font-weight: 700; font-size: 0.95rem;
  list-style: none; user-select: none;
}
.reviews summary::-webkit-details-marker { display: none; }
.reviews summary:hover { text-decoration: underline; }
.review {
  display: flex; gap: 12px; margin-top: 14px; padding: 12px;
  background: var(--brand-soft); border-radius: 10px;
}
.review-photo {
  width: 84px; height: 84px; object-fit: cover;
  border-radius: 8px; flex-shrink: 0; background: #fff;
}
.review-photo.noimg { display: none; }
.review-text { margin: 0 0 6px; }
.review-meta { margin: 0; color: var(--ink-soft); font-size: 0.85rem; }
.case-link { margin: 14px 0 0; }
.case-link a { font-weight: 700; }
.case-cta { text-align: center; margin-top: 34px; }
@media (max-width: 760px) {
  .case { grid-template-columns: 1fr; }
  .case-gallery { grid-template-columns: repeat(2, 1fr); }
  .case-gallery img { height: 96px; }
}
