/* ============================================
   某某家居服官网 - 个性化设计系统
   设计理念：温暖、舒适、生活感
   色调：奶油暖白 + 赤陶橙 + 鼠尾草绿
   ============================================ */

/* CSS 变量 - 色彩系统 */
:root {
  --bg-cream: #FBF7F2;
  --bg-warm: #F5EDE3;
  --bg-sand: #EDE0D1;
  --color-text: #2C2420;
  --color-text-light: #6B5D52;
  --color-text-muted: #9C8B7E;
  --color-terracotta: #C97B5A;
  --color-terracotta-dark: #A85F42;
  --color-sage: #7C8B6F;
  --color-sage-dark: #5E6E52;
  --color-gold: #C9A87C;
  --color-line: #DDD0C2;
  --color-white: #FFFFFF;
  --color-dark: #2C2420;
  --shadow-soft: 0 4px 24px rgba(44, 36, 32, 0.06);
  --shadow-medium: 0 8px 40px rgba(44, 36, 32, 0.1);
  --shadow-deep: 0 20px 60px rgba(44, 36, 32, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-serif: 'Noto Serif SC', 'Songti SC', serif;
  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Caveat', cursive;
}

/* 重置 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--bg-cream);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-warm); }
::-webkit-scrollbar-thumb { background: var(--color-terracotta); border-radius: 4px; }

/* 文字选中 */
::selection { background: var(--color-terracotta); color: var(--color-white); }

/* ============================================
   导航栏 - 毛玻璃浮动式
   ============================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.4s var(--ease-out);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(251, 247, 242, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  padding: 12px 48px;
  box-shadow: 0 1px 0 rgba(221, 208, 194, 0.5);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.5px;
}
.nav-logo .logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-gold));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px;
  transition: transform 0.4s var(--ease-spring);
}
.nav-logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.nav-logo .logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo .logo-sub {
  font-family: var(--font-script);
  font-size: 13px; font-weight: 400;
  color: var(--color-terracotta);
  letter-spacing: 1px;
}
.nav-menu {
  display: flex; align-items: center; gap: 36px;
}
.nav-menu a {
  position: relative;
  font-size: 15px; font-weight: 500;
  color: var(--color-text-light);
  padding: 6px 0;
  transition: color 0.3s var(--ease-out);
}
.nav-menu a::after {
  content: ''; position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--color-terracotta);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  transform: translateX(-50%);
}
.nav-menu a:hover { color: var(--color-terracotta); }
.nav-menu a:hover::after { width: 100%; }
.nav-menu a.active { color: var(--color-terracotta); }
.nav-menu a.active::after { width: 60%; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-cart {
  position: relative;
  width: 42px; height: 42px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-warm);
  transition: all 0.3s var(--ease-out);
}
.nav-cart:hover { background: var(--color-terracotta); transform: translateY(-2px); }
.nav-cart:hover svg { stroke: white; }
.nav-cart svg { width: 20px; height: 20px; stroke: var(--color-text); transition: stroke 0.3s; }
.nav-cart .cart-badge {
  position: absolute; top: -2px; right: -2px;
  width: 18px; height: 18px;
  background: var(--color-terracotta);
  color: white;
  font-size: 11px; font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-cream);
}
.nav-cta {
  padding: 10px 24px;
  background: var(--color-text);
  color: var(--bg-cream);
  border-radius: var(--radius-full);
  font-size: 14px; font-weight: 600;
  transition: all 0.3s var(--ease-out);
}
.nav-cta:hover {
  background: var(--color-terracotta);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 123, 90, 0.4);
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  flex-direction: column;
  justify-content: center; align-items: center;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* 移动端菜单 */
.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(251, 247, 242, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 8px;
  opacity: 0; visibility: hidden;
  transition: all 0.4s var(--ease-out);
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 28px; font-weight: 600;
  color: var(--color-text);
  padding: 14px 32px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s var(--ease-out);
}
.mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.open a:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu a:hover { color: var(--color-terracotta); }

/* ============================================
   通用组件
   ============================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
.section { padding: 100px 0; position: relative; }
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-script);
  font-size: 22px;
  color: var(--color-terracotta);
  margin-bottom: 12px;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: ''; width: 32px; height: 1px;
  background: var(--color-terracotta); opacity: 0.5;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 42px; font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 17px;
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 15px; font-weight: 600;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}
.btn-primary {
  background: var(--color-terracotta);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201, 123, 90, 0.35);
}
.btn-dark {
  background: var(--color-text);
  color: var(--bg-cream);
}
.btn-dark:hover {
  background: var(--color-terracotta);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-line);
}
.btn-outline:hover {
  border-color: var(--color-terracotta);
  color: var(--color-terracotta);
  transform: translateY(-2px);
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s; }
.btn:hover svg { transform: translateX(4px); }

/* 滚动动画 */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   页脚
   ============================================ */
.footer {
  background: var(--color-text);
  color: var(--bg-warm);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand .nav-logo { color: var(--bg-cream); margin-bottom: 20px; }
.footer-brand .nav-logo .logo-text { color: var(--bg-cream); }
.footer-brand p {
  font-size: 14px;
  color: rgba(245, 237, 227, 0.6);
  line-height: 1.8;
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 17px; font-weight: 600;
  margin-bottom: 20px;
  color: var(--bg-cream);
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li a {
  font-size: 14px;
  color: rgba(245, 237, 227, 0.6);
  transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--color-terracotta); }
.footer-contact .contact-item {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: rgba(245, 237, 227, 0.7);
}
.footer-contact .contact-item svg {
  width: 18px; height: 18px;
  flex-shrink: 0; margin-top: 2px;
  stroke: var(--color-terracotta);
}
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(245, 237, 227, 0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
  color: rgba(245, 237, 227, 0.4);
}
.footer-socials { display: flex; gap: 16px; }
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(245, 237, 227, 0.08);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.footer-socials a:hover { background: var(--color-terracotta); }
.footer-socials a:hover svg { stroke: white; }
.footer-socials svg { width: 18px; height: 18px; stroke: rgba(245, 237, 227, 0.6); transition: stroke 0.3s; }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .navbar { padding: 16px 32px; }
  .navbar.scrolled { padding: 12px 32px; }
  .section { padding: 80px 0; }
  .section-title { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .navbar { padding: 14px 20px; }
  .navbar.scrolled { padding: 10px 20px; }
  .nav-menu, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 60px 0; }
  .section-title { font-size: 28px; }
  .section-desc { font-size: 15px; }
  .section-header { margin-bottom: 40px; }
  .footer { padding: 60px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; margin-bottom: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .btn { padding: 12px 24px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
