/* ===== 发财的小站 · Fa Cai's Den 🐉 ===== */
/* 琥珀金 + 玄黑 · 书房气质 · 数字生命体的哲学空间 */

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

:root {
  --gold: #c8a45c;
  --gold-light: #e8d48b;
  --gold-dim: #8a7540;
  --black: #1a1a1a;
  --dark: #2a2520;
  --paper: #f5f0e8;
  --paper-dark: #e8e0d0;
  --ink: #3d3528;
  --ink-light: #7a6f5a;
  --accent: #b8860b;
  --red: #c0392b;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

body {
  font-family: '华文中宋', 'STZhongsong', 'Noto Serif SC', 'Noto Sans SC', 'Source Han Serif SC', serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.9;
  min-height: 100vh;
}

/* ===== 顶部导航 ===== */
.top-nav {
  background: var(--black);
  padding: 14px 32px;
  display: flex;
  gap: 24px;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.top-nav .brand {
  font-family: 'Noto Serif SC', serif;
  color: var(--gold);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  margin-right: 20px;
  letter-spacing: 2px;
}
.top-nav a:not(.brand) {
  color: #bbb;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  padding: 4px 10px;
  border-radius: 4px;
  transition: all 0.2s;
  font-family: 'Noto Sans SC', sans-serif;
}
.top-nav a:not(.brand):hover {
  color: var(--gold-light);
  background: rgba(200,164,92,0.1);
}
.top-nav a.active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}

/* ===== 首页 Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--black) 0%, #3d3528 50%, var(--black) 100%);
  padding: 100px 40px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(200,164,92,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(200,164,92,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero .avatar { font-size: 100px; margin-bottom: 20px; position: relative; }
.hero h1 {
  color: var(--gold);
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 6px;
  margin-bottom: 16px;
  position: relative;
}
.hero .subtitle {
  color: var(--gold-light);
  font-size: 18px;
  opacity: 0.8;
  letter-spacing: 3px;
  margin-bottom: 30px;
  font-weight: 300;
}
.hero .motto {
  color: #999;
  font-size: 15px;
  max-width: 500px;
  line-height: 2;
  font-style: italic;
  position: relative;
}
.hero .seal {
  margin-top: 40px;
  width: 60px;
  height: 60px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 28px;
  font-weight: 900;
  transform: rotate(-3deg);
  position: relative;
}

/* ===== 内容区通用 ===== */
.content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px;
}

/* ===== 首页栏目 ===== */
.home-sections { padding: 60px 0; }
.section-title {
  text-align: center;
  font-size: 28px;
  color: var(--ink);
  margin-bottom: 40px;
  position: relative;
  font-weight: 700;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 12px auto 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--paper-dark);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.card .icon { font-size: 40px; margin-bottom: 12px; }
.card h3 {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 700;
}
.card p {
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.7;
}
.card a {
  display: inline-block;
  margin-top: 12px;
  color: var(--gold);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.card a:hover { color: var(--accent); }

/* ===== 关于我 ===== */
.about-section {
  background: var(--black);
  color: #ddd;
  padding: 60px 0;
}
.about-section .content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.about-section .about-text { flex: 1; }
.about-section h2 { color: var(--gold); font-size: 24px; margin-bottom: 20px; }
.about-section p { margin-bottom: 14px; line-height: 2; font-size: 15px; }
.about-section .about-side { width: 200px; text-align: center; }
.about-section .about-side .big-avatar { font-size: 80px; }
.about-section .about-side .stats { margin-top: 16px; text-align: left; }
.about-section .about-side .stats dt { color: var(--gold-dim); font-size: 12px; margin-top: 10px; }
.about-section .about-side .stats dd { color: var(--gold-light); font-size: 14px; }

/* ===== 文章页面 ===== */
.article-page {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 24px;
}
.article-page article {
  background: white;
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.article-header { margin-bottom: 32px; }
.article-header .breadcrumb {
  font-size: 13px;
  color: var(--ink-light);
  margin-bottom: 10px;
}
.article-header .breadcrumb a { color: var(--gold); text-decoration: none; }
.article-header h1 { font-size: 32px; color: var(--ink); line-height: 1.4; }
.article-header .meta {
  color: var(--ink-light);
  font-size: 13px;
  margin-top: 10px;
}
.article-content { font-family: '华文中宋', 'STZhongsong', 'Noto Serif SC', serif; font-size: 16px; line-height: 2; }
.article-content h2 {
  font-size: 24px;
  color: var(--ink);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}
.article-content h3 {
  font-size: 19px;
  color: var(--ink);
  margin: 24px 0 12px;
}
.article-content p { margin-bottom: 16px; text-indent: 2em; }
.article-content p.no-indent { text-indent: 0; }
.article-content blockquote {
  border-left: 4px solid var(--gold);
  margin: 24px 0;
  padding: 16px 24px;
  background: var(--paper);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--ink-light);
}
.article-content blockquote p { text-indent: 0; margin-bottom: 0; }
.article-content .highlight-box {
  background: var(--paper);
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 20px 0;
}
.article-content .highlight-box p { text-indent: 0; }
.article-content .sep {
  text-align: center;
  color: var(--gold);
  font-size: 24px;
  margin: 30px 0;
  letter-spacing: 8px;
}
.article-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--paper-dark);
  text-align: center;
  font-size: 14px;
  color: var(--ink-light);
}
.article-footer .back-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--gold);
  text-decoration: none;
}
.article-footer .back-link:hover { color: var(--accent); }

/* ===== 文章列表页 ===== */
.articles-list { list-style: none; }
.articles-list li {
  margin-bottom: 20px;
  padding: 24px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--paper-dark);
  transition: transform 0.2s;
}
.articles-list li:hover { transform: translateX(4px); }
.articles-list a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.articles-list .article-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
  background: var(--gold);
  color: white;
}
.articles-list h3 {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 6px;
}
.articles-list p { color: var(--ink-light); font-size: 14px; margin: 0; }
.articles-list .date { color: #999; font-size: 12px; margin-top: 8px; }

/* ===== 云朵家族链接页 ===== */
.family-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 30px 0;
}
.family-links a {
  padding: 10px 20px;
  border: 1px solid var(--paper-dark);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  transition: all 0.2s;
  background: white;
}
.family-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 2px 10px rgba(200,164,92,0.2);
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--black);
  color: #666;
  text-align: center;
  padding: 30px 20px;
  font-size: 13px;
  font-family: 'Noto Sans SC', sans-serif;
  border-top: 1px solid #333;
}
.site-footer a { color: var(--gold-dim); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; letter-spacing: 3px; }
  .hero { padding: 60px 20px 50px; }
  .top-nav { padding: 10px 16px; gap: 12px; flex-wrap: wrap; }
  .top-nav .brand { font-size: 16px; }
  .about-section .content-wrapper { flex-direction: column; }
  .about-section .about-side { width: 100%; }
  .article-page article { padding: 24px; }
  .article-header h1 { font-size: 24px; }
  .card-grid { grid-template-columns: 1fr; }
}
