/* —— 夜航站点：墨青氛围 + 清晰阅读面 —— */
:root {
  --ink: #0c1a22;
  --ink-soft: #243842;
  --fog: #d7e6ef;
  --paper: #f3f7fa;
  --line: rgba(12, 26, 34, 0.1);
  --accent: #1f8a7a;
  --accent-bright: #3db8a4;
  --glow: rgba(61, 184, 164, 0.35);
  --font-display: 'Fraunces', 'Noto Serif SC', 'Songti SC', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', sans-serif;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(6, 18, 24, 0.28);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ink);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

/* 全屏氛围底 */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(90% 60% at 15% 10%, rgba(61, 184, 164, 0.28), transparent 55%),
    radial-gradient(70% 50% at 90% 0%, rgba(88, 140, 200, 0.22), transparent 50%),
    linear-gradient(165deg, #071018 0%, #0f2a33 45%, #08151c 100%);
}

.sky::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(7, 16, 24, 0.9), transparent);
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 0 0;
}

/* 顶栏 */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 48px;
  animation: rise 0.7s ease both;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: #f4faf8;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(244, 250, 248, 0.78);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: #fff;
}

/* Hero：品牌优先 */
.hero {
  min-height: min(62vh, 520px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 36px;
  animation: rise 0.85s 0.08s ease both;
}

.hero-brand {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 12vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: #f7fcfa;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.hero-sub {
  margin: 0;
  max-width: 28em;
  color: rgba(244, 250, 248, 0.78);
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #04221c;
  box-shadow: 0 10px 28px var(--glow);
}

.btn-ghost {
  color: #f4faf8;
  border-color: rgba(244, 250, 248, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

/* 内容面板 */
.panel {
  background: var(--paper);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow);
  padding: 36px 28px 28px;
  animation: rise 0.9s 0.14s ease both;
}

@media (min-width: 720px) {
  .panel {
    padding: 44px 48px 36px;
  }
}

.section + .section {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
}

.section .lead {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* 文章列表 */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-item a {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 14px;
  text-decoration: none;
  background: rgba(12, 26, 34, 0.03);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.post-item a:hover {
  border-color: rgba(31, 138, 122, 0.35);
  background: rgba(31, 138, 122, 0.06);
  transform: translateX(2px);
}

.post-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 650;
  color: var(--ink);
}

.post-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.post-excerpt {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* 项目卡片 */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.project-card {
  display: block;
  padding: 18px;
  border-radius: 14px;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(31, 138, 122, 0.08), rgba(12, 26, 34, 0.03));
  border: 1px solid rgba(31, 138, 122, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(12, 26, 34, 0.08);
}

.project-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.project-card span {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

/* 文章页 */
.article-header {
  margin-bottom: 28px;
}

.article-header h1 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.25;
}

.article-body {
  font-size: 1.02rem;
  color: var(--ink-soft);
}

.article-body p {
  margin: 0 0 1.1em;
}

.article-body h2 {
  margin: 1.6em 0 0.6em;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
}

.article-body strong {
  color: var(--ink);
  font-weight: 650;
}

/* 关于页：关注方向列表（非卡片堆砌，偏编辑排版） */
.focus-list {
  list-style: none;
  margin: 0 0 1.4em;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.focus-list li {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.focus-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.focus-list strong {
  font-size: 1.02rem;
  color: var(--ink);
}

.focus-list span {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.back-link {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.9rem;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* 页脚：备案公示 */
.site-footer {
  margin-top: 8px;
  padding: 22px 8px max(28px, env(safe-area-inset-bottom));
  text-align: center;
  color: rgba(244, 250, 248, 0.62);
  font-size: 0.8rem;
  animation: rise 1s 0.2s ease both;
}

.site-footer a {
  color: rgba(244, 250, 248, 0.78);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer .beian {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
  margin-top: 6px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
