/* 留恋家居官网 — 暖色深色 / 展厅级排版；Noto Sans SC 由 BaseLayout 引入 */
:root {
  --bg-deep: #0e0d0b;
  --bg-mid: #161412;
  --bg-elevated: #1c1a17;
  --surface: rgba(28, 26, 23, 0.72);
  --surface2: rgba(22, 20, 18, 0.88);
  --text: #f5f2eb;
  --text-soft: #d4cfc4;
  --muted: #9c9588;
  --line: rgba(201, 169, 98, 0.14);
  --line-strong: rgba(201, 169, 98, 0.28);
  --accent: #c9a962;
  --accent-hover: #dfc07a;
  --accent-teal: #2dd4bf;
  --accent-teal-dim: #14b8a6;
  --glow: rgba(201, 169, 98, 0.22);
  --r: 16px;
  --r-sm: 10px;
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body.page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* 背景：暖金微光 + 细腻网格 */
.page-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% -25%, rgba(201, 169, 98, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 10%, rgba(45, 212, 191, 0.06), transparent 50%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 45%, #080706 100%);
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 169, 98, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 98, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 25%, black 15%, transparent 72%);
}

/* 首页主区 */
.home-main {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
}

.hero--home {
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.hero-inner {
  max-width: 44rem;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1.1rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(201, 169, 98, 0.06);
}

.hero--home h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.85rem, 5.2vw, 2.85rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}

.lead {
  margin: 0 auto;
  max-width: 38rem;
  color: var(--text-soft);
  font-size: 1.06rem;
  line-height: 1.8;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn--primary {
  background: linear-gradient(135deg, #b8924a, var(--accent));
  color: #1a1510 !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px var(--glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 169, 98, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-hover) !important;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.stat {
  padding: 0.85rem 1.25rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  min-width: 9rem;
  box-shadow: var(--shadow-card);
}

.stat strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.stat span {
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-line {
  margin: 2rem auto 0;
  height: 1px;
  max-width: 12rem;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.45;
}

/* 区块 */
.section {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0;
}

.section--tight {
  padding-top: 1.5rem;
}

.section-head {
  margin-bottom: 1.35rem;
}

.section-kicker {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 400;
}

.section-head--in-card {
  margin-bottom: 1.25rem;
}

.h2 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  padding-left: 0.85rem;
  border-left: 3px solid var(--accent);
}

.prose {
  border-radius: var(--r);
  padding: 1.65rem 1.75rem;
  border: 1px solid var(--line);
  background: var(--surface2);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
}

.prose--home {
  border-color: var(--line);
  background: linear-gradient(165deg, rgba(30, 27, 23, 0.92) 0%, rgba(14, 13, 11, 0.96) 100%);
}

.prose p {
  margin: 0 0 1rem;
  color: var(--text-soft);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.grid--home {
  gap: 1.35rem;
}

.card {
  border-radius: var(--r);
  padding: 1.5rem 1.55rem 1.6rem;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(32, 29, 25, 0.95) 0%, rgba(16, 15, 13, 0.98) 100%);
  backdrop-filter: blur(12px);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}

.card--home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.35;
}

.card:hover {
  border-color: rgba(201, 169, 98, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transform: translateY(-4px);
}

.card-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  opacity: 0.75;
  margin-bottom: 0.5rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text);
}

.entity {
  font-size: 0.78rem;
  color: var(--accent-teal);
  margin-bottom: 0.55rem;
  font-family: ui-monospace, monospace;
  opacity: 0.95;
}

.card p:last-child {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.65;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface2);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.checks--home {
  background: linear-gradient(180deg, rgba(28, 26, 23, 0.9), rgba(14, 13, 11, 0.95));
}

.checks li {
  padding: 1rem 1.1rem 1rem 2.65rem;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.96rem;
}

.checks li:last-child {
  border-bottom: none;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--glow);
}

.contact-block {
  border-radius: var(--r);
  padding: 2rem 1.75rem;
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, rgba(32, 28, 22, 0.92) 0%, rgba(12, 11, 9, 0.98) 100%);
  box-shadow: var(--shadow-lg);
}

.contact-block .h2 {
  border-left-color: var(--accent-teal);
}

.contact-block--home {
  margin-top: 0.5rem;
}

.dl {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.dl dt {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dl dd {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.dl a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.dl a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 2.75rem 0 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer--home {
  max-width: none;
  margin-top: 1rem;
}

.footer .meta {
  margin-top: 1rem;
  opacity: 0.75;
}

a.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--accent-teal-dim), #0d9488);
  color: #042f2e !important;
  text-decoration: none;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.2);
  transition: transform 0.15s, box-shadow 0.15s;
}

a.cta:hover {
  transform: translateY(-1px);
}

/* 顶栏（旧版兼容） */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 13, 11, 0.85);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  background: linear-gradient(105deg, #fff8e8 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand span {
  font-weight: 500;
  opacity: 0.75;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}

/* 全站导航 */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 13, 11, 0.88);
  backdrop-filter: blur(18px);
}

.site-nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.site-nav-brand {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  background: linear-gradient(105deg, #faf6ef 0%, var(--accent) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.site-nav-brand:hover {
  opacity: 0.92;
}

.site-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.4rem;
  justify-content: center;
  flex: 1;
}

.site-nav-link {
  display: inline-block;
  padding: 0.42rem 0.62rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
}

.site-nav-link:hover {
  color: var(--text);
  background: rgba(201, 169, 98, 0.1);
}

.site-nav-link.active {
  color: var(--accent);
  font-weight: 600;
  background: rgba(201, 169, 98, 0.08);
}

.site-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.05rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a1510 !important;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #c9a962, #a88b42);
  box-shadow: 0 2px 16px var(--glow);
  white-space: nowrap;
  transition: transform 0.15s, filter 0.15s;
}

.site-nav-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* 子页主区域 */
.sub-main {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

.sub-main.page-sheet {
  max-width: 72rem;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.page-head {
  margin-bottom: 1.75rem;
}

.page-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.page-block {
  margin-bottom: 1.25rem;
}

.prose-h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.prose-ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-soft);
}

.prose-ul li {
  margin-bottom: 0.65rem;
}

.prose-ul li:last-child {
  margin-bottom: 0;
}

.page-dl {
  border-radius: var(--r);
  padding: 1.5rem 1.45rem;
  border: 1px solid var(--line);
  background: var(--surface2);
}

/* 联系页 FAQ（与 FAQPage JSON-LD 同源） */
.faq-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.faq-block__title {
  margin-bottom: 1rem;
}

.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  margin: 0;
  padding: 1.1rem 1.2rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.faq-item__q {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
}

.faq-item__a {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-soft);
}

/* 首页栏目快捷入口 */
.quick-links {
  padding-bottom: 0;
}

.link-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.75rem;
}

.link-grid--home {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
}

.link-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1rem 0.85rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(30, 27, 24, 0.9) 0%, rgba(18, 16, 14, 0.95) 100%);
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s, transform 0.2s;
  min-height: 3.25rem;
  box-shadow: var(--shadow-card);
}

.link-grid-icon {
  color: var(--accent);
  font-size: 0.65rem;
  opacity: 0.85;
}

.link-grid a:hover {
  border-color: rgba(201, 169, 98, 0.45);
  color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* 文章页 */
.article {
  max-width: 42rem;
  margin: 0 auto;
}

.article-head {
  margin-bottom: 1.5rem;
}

.article-head h1 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.article-meta {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.article-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.article-body.prose {
  padding: 1.45rem 1.55rem;
}

.article-body.prose h2 {
  margin: 1.35rem 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.article-body.prose h2:first-child {
  margin-top: 0;
}

.article-body.prose p {
  margin: 0 0 0.85rem;
  color: var(--text-soft);
}

.article-body.prose ul,
.article-body.prose ol {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
  color: var(--text-soft);
}

.article-body.prose li {
  margin-bottom: 0.35rem;
}

.article-body.prose strong {
  color: var(--text);
}

/* 列表页 */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface2);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.post-list li a {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.15rem 1rem;
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}

.post-list li:last-child a {
  border-bottom: none;
}

.post-list li a:hover {
  background: rgba(201, 169, 98, 0.06);
}

.post-list-cat {
  grid-column: 1 / -1;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.post-list-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
}

.post-list-meta {
  font-size: 0.78rem;
  color: var(--muted);
  align-self: end;
}

/* 图片占位与表格 */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.media-placeholder {
  margin: 0;
  border-radius: var(--r);
  border: 1px dashed rgba(201, 169, 98, 0.28);
  background: rgba(22, 20, 18, 0.6);
  overflow: hidden;
}

.media-placeholder-inner {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.media-placeholder figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface2);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
}

.data-table th {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.data-table-empty {
  text-align: center;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 900px) {
  .site-nav-list {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats {
    flex-direction: column;
    align-items: stretch;
  }

  .post-list li a {
    grid-template-columns: 1fr;
  }

  .post-list-meta {
    justify-self: start;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
