/* HH Modern UI (local-only, no third-party runtime deps) */
:root {
  --bg: #07070a;
  --bg2: #0d0d14;
  --surface: rgba(255, 255, 255, 0.06);
  --surface2: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f5f1e8;
  --muted: rgba(245, 241, 232, 0.72);
  --accent: #c6a05b;
  --accent2: #f1d28b;
  --danger: #ff5b5b;
  --focus: rgba(241, 210, 139, 0.85);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 22px 70px rgba(0, 0, 0, 0.55);

  --max: 1160px;
  --pad: 20px;
  --section: 88px;
  --section-sm: 56px;

  --font-sans: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui,
    -apple-system, "Segoe UI", sans-serif;
  --font-serif: "STSong", "Songti SC", "SimSun", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(1200px 800px at 22% 12%, rgba(198, 160, 91, 0.12), transparent 60%),
    radial-gradient(900px 700px at 78% 16%, rgba(114, 190, 255, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  font-family: var(--font-sans);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background: url("/skin/images/noise.svg") repeat;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent2);
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateY(-140%);
  transition: transform 160ms ease;
  z-index: 999;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
}

.section {
  padding: var(--section) 0;
}

.section--sm {
  padding: var(--section-sm) 0;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: 30px;
  line-height: 1.15;
}

.section-head p {
  margin-top: 10px;
  max-width: 72ch;
}

.page-hero {
  padding: 72px 0 38px;
}

.page-hero h1 {
  font-size: 38px;
  line-height: 1.12;
  max-width: 24ch;
  text-wrap: balance;
}

.page-hero p {
  margin-top: 14px;
  max-width: 72ch;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
  margin: 0;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  user-select: none;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(241, 210, 139, 0.55);
  background: rgba(0, 0, 0, 0.35);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  border-color: rgba(241, 210, 139, 0.35);
  background: linear-gradient(135deg, rgba(198, 160, 91, 0.92), rgba(241, 210, 139, 0.92));
  color: #1a1206;
  box-shadow: 0 10px 30px rgba(198, 160, 91, 0.24);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: translateX(-140%);
  opacity: 0;
}

.btn-primary:hover::before {
  opacity: 0.8;
  animation: hh-shimmer 1150ms ease forwards;
}

@keyframes hh-shimmer {
  to {
    transform: translateX(140%);
    opacity: 0;
  }
}

.btn-primary:hover {
  border-color: rgba(241, 210, 139, 0.65);
  background: linear-gradient(135deg, rgba(198, 160, 91, 1), rgba(241, 210, 139, 1));
}

.btn-ghost {
  background: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 7, 10, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand img {
  width: 168px;
  height: auto;
}

.nav-toggle {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  position: relative;
  padding: 10px 10px;
  font-weight: 700;
  color: rgba(245, 241, 232, 0.9);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(241, 210, 139, 0.9), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.hero {
  padding: 88px 0 74px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.1;
}

.hero p {
  margin-top: 16px;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  padding: 18px;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -80px;
  background: radial-gradient(circle at 30% 20%, rgba(241, 210, 139, 0.18), transparent 45%),
    radial-gradient(circle at 70% 30%, rgba(114, 190, 255, 0.16), transparent 50%);
  transform: rotate(8deg);
  pointer-events: none;
}

.hero-media-inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  align-items: end;
}

.hero-shot {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.grid {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-1);
  padding: 18px 18px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(241, 210, 139, 0.35);
  background: rgba(255, 255, 255, 0.07);
}

.card h3 {
  font-size: 18px;
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}

.muted {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(241, 210, 139, 0.28);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(245, 241, 232, 0.9);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.post-card {
  padding: 0;
  overflow: hidden;
}

.post-cover {
  display: block;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.04);
}

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

.post-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.post-title {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.25;
}

.post-title a {
  display: block;
}

.post-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: rgba(245, 241, 232, 0.72);
}

.pagebar {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pagebar a,
.pagebar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
}

.pagebar .current {
  border-color: rgba(241, 210, 139, 0.35);
  background: rgba(241, 210, 139, 0.16);
}

.article {
  max-width: 920px;
  margin: 0 auto;
}

.article-meta {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(245, 241, 232, 0.68);
}

.richtext {
  margin-top: 18px;
  line-height: 1.85;
}

.richtext p {
  color: rgba(245, 241, 232, 0.86);
  margin: 0 0 14px;
}

.richtext h2,
.richtext h3,
.richtext h4 {
  margin: 26px 0 12px;
}

.richtext a {
  color: var(--accent2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.richtext img {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-1);
}

.richtext blockquote {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 3px solid rgba(241, 210, 139, 0.55);
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-md);
}

.richtext blockquote p {
  margin: 0;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kpi {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.kpi .num {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--accent2);
  letter-spacing: 0.02em;
}

.kpi .label {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(245, 241, 232, 0.7);
}

.empty-state {
  margin: 22px 0;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(241, 210, 139, 0.35);
  background: rgba(0, 0, 0, 0.22);
  text-align: center;
}

.empty-state .title {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text);
}

.empty-state .desc {
  margin-top: 8px;
}

.site-footer {
  padding: 32px 0 90px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.14);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 65;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(7, 7, 10, 0.72);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
}

.mobile-bar .inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.mobile-bar .btn {
  width: 100%;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: var(--pad);
    right: var(--pad);
    top: 64px;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(7, 7, 10, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-2);
  }

  .site-nav.is-open {
    display: flex;
  }

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

  .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-bar {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
  .btn-primary:hover::before {
    animation: none;
  }
}
