/* 晞风静语小站 · 站点样式
   纯静态、零外部依赖（不引用任何境外 CDN / 字体），便于国内访问与合规。 */

:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --bg-elev: #ffffff;
  --ink: #17191d;
  --ink-soft: #3d4148;
  --muted: #71767e;
  --line: rgba(23, 25, 29, 0.10);
  --accent: #2f5149;
  --accent-soft: #e9efEA;
  --footer-bg: #f4f2ec;
  --wrap: 1080px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #121417;
    --bg-elev: #181b1f;
    --ink: #e9e7e2;
    --ink-soft: #c9c8c4;
    --muted: #9499a1;
    --line: rgba(233, 231, 226, 0.14);
    --accent: #8fb9a8;
    --accent-soft: #1d2b27;
    --footer-bg: #171a1e;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  padding: 10px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 14px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: blur(10px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: var(--ink);
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}

.site-nav a {
  position: relative;
  padding: 2px 0;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

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

.hero {
  padding-top: clamp(64px, 14vh, 150px);
  padding-bottom: clamp(56px, 10vh, 104px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.rule {
  width: 36px;
  height: 1px;
  background: var(--accent);
}

h1 {
  margin: 26px 0 0;
  font-size: clamp(44px, 9vw, 84px);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.16;
}

.lede {
  margin: 26px 0 0;
  max-width: 34em;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.9;
  color: var(--ink-soft);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 38px 0 0;
  padding: 7px 15px 7px 13px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 3.2s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.32; }
}

/* ---------- 内容区块 ---------- */

.section {
  padding-top: clamp(48px, 8vh, 88px);
  padding-bottom: clamp(48px, 8vh, 88px);
  border-top: 1px solid var(--line);
}

.section-last {
  padding-bottom: clamp(64px, 10vh, 112px);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: clamp(24px, 3.5vh, 36px);
}

.section-no {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 27px);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.prose {
  max-width: 46em;
}

.prose p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-soft);
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ---------- 内容规划 ---------- */

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.note-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 3vh, 30px);
  background: var(--bg-elev);
  transition: background 0.25s var(--ease);
}

.note-card:hover {
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--bg-elev));
}

.tag {
  align-self: flex-start;
  padding: 2px 10px;
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.12em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
}

h3 {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.note-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.section-note {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 联系 ---------- */

.contact-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.contact-mail {
  padding-bottom: 2px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.contact-mail:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- 页脚（备案信息展示区） ---------- */

.site-footer {
  padding-top: clamp(48px, 7vh, 72px);
  padding-bottom: clamp(36px, 5vh, 52px);
  background: var(--footer-bg);
  border-top: 1px solid var(--line);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--ink);
}

.footer-meta {
  margin: 10px 0 0;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* 备案号：首页底部居中、可点击，链接指向工信部备案系统 */
.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.legal-link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

.legal-sep {
  opacity: 0.55;
}

.footer-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.footer-police {
  margin-top: 10px;
}

/* ---------- 404 ---------- */

.error-page {
  padding-top: clamp(80px, 18vh, 180px);
  padding-bottom: clamp(80px, 18vh, 160px);
}

.error-code {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.error-title {
  margin: 18px 0 0;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.error-text {
  margin: 20px 0 0;
  max-width: 32em;
  color: var(--ink-soft);
}

.error-link {
  display: inline-block;
  margin-top: 32px;
  padding-bottom: 2px;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

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

@media (max-width: 760px) {
  .header-inner {
    height: 56px;
  }

  .brand {
    font-size: 14px;
    letter-spacing: 0.14em;
  }

  .site-nav {
    gap: 18px;
    font-size: 13px;
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
