/* 家空间 · 门户 — 暖居光谱 */
:root {
  --primary-warm: #ff8c61;
  --deep-night-top: #1a1a2e;
  --deep-night-bottom: #16213e;
  --wood: #c4a882;
  --soft-white: #fff8f0;
  --soft-white-dim: rgba(255, 248, 240, 0.75);
  --room-glow: rgba(255, 140, 97, 0.35);
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(196, 168, 130, 0.35);
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--deep-night-top);
  color: var(--soft-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── 顶部导航 ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s;
}

.site-nav .logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--soft-white);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.site-nav .logo span { color: var(--primary-warm); }

.site-nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.site-nav-links a {
  color: var(--soft-white-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.site-nav-links a:hover { color: var(--primary-warm); }

.nav-cta {
  padding: 8px 18px;
  background: var(--primary-warm);
  color: var(--deep-night-top) !important;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px !important;
}

.nav-cta:hover { opacity: 0.9; color: var(--deep-night-top) !important; }

/* ── 房间区块 ── */
.room-section {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 48px;
  position: relative;
  opacity: 0.35;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s ease;
}

.room-section.awake {
  opacity: 1;
  transform: translateY(0);
}

.room-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--room-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.room-section.awake::before { opacity: 1; }

.room-inner {
  max-width: 960px;
  width: 100%;
  text-align: center;
}

.room-badge {
  display: inline-block;
  font-size: 48px;
  margin-bottom: 12px;
  animation: breathe 2.5s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

.room-label {
  font-size: 13px;
  color: var(--wood);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.room-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--soft-white);
}

.room-desc {
  font-size: 16px;
  color: var(--soft-white-dim);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

/* ── 玄关 Hero ── */
.hero-section {
  background: linear-gradient(180deg, var(--deep-night-top) 0%, var(--deep-night-bottom) 100%);
}

.hero-door {
  width: 200px;
  height: 260px;
  margin: 0 auto 32px;
  border: 2px solid var(--wood);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, rgba(255,140,97,0.15) 0%, rgba(255,255,255,0.03) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 40px rgba(255, 140, 97, 0.2);
  transition: box-shadow 0.5s;
}

.hero-section.awake .hero-door {
  box-shadow: 0 0 60px rgba(255, 140, 97, 0.4);
}

.hero-door-knob {
  width: 12px;
  height: 12px;
  background: var(--primary-warm);
  border-radius: 50%;
  position: absolute;
  right: 24px;
  top: 50%;
}

.btn-door {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  border: 2px solid var(--primary-warm);
  color: var(--primary-warm);
  border-radius: 28px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
}

.btn-door:hover {
  background: var(--primary-warm);
  color: var(--deep-night-top);
}

.scroll-hint {
  margin-top: 48px;
  font-size: 12px;
  color: var(--soft-white-dim);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── 房间卡片网格（产品预览） ── */
.room-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
}

.room-card {
  padding: 20px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
}

.room-card:hover {
  border-color: var(--primary-warm);
  background: rgba(255, 140, 97, 0.12);
  transform: translateY(-4px);
}

.room-card .emoji { font-size: 28px; display: block; margin-bottom: 8px; }
.room-card .name { font-size: 14px; font-weight: 500; }

.room-card.highlight {
  border-color: rgba(255, 140, 97, 0.6);
  box-shadow: 0 0 24px rgba(255, 140, 97, 0.2);
}

/* ── 工具间特殊样式 ── */
.toolroom-section { background: linear-gradient(180deg, #1a1a2e 0%, #1e2a3a 100%); }

.toolroom-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 48px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  max-width: 360px;
}

.toolroom-card:hover {
  border-color: var(--primary-warm);
  box-shadow: 0 8px 32px rgba(255, 140, 97, 0.25);
  transform: scale(1.02);
}

.toolroom-card .tool-icon { font-size: 56px; }
.toolroom-card .tool-name { font-size: 20px; font-weight: 600; }
.toolroom-card .tool-desc { font-size: 14px; color: var(--soft-white-dim); }

.tool-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.tool-tag {
  padding: 4px 12px;
  background: rgba(255, 140, 97, 0.2);
  border-radius: 12px;
  font-size: 12px;
  color: var(--primary-warm);
}

/* ── 联系信箱 ── */
.contact-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-links a {
  color: var(--primary-warm);
  text-decoration: none;
  font-size: 15px;
}

.contact-links a:hover { text-decoration: underline; }

/* ── Footer ── */
.site-footer {
  padding: 32px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--soft-white-dim);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.site-footer a {
  color: var(--soft-white-dim);
  text-decoration: none;
  margin: 0 8px;
}

.site-footer a:hover { color: var(--primary-warm); }

/* ── 响应式 ── */
@media (max-width: 640px) {
  .site-nav {
    padding: 0 12px;
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 8px;
  }
  .site-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    width: 100%;
    justify-content: center;
    order: 3;
    padding-bottom: 4px;
  }
  .site-nav-links a { font-size: 13px; }
  .room-section { padding-top: 100px; }
  .toolroom-card { padding: 24px 20px; max-width: 100%; }
}
