/* ============================================================
 *  筑睡 ZHUSHUI — 官网样式
 *  暖夜(sleeplounge)/ 暖墨(hot ink) 美学方向
 *  VI: #61423E 主咖啡 / #89716E 辅 / #FFC71C 金 / #FFE38D 金淡
 *      #404040 文字 / #F2F2F2 反白
 *  字体: Noto Serif SC(中文衬线) + Fraunces(英文可变衬线) + Cormorant Garamond
 * ============================================================ */

/* ---------- CSS 变量 / 设计令牌 ---------- */
:root {
  /* 品牌色 */
  --brand-primary: #61423e;       /* 主 深咖啡 */
  --brand-primary-soft: #b0a09e;  /* 50% 主色 */
  --brand-secondary: #89716e;     /* 辅助 灰咖 */
  --brand-accent: #ffc71c;        /* 金 */
  --brand-accent-soft: #ffe38d;   /* 金淡 */
  --brand-text: #404040;          /* 文字黑 */
  --brand-text-inverse: #f2f2f2;  /* 反白 */

  /* 派生态(供深/浅/暖三段用) */
  --ink-dark: #2a1d1b;            /* hero/footer 用,比 primary 更深 */
  --ink-paper: #f5f0ec;           /* 浅色段用,带暖调的近白 */
  --ink-paper-warm: #efe7e0;      /* 暖色段用,更明显米咖 */
  --ink-line: #d9cdc6;            /* 暖细线 */
  --ink-line-dark: rgba(245, 240, 236, 0.18); /* 深底细线 */

  /* 字体 */
  --font-zh: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-en: "Fraunces", "Cormorant Garamond", "Times New Roman", serif;
  --font-en-sub: "Cormorant Garamond", "Times New Roman", serif;

  /* 节奏 */
  --container: 1180px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --section-py: clamp(5rem, 9vw, 9rem);
  --section-narrow: 880px;
}

/* ---------- Reset + 基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-zh);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--brand-text);
  background: var(--ink-paper);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 220ms ease, opacity 220ms ease;
}

a:hover {
  color: var(--brand-accent);
}

p {
  margin: 0 0 1em;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 500;
  line-height: 1.25;
  color: var(--brand-text);
}

/* 选区色 */
::selection {
  background: var(--brand-accent);
  color: var(--ink-dark);
}

/* ---------- 工具类 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-en-sub);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin: 0 0 1.5rem;
}

.break-mobile {
  display: none;
}

@media (max-width: 640px) {
  .break-mobile {
    display: inline;
  }
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 1.25rem 0;
  background: transparent;
  transition: background-color 360ms ease, backdrop-filter 360ms ease,
    padding 360ms ease, box-shadow 360ms ease, border-color 360ms ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(42, 29, 27, 0.86);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom-color: var(--ink-line-dark);
  padding: 0.75rem 0;
}

.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--brand-text-inverse);
  font-family: var(--font-zh);
  letter-spacing: 0.05em;
}

.site-header.scrolled .brand {
  color: var(--brand-text-inverse);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--brand-accent);
  border: 1px solid currentColor;
  border-radius: 50%;
  padding: 2px;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.brand-zh {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.brand-en {
  font-family: var(--font-en-sub);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  margin-top: 4px;
  color: var(--brand-accent);
  opacity: 0.85;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
}

.nav-links a {
  color: var(--brand-text-inverse);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--brand-accent);
  transition: width 320ms ease;
}

.nav-links a:hover {
  color: var(--brand-accent);
}

.nav-links a:hover::after {
  width: 100%;
}

@media (max-width: 540px) {
  .nav-links {
    gap: 1rem;
  }
  .nav-links a {
    font-size: 0.82rem;
  }
  .brand-en {
    display: none;
  }
}

/* ============================================================
 *  Hero — 深咖啡色铺底
 * ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--ink-dark);
  color: var(--brand-text-inverse);
  overflow: hidden;
  isolation: isolate;
  padding: 6rem 0 4rem;
}

/* 顶部微微的暖金渐变,模拟"月光的金边" */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 90% 60% at 80% 0%, rgba(255, 199, 28, 0.10), transparent 60%),
    radial-gradient(ellipse 70% 50% at 10% 100%, rgba(97, 66, 62, 0.55), transparent 60%),
    linear-gradient(180deg, #2a1d1b 0%, #1d1413 100%);
  pointer-events: none;
}

/* 月亮 — 右上方 */
.hero-moon {
  position: absolute;
  top: 12%;
  right: 8%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff5d2 0%, #f4d57a 38%, #c89a3a 70%, transparent 75%);
  filter: blur(0.5px);
  opacity: 0.55;
  z-index: 2;
  box-shadow: 0 0 80px 20px rgba(255, 199, 28, 0.18);
  animation: moonBreath 8s ease-in-out infinite;
}

@keyframes moonBreath {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 0.7;  transform: scale(1.04); }
}

/* 颗粒纹理 — 暖墨 + 暗金噪点 */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.85  0 0 0 0 0.4  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero-title {
  font-family: var(--font-zh);
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  margin: 0 0 2rem;
  color: var(--brand-text-inverse);
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line > span,
.hero-title .line {
  display: inline-block;
}

.hero-title .line-1 {
  opacity: 0;
  transform: translateY(0.6em);
  animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s forwards;
}

.hero-title .line-2 {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 300;
  font-size: 0.78em;
  letter-spacing: -0.01em;
  color: var(--brand-accent);
  opacity: 0;
  transform: translateY(0.6em);
  animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.85;
  color: rgba(245, 240, 236, 0.78);
  max-width: 36ch;
  margin: 0 0 3rem;
  opacity: 0;
  animation: fade 1.2s ease 0.7s forwards;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 240, 236, 0.55);
  opacity: 0;
  animation: fade 1.2s ease 0.95s forwards;
}

@keyframes fade {
  to { opacity: 1; }
}

.hero-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
  display: inline-block;
}

.hero-scroll {
  position: absolute;
  z-index: 3;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-en-sub);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(245, 240, 236, 0.5);
  animation: bob 3s ease-in-out infinite;
}

.hero-scroll .line-down {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, rgba(255, 199, 28, 0.6), transparent);
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

@media (max-width: 640px) {
  .hero-moon {
    width: 110px;
    height: 110px;
    top: 9%;
    right: 4%;
  }
  .hero-scroll {
    display: none;
  }
}

/* ============================================================
 *  Section 通用
 * ============================================================ */
.section {
  position: relative;
  padding: var(--section-py) 0;
}

.section-light {
  background: var(--ink-paper);
  color: var(--brand-text);
}

.section-warm {
  background: var(--ink-paper-warm);
  color: var(--brand-text);
}

.section-dark {
  background: var(--ink-dark);
  color: var(--brand-text-inverse);
}

.section-head {
  max-width: var(--section-narrow);
  margin: 0 auto clamp(2.5rem, 5vw, 5rem);
  text-align: left;
}

.section-num {
  display: inline-block;
  font-family: var(--font-en-sub);
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  color: var(--brand-accent);
  margin-bottom: 1.5rem;
}

.section-dark .section-num {
  color: var(--brand-accent);
}

.section-title {
  font-family: var(--font-zh);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin: 0 0 1.5rem;
  color: inherit;
}

.section-lede {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.9;
  color: rgba(64, 64, 64, 0.78);
  max-width: 56ch;
}

.section-dark .section-lede {
  color: rgba(245, 240, 236, 0.72);
}

/* ============================================================
 *  01 产品介绍 — 三张卡片
 * ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}

.card {
  position: relative;
  padding: 2.75rem 2rem 2.5rem;
  background: #fff;
  border: 1px solid var(--ink-line);
  transition: transform 480ms ease, box-shadow 480ms ease, border-color 480ms ease;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-accent);
  transition: width 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -28px rgba(42, 29, 27, 0.3);
  border-color: var(--brand-primary-soft);
}

.card:hover::before {
  width: 100%;
}

.card-num {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--brand-accent);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.card h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 0 1rem;
  color: var(--ink-dark);
}

.card p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(64, 64, 64, 0.78);
}

@media (max-width: 860px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
 *  02 三端 — 暖色段
 * ============================================================ */
.tri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}

.tri-item {
  padding: 3rem 2rem;
  text-align: center;
  border-right: 1px solid var(--ink-line);
  transition: background-color 480ms ease;
}

.tri-item:last-child {
  border-right: none;
}

.tri-item:hover {
  background: rgba(255, 199, 28, 0.06);
}

.tri-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  margin-bottom: 1.5rem;
  transition: color 360ms ease, transform 360ms ease;
}

.tri-item:hover .tri-icon {
  color: var(--brand-accent);
  transform: translateY(-2px);
}

.tri-item h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
  color: var(--ink-dark);
}

.tri-item p {
  font-size: 0.92rem;
  color: rgba(64, 64, 64, 0.72);
  line-height: 1.7;
}

@media (max-width: 860px) {
  .tri-grid {
    grid-template-columns: 1fr;
  }
  .tri-item {
    border-right: none;
    border-bottom: 1px solid var(--ink-line);
  }
  .tri-item:last-child {
    border-bottom: none;
  }
}

/* ============================================================
 *  03 特色 — 列表式
 * ============================================================ */
.feature-list {
  max-width: 960px;
  margin: 0 auto;
}

.feature {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--ink-line);
  align-items: start;
}

.feature:last-child {
  border-bottom: 1px solid var(--ink-line);
}

.feature-key {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 2.2rem;
  color: var(--brand-accent);
  line-height: 1;
  padding-top: 0.4rem;
}

.feature h3 {
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
  color: var(--ink-dark);
}

.feature p {
  font-size: 0.98rem;
  line-height: 1.9;
  color: rgba(64, 64, 64, 0.78);
  margin: 0;
}

@media (max-width: 720px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .feature-key {
    font-size: 1.5rem;
  }
}

/* ============================================================
 *  引用区 — 深底大字
 * ============================================================ */
.quote-section {
  padding: clamp(6rem, 11vw, 11rem) 0;
  background: var(--ink-dark);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.quote-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 199, 28, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(97, 66, 62, 0.4), transparent 60%);
  z-index: 0;
}

.quote {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 820px;
  text-align: center;
  font-family: var(--font-zh);
  font-weight: 300;
}

.quote p {
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  line-height: 1.55;
  color: var(--brand-text-inverse);
  margin: 0 0 2rem;
  letter-spacing: 0.04em;
}

.quote-mark {
  color: var(--brand-accent);
  font-style: normal;
  font-family: var(--font-en-sub);
  font-size: 1.1em;
  margin: 0 0.1em;
}

.quote cite {
  display: inline-block;
  font-style: normal;
  font-family: var(--font-en-sub);
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--brand-accent);
}

/* ============================================================
 *  04 关于我们
 * ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  max-width: var(--container);
  margin: 0 auto;
  align-items: start;
}

.about-main {
  font-size: 1.02rem;
  line-height: 1.95;
  color: rgba(64, 64, 64, 0.85);
}

.about-lede {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.about-lede strong {
  color: var(--ink-dark);
  font-weight: 600;
}

.about-side {
  background: #fff;
  border: 1px solid var(--ink-line);
  padding: 2rem 2rem 1.5rem;
}

.kv {
  margin: 0;
}

.kv > div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px dashed var(--ink-line);
  align-items: baseline;
}

.kv > div:last-child {
  border-bottom: none;
}

.kv dt {
  font-family: var(--font-en-sub);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-secondary);
}

.kv dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-dark);
  line-height: 1.5;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
 *  05 联系我们
 * ============================================================ */
.contact-section .section-head {
  text-align: center;
}

.contact-section .section-lede {
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--ink-line);
  padding: 1rem 2rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  align-items: baseline;
  border-bottom: 1px dashed var(--ink-line);
}

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

.contact-label {
  font-family: var(--font-en-sub);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-secondary);
}

.contact-value {
  font-size: 1.02rem;
  color: var(--ink-dark);
  line-height: 1.7;
}

@media (max-width: 540px) {
  .contact-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

/* ============================================================
 *  Footer
 * ============================================================ */
.site-footer {
  background: var(--ink-dark);
  color: rgba(245, 240, 236, 0.7);
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--ink-line-dark);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.footer-zh {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--brand-text-inverse);
}

.footer-en {
  font-family: var(--font-en-sub);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--brand-accent);
  margin-top: 4px;
}

.footer-meta {
  text-align: right;
}

.footer-copy {
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
  color: rgba(245, 240, 236, 0.6);
}

.footer-icp {
  margin: 0;
  font-size: 0.82rem;
}

.beian-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(245, 240, 236, 0.7);
  letter-spacing: 0.05em;
  transition: color 220ms ease;
}

.beian-link:hover {
  color: var(--brand-accent);
}

.beian-icon {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 540px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-meta {
    text-align: center;
  }
}

/* ============================================================
 *  可访问性 / 动画偏好
 * ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 焦点态(键盘导航) */
a:focus-visible,
button:focus-visible {
  outline: 2px dashed var(--brand-accent);
  outline-offset: 4px;
}