/* ===========================
   CSS 变量 & 重置
=========================== */
:root {
  /* 色彩：深蓝夜空 + 冷白月光 + 淡金点缀 */
  --night: #080e1a;
  --deep: #0d1526;
  --card: #111927;
  --card2: #162030;
  --moon: #e8eaf6;
  --snow: #f0f4ff;
  --gold: #c9a96e;
  --gold-light: #e8c98a;
  --ice: #7eb8d4;
  --ice-light: #b3d8ec;
  --text: #dde6f0;
  --text-muted: #7a90a8;
  --border: rgba(255,255,255,0.06);
  --border-gold: rgba(201,169,110,0.25);

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 40px rgba(0,0,0,0.5);
  --transition: 0.35s ease;
  --max-width: 1080px;
  --font-serif: 'STSong', 'SimSun', 'Noto Serif SC', Georgia, serif;
  --font-sans: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--night);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===========================
   雪花画布
=========================== */
#snowCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* ===========================
   通用布局
=========================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section { padding: 100px 0; position: relative; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-ink {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.5em;
  color: var(--gold);
  margin-bottom: 16px;
  position: relative;
  padding: 0 20px;
}

.section-ink::before,
.section-ink::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.section-ink::before { right: 100%; margin-right: -16px; }
.section-ink::after  { left:  100%; margin-left:  -16px; }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  color: var(--moon);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ===========================
   按钮
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 30px;
  border-radius: 4px;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.btn-ghost {
  background: rgba(201,169,110,0.12);
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
}

.btn-ghost:hover {
  background: rgba(201,169,110,0.22);
  box-shadow: 0 0 20px rgba(201,169,110,0.15);
}

.btn-outline-white {
  background: transparent;
  color: var(--moon);
  border: 1px solid rgba(232,234,246,0.25);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(232,234,246,0.5);
}

.btn-ink {
  background: linear-gradient(135deg, #1a3a5c, #0d2640);
  color: var(--ice-light);
  border: 1px solid rgba(126,184,212,0.3);
}

.btn-ink:hover {
  background: linear-gradient(135deg, #1e4470, #112f50);
  border-color: rgba(126,184,212,0.55);
  box-shadow: 0 4px 20px rgba(126,184,212,0.15);
}

.btn-block { width: 100%; }

/* ===========================
   Header
=========================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 14px 0;
  transition: background var(--transition), border-bottom var(--transition);
}

.header.scrolled {
  background: rgba(8,14,26,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-emblem {
  font-size: 1.4rem;
  color: var(--ice);
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(126,184,212,0.6));
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--moon);
  letter-spacing: 0.15em;
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
}

.nav { display: flex; gap: 4px; }

.nav-link {
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--moon);
  background: rgba(255,255,255,0.05);
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===========================
   Hero
=========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 60% 30%, #0d2040 0%, var(--night) 70%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(126,184,212,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* 装饰月亮 */
.deco-moon {
  position: absolute;
  top: 12%;
  right: 8%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f0f0e0, #c8cce8 60%, #8090b8);
  box-shadow:
    0 0 40px rgba(200,210,240,0.25),
    0 0 100px rgba(200,210,240,0.08);
  animation: moonFloat 8s ease-in-out infinite;
}

.deco-moon::after {
  content: '';
  position: absolute;
  top: 18%; left: 20%;
  width: 35px; height: 35px;
  border-radius: 50%;
  background: rgba(100,110,150,0.18);
  box-shadow: 32px 18px 0 rgba(100,110,150,0.12), 60px 40px 0 rgba(100,110,150,0.09);
}

.hero-content {
  text-align: center;
  padding: 100px 0 140px;
  max-width: 700px;
  margin: 0 auto;
}

/* 首屏引诗 */
.hero-verse {
  font-family: var(--font-serif);
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--gold);
  letter-spacing: 0.25em;
  margin-bottom: 28px;
  opacity: 0.85;
  animation: fadeInDown 0.8s ease both;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.title-moon {
  color: var(--moon);
  text-shadow: 0 0 30px rgba(232,234,246,0.3);
}

.title-snow {
  color: var(--ice-light);
  text-shadow: 0 0 30px rgba(126,184,212,0.4);
}

.hero-desc {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: var(--text-muted);
  letter-spacing: 0.12em;
  line-height: 2;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2.5s ease-in-out infinite;
}

.scroll-arrow {
  display: block;
  width: 16px;
  height: 16px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
}

/* ===========================
   诗词区域
=========================== */
.poetry-section {
  background: linear-gradient(180deg, var(--night) 0%, var(--deep) 100%);
}

.poetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.poetry-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.poetry-card::before {
  content: '"';
  position: absolute;
  top: -10px; left: 16px;
  font-family: Georgia, serif;
  font-size: 6rem;
  color: var(--gold);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
}

.poetry-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,169,110,0.08);
}

.poetry-tag {
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  border: 1px solid var(--border-gold);
  border-radius: 2px;
  padding: 2px 10px;
  display: inline-block;
  margin-bottom: 18px;
}

.poetry-content {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 2.2;
  color: var(--text);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.poetry-content em {
  font-style: normal;
  color: var(--ice-light);
}

.poetry-author {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ===========================
   散文区域
=========================== */
.essays-section {
  background: var(--deep);
}

/* 精选文章 */
.featured-essay {
  background: var(--card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}

.featured-essay::after {
  content: '精选';
  position: absolute;
  top: 20px; right: 20px;
  font-size: 0.72rem;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  border-radius: 2px;
  padding: 2px 10px;
  letter-spacing: 0.15em;
}

.featured-essay:hover {
  border-color: rgba(201,169,110,0.5);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 30px rgba(201,169,110,0.05);
}

.featured-essay .essay-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--moon);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.featured-essay .essay-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 2;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-essay .essay-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 文章列表 */
.essays-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.essay-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  transition: all var(--transition);
}

.essay-item:hover {
  border-color: var(--border-gold);
  transform: translateX(4px);
  background: var(--card2);
}

.essay-date-block {
  text-align: center;
  min-width: 52px;
  flex-shrink: 0;
}

.essay-day {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
}

.essay-month {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.essay-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

.essay-body { flex: 1; min-width: 0; }

.essay-item .essay-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.essay-item .essay-excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.essay-arrow {
  font-size: 1rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition), color var(--transition);
}

.essay-item:hover .essay-arrow {
  transform: translateX(4px);
  color: var(--gold);
}

.load-more-wrap { text-align: center; }

/* ===========================
   四季区域
=========================== */
.seasons-section {
  background: linear-gradient(180deg, var(--deep) 0%, var(--night) 100%);
}

.seasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.season-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.season-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity var(--transition);
}

.season-card.spring::before  { background: linear-gradient(90deg, #f9a8d4, #fbcfe8); }
.season-card.summer::before  { background: linear-gradient(90deg, #6ee7b7, #34d399); }
.season-card.autumn::before  { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.season-card.winter::before  { background: linear-gradient(90deg, var(--ice), var(--ice-light)); }

.season-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(255,255,255,0.1);
}

.season-card:hover::before { opacity: 1; }

.season-icon { font-size: 2.2rem; margin-bottom: 14px; }

.season-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--moon);
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}

.season-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.9;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.season-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 3px 12px;
  letter-spacing: 0.15em;
}

/* ===========================
   联系区域
=========================== */
.contact-section { background: var(--night); }

.contact-wrap {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.form-group input,
.form-group textarea {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(126,184,212,0.4);
  box-shadow: 0 0 0 3px rgba(126,184,212,0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #3d5068; }

.form-error {
  font-size: 0.76rem;
  color: #f87171;
  min-height: 18px;
}

.form-success {
  display: none;
  text-align: center;
  color: var(--ice-light);
  font-size: 0.88rem;
  padding: 12px;
  background: rgba(126,184,212,0.08);
  border: 1px solid rgba(126,184,212,0.2);
  border-radius: var(--radius);
  letter-spacing: 0.05em;
}

/* ===========================
   页脚
=========================== */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 52px 0 32px;
}

.footer-top {
  text-align: center;
  margin-bottom: 28px;
}

.footer-emblem {
  display: block;
  font-size: 1.8rem;
  color: var(--ice);
  margin-bottom: 10px;
  filter: drop-shadow(0 0 8px rgba(126,184,212,0.4));
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--moon);
  letter-spacing: 0.3em;
  margin-bottom: 10px;
}

.footer-poem {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
}

.footer-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ICP 备案号 — 底部中央 */
.footer-icp { font-size: 0.8rem; }

.footer-icp a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color var(--transition), border-color var(--transition);
}

.footer-icp a:hover {
  color: var(--ice-light);
  border-bottom-color: var(--ice-light);
}

/* ===========================
   动画
=========================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes moonFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-12px) rotate(2deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   响应式
=========================== */
@media (max-width: 900px) {
  .seasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(8,14,26,0.97);
    backdrop-filter: blur(14px);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav.open { display: flex; }
  .menu-btn { display: flex; }

  .deco-moon {
    width: 100px;
    height: 100px;
    top: 8%;
    right: 4%;
  }

  .featured-essay { padding: 28px 24px; }

  .form-row { grid-template-columns: 1fr; }

  .section { padding: 64px 0; }
}

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

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .essay-item { flex-direction: column; align-items: flex-start; gap: 12px; }
  .essay-divider { display: none; }
  .essay-date-block { display: flex; align-items: baseline; gap: 6px; }
}
