/* ============================================
   ATDTS.CN — Complete Styles
   ============================================ */

:root {
  --ink: #1a1a2e;
  --graphite: #2d2d44;
  --slate: #4a4a6a;
  --mist: #8a8aaa;
  --silver: #c8c8dc;
  --cloud: #f0f0f5;
  --paper: #fafafa;
  --white: #ffffff;
  --gold: #b8975a;
  --gold-light: #d4b87a;
  --gold-muted: #e8dcc8;
  --danger: #c75050;

  --font-serif: 'Noto Serif SC', 'Source Han Serif CN', serif;
  --font-sans: 'Noto Sans SC', 'Source Han Sans CN', -apple-system, sans-serif;
  --font-english: 'Crimson Pro', Georgia, serif;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  --max-width: 1200px;
  --content-width: 720px;
  --header-height: 72px;
  --topbar-height: 36px;

  --shadow-sm: 0 1px 3px rgba(26,26,46,0.08);
  --shadow-md: 0 4px 12px rgba(26,26,46,0.10);
  --shadow-lg: 0 8px 24px rgba(26,26,46,0.12);
  --shadow-xl: 0 16px 48px rgba(26,26,46,0.16);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

/* Hidden */
.hidden {
  display: none !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

/* Topbar */
.topbar {
  height: var(--topbar-height);
  background: var(--ink);
  color: var(--silver);
  font-size: 0.8125rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
}

.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-tagline {
  color: var(--mist);
  letter-spacing: 0.05em;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.topbar-auth {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.user-welcome {
  color: var(--silver);
}

.auth-btn {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.auth-btn-login {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.auth-btn-login:hover {
  background: var(--gold);
  color: var(--white);
}

.auth-btn-register {
  background: var(--gold);
  color: var(--white);
}

.auth-btn-register:hover {
  background: var(--gold-light);
}

.auth-btn-logout {
  background: transparent;
  color: var(--mist);
  border: 1px solid var(--mist);
}

.auth-btn-logout:hover {
  color: var(--silver);
  border-color: var(--silver);
}

/* Header */
.header {
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--silver);
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  gap: var(--space-xl);
}

.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-nav .nav-links {
  display: flex;
  gap: var(--space-xl);
}

.header-nav .nav-link {
  padding: var(--space-sm) 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 60px;
  width: auto;
}

.logo-text {
  font-family: var(--font-english);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.logo-suffix {
  font-family: var(--font-english);
  font-size: 0.875rem;
  color: var(--mist);
  letter-spacing: 0.05em;
}

/* Navigation */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--cloud);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
}

.nav-link {
  display: block;
  padding: var(--space-md) 0;
  font-size: 0.9375rem;
  color: var(--slate);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Main Layout */
.main {
  min-height: calc(100vh - 200px);
  padding-top: calc(var(--topbar-height) + var(--header-height));
  box-sizing: border-box;
}

.main-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
  padding-bottom: var(--space-2xl);
}

/* Hero Section */
.featured-article {
  margin-bottom: var(--space-2xl);
}

/* Articles Section */
.articles-section {
  margin-top: var(--space-2xl);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}

.category-filter {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  font-size: 0.875rem;
  color: var(--slate);
  background: var(--cloud);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gold);
  color: var(--white);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.article-card {
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  cursor: pointer;
  transition: all 0.25s ease;
}

/* 文章卡片奇偶背景色交替 */
.articles-grid .article-card:nth-child(even) {
  background: #f0f4ff;
}
.articles-grid .article-card:nth-child(odd) {
  background: var(--white);
}

/* Featured 文章保持独立深蓝背景 */
.articles-grid .article-card-featured {
  background: linear-gradient(135deg, var(--ink) 0%, var(--graphite) 100%) !important;
  color: var(--white) !important;
}

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

.article-card-category {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.article-card-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: var(--space-sm);
}

.article-card-summary {
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-meta {
  display: flex;
  gap: var(--space-md);
  font-size: 0.8125rem;
  color: var(--mist);
  justify-content: flex-end;
}

.article-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  padding: 0;
  border: none;
  background: linear-gradient(135deg, var(--ink) 0%, var(--graphite) 100%);
  color: var(--white);
}

.article-card-featured:hover {
  transform: none;
  box-shadow: var(--shadow-lg);
}

.featured-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.featured-left {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.featured-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: auto;
  font-size: 0.8125rem;
  color: var(--silver);
}

.featured-right {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

.featured-summary {
  font-size: 0.9375rem;
  color: var(--silver);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.featured-read-more {
  font-size: 0.875rem;
  color: var(--gold);
  font-weight: 500;
}

.load-more {
  text-align: center;
  margin-top: var(--space-xl);
}

.no-articles {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-2xl);
  color: var(--mist);
}

/* Sidebar */
.sidebar {
  width: 280px;
  flex-shrink: 0;
}

.sidebar-inner {
  position: sticky;
  top: calc(var(--header-height) + var(--topbar-height) + var(--space-lg));
  padding: var(--space-lg);
  background: var(--paper);
  border-radius: var(--radius-lg);
}

.sidebar-section {
  margin-bottom: var(--space-xl);
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mist);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: 0.9375rem;
  color: var(--slate);
  transition: color 0.2s;
}

.sidebar-links a:hover {
  color: var(--gold);
}

.sidebar-link-icon {
  color: var(--mist);
  font-size: 0.75rem;
}

.sidebar-text {
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.7;
}

/* Footer */
.footer {
  background: var(--ink);
  color: var(--silver);
  padding: var(--space-2xl) 0 var(--space-xl);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.footer-text {
  font-size: 0.8125rem;
  color: var(--mist);
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--graphite);
}

/* Modal / Auth */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(250, 250, 255, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  pointer-events: none;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  background: rgba(240, 240, 250, 0.9);
  pointer-events: none;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1002;
  background: var(--white);
  width: 90%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  display: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.modal.active {
  display: block !important;
  pointer-events: auto;
}

.modal-content {
  display: block;
  position: relative;
  z-index: 1002;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(26, 26, 46, 0.15);
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--mist);
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--ink);
}

.auth-modal-content {
  width: 100%;
  padding: var(--space-xl);
  position: relative;
}

/* Contact Modal */
.contact-modal-content {
  max-width: 400px;
  text-align: center;
  padding: 48px 40px;
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--gold), #d4a84b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: white;
}

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

.contact-desc {
  font-size: 0.9rem;
  color: var(--mist);
  margin-bottom: 32px;
}

.contact-phone {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  text-decoration: none;
  margin-bottom: 16px;
  transition: color 0.2s;
}

.contact-phone:hover {
  color: #c49a3c;
}

.contact-note {
  font-size: 0.85rem;
  color: var(--mist);
  margin-bottom: 32px;
}


.auth-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  margin-bottom: var(--space-sm);
}

.auth-desc {
  font-size: 0.875rem;
  color: var(--mist);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.auth-switch {
  text-align: center;
  margin-top: var(--space-lg);
  font-size: 0.875rem;
  color: var(--slate);
}

.auth-switch a {
  color: var(--gold);
  font-weight: 500;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  color: var(--slate);
  margin-bottom: var(--space-sm);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9375rem;
  border: 1px solid var(--silver);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-muted);
}

.form-error {
  padding: var(--space-sm) var(--space-md);
  background: rgba(199, 80, 80, 0.1);
  color: var(--danger);
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

/* Reader Lock */
.reader-lock {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.reader-lock.active {
  display: flex;
  pointer-events: auto;
}

.reader-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--ink);
  cursor: pointer;
  z-index: 10;
}

.reader-lock-content {
  position: relative;
  width: 95%;
  max-width: 1467px;
  aspect-ratio: 4 / 3;
  max-height: 90vh;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.reader-share {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
  z-index: 10;
}

.reader-share:hover {
  opacity: 1;
  color: white;
}

.reader-lock-content .article-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
}

.reader-lock-content.locked .article-iframe {
  aspect-ratio: auto;
  height: 45vh;
  overflow: hidden;
  position: relative;
}

.reader-lock-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-2xl);
  background: linear-gradient(transparent, var(--white) 30%);
  text-align: center;
}

.reader-lock-icon {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--gold);
}

.reader-lock-overlay h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: var(--space-sm);
}

.reader-lock-overlay p {
  font-size: 0.9375rem;
  color: var(--slate);
  margin-bottom: var(--space-lg);
}

.reader-lock-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.content-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(transparent, var(--white));
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-card-featured {
    grid-template-columns: 1fr;
  }

  .featured-left {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}

/* ============================================
   Admin Panel Styles
   ============================================ */

.admin-layout {
  min-height: 100vh;
  background: var(--mist);
}

.admin-header {
  background: var(--ink);
  color: var(--white);
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-header .logo {
  text-decoration: none;
}

.admin-header .logo-img {
  height: 60px;
  width: auto;
}

.admin-header .logo-iuga {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.admin-header .logo-cn {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-left: 2px;
}

.admin-nav {
  display: flex;
  gap: var(--space-lg);
}

.admin-nav-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9375rem;
  padding: var(--space-sm) 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  color: var(--white);
  border-bottom-color: var(--gold);
}

.admin-main {
  padding: var(--space-xl);
}

.admin-container {
  max-width: 1200px;
  margin: 0 auto;
}

.admin-page {
  display: none;
}

.admin-page.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.admin-page.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-page-header {
  margin-bottom: var(--space-xl);
}

.admin-page-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--ink);
}

.admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: var(--space-lg);
  overflow: hidden;
}

.admin-card-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--silver);
  overflow: hidden;
}

.uploaded-file-info {
  flex: 1;
  min-width: 0;
}

.admin-card-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
}

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

.admin-table th,
.admin-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--silver);
}

.admin-table th {
  font-weight: 600;
  color: var(--ink);
  background: var(--mist);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-table td {
  color: var(--slate);
  font-size: 0.9375rem;
}

.admin-table tr:hover td {
  background: var(--cloud);
}

.admin-table .article-title {
  font-weight: 500;
  color: var(--ink);
}

.admin-table .article-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gold-muted);
  color: var(--gold-dark);
  border-radius: 12px;
  font-size: 0.8125rem;
}

.admin-table .article-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8125rem;
}

.admin-table .article-status.published {
  background: rgba(76, 175, 80, 0.1);
  color: #2e7d32;
}

.admin-table .article-status.draft {
  background: rgba(158, 158, 158, 0.1);
  color: #757575;
}

.admin-form-group {
  margin-bottom: var(--space-lg);
}

.admin-form-label {
  display: block;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
}

.admin-form-input,
.admin-form-select,
.admin-form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--silver);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-form-input:focus,
.admin-form-select:focus,
.admin-form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-muted);
}

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

.admin-form-hint {
  font-size: 0.8125rem;
  color: var(--mist);
  margin-top: var(--space-xs);
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.admin-btn-primary {
  background: var(--gold);
  color: var(--white);
}

.admin-btn-primary:hover {
  background: var(--gold-dark);
}

.admin-btn-secondary {
  background: var(--mist);
  color: var(--ink);
}

.admin-btn-secondary:hover {
  background: var(--silver);
}

.admin-btn-danger {
  background: #ef5350;
  color: var(--white);
}

.admin-btn-danger:hover {
  background: #c62828;
}

.admin-btn-sm {
  padding: 6px 12px;
  font-size: 0.8125rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.admin-stat-card {
  background: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.admin-stat-value {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.admin-stat-label {
  font-size: 0.875rem;
  color: var(--slate);
}

.admin-quick-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}


/* ============================================
   Hero Section - 浅色权威风格
   ============================================ */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8f7f4 100%);
  border-bottom: 1px solid #e8e6e1;
  border-radius: 0 0 24px 24px;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-eyebrow-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #b8975a, #d4b87a);
}

.hero-eyebrow-text {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: #b8975a;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a2e;
  margin-bottom: 24px;
}

.hero-title br {
  display: block;
}

.hero-desc {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.8;
  color: #4a4a6a;
  margin-bottom: 40px;
}

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

.hero-actions .btn {
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 500;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 400px;
}

.hero-card {
  background: #ffffff;
  border: 1px solid #e8e6e1;
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(26, 26, 46, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-card:hover {
  transform: translateX(-8px);
  box-shadow: 0 8px 30px rgba(26, 26, 46, 0.1);
}

.hero-card-1 {
  border-left: 4px solid #b8975a;
}

.hero-card-2 {
  border-left: 4px solid #8b6914;
}

.hero-card-3 {
  border-left: 4px solid #d4af37;
}

.hero-card-number {
  font-family: var(--font-english);
  font-size: 2rem;
  font-weight: 700;
  color: #e8e6e1;
  line-height: 1;
}

.hero-card-content h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.hero-card-content p {
  font-size: 0.9375rem;
  color: #8a8aaa;
}

/* 响应式 */
@media (max-width: 968px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .hero-eyebrow {
    justify-content: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .hero-cards {
    max-width: 360px;
  }
  
  .hero-card:hover {
    transform: none;
  }
}

.hero-tags {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-tag {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(184, 151, 90, 0.08);
  border: 1px solid rgba(184, 151, 90, 0.2);
  border-radius: 20px;
  font-size: 0.875rem;
  color: #8b6914;
  font-weight: 500;
}

.hero-tag-link {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(184, 151, 90, 0.08);
  border: 1px solid rgba(184, 151, 90, 0.2);
  border-radius: 20px;
  font-size: 0.875rem;
  color: #8b6914;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-tag-link:hover {
  background: rgba(184, 151, 90, 0.15);
  border-color: rgba(184, 151, 90, 0.3);
  color: #7a5c12;
}

.hero-tagline {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(184, 151, 90, 0.08);
  border: 1px solid rgba(184, 151, 90, 0.2);
  border-radius: 20px;
  font-size: 0.75rem;
  color: #8b6914;
  font-weight: 500;
}

.hero-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #f8f7f4, #fff);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8975a;
  flex-shrink: 0;
}

.hero-card-content {
  flex: 1;
}

.hero-card-content h4 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.hero-card-content p {
  font-size: 0.875rem;
  color: #8a8aaa;
  line-height: 1.5;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.mobile-menu-btn span { display: block; width: 100%; height: 2px; background: var(--gold); border-radius: 2px; }

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
}
.mobile-menu.show { display: block; }
.mobile-menu-inner {
  position: absolute;
  top: 0; right: 0;
  width: 280px;
  height: 100%;
  background: var(--white);
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  padding-top: 60px;
}
.mobile-nav-link { display: block; padding: 16px 24px; color: var(--ink); font-size: 1rem; border-bottom: 1px solid var(--border); }
.mobile-nav-link:active { background: var(--cream); }

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links.desktop-nav { display: none !important; }
  .mobile-menu-btn { display: flex !important; }

  /* 隐藏顶部栏和登录 */
  .topbar { display: none; }

  /* Header手机版：Logo左，菜单右，上下居中 */
  .header { top: 0; }
  .header-inner {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: var(--header-height);
  }
  .logo { position: static !important; transform: none !important; }
  .header-nav { display: flex; flex-direction: row; justify-content: flex-end; align-items: center; }

  /* Hero手机版：简化显示 */
  .hero { padding: 20px 0; }
  .hero-inner { display: flex; flex-direction: column; align-items: center; padding: 0 16px; }
  .hero-content { display: flex; flex-direction: column; align-items: center; width: 100%; }
  .hero-visual { display: none !important; }
  .hero-eyebrow { margin-bottom: 16px; }
  .hero-eyebrow-text { font-size: 0.75rem; }
  .hero-title { font-size: 1.5rem; margin-bottom: 20px; }
  .hero-desc { font-size: 0.875rem; line-height: 1.6; margin-bottom: 24px; }
  .hero-actions { display: flex; justify-content: center; margin-top: 32px; width: 100%; }
  .hero-actions .btn { flex: 1; max-width: 280px; text-align: center; }
  .hero-actions .btn-primary:first-child { display: none; }
  .hero-actions .btn-outline {
    background: linear-gradient(135deg, var(--gold) 0%, #d4a84a 100%);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(184, 151, 90, 0.4);
  }
  .hero-tags { gap: 8px; margin-top: 32px; }
  .hero-tag { padding: 6px 12px; font-size: 0.8125rem; }
  .hero-tagline { padding: 4px 10px; font-size: 0.7rem; }

  /* 文章网格手机版 */
  .articles-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }

  /* 阅读器手机版全屏竖向 */
  .reader-lock { align-items: center; justify-content: center; }
  .reader-lock.active { display: flex; }
  .reader-lock-content { width: 100%; height: 90vh; max-height: 90vh; border-radius: 0; }
  .reader-lock-content .article-iframe { width: 100%; height: 100%; }

  /* 文章卡片字体响应式 */
  .article-card-title { font-size: 1rem; }
  .article-card-excerpt { font-size: 0.875rem; }
}
