/* =====================================================
   元界赏 · 个人介绍站(备案审核用)
   纯静态、零外部依赖:字体走系统栈,图标为内联 SVG
   目录:
   01 设计变量 / 02 基础 / 03 顶部导航 / 04 首屏
   05 通用区块 / 06 关于作品 / 07 卡片体系 / 08 创作历程
   09 站点实现 / 10 更新日志 / 11 常见问题 / 12 站点声明
   13 备案信息 / 14 页脚 / 15 返回顶部 / 16 动画 / 17 响应式
   ===================================================== */

/* ---------- 01 设计变量 ---------- */

:root {
  --ink: #1e2533;
  --muted: #5c6575;
  --faint: #8a93a5;
  --accent: #3b5bdb;
  --accent-deep: #2f4bc0;
  --accent-soft: #eef2ff;
  --line: #e3e8f0;
  --bg: #f7f8fc;
  --card: #ffffff;
  --shadow-sm: 0 1px 3px rgba(30, 37, 51, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(30, 37, 51, 0.16);
  --radius: 14px;
  --header-h: 68px;
}

/* ---------- 02 基础 ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(59, 91, 219, 0.18); }

.container {
  width: min(1000px, calc(100% - 48px));
  margin: 0 auto;
}

strong { color: var(--accent-deep); font-weight: 600; }

/* ---------- 03 顶部导航 ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(247, 248, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #6d8dff);
  color: #fff;
  font-size: 20px;
  font-family: Georgia, "STZhongsong", serif;
  box-shadow: 0 4px 12px -4px rgba(59, 91, 219, 0.55);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: 0.06em; }
.brand-domain { font-size: 11px; color: var(--faint); letter-spacing: 0.02em; }

.site-nav { display: flex; gap: 2px; }

.nav-link {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover { color: var(--accent); background: var(--accent-soft); }
.nav-link.is-active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

/* ---------- 04 首屏 ---------- */

.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}

.hero-bg::before {
  width: 520px;
  height: 520px;
  left: -140px;
  top: -80px;
  background: radial-gradient(circle, #c3d0ff 0%, transparent 70%);
}

.hero-bg::after {
  width: 620px;
  height: 620px;
  right: -180px;
  bottom: -160px;
  background: radial-gradient(circle, #dcefff 0%, transparent 70%);
}

.hero-inner { position: relative; padding: calc(var(--header-h) + 40px) 0 80px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2fbf71;
  box-shadow: 0 0 0 4px rgba(47, 191, 113, 0.15);
}

.hero-title {
  margin-top: 28px;
  font-size: clamp(52px, 9vw, 88px);
  font-weight: 800;
  letter-spacing: 0.12em;
  background: linear-gradient(120deg, #1e2533 20%, var(--accent) 75%, #7ba0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
}

.hero-subtitle {
  margin-top: 14px;
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--muted);
  letter-spacing: 0.08em;
}

.hero-domain {
  margin-top: 10px;
  font-size: 14px;
  color: var(--faint);
  letter-spacing: 0.18em;
  font-family: "Consolas", "Courier New", monospace;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 30px;
  border-radius: 999px;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #5c7dff);
  box-shadow: 0 10px 24px -10px rgba(59, 91, 219, 0.65);
}

.btn-primary:hover { box-shadow: 0 14px 28px -10px rgba(59, 91, 219, 0.75); transform: translateY(-1px); }

.btn-ghost {
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }

.hero-stats {
  margin-top: 26px;
  font-size: 13px;
  color: var(--faint);
  letter-spacing: 0.12em;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 22px;
  height: 36px;
  margin-left: -11px;
  border: 2px solid var(--faint);
  border-radius: 12px;
}

.hero-scroll::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--faint);
  animation: scroll-hint 1.8s ease-in-out infinite;
}

@keyframes scroll-hint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(9px); opacity: 0.2; }
}

/* ---------- 05 通用区块 ---------- */

.section { padding: 88px 0; }

.section-alt {
  background: linear-gradient(180deg, #eef1f8 0%, #f2f4fa 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { text-align: center; margin-bottom: 44px; }

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 18px;
  border-radius: 999px;
}

.section-title {
  margin-top: 16px;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-desc {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- 06 关于作品 ---------- */

.about-body {
  max-width: 780px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(28px, 5vw, 48px);
  font-size: 16px;
}

.about-h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.22em;
  margin: 30px 0 10px;
}

.about-h3:first-child { margin-top: 0; }

.about-body p + p { margin-top: 14px; }

.etymology {
  margin: 18px 0;
  padding: 18px 24px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  font-size: 15px;
}

.etymology p + p { margin-top: 6px; }

.etymology-note {
  margin-top: 10px;
  font-weight: 600;
  color: var(--accent-deep);
  letter-spacing: 0.02em;
}

.feature-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}

.feature-item h3 {
  font-size: 15px;
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.04em;
}

.feature-item h3 svg { width: 18px; height: 18px; flex-shrink: 0; }

.feature-item p { margin-top: 6px; font-size: 13.8px; color: var(--muted); }

.about-facts {
  list-style: none;
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.fact {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fact-label { font-size: 12.5px; color: var(--faint); letter-spacing: 0.12em; }
.fact-value { font-size: 15.5px; font-weight: 600; color: var(--ink); }

/* ---------- 07 卡片体系(设计理念 / 内容板块共用) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(59, 91, 219, 0.35);
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
}

.card-icon svg { width: 24px; height: 24px; }

.card-title { margin-top: 18px; font-size: 17px; font-weight: 700; letter-spacing: 0.04em; }

.card-text { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.7; }

/* 设计理念卡片:以中文序号替代图标 */
.card--num { counter-increment: principle; }

.card--num::before {
  content: counter(principle, cjk-ideographic);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
}

.card-grid { counter-reset: principle; }

.grid-note {
  text-align: center;
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--faint);
  letter-spacing: 0.04em;
}

/* ---------- 08 创作历程(时间线) ---------- */

.timeline {
  list-style: none;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(59, 91, 219, 0.12));
}

.tl-item { position: relative; padding: 0 0 36px 52px; }
.tl-item:last-child { padding-bottom: 0; }

.tl-node {
  position: absolute;
  left: 2px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.tl-time {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.tl-title { margin-top: 4px; font-size: 17px; font-weight: 700; letter-spacing: 0.04em; }

.tl-text { margin-top: 6px; font-size: 14.5px; color: var(--muted); }

/* ---------- 09 站点实现(规格网格) ---------- */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.spec-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.spec-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.spec-item h3 {
  font-size: 15.5px;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.spec-item h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.spec-item p { margin-top: 8px; font-size: 13.8px; color: var(--muted); }

/* ---------- 10 更新日志 ---------- */

.changelog {
  list-style: none;
  max-width: 780px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 8px 0;
}

.log-item {
  display: grid;
  grid-template-columns: 72px 108px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 28px;
}

.log-item + .log-item { border-top: 1px dashed var(--line); }

.log-version {
  font-family: "Consolas", "Courier New", monospace;
  font-weight: 700;
  color: var(--accent);
  font-size: 14px;
}

.log-date {
  font-size: 13px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.log-text { font-size: 14.5px; color: #39415a; }

/* ---------- 11 常见问题(原生 details 手风琴) ---------- */

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}

.faq-item[open] { border-color: rgba(59, 91, 219, 0.4); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 60px 18px 24px;
  font-weight: 600;
  font-size: 15.5px;
  position: relative;
  letter-spacing: 0.02em;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-body { padding: 0 24px 20px; }

.faq-body p { font-size: 14.5px; color: var(--muted); }

/* ---------- 12 站点声明 ---------- */

.notice-list {
  list-style: none;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: notice;
}

.notice-list li {
  position: relative;
  counter-increment: notice;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px 18px 64px;
  font-size: 15px;
  color: #39415a;
  box-shadow: var(--shadow-sm);
}

.notice-list li::before {
  content: counter(notice, cjk-ideographic);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

/* ---------- 13 备案信息 ---------- */

.beian-panel {
  max-width: 780px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.beian-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  padding: 18px 28px;
}

.beian-row + .beian-row { border-top: 1px solid var(--line); }

.beian-row dt {
  font-size: 14px;
  color: var(--faint);
  letter-spacing: 0.14em;
}

.beian-row dd { font-size: 15.5px; font-weight: 600; }

.beian-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(59, 91, 219, 0.45);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.beian-link:hover { color: var(--accent-deep); border-bottom-color: var(--accent-deep); }

/* ---------- 14 页脚(备案号标注位) ---------- */

.site-footer {
  background: #171d2b;
  color: #a7b0c3;
  padding: 36px 0;
  text-align: center;
}

.footer-inner { display: flex; flex-direction: column; gap: 10px; }

.footer-copy { font-size: 13.5px; letter-spacing: 0.03em; }

.footer-beian { font-size: 13.5px; }

.site-footer .beian-link {
  color: #cdd6e8;
  border-bottom-color: rgba(205, 214, 232, 0.4);
}

.site-footer .beian-link:hover { color: #ffffff; border-bottom-color: #ffffff; }

/* ---------- 15 返回顶部 ---------- */

.back-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, color 0.2s ease;
  z-index: 90;
}

.back-top svg { width: 20px; height: 20px; }
.back-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- 16 动画 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll::before { animation: none; }
}

/* ---------- 17 响应式 ---------- */

@media (max-width: 960px) {
  .card-grid,
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .section { padding: 64px 0; }
  .about-facts { grid-template-columns: 1fr; }
  .beian-row { grid-template-columns: 120px 1fr; padding: 16px 20px; }
  .back-top { right: 18px; bottom: 18px; }
}

@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .log-item { grid-template-columns: auto auto; grid-template-areas: "version date" "text text"; row-gap: 6px; }
  .log-version { grid-area: version; }
  .log-date { grid-area: date; }
  .log-text { grid-area: text; }
  .tl-item { padding-left: 44px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .faq-item summary { padding-right: 56px; }
}
