/* ==========================================================================
   GW树洞 - 核心视觉与布局规范
   视觉概念：黄昏时分的林间空地——安静、温暖、安全。像坐在燃着一支蜡烛的树洞里。
   色彩体系：
   - 页面背景：深林绿 #16241C
   - 卡片表面：#1E3226
   - 主操作色：琥珀 #E8A24B（烛光微光）
   - 苔藓绿点缀：#7FA98C
   - 正文：暖奶油色 #F2EBDD
   - 次要文字：#A9B7A0
   ========================================================================== */

:root {
  --bg-deep-forest: #16241C;
  --bg-card: #1E3226;
  --bg-card-subtle: #243B2E;
  --amber-candle: #E8A24B;
  --amber-candle-hover: #F2B363;
  --moss-green: #7FA98C;
  --text-cream: #F2EBDD;
  --text-muted: #A9B7A0;
  --border-soft: rgba(127, 169, 140, 0.18);
  --border-candle: rgba(232, 162, 75, 0.35);
  
  --font-serif: "Fraunces", "Noto Serif SC", serif;
  --font-sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --line-height-body: 1.9;
  --max-content-width: 680px;
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--bg-deep-forest);
  color: var(--text-cream);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep-forest);
  color: var(--text-cream);
  line-height: var(--line-height-body);
  letter-spacing: 0.02em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 链接基础样式 */
a {
  color: var(--moss-green);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover, a:focus {
  color: var(--amber-candle);
}

/* 导航栏 */
.site-header {
  width: 100%;
  border-bottom: 1px solid var(--border-soft);
  background-color: rgba(22, 36, 28, 0.94);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-cream);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.brand-link:hover {
  color: var(--amber-candle);
}

.brand-logo-svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 4px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--amber-candle);
}

.nav-link.highlight {
  color: var(--moss-green);
  border-bottom: 1px solid var(--moss-green);
}

.nav-link.highlight:hover {
  color: var(--amber-candle);
  border-bottom-color: var(--amber-candle);
}

/* 页面主容器 - 窄的居中单栏，最大 680px */
.content-wrapper {
  width: 100%;
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 36px 20px 80px 20px;
  flex: 1;
}

/* 首屏区域 */
.hero-quiet {
  text-align: center;
  padding: 32px 0 44px 0;
}

.hero-logo-box {
  display: inline-block;
  margin-bottom: 20px;
}

.hero-quiet-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-cream);
  margin-bottom: 14px;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--moss-green);
  margin-bottom: 18px;
}

.hero-intro {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: var(--line-height-body);
  margin: 0 auto 28px auto;
  text-align: justify;
  text-align-last: center;
}

/* 按钮组 */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  margin-top: 10px;
}

/* 烛光主按钮 */
.btn-amber-candle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--amber-candle);
  color: #16241C;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 15px 28px;
  border-radius: 20px;
  transition: background-color 0.2s ease, transform 0.15s ease;
  min-height: 52px;
  letter-spacing: 0.04em;
  text-align: center;
}

.btn-amber-candle:hover {
  background-color: var(--amber-candle-hover);
  color: #16241C;
  transform: translateY(-1px);
}

/* 次要博客推荐按钮（dofollow） */
.btn-subtle-moss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(127, 169, 140, 0.12);
  color: var(--text-cream);
  border: 1px solid var(--border-soft);
  font-size: 0.98rem;
  padding: 13px 24px;
  border-radius: 20px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  min-height: 50px;
  text-align: center;
}

.btn-subtle-moss:hover {
  background-color: rgba(127, 169, 140, 0.22);
  border-color: var(--moss-green);
  color: var(--amber-candle);
}

/* 树洞发帖静谧框 */
.treehole-confession-box {
  background-color: var(--bg-card);
  border-radius: 20px;
  padding: 24px;
  margin: 36px 0;
  border: 1px solid var(--border-soft);
}

.treehole-confession-label {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--moss-green);
  margin-bottom: 12px;
}

.treehole-input-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.treehole-input {
  width: 100%;
  background-color: var(--bg-deep-forest);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.95rem;
  color: var(--text-cream);
  font-family: var(--font-sans);
  line-height: 1.6;
  resize: vertical;
  min-height: 84px;
  transition: border-color 0.2s ease;
}

.treehole-input:focus {
  outline: none;
  border-color: var(--amber-candle);
}

.treehole-input::placeholder {
  color: rgba(169, 183, 160, 0.6);
}

.treehole-input-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.treehole-echo-tip {
  color: var(--text-muted);
}

/* 分隔静止线 */
.quiet-divider {
  border: 0;
  height: 1px;
  background-color: var(--border-soft);
  margin: 48px 0;
}

/* 章节通用标题 */
.section-header {
  margin-bottom: 24px;
  text-align: left;
}

.section-tag {
  font-size: 0.85rem;
  color: var(--moss-green);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-cream);
  line-height: 1.4;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* 卡片通用规范：20px 圆角，无描边，表面只比背景略亮 */
.whisper-card {
  background-color: var(--bg-card);
  border-radius: 20px;
  padding: 26px 24px;
  margin-bottom: 20px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.whisper-card:hover {
  background-color: var(--bg-card-subtle);
}

.whisper-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.whisper-card-index {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--moss-green);
  letter-spacing: 0.05em;
}

.whisper-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-cream);
  font-weight: 600;
  margin-bottom: 10px;
}

.whisper-card-text {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: var(--line-height-body);
}

/* 流媒体与 AI 支持图卡 */
.media-ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.media-ai-card {
  background-color: var(--bg-card);
  border-radius: 20px;
  padding: 22px 20px;
}

.media-ai-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--amber-candle);
  margin-bottom: 10px;
  font-weight: 600;
}

.media-ai-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.media-badge {
  background-color: rgba(22, 36, 28, 0.8);
  border: 1px solid var(--border-soft);
  color: var(--text-cream);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
}

/* 价格对比表 */
.pricing-section {
  margin: 36px 0;
}

.pricing-table-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.price-card {
  background-color: var(--bg-card);
  border-radius: 20px;
  padding: 28px 24px;
  position: relative;
  transition: transform 0.2s ease;
}

.price-card.featured {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-candle);
}

.price-badge-top {
  position: absolute;
  top: -12px;
  right: 24px;
  background-color: var(--amber-candle);
  color: #16241C;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 12px;
  letter-spacing: 0.05em;
}

.price-card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-cream);
  font-weight: 600;
  margin-bottom: 8px;
}

.price-amount-box {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 16px;
}

.price-symbol {
  font-size: 1.2rem;
  color: var(--amber-candle);
}

.price-number {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--amber-candle);
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price-feature-list {
  list-style: none;
  margin-bottom: 22px;
}

.price-feature-item {
  font-size: 0.95rem;
  color: var(--text-cream);
  padding: 7px 0;
  border-bottom: 1px dashed rgba(127, 169, 140, 0.15);
  display: flex;
  justify-content: space-between;
}

.price-feature-item:last-child {
  border-bottom: none;
}

.price-feature-label {
  color: var(--text-muted);
}

.price-feature-val {
  color: var(--text-cream);
  font-weight: 500;
}

/* 常见问题解答 (FAQ) */
.faq-item {
  background-color: var(--bg-card);
  border-radius: 20px;
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 22px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-cream);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--amber-candle);
}

.faq-indicator {
  color: var(--moss-green);
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.faq-answer {
  padding: 0 22px 22px 22px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: var(--line-height-body);
}

/* 用户评价 */
.testimonial-card {
  background-color: var(--bg-card);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 16px;
}

.testimonial-quote {
  font-size: 0.96rem;
  color: var(--text-cream);
  line-height: var(--line-height-body);
  margin-bottom: 14px;
  font-style: normal;
}

.testimonial-author-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.testimonial-author {
  color: var(--moss-green);
  font-weight: 500;
}

.testimonial-tag {
  color: var(--text-muted);
}

/* 页脚：极简且仅保留四个标题，在新页面展示 */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background-color: var(--bg-deep-forest);
  padding: 40px 20px;
  margin-top: 40px;
}

.footer-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 24px;
}

.footer-link {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-cream);
  padding: 6px 4px;
  position: relative;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--amber-candle);
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* 文章详情与资讯列表专用样式 */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-item-card {
  background-color: var(--bg-card);
  border-radius: 20px;
  padding: 28px 24px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.article-item-card:hover {
  background-color: var(--bg-card-subtle);
}

.article-meta {
  font-size: 0.85rem;
  color: var(--moss-green);
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
}

.article-item-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-cream);
  line-height: 1.45;
  margin-bottom: 12px;
}

.article-item-title a {
  color: var(--text-cream);
}

.article-item-title a:hover {
  color: var(--amber-candle);
}

.article-item-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 14px;
}

.article-full-content {
  font-size: 0.98rem;
  color: var(--text-cream);
  line-height: 1.95;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-soft);
}

.article-full-content h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--amber-candle);
  margin: 20px 0 10px 0;
}

.article-full-content p {
  margin-bottom: 14px;
  color: var(--text-cream);
}

.article-inline-link {
  color: var(--amber-candle);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-inline-link:hover {
  color: var(--amber-candle-hover);
}

/* 独立单页专用样式 (关于我们、服务条款、隐私政策、网站地图) */
.page-title-box {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
}

.page-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--text-cream);
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.doc-section {
  margin-bottom: 30px;
}

.doc-section-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--amber-candle);
  margin-bottom: 12px;
}

.doc-text {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: var(--line-height-body);
  margin-bottom: 12px;
}

.doc-list {
  list-style: square inside;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 16px;
}

/* 响应式适配 @media */
@media (max-width: 640px) {
  .header-container {
    padding: 14px 16px;
  }
  
  .brand-link {
    font-size: 1.05rem;
  }
  
  .site-nav {
    gap: 12px;
  }
  
  .nav-link {
    font-size: 0.85rem;
  }

  .content-wrapper {
    padding: 24px 16px 60px 16px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .media-ai-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    gap: 18px;
  }

  .btn-amber-candle, .btn-subtle-moss {
    width: 100%;
  }
}
