/* ============================================
   泉田酿 · 山泉笔记  博客样式
   配色：山泉青 / 米白 / 墨绿 / 暖棕 / 水蓝
   ============================================ */

:root {
  --spring: #4A7C7E;       /* 山泉青 */
  --spring-light: #A8D5D8; /* 水蓝 */
  --spring-deep: #2D5F5E;  /* 深泉 */
  --moss: #2D4A3E;         /* 墨绿 */
  --earth: #8B6F47;        /* 暖棕 */
  --cream: #FAF8F3;        /* 米白底 */
  --paper: #FFFEFB;        /* 纸白 */
  --ink: #2C3338;          /* 墨色文字 */
  --ink-soft: #5A6560;     /* 柔墨 */
  --line: #E8E4DC;         /* 分割线 */
  --shadow: 0 2px 20px rgba(74, 124, 126, 0.08);
  --shadow-hover: 0 6px 30px rgba(74, 124, 126, 0.15);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--spring); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--spring-deep); }

/* === 导航栏 === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--moss);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo .spring-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--spring-light);
  box-shadow: 0 0 0 3px rgba(168, 213, 216, 0.3);
}
.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  position: relative;
  padding: 0.3rem 0;
}
.nav-links a:hover { color: var(--spring); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--spring-light);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.nav-toggle { display: none; }

/* === 首页 Hero === */
.hero {
  position: relative;
  padding: 6rem 2rem 5rem;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(168, 213, 216, 0.15) 0%, transparent 60%);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero-tag {
  display: inline-block;
  padding: 0.3rem 1.2rem;
  background: rgba(168, 213, 216, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--spring-deep);
  font-family: "Noto Sans SC", sans-serif;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--moss);
  line-height: 1.3;
  margin-bottom: 1rem;
}
.hero h1 .accent { color: var(--spring); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  background: var(--spring);
  color: white;
  border-radius: 100px;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(74, 124, 126, 0.25);
}
.hero-cta:hover {
  background: var(--spring-deep);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 124, 126, 0.35);
}

/* 水波纹装饰 */
.wave-divider {
  width: 100%;
  height: 40px;
  line-height: 0;
}
.wave-divider svg { width: 100%; height: 40px; display: block; }

/* === 板块通用 === */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  font-size: 1.8rem;
  color: var(--moss);
  margin-bottom: 0.5rem;
}
.section-title p {
  color: var(--ink-soft);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.95rem;
}
.section-title .line {
  width: 40px;
  height: 3px;
  background: var(--spring-light);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* === 品牌故事卡 === */
.story-section { background: var(--paper); }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.story-text h3 {
  font-size: 1.5rem;
  color: var(--moss);
  margin-bottom: 1rem;
}
.story-text p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}
.story-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 300px;
  background: linear-gradient(135deg, var(--spring-light), var(--spring));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.story-visual-inner {
  text-align: center;
  color: white;
  padding: 2rem;
}
.story-visual-inner .tds-num {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
}
.story-visual-inner .tds-label {
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 0.5rem;
}
.story-visual-inner .tds-desc {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 1rem;
  font-family: "Noto Sans SC", sans-serif;
}

/* === 栏目卡片 === */
.columns-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}
.column-card {
  background: var(--paper);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--line);
  transition: all 0.3s;
  cursor: pointer;
}
.column-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--spring-light);
}
.column-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.column-card h4 {
  font-size: 1.1rem;
  color: var(--moss);
  margin-bottom: 0.5rem;
}
.column-card p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-family: "Noto Sans SC", sans-serif;
}

/* === 文章列表 === */
.articles-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.article-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  background: var(--paper);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.3s;
}
.article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.article-thumb {
  background: linear-gradient(135deg, var(--spring-light), var(--spring));
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  position: relative;
  overflow: hidden;
}
.article-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.article-thumb .article-thumb-inner {
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.article-thumb-inner {
  text-align: center;
  color: white;
}
.article-thumb-inner .thumb-icon { font-size: 2.5rem; }
.article-thumb-inner .thumb-cat {
  font-size: 0.75rem;
  font-family: "Noto Sans SC", sans-serif;
  opacity: 0.9;
  margin-top: 0.3rem;
}
.article-body { padding: 1.5rem 1.5rem 1.5rem 0; }
.article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-family: "Noto Sans SC", sans-serif;
  margin-bottom: 0.6rem;
}
.article-meta .cat {
  background: rgba(74, 124, 126, 0.1);
  color: var(--spring);
  padding: 0.1rem 0.8rem;
  border-radius: 100px;
}
.article-body h3 {
  font-size: 1.35rem;
  color: var(--moss);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.article-body h3 a { color: inherit; }
.article-body h3 a:hover { color: var(--spring); }
.article-excerpt {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-readmore {
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.85rem;
  color: var(--spring);
}

/* === 文章正文页 === */
.article-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.article-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.article-header .cat-badge {
  display: inline-block;
  background: rgba(74, 124, 126, 0.1);
  color: var(--spring);
  padding: 0.3rem 1.2rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-family: "Noto Sans SC", sans-serif;
  margin-bottom: 1rem;
}
.article-header h1 {
  font-size: 2.2rem;
  color: var(--moss);
  line-height: 1.35;
  margin-bottom: 0.8rem;
}
.article-header .subtitle {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.article-header .meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-family: "Noto Sans SC", sans-serif;
}
.article-content {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--ink);
}
.article-content h3 {
  font-size: 1.35rem;
  color: var(--moss);
  margin: 2.5rem 0 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--spring-light);
}
.article-content p { margin-bottom: 1.3rem; }
.article-content strong { color: var(--spring-deep); }
.article-content blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.5rem;
  background: rgba(168, 213, 216, 0.1);
  border-left: 4px solid var(--spring);
  border-radius: 0 8px 8px 0;
  color: var(--ink-soft);
  font-style: italic;
}

/* 配图占位 */
.fig-placeholder {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #E8F0EE, #D5E5E3);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--spring-deep);
  font-family: "Noto Sans SC", sans-serif;
  border: 1px solid var(--line);
}
.fig-placeholder .fig-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.fig-placeholder .fig-caption { font-size: 0.85rem; color: var(--ink-soft); padding: 0 1rem; text-align: center; }

/* 真实配图 */
figure.fig {
  margin: 2rem 0;
  text-align: center;
}
figure.fig img {
  width: 100%;
  max-width: 680px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: block;
  margin: 0 auto;
}
figure.fig figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-family: "Noto Sans SC", sans-serif;
  line-height: 1.6;
}

/* CTA框 */
.cta-box {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(168, 213, 216, 0.15), rgba(74, 124, 126, 0.08));
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(74, 124, 126, 0.15);
}
.cta-box p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  font-family: "Noto Sans SC", sans-serif;
}
.cta-box .cta-btn {
  display: inline-block;
  padding: 0.7rem 2rem;
  background: var(--spring);
  color: white;
  border-radius: 100px;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s;
}
.cta-box .cta-btn:hover { background: var(--spring-deep); color: white; }

/* 文章导航 */
.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.9rem;
}

/* === 关于页 === */
.about-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.about-hero {
  text-align: center;
  margin-bottom: 3rem;
}
.about-hero h1 {
  font-size: 2.5rem;
  color: var(--moss);
  margin-bottom: 0.5rem;
}
.about-hero .tagline {
  font-size: 1.1rem;
  color: var(--spring);
  font-family: "Noto Sans SC", sans-serif;
}
.about-section { margin-bottom: 3rem; }
.about-section h2 {
  font-size: 1.5rem;
  color: var(--moss);
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--spring-light);
}
.about-section p {
  margin-bottom: 1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.about-assets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.asset-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.2rem;
}
.asset-card .asset-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.asset-card h4 { font-size: 1rem; color: var(--moss); margin-bottom: 0.3rem; }
.asset-card p { font-size: 0.85rem; color: var(--ink-soft); font-family: "Noto Sans SC", sans-serif; }

/* === 页脚 === */
.footer {
  background: var(--moss);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 2rem 2rem;
  font-family: "Noto Sans SC", sans-serif;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand h4 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-family: "Noto Serif SC", serif;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.7; }
.footer-col h5 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* === 响应式 === */
@media (max-width: 900px) {
  .columns-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; }
  .article-card { grid-template-columns: 1fr; }
  .article-thumb { min-height: 120px; }
  .article-body { padding: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .about-assets { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
  }
  .nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--moss);
    border-radius: 2px;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .section { padding: 3rem 1.5rem; }
  .columns-grid { grid-template-columns: 1fr; }
  .article-page, .about-page { padding: 2rem 1.2rem 4rem; }
  .article-header h1 { font-size: 1.7rem; }
  .footer-inner { grid-template-columns: 1fr; }
}
