/* 百一世家装 · 共享样式表 —— 所有页面都引用这一份，改一处全站生效 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0b0d0c;
  --bg-soft: #121512;
  --card: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #f4efe8;
  --text-muted: #a9a099;
  --accent: #ff8a3d;
  --accent-2: #ffb45c;
  --accent-diban: #c99a5b;
  --accent-kangge: #e05a4e;
  --radius-lg: 28px;
  --radius-md: 18px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: calc(76px + var(--safe-bottom));
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.container { max-width: 640px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 12, 0.86);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--card-border);
}

.nav-bar {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.3px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #1a1006;
  flex-shrink: 0;
}

.nav-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle svg { width: 20px; height: 20px; stroke: var(--text); }

/* 全屏菜单遮罩 */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 9, 8, 0.98);
  backdrop-filter: blur(10px);
  display: none;
  flex-direction: column;
  padding: 20px 20px 40px;
  overflow-y: auto;
}

.nav-overlay.open { display: flex; }

.nav-overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.nav-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-close svg { width: 18px; height: 18px; stroke: var(--text); }

.nav-menu { list-style: none; display: flex; flex-direction: column; gap: 4px; }

.nav-menu > li { border-bottom: 1px solid var(--card-border); }

.nav-link {
  display: block;
  padding: 18px 4px;
  font-size: 20px;
  font-weight: 600;
}

.nav-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  font-size: 20px;
  font-weight: 600;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
}

.nav-group-toggle svg { width: 18px; height: 18px; stroke: var(--text-muted); transition: transform 0.25s ease; }

.nav-group-toggle.open svg { transform: rotate(180deg); }

.nav-submenu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.nav-submenu.open { max-height: 240px; }

.nav-submenu li a {
  display: block;
  padding: 12px 4px 12px 18px;
  font-size: 17px;
  color: var(--text-muted);
}

.nav-submenu li a::before { content: '· '; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 56px 20px 44px;
  text-align: center;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 138, 61, 0.28) 0%, transparent 55%),
    radial-gradient(circle at 82% 78%, rgba(255, 180, 92, 0.14) 0%, transparent 60%),
    var(--bg);
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-border);
  font-size: 13px;
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-bottom: 14px;
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 28px;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 通用区块 ---------- */

section.block { padding: 44px 20px; }

.block-header { text-align: center; margin-bottom: 28px; }

.block-header .eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-2);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.block-header h2 { font-size: 24px; font-weight: 800; }

.block-header p { color: var(--text-muted); margin-top: 10px; font-size: 15px; }

/* ---------- 卡片 ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
}

.feature-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-card .icon svg { width: 20px; height: 20px; stroke: #1a1006; }

.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }

.feature-card p { font-size: 13px; color: var(--text-muted); }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #1a1006;
}

.btn-ghost {
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
}

.btn-block { width: 100%; }

/* ---------- 产品入口卡片（首页） ---------- */

.product-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}

.product-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
}

.product-link-card .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.product-link-card .body { flex: 1; }

.product-link-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 3px; }

.product-link-card p { font-size: 13px; color: var(--text-muted); }

.product-link-card .arrow { color: var(--text-muted); font-size: 18px; }

/* ---------- 产品详情页 hero 变体 ---------- */

.hero.theme-diban { background: radial-gradient(circle at 22% 18%, rgba(201, 154, 91, 0.28) 0%, transparent 55%), radial-gradient(circle at 82% 78%, rgba(201, 154, 91, 0.14) 0%, transparent 60%), var(--bg); }
.hero.theme-diban h1 .accent { background: linear-gradient(120deg, #e0bb85, var(--accent-diban)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero.theme-diban .hero-badge { color: #e0bb85; }

.hero.theme-kangge { background: radial-gradient(circle at 22% 18%, rgba(224, 90, 78, 0.28) 0%, transparent 55%), radial-gradient(circle at 82% 78%, rgba(224, 90, 78, 0.14) 0%, transparent 60%), var(--bg); }
.hero.theme-kangge h1 .accent { background: linear-gradient(120deg, #f08276, var(--accent-kangge)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero.theme-kangge .hero-badge { color: #f08276; }

/* ---------- 效果展示网格 ---------- */

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}

.showcase-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--card-border);
  aspect-ratio: 3 / 4;
  background: var(--bg-soft);
}

.showcase-item img { width: 100%; height: 100%; object-fit: cover; }

.showcase-note {
  max-width: 640px;
  margin: 18px auto 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px dashed var(--card-border);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- 联系方式卡片 ---------- */

.contact-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--card-border);
}

.contact-row:last-child { border-bottom: none; }

.contact-row .icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 138, 61, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-row .icon-circle svg { width: 19px; height: 19px; stroke: var(--accent-2); }

.contact-row .label { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }

.contact-row .value { font-size: 16px; font-weight: 600; word-break: break-all; }

.qr-block {
  margin-top: 20px;
  text-align: center;
  padding-top: 22px;
  border-top: 1px solid var(--card-border);
}

.qr-block img {
  width: 168px;
  height: 168px;
  margin: 0 auto 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
}

.qr-block p { font-size: 13px; color: var(--text-muted); }

/* ---------- 底部信息 ---------- */

.site-footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 30px 20px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.site-footer .footer-shop { font-weight: 700; color: var(--text); font-size: 15px; margin-bottom: 6px; }
.site-footer .footer-line { margin-top: 4px; }

/* ---------- 底部悬浮拨打条 ---------- */

.call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  background: rgba(11, 13, 12, 0.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-top: 1px solid var(--card-border);
  display: flex;
  gap: 10px;
}

.call-bar .btn { flex: 1; }

@media (min-width: 480px) {
  .hero h1 { font-size: 40px; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}
