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

/* ============================================================
   CSS 变量 & 全局重置
   ============================================================ */
:root {
  --c-teal:    #5cc6b0;
  --c-sand:    #d4c4a8;
  --c-dark:    #172623;
  --c-teal-d:  #3da890;
  --c-teal-l:  #a8e6db;
  --c-sand-d:  #b8a88a;
  --c-sand-l:  #ede6d8;
  --c-ink:     #0e1a18;
  --c-mist:    #2a3e3a;
  --c-warm:    #c67b5c;
  --c-text:    #e8e0d0;
  --c-text-2:  #b8b0a0;

  --ff-head:   'Playfair Display', Georgia, 'Times New Roman', serif;
  --ff-body:   'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-soft: 0 4px 24px rgba(23,38,35,0.25);
  --shadow-card: 0 2px 16px rgba(23,38,35,0.18);

  --nav-h-brand: 72px;
  --nav-h-menu:  52px;
  --nav-total:   calc(var(--nav-h-brand) + var(--nav-h-menu) + 36px);

  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 17px;
  background: var(--c-dark);
  color: var(--c-text);
}

body {
  font-family: var(--ff-body);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  background: var(--c-dark);
  overflow-x: hidden;
}

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

a {
  color: var(--c-teal);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* scroll-margin for fixed header */
article[id] {
  scroll-margin-top: var(--nav-total);
}

/* ============================================================
   grain 纹理叠加（伪元素全局）
   ============================================================ */
.page-wrapper {
  position: relative;
}

.page-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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   顶部公告条
   ============================================================ */
.topbar {
  position: relative;
  z-index: 100;
  background: var(--c-teal);
  color: var(--c-dark);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 8px 16px;
}

.topbar-text {
  display: inline-block;
}

/* ============================================================
   页头
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(23, 38, 35, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(92,198,176,0.15);
}

.header-brand-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 48px;
  height: var(--nav-h-brand);
  border-bottom: 1px solid rgba(212,196,168,0.1);
}

.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--c-text);
}

.brand-link:hover { color: var(--c-teal); }

.logo-text {
  font-family: var(--ff-head);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-teal);
}

.site-logo {
  height: 44px;
  width: auto;
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--c-text-2);
  letter-spacing: 0.05em;
  font-weight: 300;
}

.header-nav-row {
  padding: 0 48px;
  height: var(--nav-h-menu);
  display: flex;
  align-items: center;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-text-2);
  letter-spacing: 0.04em;
  transition: color var(--transition), background var(--transition);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--c-teal);
  background: rgba(92,198,176,0.08);
}

/* ============================================================
   Hero
   ============================================================ */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 70% at 50% 60%, rgba(92,198,176,0.08) 0%, transparent 70%),
              linear-gradient(160deg, var(--c-dark) 0%, #1e3530 50%, var(--c-dark) 100%);
}

.hero-bg-word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-head);
  font-size: clamp(8rem, 22vw, 22rem);
  font-weight: 700;
  color: rgba(92,198,176,0.04);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
}

/* 双图错位拼贴 */
.hero-collage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.collage-card {
  position: absolute;
  border-radius: var(--radius-lg);
  opacity: 0.18;
}

.collage-card--a {
  width: clamp(160px, 22vw, 320px);
  height: clamp(220px, 32vw, 440px);
  background: linear-gradient(135deg, var(--c-teal) 0%, var(--c-sand-d) 100%);
  top: 10%;
  right: 8%;
  transform: rotate(6deg);
  box-shadow: var(--shadow-soft);
}

.collage-card--b {
  width: clamp(120px, 16vw, 240px);
  height: clamp(160px, 24vw, 340px);
  background: linear-gradient(135deg, var(--c-warm) 0%, var(--c-teal-d) 100%);
  top: 30%;
  right: 14%;
  transform: rotate(-4deg);
  box-shadow: var(--shadow-soft);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  padding: 0 32px;
}

.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--c-teal);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.hero-h1 {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--c-text-2);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 14px 40px;
  background: var(--c-teal);
  color: var(--c-dark);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  border-radius: 60px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 8px 32px rgba(92,198,176,0.25);
  min-height: 48px;
}

.hero-cta:hover {
  background: var(--c-teal-l);
  color: var(--c-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(92,198,176,0.35);
}

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

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

.scroll-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--c-text-2);
  writing-mode: horizontal-tb;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ============================================================
   主内容布局：aside 左侧 + 正文右侧
   ============================================================ */
.site-main {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.main-layout {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}

/* ---- 侧边栏 ---- */
.main-sidebar {
  position: sticky;
  top: calc(var(--nav-total) + 24px);
}

.sidebar-inner {
  background: rgba(42,62,58,0.5);
  border: 1px solid rgba(92,198,176,0.12);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  backdrop-filter: blur(6px);
}

.sidebar-title {
  font-family: var(--ff-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-teal);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(92,198,176,0.2);
}

.sidebar-title > span { display: inline; }

.sidebar-nav dl {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
}

.sidebar-nav dt {
  margin: 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 9px 12px;
  font-size: 0.85rem;
  color: var(--c-text-2);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  min-height: 40px;
}

.sidebar-link:hover {
  background: rgba(92,198,176,0.1);
  color: var(--c-teal);
}

.sidebar-badge {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--c-text-2);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-teal);
  flex-shrink: 0;
  animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

/* ---- 正文区 ---- */
.main-content-area {
  min-width: 0;
}

.content-section {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-deco {
  margin-bottom: 40px;
}

.deco-block {
  height: 4px;
  border-radius: 2px;
  width: 80px;
}

.deco-block--teal {
  background: linear-gradient(90deg, var(--c-teal), var(--c-sand));
}

/* ---- page.content 内的样式 ---- */
.content-body {
  color: var(--c-text);
  font-size: 1rem;
  line-height: 1.8;
}

/* page.content 中的 article 样式（7个article） */
.content-body article {
  padding: 64px 0;
  border-bottom: 1px solid rgba(212,196,168,0.1);
}

.content-body article:last-child {
  border-bottom: none;
}

.content-body h2 {
  font-family: var(--ff-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 24px;
  line-height: 1.25;
}

.content-body h3 {
  font-family: var(--ff-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--c-teal-l);
  margin: 32px 0 14px;
}

.content-body p {
  margin-bottom: 16px;
  color: var(--c-text);
  max-width: 72ch;
}

.content-body ul, .content-body ol {
  padding-left: 1.5em;
  margin-bottom: 16px;
}

.content-body li {
  margin-bottom: 8px;
  color: var(--c-text);
}

.content-body a {
  color: var(--c-teal);
  border-bottom: 1px solid rgba(92,198,176,0.3);
  transition: border-color var(--transition);
}

.content-body a:hover {
  border-color: var(--c-teal);
  color: var(--c-teal-l);
}

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

.content-body blockquote {
  border-left: 3px solid var(--c-teal);
  padding: 12px 20px;
  margin: 24px 0;
  background: rgba(92,198,176,0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* 卡片风格 (content内的section/div.card) */
.content-body .card,
.content-body section {
  background: rgba(42,62,58,0.4);
  border: 1px solid rgba(212,196,168,0.1);
  border-bottom: 3px solid var(--c-teal);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.content-body .card:hover,
.content-body section:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

/* ---- content 内的 aside（辅助信息） ---- */
.content-aside {
  margin-top: 56px;
  background: rgba(42,62,58,0.35);
  border: 1px solid rgba(92,198,176,0.15);
  border-radius: var(--radius-md);
  padding: 28px 32px;
}

.aside-inner {}

.aside-label {
  font-family: var(--ff-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-sand);
  margin-bottom: 12px;
}

.aside-label > span { display: inline; }

.aside-inner p {
  font-size: 0.88rem;
  color: var(--c-text-2);
  line-height: 1.7;
  margin: 0;
  max-width: none;
}

/* ============================================================
   Reveal 动效
   ============================================================ */
.reveal-section {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-section.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-line { animation: none; }
  .badge-dot   { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--c-ink);
  border-top: 1px solid rgba(92,198,176,0.12);
  margin-top: 80px;
}

/* 联系/订阅块 */
.footer-contact-block {
  background: linear-gradient(135deg, rgba(92,198,176,0.08) 0%, rgba(212,196,168,0.04) 100%);
  border-bottom: 1px solid rgba(92,198,176,0.1);
  padding: 64px 40px;
}

.footer-contact-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.footer-contact-title {
  font-family: var(--ff-head);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 12px;
}

.footer-contact-title > span { display: inline; }

.footer-contact-desc {
  color: var(--c-text-2);
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: none;
}

.footer-email-link {
  display: inline-block;
  color: var(--c-teal);
  font-size: 0.9rem;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(92,198,176,0.3);
}

.footer-subscribe-form {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 0 auto;
  border: 1px solid rgba(92,198,176,0.25);
  border-radius: 60px;
  overflow: hidden;
  background: rgba(23,38,35,0.6);
}

.subscribe-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 20px;
  font-size: 0.9rem;
  color: var(--c-text);
  font-family: var(--ff-body);
  min-height: 48px;
}

.subscribe-input::placeholder { color: var(--c-text-2); }

.subscribe-btn {
  padding: 14px 28px;
  background: var(--c-teal);
  color: var(--c-dark);
  border: none;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--ff-body);
  letter-spacing: 0.05em;
  transition: background var(--transition);
  min-height: 48px;
}

.subscribe-btn:hover { background: var(--c-teal-l); }

/* 三栏 dl */
.footer-cols {
  padding: 56px 40px;
  max-width: 1320px;
  margin: 0 auto;
}

.footer-nav-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-nav-cols dl {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-nav-cols dt {
  font-family: var(--ff-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-sand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212,196,168,0.15);
}

.footer-nav-cols dd {
  margin: 0;
}

.footer-nav-cols dd a {
  display: flex;
  align-items: center;
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--c-text-2);
  transition: color var(--transition);
  min-height: 40px;
  border: none;
}

.footer-nav-cols dd a:hover {
  color: var(--c-teal);
}

/* 底栏 */
.footer-bottom {
  border-top: 1px solid rgba(212,196,168,0.08);
  padding: 28px 40px;
  text-align: center;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--c-text-2);
  margin-bottom: 6px;
}

.footer-disclaimer {
  font-size: 0.76rem;
  color: rgba(184,176,160,0.55);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 200px 1fr;
    gap: 36px;
    padding: 0 24px;
  }

  .header-brand-row,
  .header-nav-row {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h-brand: 60px;
    --nav-h-menu:  48px;
  }

  .header-brand-row {
    padding: 10px 16px;
    height: auto;
    min-height: var(--nav-h-brand);
  }

  .brand-tagline { display: none; }

  .header-nav-row {
    padding: 0 8px;
    height: auto;
    min-height: var(--nav-h-menu);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav {
    gap: 0;
    flex-wrap: nowrap;
  }

  .nav-link {
    padding: 0 12px;
    font-size: 0.82rem;
    height: 48px;
    white-space: nowrap;
  }

  .main-layout {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 32px;
  }

  .main-sidebar {
    position: static;
    order: -1;
  }

  .sidebar-inner {
    padding: 20px 16px;
  }

  .sidebar-nav dl {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }

  .hero-section { min-height: 100svh; }
  .hero-h1 { font-size: clamp(1.6rem, 8vw, 2.5rem); }
  .hero-sub { font-size: 0.95rem; }

  .collage-card--a,
  .collage-card--b { opacity: 0.08; }

  .site-main { padding: 48px 0; }

  .footer-contact-block { padding: 40px 16px; }
  .footer-cols { padding: 40px 16px; }

  .footer-nav-cols {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom { padding: 20px 16px; }

  .content-body article { padding: 40px 0; }
}

@media (max-width: 480px) {
  .hero-cta { padding: 13px 28px; font-size: 0.9rem; }

  .footer-subscribe-form {
    flex-direction: column;
    border-radius: var(--radius-md);
  }
  .subscribe-input { border-bottom: 1px solid rgba(92,198,176,0.2); }
  .subscribe-btn { border-radius: 0 0 var(--radius-md) var(--radius-md); }
}

button[aria-expanded]{min-width:44px;min-height:44px}
