/* ===== 基础 ===== */
:root {
  --bg: #0a0a0c;
  --bg-alt: #111115;
  --bg-card: #16161b;
  --text: #d4d0c8;
  --text-dim: #88847c;
  --text-fade: #5c5852;
  --accent: #c9a96e;
  --accent-dim: #8b7348;
  --border: #222228;
  --border-light: #2a2a30;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Serif SC", "Source Han Serif SC", "SimSun", "STSong", "Songti SC", Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ===== 导航 ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
  letter-spacing: 0.08em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* ===== 首屏（主页） ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201, 169, 110, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(201, 169, 110, 0.02) 0%, transparent 60%);
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.hero-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-dim);
  box-shadow: 0 0 40px rgba(201, 169, 110, 0.1);
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-greeting {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  letter-spacing: 0.2em;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.title-line {
  display: block;
}

.title-line.accent {
  color: var(--accent);
  font-weight: 500;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-dim);
  margin-bottom: 4rem;
  font-style: italic;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-fade);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

@media (max-width: 480px) {
  .hero-avatar {
    width: 96px;
    height: 96px;
  }
}

/* ===== 子页面首屏 ===== */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 2rem;
  padding-top: 5rem;
}

.page-module-label {
  font-size: 0.85rem;
  color: var(--accent-dim);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.page-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
}

.page-hero-sub {
  font-size: 1rem;
  color: var(--text-dim);
  font-style: italic;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== 通用区块 ===== */
.section {
  padding: 6rem 2rem;
}

.section-dark {
  background: var(--bg-alt);
}

.section-inner {
  max-width: 800px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 0.12em;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 1.2rem auto 0;
}

/* ===== 主页 - 语录墙 ===== */
.quote-wall {
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.wall-quote {
  border-left: 2px solid var(--accent-dim);
  padding: 1rem 0 1rem 1.5rem;
}

.wall-quote p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.9;
  font-style: italic;
}

/* ===== 主页 - 个人介绍 ===== */
.intro-block {
  max-width: 650px;
  margin: 0 auto;
}

.intro-block p {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 2.1;
  margin-bottom: 1.5rem;
  text-align: center;
}

.intro-block p strong {
  color: var(--accent);
  font-weight: 500;
}

/* ===== 引用来源标签 ===== */
.quote-source {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.source-me {
  background: rgba(201, 169, 110, 0.12);
  color: var(--accent);
  border: 1px solid rgba(201, 169, 110, 0.2);
}

/* ===== AI 回响区块 ===== */
.echo-block {
  border-left: 2px solid var(--border-light);
  padding-left: 1.5rem;
}

.echo-block p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 2.1;
  margin-bottom: 1.2rem;
}

.echo-block p strong {
  color: var(--text);
  font-weight: 500;
}

/* ===== 主页 - 模块导航卡片 ===== */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.4s, transform 0.4s;
  display: flex;
  flex-direction: column;
}

.module-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
}

.module-icon {
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.module-card h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.3rem;
  letter-spacing: 0.08em;
}

.module-sub {
  font-size: 0.8rem;
  color: var(--accent-dim);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.module-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.8;
  flex: 1;
  margin-bottom: 1.5rem;
}

.module-arrow {
  font-size: 0.85rem;
  color: var(--accent);
  transition: transform 0.3s;
}

.module-card:hover .module-arrow {
  transform: translateX(4px);
}

/* ===== 子页面 - 内容块 ===== */
.content-block {
  max-width: 650px;
  margin: 0 auto;
}

.content-quote-large {
  text-align: center;
  padding: 2rem 0;
}

.content-quote-large p {
  font-size: 1.2rem;
  color: var(--text);
  font-style: italic;
  line-height: 2;
  position: relative;
}

.content-quote-large p::before {
  content: '"';
  color: var(--accent);
  font-size: 2rem;
  position: absolute;
  left: -1.5rem;
  top: -0.5rem;
}

.content-quote-large p::after {
  content: '"';
  color: var(--accent);
  font-size: 2rem;
  position: absolute;
  right: -1.5rem;
  bottom: -1.5rem;
}

.content-passage p {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 2.1;
  margin-bottom: 1.2rem;
}

.content-passage p strong {
  color: var(--text);
  font-weight: 500;
}

.passage-footnote {
  font-size: 0.9rem !important;
  color: var(--text-fade) !important;
  font-style: italic;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* ===== 页脚 ===== */
.footer {
  padding: 6rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}

.footer-quote {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

.footer-cogito {
  font-size: 0.9rem;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 2rem;
}

.footer-sub {
  font-size: 0.85rem;
  color: var(--text-fade);
}

.footer-back {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-back:hover {
  color: var(--accent);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .module-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 1rem;
  }

  .section {
    padding: 4rem 1.5rem;
  }

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

  .page-hero {
    min-height: 40vh;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 0.8rem;
    font-size: 0.8rem;
  }
}

/* ===== 滚动渐入动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}