/* ══════════════════════════════════════════════════
   四时织锦·舟游四海 — base.css
   CSS变量 / Reset / 基础样式 / 通用组件 / 滚动动画
   ══════════════════════════════════════════════════ */

/* ─── 1. CSS 变量 ─── */
:root {
  --green-deep:  #0F2A0F;
  --green-dark:  #1A3A1A;
  --green-mid:   #2D5A27;
  --green-light: #5A8A50;
  --green-pale:  #D4E8D4;
  --gold:        #C8860A;
  --gold-light:  #E8A82A;
  --gold-pale:   #FDF3DC;
  --red-deep:    #6B0F0F;
  --red-mid:     #8B1A1A;
  --sky:         #4A7FA5;
  --paper:       #FAF6F0;
  --paper-warm:  #F5EFE6;
  --ink:         #1A1A1A;
  --ink-soft:    #3A3A3A;
  --gray:        #666;
  --gray-light:  #CCC;
  --white:       #FFFFFF;

  --spring: #F0C8D8;
  --summer: #FFD700;
  --autumn: #D4521A;
  --winter: #7BA7BC;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --radius-xl: 60px;

  --shadow-sm: 0 2px 12px rgba(0,0,0,.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.18);

  --transition: .35s cubic-bezier(.4,0,.2,1);
  --max-w: 1280px;
  --nav-h: 72px;
}

/* ─── 2. Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── 3. 布局工具 ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
.section-pad { padding: 100px 0; }

/* ─── 4. 通用文字组件 ─── */
.label-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200,134,10,.1);
  border: 1px solid rgba(200,134,10,.3);
  padding: 5px 14px;
  border-radius: var(--radius-xl);
  margin-bottom: 16px;
}
.label-tag--center { display: block; width: fit-content; margin: 0 auto; }
.label-tag--light {
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
}

.s-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 16px;
}
.s-title--center { text-align: center; }
.s-title--light  { color: var(--white); }

.s-desc {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.8;
  max-width: 640px;
}
.s-desc--center { text-align: center; margin: 0 auto; max-width: 700px; }
.s-desc--light  { color: rgba(255,255,255,.8); }

.section-header { margin-bottom: 60px; }

/* ─── 5. 滚动入场动画 ─── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.revealed {
  opacity: 1 !important;
  transform: translate(0) !important;
}
