@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:wght@400;500;600;700&family=Jost:wght@300;400;500;600;700&display=swap');

/* ===========================
   CSS 变量 / 设计令牌
=========================== */
:root {
  --c-primary: #5cc6b0;
  --c-sand: #d4c4a8;
  --c-dark: #172623;
  --c-bg: #f5ede0;
  --c-bg2: #ede4d4;
  --c-text: #2a2018;
  --c-text-soft: #5a4e3c;
  --c-primary-dark: #3ea892;
  --c-primary-light: #a8e6da;
  --c-glass-bg: rgba(245, 237, 224, 0.72);
  --c-glass-border: rgba(92, 198, 176, 0.25);
  --radius-card: 4px;
  --radius-btn: 4px;
  --shadow-soft: 0 4px 24px rgba(23, 38, 35, 0.10);
  --shadow-card: 0 2px 16px rgba(23, 38, 35, 0.08);
  --font-display: 'Bodoni Moda', 'Georgia', serif;
  --font-body: 'Jost', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --nav-h: 48px;
  --brand-h: 64px;
  --header-total: 112px;
  --transition-base: 0.28s ease-out;
}

/* ===========================
   Reset / Base
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  min-width: 320px;
  overflow-x: hidden;
}

body.home-page {
  background-color: var(--c-bg);
}

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

a {
  color: var(--c-primary-dark);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--c-primary);
}

ul, ol {
  list-style: none;
}

/* ===========================
   纹理叠加（grain 效果）
=========================== */
.site-wrapper {
  position: relative;
}

.site-wrapper::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ===========================
   Header — 两行结构
=========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 237, 224, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-sand);
  box-shadow: 0 2px 12px rgba(23, 38, 35, 0.06);
}

/* 品牌行 */
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 64px);
  height: var(--brand-h);
  border-bottom: 1px solid rgba(212, 196, 168, 0.5);
}

.brand-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--c-dark);
  letter-spacing: 0.02em;
  transition: color var(--transition-base);
}

.brand-link:hover .brand-name {
  color: var(--c-primary-dark);
}

.brand-tagline {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: var(--c-text-soft);
  letter-spacing: 0.05em;
  display: none;
}

@media (min-width: 640px) {
  .brand-tagline {
    display: inline;
  }
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--c-text-soft);
  font-weight: 300;
  letter-spacing: 0.04em;
}

.contact-dot {
  color: var(--c-primary);
}

/* 菜单行 */
.nav-row {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(16px, 4vw, 64px);
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-row::-webkit-scrollbar {
  display: none;
}

.site-nav ol {
  display: flex;
  gap: 0;
  align-items: center;
  white-space: nowrap;
}

.site-nav ol li {
  position: relative;
}

.site-nav ol li a {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-soft);
  letter-spacing: 0.03em;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-base), border-color var(--transition-base);
  min-height: 40px;
}

.site-nav ol li a:hover {
  color: var(--c-dark);
  border-bottom-color: var(--c-primary);
}

.site-nav ol li:first-child a {
  padding-left: 0;
}

/* ===========================
   Hero Section
=========================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-bg) 0%, #ece0cc 50%, var(--c-bg2) 100%);
  overflow: hidden;
  scroll-margin-top: var(--header-total);
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(80px, 20vw, 280px);
  font-weight: 700;
  color: rgba(212, 196, 168, 0.18);
  letter-spacing: 0.08em;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: clamp(80px, 12vw, 120px) clamp(24px, 6vw, 80px);
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.hero-media-placeholder {
  width: clamp(160px, 30vw, 320px);
  height: clamp(160px, 30vw, 320px);
  background: linear-gradient(135deg, var(--c-sand) 0%, var(--c-bg2) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.hero-icon {
  font-size: clamp(60px, 12vw, 120px);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--c-primary-dark);
  text-transform: uppercase;
  padding: 4px 14px;
  border: 1px solid var(--c-primary);
  border-radius: 2px;
  display: inline-block;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
  color: var(--c-dark);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 300;
  color: var(--c-text-soft);
  line-height: 1.7;
  max-width: 460px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background: var(--c-primary);
  color: var(--c-dark);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--radius-btn);
  box-shadow: 0 4px 20px rgba(92, 198, 176, 0.35);
  transition: background var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
  min-height: 48px;
}

.hero-cta:hover {
  background: var(--c-primary-dark);
  color: #fff;
  box-shadow: 0 6px 28px rgba(62, 168, 146, 0.45);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--c-primary), transparent);
  animation: scrollPulse 2s ease-out infinite;
}

.scroll-text {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--c-text-soft);
}

@keyframes scrollPulse {
  0% { opacity: 1; transform: scaleY(1); }
  80% { opacity: 0.3; transform: scaleY(0.6); }
  100% { opacity: 1; transform: scaleY(1); }
}

/* Hero 移动端 */
@media (max-width: 700px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 60px;
    padding-bottom: 80px;
  }

  .hero-media {
    order: 2;
  }

  .hero-content {
    order: 1;
  }

  .hero-media-placeholder {
    width: 160px;
    height: 160px;
  }
}

/* ===========================
   Main Layout: article + aside
=========================== */
.site-main {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) clamp(16px, 4vw, 48px);
}

.main-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.main-article {
  min-width: 0;
}

.content-section {
  /* page.content 落脚处 */
}

/* ===========================
   page.content 内部样式
=========================== */
.content-section h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 600;
  color: var(--c-dark);
  margin-top: 56px;
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-sand);
  position: relative;
}

.content-section h2::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--c-primary);
}

.content-section h2 + .subtitle,
.content-section h2 + p {
  font-size: 15px;
  color: var(--c-text-soft);
  margin-bottom: 20px;
  font-weight: 300;
}

.content-section h3 {
  font-family: var(--font-body);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  color: var(--c-dark);
  margin-top: 32px;
  margin-bottom: 10px;
}

.content-section p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text);
  margin-bottom: 16px;
}

.content-section ul,
.content-section ol {
  margin: 12px 0 20px 0;
  padding-left: 20px;
}

.content-section ul {
  list-style: none;
  padding-left: 0;
}

.content-section ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.7;
}

.content-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  background: var(--c-primary);
  border-radius: 50%;
}

.content-section ol {
  list-style: decimal;
}

.content-section ol li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.7;
}

.content-section strong {
  color: var(--c-dark);
  font-weight: 600;
}

.content-section a {
  color: var(--c-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-section a:hover {
  color: var(--c-primary);
}

.content-section blockquote {
  border-left: 3px solid var(--c-primary);
  padding: 12px 20px;
  margin: 20px 0;
  background: rgba(92, 198, 176, 0.07);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  font-style: italic;
  color: var(--c-text-soft);
}

/* section 分区 */
.content-section section {
  scroll-margin-top: calc(var(--header-total) + 16px);
  padding-top: 8px;
}

/* ===========================
   Aside（玻璃拟态卡片）
=========================== */
.main-aside {
  position: sticky;
  top: calc(var(--header-total) + 16px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.aside-card {
  background: var(--c-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-base);
}

.aside-card:hover {
  box-shadow: 0 6px 28px rgba(23, 38, 35, 0.13);
}

.aside-title,
.aside-card-h {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--c-dark);
  margin-bottom: 4px;
}

.aside-card .subtitle {
  font-size: 12px;
  color: var(--c-text-soft);
  font-weight: 300;
  margin-bottom: 16px;
}

.aside-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aside-nav-list li a {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 400;
  color: var(--c-text-soft);
  border-radius: 3px;
  transition: background var(--transition-base), color var(--transition-base);
  min-height: 40px;
}

.aside-nav-list li a::before {
  content: '→';
  margin-right: 8px;
  color: var(--c-primary);
  font-size: 12px;
  flex-shrink: 0;
}

.aside-nav-list li a:hover {
  background: rgba(92, 198, 176, 0.12);
  color: var(--c-dark);
}

.aside-tip .tip-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aside-tip .tip-list li {
  font-size: 13px;
  color: var(--c-text-soft);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

.aside-tip .tip-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--c-primary);
  font-size: 10px;
}

/* Aside 移动端：折叠到底部 */
@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .main-aside {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }

  .aside-card {
    flex: 1 1 260px;
  }
}

/* ===========================
   Footer
=========================== */
.site-footer {
  background: var(--c-dark);
  padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 64px;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--c-sand);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.site-footer small {
  font-size: 12px;
  color: rgba(212, 196, 168, 0.55);
  font-weight: 300;
  letter-spacing: 0.03em;
}

@media (max-width: 480px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* ===========================
   prefers-reduced-motion
=========================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-line {
    animation: none;
  }
}

/* ===========================
   工具 / 辅助
=========================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* 区块分隔线 */
.content-section article + article {
  border-top: 1px solid rgba(212, 196, 168, 0.4);
  padding-top: 40px;
  margin-top: 8px;
}

/* 响应式修正 */
@media (max-width: 480px) {
  .site-nav ol li a {
    padding: 0 10px;
    font-size: 13px;
  }

  .hero-content h1 {
    font-size: 26px;
  }
}
