/* 沈馆长·资源平台 Pro — 墨玉金翠 主题
   调色:墨黑/翠玉/金/米/朱砂 */

:root {
  --obsidian: #0d0e10;
  --obsidian-2: #16181c;
  --obsidian-3: #20242a;
  --ink: #1f2937;
  --ink-2: #374151;
  --jade: #2d5f4a;
  --jade-light: #4a8573;
  --gold: #c9a96e;
  --gold-light: #e0c891;
  --gold-deep: #a0884f;
  --cream: #f5f0e6;
  --cream-2: #ede5d3;
  --paper: #faf7f1;
  --cinnabar: #c14a3c;
  --line: rgba(201, 169, 110, 0.18);
  --line-2: rgba(201, 169, 110, 0.32);
  --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-3: 0 20px 60px rgba(0, 0, 0, 0.15);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --container: 1200px;
  --header-h: 72px;
}

[data-theme="dark"] {
  --obsidian: #0a0b0d;
  --obsidian-2: #111316;
  --obsidian-3: #1a1d22;
  --cream: #ece6d8;
  --cream-2: #d4cdb9;
  --paper: #16181c;
  --ink: #e7e2d4;
  --ink-2: #b8b09c;
  --line: rgba(201, 169, 110, 0.24);
  --line-2: rgba(201, 169, 110, 0.4);
  --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-3: 0 20px 60px rgba(0, 0, 0, 0.6);
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(at 0% 0%, rgba(201, 169, 110, 0.06) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(45, 95, 74, 0.04) 0px, transparent 50%);
}

[data-theme="dark"] body {
  background-image:
    radial-gradient(at 0% 0%, rgba(201, 169, 110, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(45, 95, 74, 0.06) 0px, transparent 50%);
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-deep); }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

mark {
  background: linear-gradient(transparent 60%, rgba(201, 169, 110, 0.4) 60%);
  color: var(--ink);
  font-weight: 600;
  padding: 0 2px;
}

[data-theme="dark"] mark { color: var(--gold-light); }

::selection { background: var(--gold); color: var(--obsidian); }

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

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 247, 241, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

[data-theme="dark"] .site-header {
  background: rgba(13, 14, 16, 0.85);
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--jade) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-serif);
  box-shadow: 0 4px 12px rgba(201, 169, 110, 0.3);
}

.brand-name { letter-spacing: 1px; }
.brand-en { font-size: 10px; color: var(--gold-deep); letter-spacing: 2px; margin-left: 4px; }

.main-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}

.main-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--ink);
  background: var(--cream-2);
}

[data-theme="dark"] .main-nav a:hover, [data-theme="dark"] .main-nav a.active {
  background: var(--obsidian-3);
}

.nav-search {
  position: relative;
  margin-left: 8px;
}

.nav-search input {
  width: 200px;
  padding: 8px 14px 8px 36px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: var(--cream-2);
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
}

.nav-search input:focus {
  border-color: var(--gold);
  background: var(--paper);
  width: 240px;
}

.nav-search .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--gold-deep);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--line-2);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  transition: all 0.2s;
}

.theme-toggle:hover {
  color: var(--gold-deep);
  border-color: var(--gold);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, var(--obsidian) 0%, var(--obsidian-2) 100%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(201, 169, 110, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(45, 95, 74, 0.15) 0%, transparent 50%);
}

.hero-bg::after {
  content: "茶";
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: 360px;
  font-weight: 700;
  color: rgba(201, 169, 110, 0.06);
  letter-spacing: -20px;
  pointer-events: none;
  user-select: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--cream);
  max-width: 720px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--gold);
  border-radius: 100px;
  color: var(--gold-light);
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.hero-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.hero h1 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--cream);
  letter-spacing: 2px;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--cream-2);
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(201, 169, 110, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.5);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line-2);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(201, 169, 110, 0.08);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
  background: var(--cream-2);
}

/* ========== Section ========== */
.section {
  padding: 80px 0;
}

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

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 6px;
  color: var(--gold-deep);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.section-sub {
  color: var(--ink-2);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== Stats Grid ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0 0 -120px;
  position: relative;
  z-index: 2;
}

.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: var(--shadow-1);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--gold);
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold) 0%, var(--jade) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 1px;
}

/* ========== Card Grid ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(201, 169, 110, 0.04) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--gold);
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--jade) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 16px;
  font-size: 24px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.card-desc {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}

/* ========== Product Card ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--gold);
}

.product-image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--cream-2) 0%, var(--cream) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
  overflow: hidden;
}

.product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(201, 169, 110, 0.3) 0%, transparent 50%);
}

.product-body {
  padding: 20px;
}

.product-cat {
  display: inline-block;
  font-size: 11px;
  color: var(--gold-deep);
  letter-spacing: 2px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.product-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: var(--font-serif);
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
}

.product-price {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--cinnabar);
}

.product-price .yuan { font-size: 14px; }
.product-origin {
  font-size: 12px;
  color: var(--ink-2);
}

/* ========== Service Card ========== */
.service-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle at top right, rgba(201, 169, 110, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--gold);
}

.service-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--cream-2);
  color: var(--gold-deep);
  font-size: 11px;
  border-radius: 100px;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.service-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: var(--font-serif);
}

.service-desc {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  min-height: 44px;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.service-price {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--cinnabar);
}

.service-price small { font-size: 12px; color: var(--ink-2); font-weight: 400; margin-left: 4px; }

.service-duration {
  font-size: 12px;
  color: var(--ink-2);
}

/* ========== Article Card ========== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.article-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--gold);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.article-cat {
  color: var(--gold-deep);
  font-weight: 500;
}

.article-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-snippet {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  background: var(--cream-2);
  color: var(--ink-2);
  font-size: 11px;
  border-radius: 100px;
  border: 1px solid var(--line);
}

/* ========== Article Detail ========== */
.article-detail {
  max-width: 820px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px 64px;
  box-shadow: var(--shadow-1);
}

.article-detail h1 {
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 16px;
  text-align: center;
}

.article-detail .meta {
  text-align: center;
  color: var(--ink-2);
  font-size: 13px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.article-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
}

.article-body h1, .article-body h2, .article-body h3 {
  margin: 32px 0 16px;
}

.article-body h2 { font-size: 24px; }
.article-body h3 { font-size: 20px; }

.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 16px 0 16px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body code {
  background: var(--cream-2);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 14px;
}

.article-body pre {
  background: var(--obsidian);
  color: var(--cream);
  padding: 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 20px 0;
}

.article-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 8px 20px;
  margin: 20px 0;
  background: var(--cream-2);
  color: var(--ink-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ========== Search ========== */
.search-page {
  max-width: 880px;
  margin: 0 auto;
}

.search-input-wrap {
  position: relative;
  margin-bottom: 32px;
}

.search-input-wrap input {
  width: 100%;
  padding: 18px 24px 18px 56px;
  font-size: 18px;
  border: 2px solid var(--line-2);
  border-radius: 100px;
  background: var(--paper);
  outline: none;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.search-input-wrap input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.1);
}

.search-input-wrap .icon {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--gold-deep);
}

.search-meta {
  color: var(--ink-2);
  font-size: 13px;
  margin-bottom: 24px;
}

.search-result {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.search-result:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-1);
}

.search-result-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: var(--font-serif);
}

.search-result-snippet {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
}

.search-result-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 12px;
}

/* ========== Category ========== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.category-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--shadow-2);
}

.category-icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}

.category-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
}

.category-count {
  font-size: 12px;
  color: var(--ink-2);
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--jade) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.category-card:hover::before { transform: scaleX(1); }

/* ========== Tabs ========== */
.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  overflow-x: auto;
}

.tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: all 0.2s;
}

.tab:hover { color: var(--ink); }
.tab.active {
  color: var(--gold-deep);
  border-bottom-color: var(--gold);
}

/* ========== Footer ========== */
.site-footer {
  background: var(--obsidian);
  color: var(--cream-2);
  padding: 60px 0 24px;
  margin-top: 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .brand { color: var(--cream); }
.footer-brand p { color: rgba(245, 240, 230, 0.6); margin-top: 16px; font-size: 13px; line-height: 1.7; }

.footer-col h4 {
  color: var(--gold-light);
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 1px;
  font-family: var(--font-sans);
}

.footer-col a {
  display: block;
  color: rgba(245, 240, 230, 0.7);
  font-size: 13px;
  padding: 4px 0;
}

.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(201, 169, 110, 0.2);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(245, 240, 230, 0.5);
}

/* ========== Page Hero (non-home) ========== */
.page-hero {
  padding: 80px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--cream-2) 0%, transparent 100%);
}

[data-theme="dark"] .page-hero {
  background: linear-gradient(180deg, var(--obsidian-2) 0%, transparent 100%);
}

.page-hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.page-hero p {
  color: var(--ink-2);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== Empty State ========== */
.empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--ink-2);
}

.empty-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.4; }
.empty-text { font-size: 16px; }

/* ========== Toast ========== */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-item {
  background: var(--obsidian);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  box-shadow: var(--shadow-2);
  animation: slideIn 0.3s ease-out;
  min-width: 240px;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ========== Forms ========== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

.form-textarea { min-height: 120px; resize: vertical; }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hero { padding: 60px 0 40px; }
  .hero h1 { font-size: 40px; }
  .hero-bg::after { font-size: 200px; right: -5%; }
  .section { padding: 50px 0; }
  .section-title { font-size: 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: -80px; }
  .stat-card { padding: 20px 12px; }
  .stat-num { font-size: 32px; }
  .article-detail { padding: 32px 24px; }
  .article-detail h1 { font-size: 28px; }
  .page-hero h1 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .container { padding: 0 16px; }
  .nav-search input { width: 140px; }
  .nav-search input:focus { width: 180px; }
}

/* ========== Animations ========== */
.fade-in { animation: fadeIn 0.6s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.htmx-indicator {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
  z-index: 9999;
}

.htmx-request .htmx-indicator { display: block; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

[x-cloak] { display: none !important; }
