html { scroll-behavior: smooth; }
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --primary: #064e3b;
  --primary-light: #059669;
  --accent: #10b981;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-tint: #f0fdf4;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  --font-main: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.header-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(6, 78, 59, 0.2);
  position: relative;
}

.logo-box::after {
  content: "Z";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  font-family: var(--font-mono);
}

.logo-text-build {
  color: #166534;
  font-weight: 400;
}

.search-container {
  flex: 1;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

nav {
  margin-left: auto;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

nav a,
.nav-dropdown-toggle {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

nav a:hover,
nav a.active,
.nav-dropdown-toggle.active,
.nav-dropdown-toggle:hover {
  color: var(--primary);
}

.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 240px;
  padding: 10px 0;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: none;
}

.nav-item-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-item {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  text-decoration: none;
}

.nav-dropdown-item:hover {
  background: var(--bg-soft);
  color: var(--primary);
}

.hero-section {
  position: relative;
  padding: 56px 0 132px;
  text-align: center;
  background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
}

.hero-shell {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-section .eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

.hero-title {
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--primary);
}

.hero-section .hero-title,
.hero-section .hero-subtitle {
  color: #fff;
}

.hero-subtitle {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: 18px;
  color: var(--text-muted);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 34px auto 0;
  max-width: 840px;
}

.hero-stat {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat strong {
  display: block;
  font-size: 24px;
  color: #fff;
}

.hero-stat span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.76);
}

.hero-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.hero-divider svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 72px;
  filter: drop-shadow(0 -8px 12px rgba(15, 23, 42, 0.16));
}

.hero-divider .layer-main {
  fill: #fff;
}

.main-content {
  padding: 60px 0 80px;
}

.page-section {
  margin-bottom: 64px;
}

.narrow-section {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h1,
.section-heading h2 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.section-copy {
  max-width: 420px;
  color: var(--text-muted);
  font-size: 15px;
}

.category-grid,
.promise-grid,
.content-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.category-card,
.promise-card,
.content-card,
.related-card {
  display: block;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover,
.promise-card:hover,
.content-card:hover,
.related-card:hover,
.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(5, 150, 105, 0.35);
  box-shadow: var(--shadow);
}

.category-card-count,
.article-read-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.category-card h3,
.promise-card h3,
.content-card h2,
.related-card h3 {
  margin-top: 14px;
  font-size: 20px;
  line-height: 1.25;
  color: var(--primary);
}

.category-card p,
.promise-card p,
.content-card p,
.related-card p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 15px;
}

.articles-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-link {
  text-decoration: none;
}

.article-card {
  padding: 28px 32px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.article-category {
  display: inline-block;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-title {
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.article-excerpt {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.empty-state {
  padding: 44px 28px;
  text-align: center;
  border-radius: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.empty-state h2,
.empty-state h1 {
  color: var(--primary);
  margin-bottom: 12px;
}

.empty-state-large {
  min-height: 45vh;
  display: grid;
  place-items: center;
  gap: 14px;
}

.empty-state-large h1 {
  font-size: 88px;
  line-height: 1;
}

.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 140px;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.primary-button:hover {
  background: #065f46;
}

.secondary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 120px;
  padding: 12px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.secondary-button:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.secondary-button-small {
  min-width: 0;
  padding: 8px 14px;
  font-size: 13px;
}

.content-list {
  margin-top: 12px;
  padding-left: 18px;
  color: var(--text-muted);
}

.content-list li + li {
  margin-top: 10px;
}

.contact-card {
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}

.contact-link {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.search-panel {
  padding: 22px;
  margin-bottom: 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.search-panel-form {
  display: flex;
  gap: 12px;
}

.search-panel-input {
  flex: 1;
}

.legal-card {
  padding: 30px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.03);
}

.article-container {
  max-width: 940px;
}

.article-main {
  min-width: 0;
  display: flex;
  justify-content: center;
}

.article-detail {
  width: 100%;
  max-width: 820px;
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.article-breadcrumbs a {
  text-decoration: none;
}

.article-breadcrumbs a:hover {
  color: var(--primary);
}

.article-hero {
  margin-bottom: 28px;
}

.article-header-shell {
  padding: 34px 0 30px;
  border-bottom: 1px solid var(--border);
}

.article-hero-title {
  max-width: 30ch;
  margin-top: 12px;
  text-align: left;
  color: var(--primary);
  font-size: clamp(28px, 3.6vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-wrap: balance;
  hyphens: auto;
}

.article-header {
  padding-bottom: 0;
  border-bottom: none;
}

.article-summary {
  margin-top: 18px;
  max-width: 680px;
  font-size: 19px;
  line-height: 1.75;
  color: var(--text-muted);
}

.article-meta-wrap {
  margin-top: 18px;
}

.article-intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.article-intro-card {
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.article-intro-card h2 {
  font-size: 17px;
  color: var(--primary);
}

.article-intro-card p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.article-content {
  font-size: 18px;
  line-height: 1.9;
  color: #334155;
}

.article-content h2 {
  margin: 60px 0 20px;
  padding-top: 12px;
  font-size: 36px;
  line-height: 1.2;
  color: var(--primary);
  scroll-margin-top: 108px;
}

.article-content h3 {
  margin: 36px 0 16px;
  padding-top: 8px;
  font-size: 24px;
  line-height: 1.25;
  color: var(--primary);
  scroll-margin-top: 108px;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content pre,
.article-content blockquote,
.article-content table {
  margin-bottom: 24px;
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
}

.article-content li + li {
  margin-top: 10px;
}

.article-content a {
  color: var(--primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

/* 强调文字（绿色高亮） */
.article-emphasis {
  color: var(--primary-light);
  font-weight: 600;
  background: var(--bg-tint);
  padding: 0 4px;
  border-radius: 4px;
}

.article-content strong {
  color: #0f172a;
}

.article-content blockquote {
  padding: 20px 22px;
  border-left: 4px solid var(--accent);
  border-radius: 0 16px 16px 0;
  background: #f8fafc;
  color: #475569;
}

.article-content hr {
  margin: 42px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-content th,
.article-content td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.article-content th {
  background: var(--bg-soft);
  color: var(--primary);
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.article-content code {
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.article-content pre {
  overflow-x: auto;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.65;
}

.article-content pre code {
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
}

.toc-container {
  margin-bottom: 34px;
  padding: 26px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}

.toc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.toc-title::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
}

.toc-list {
  list-style: none;
}

.toc-list li + li {
  margin-top: 10px;
}

.toc-list a {
  display: inline-block;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.toc-list .major-link {
  color: var(--text);
  font-weight: 600;
}

.toc-list .sub-link {
  padding-left: 18px;
  font-size: 14px;
}

.toc-list a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.article-footer {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.share-bar-bottom {
  padding: 24px;
  border-radius: 18px;
  background: var(--bg-soft);
  text-align: center;
}

.share-title {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.share-buttons-bottom {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.share-btn-bottom {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.copy-btn { background: var(--primary); }
.twitter-btn { background: #1da1f2; }
.linkedin-btn { background: #0077b5; }
.email-btn { background: #64748b; }

.related-articles {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

footer {
  padding: 70px 0 38px;
  background: var(--primary);
  color: #f1f5f9;
}

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

.footer-logo {
  color: #fff;
  margin-bottom: 18px;
}

.footer-logo-box {
  background: #fff;
}

.footer-logo-box::after {
  color: var(--primary);
}

.footer-section h4 {
  margin-bottom: 18px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a7f3d0;
}

.footer-brand p + p {
  margin-top: 12px;
}

.footer-note {
  max-width: 380px;
  opacity: 0.86;
}

.footer-contact a,
.footer-links a {
  color: inherit;
  text-decoration: none;
  opacity: 0.88;
}

.footer-links {
  list-style: none;
}

.footer-links li + li {
  margin-top: 10px;
}

.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  opacity: 0.7;
}

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--accent);
  z-index: 9999;
}

.admin-auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background: linear-gradient(180deg, #f8fafc 0%, #ecfdf5 100%);
}

.admin-auth-card,
.admin-panel,
.admin-stat-card {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-auth-card {
  width: min(560px, 100%);
  padding: 36px;
}

.admin-auth-card-wide {
  width: min(1040px, 100%);
  padding: 0;
  overflow: hidden;
}

.admin-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 420px);
}

.admin-auth-hero {
  padding: 48px;
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.22), transparent 34%),
    linear-gradient(145deg, #064e3b 0%, #0f766e 100%);
  color: #fff;
}

.admin-auth-logo {
  margin-bottom: 24px;
}

.admin-auth-hero .logo,
.admin-auth-hero .logo-text-build {
  color: #fff;
}

.admin-auth-copy p {
  color: var(--text-muted);
}

.admin-auth-hero .section-kicker,
.admin-auth-hero .admin-auth-copy p,
.admin-auth-hero .admin-auth-benefit span {
  color: rgba(255, 255, 255, 0.82);
}

.admin-auth-copy h1 {
  margin-bottom: 12px;
  font-size: 40px;
  line-height: 1.08;
  color: var(--primary);
}

.admin-auth-hero .admin-auth-copy h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 52px);
}

.admin-auth-benefits {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.admin-auth-benefit {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px);
}

.admin-auth-benefit strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.admin-auth-benefit span {
  display: block;
  font-size: 15px;
  line-height: 1.7;
}

.admin-auth-form-panel {
  padding: 48px 40px;
  background: #fff;
}

.admin-auth-panel-copy {
  margin-bottom: 24px;
}

.admin-auth-panel-kicker {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-light);
}

.admin-auth-panel-copy h2 {
  margin-bottom: 12px;
  font-size: 32px;
  line-height: 1.15;
  color: var(--primary);
}

.admin-auth-panel-copy p {
  font-size: 16px;
  color: var(--text-muted);
}

.admin-form {
  display: grid;
  gap: 18px;
}

.admin-field {
  display: grid;
  gap: 8px;
}

.admin-field span {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.admin-field input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: #fff;
  font: inherit;
  font-size: 17px;
}

.admin-field input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.admin-submit-button {
  width: 100%;
  min-height: 54px;
  font-size: 17px;
  font-weight: 700;
}

.admin-auth-hint {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.admin-shell {
  padding-top: 56px;
  padding-bottom: 80px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

.admin-header h1 {
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.admin-header-copy {
  max-width: 720px;
}

.admin-header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-grid {
  display: grid;
  gap: 20px;
}

.admin-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 28px;
}

.admin-top-grid,
.admin-bottom-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 28px;
}

.admin-stat-card {
  padding: 24px;
}

.admin-stat-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 36px;
  color: var(--primary);
}

.admin-stat-card p {
  color: var(--text-muted);
  font-size: 14px;
}

.admin-stat-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.admin-panel {
  padding: 28px;
}

.admin-panel h2 {
  font-size: 28px;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.admin-settings-form,
.admin-schedule-form,
.admin-upload-form {
  display: grid;
  gap: 16px;
}

.admin-inline-note {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #166534;
  font-size: 14px;
}

.admin-time-list {
  display: grid;
  gap: 12px;
}

.admin-time-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-time-row input,
.admin-settings-form input[type="email"],
.admin-upload-form input[type="file"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: #fff;
  font: inherit;
}

.admin-time-row input {
  max-width: 180px;
}

.admin-add-time-button,
.admin-inline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font: inherit;
}

.admin-add-time-button {
  width: fit-content;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px dashed #86efac;
  background: #f0fdf4;
  color: #166534;
  font-weight: 700;
  cursor: pointer;
}

.admin-checklist {
  margin-top: 18px;
}

.admin-checklist li {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.admin-empty-cell {
  text-align: center;
  color: var(--text-muted);
  padding: 28px 12px;
}

.admin-actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-actions-cell form {
  margin: 0;
}

.is-hidden {
  display: none !important;
}

.admin-alert {
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #166534;
  font-weight: 600;
}

.admin-alert-danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.admin-help-text,
.admin-muted-text,
.admin-log-message {
  color: var(--text-muted);
  font-size: 14px;
}

.admin-checklist {
  list-style: none;
}

.admin-checklist li + li {
  margin-top: 12px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.admin-title-cell {
  display: grid;
  gap: 4px;
}

.admin-title-cell strong {
  color: var(--primary);
}

.admin-title-cell span {
  font-size: 13px;
  color: var(--text-muted);
}

.admin-table-note-row td {
  padding-top: 0;
}

.admin-table-note {
  color: #b45309;
  font-size: 13px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-pill-scheduled {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-pill-published {
  background: #dcfce7;
  color: #166534;
}

.status-pill-failed {
  background: #fee2e2;
  color: #b91c1c;
}

.status-pill-publishing {
  background: #fef3c7;
  color: #b45309;
}

.admin-history-list {
  display: grid;
  gap: 16px;
}

.admin-history-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.admin-history-item strong {
  display: block;
  color: var(--primary);
}

.admin-history-item p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13px;
}

.admin-history-metrics {
  display: grid;
  gap: 4px;
  text-align: right;
  font-size: 13px;
  color: var(--text-muted);
}

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

.pagination-btn {
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
}

.pagination-btn:hover:not(.disabled) {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-info {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* 顶部目录 */
.article-top-toc {
  margin: 0 0 38px 0;
  padding: 22px 24px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  border-radius: 18px;
  border: 1px solid var(--border);
}

.article-top-toc h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-top-toc h3::before {
  content: "";
  display: block;
  width: 4px;
  height: 16px;
  background: var(--accent);
  border-radius: 4px;
}

.article-top-toc-list {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-top-toc-list li {
  margin: 0;
}

.article-top-toc-list li.level-3 {
  padding-left: 18px;
}

.article-top-toc-list a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
  transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.74);
}

.article-top-toc-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.article-top-toc-text {
  min-width: 0;
}

.article-top-toc-list a.major-link {
  font-weight: 600;
  color: var(--text);
}

.article-top-toc-list a.sub-link {
  font-size: 14px;
}

.article-top-toc-list a:hover {
  color: var(--primary);
  transform: translateY(-1px);
  border-color: rgba(16, 185, 129, 0.2);
}

@media (max-width: 960px) {
  header {
    position: static;
  }

  .header-container {
    flex-wrap: wrap;
  }

  .search-container {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  nav {
    margin-left: 0;
  }

  .section-heading,
  .article-container {
    display: block;
  }

  .section-copy {
    max-width: none;
  }

  .category-grid,
  .promise-grid,
  .content-grid,
  .related-grid,
  .hero-stats,
  .article-intro-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .article-detail {
    max-width: none;
  }

  .admin-stats-grid,
  .admin-top-grid,
  .admin-bottom-grid {
    grid-template-columns: 1fr;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 18px;
  }

  .hero-title {
    font-size: 40px;
  }

  .section-heading h1,
  .section-heading h2 {
    font-size: 30px;
  }

  .article-title {
    font-size: 24px;
  }

  .article-hero-title {
    max-width: none;
    font-size: clamp(25px, 7.2vw, 31px);
    line-height: 1.22;
  }

  .article-card,
  .category-card,
  .promise-card,
  .content-card,
  .related-card,
  .legal-card,
  .toc-container,
  .share-bar-bottom {
    padding: 22px;
  }

  nav ul {
    gap: 16px;
    flex-wrap: wrap;
  }

  .search-panel-form {
    flex-direction: column;
  }

  .article-content {
    font-size: 17px;
  }

  .article-summary {
    font-size: 17px;
    line-height: 1.7;
  }

  .admin-auth-card,
  .admin-panel,
  .admin-stat-card {
    padding: 22px;
  }

  .admin-auth-card-wide {
    padding: 0;
  }

  .admin-auth-layout {
    grid-template-columns: 1fr;
  }

  .admin-auth-hero,
  .admin-auth-form-panel {
    padding: 28px 22px;
  }

  .admin-auth-panel-copy h2 {
    font-size: 28px;
  }

  .admin-header h1 {
    font-size: 36px;
  }

  .admin-time-row,
  .admin-actions-cell {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-time-row input {
    max-width: none;
  }
}
