:root {
  --bg-primary: #0a1628;
  --bg-secondary: #111d32;
  --bg-tertiary: #162236;
  --gold: #c9a227;
  --gold-light: #e8c766;
  --gold-dark: #9a7b1a;
  --text-primary: #f0f2f5;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.1);
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.logo-img {
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  white-space: nowrap;
}

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

.nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.nav .btn {
  margin-left: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--gold);
  color: #0a1628;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(201, 162, 39, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--gold);
}

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

.btn-outline-gold:hover {
  background: rgba(201, 162, 39, 0.1);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 100px;
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  max-width: 700px;
  letter-spacing: -0.5px;
}

.hero h1 span {
  background: linear-gradient(135deg, #c9a227, #f0d060, #c9a227);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 80px;
}

.hero-buttons .btn {
  padding: 14px 36px;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.hero-buttons .btn-primary {
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
}

.hero-buttons .btn-primary:hover {
  box-shadow: 0 6px 30px rgba(201, 162, 39, 0.45);
  transform: translateY(-2px);
}

.hero-buttons .btn-secondary:hover {
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: all 0.25s ease;
  cursor: default;
}

.hero-stat:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(201, 162, 39, 0.25);
  transform: translateY(-1px);
}

.hero-stat-dot {
  width: 36px;
  height: 36px;
  background: rgba(201, 162, 39, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.hero-stat-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.3;
}

.hero-stat-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 100px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  padding: 28px 22px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.4);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(201, 162, 39, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.pricing-card {
  padding: 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  transition: all 0.3s;
}

.pricing-card.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.08) 0%, var(--bg-secondary) 100%);
  transform: scale(1.03);
}

.pricing-card.featured::before {
  content: '推荐';
  position: absolute;
  top: -12px;
  right: 24px;
  padding: 4px 12px;
  background: var(--gold);
  color: #0a1628;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 100px;
}

.pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.pricing-card .desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
  min-height: 42px;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.pricing-card .price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-card .original-price {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 16px;
}

.pricing-card .saving {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
  font-size: 0.8rem;
  border-radius: 100px;
  margin-bottom: 20px;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-card li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.pricing-card li::before {
  content: '✓';
  color: var(--gold);
  margin-right: 10px;
  font-weight: 700;
}

.pricing-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Sample content */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.content-card {
  padding: 28px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
}

.content-card:hover {
  border-color: rgba(201, 162, 39, 0.4);
}

.content-card .tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(201, 162, 39, 0.1);
  color: var(--gold);
  font-size: 0.75rem;
  border-radius: 100px;
  margin-bottom: 12px;
}

.content-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.5;
}

.content-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.content-card .meta {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* About */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h3 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-highlight {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.about-highlight .icon {
  width: 40px;
  height: 40px;
  background: rgba(201, 162, 39, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-highlight h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.about-highlight p {
  font-size: 0.9rem;
  margin: 0;
}

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 40px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.auth-card h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
  text-align: center;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

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

.auth-links {
  text-align: center;
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.message {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: none;
}

.message.show {
  display: block;
}

.message.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.message.success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.message.info {
  background: rgba(201, 162, 39, 0.1);
  color: var(--gold);
  border: 1px solid rgba(201, 162, 39, 0.3);
}

/* Subscribe page */
.subscribe-page {
  padding: 120px 0 80px;
}

.subscribe-page h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.subscribe-page .subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.payment-flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.plan-selection {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-option {
  padding: 20px;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plan-option:hover,
.plan-option.selected {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.05);
}

.plan-option input {
  margin-right: 12px;
}

.plan-option .plan-info h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.plan-option .plan-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.plan-option .plan-price {
  text-align: right;
}

.plan-option .plan-price .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

.plan-option .plan-price .period {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.payment-panel {
  padding: 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.payment-panel h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.qr-code {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 24px;
  display: block;
  border-radius: var(--radius-sm);
  background: white;
  padding: 12px;
}

.payment-instructions {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.payment-instructions ol {
  padding-left: 20px;
}

.payment-instructions li {
  margin-bottom: 8px;
}

/* Dashboard */
.dashboard-page {
  padding: 120px 0 80px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.dashboard-header h1 {
  font-size: 2rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-badge.active {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.status-badge.expired {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.status-badge.pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
}

.sidebar {
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: fit-content;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu li {
  margin-bottom: 8px;
}

.sidebar-menu a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: rgba(201, 162, 39, 0.1);
  color: var(--gold);
}

.main-content {
  padding: 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.subscription-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.info-card {
  padding: 20px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
}

.info-card .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.info-card .value {
  font-size: 1.25rem;
  font-weight: 600;
}

.renewal-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  margin-bottom: 32px;
}

.renewal-toggle .text h4 {
  margin-bottom: 4px;
}

.renewal-toggle .text p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.toggle {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--text-muted);
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle.active {
  background: var(--gold);
}

.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle.active::after {
  transform: translateX(24px);
}

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

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.admin-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table td {
  color: var(--text-secondary);
}

.admin-table .actions {
  display: flex;
  gap: 8px;
}

.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Footer */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
}

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

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

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

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

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Paywall */
.paywall {
  padding: 48px 32px;
  background: var(--bg-tertiary);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  text-align: center;
}

.paywall-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.paywall h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.paywall p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 968px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .about-content,
  .payment-flow,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-stats {
    grid-template-columns: 1fr;
  }

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

  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .payment-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .section h2 {
    font-size: 1.75rem;
  }

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

  .subscription-info {
    grid-template-columns: 1fr;
  }

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

  .content-card { padding: 16px; }
  .content-list-item h3 { font-size: 1rem !important; }
  .article-content table { font-size: 0.75rem; }
  .article-content pre { font-size: 0.8rem; padding: 10px; }
  .article-content h1 { font-size: 1.25rem; }
  .article-content h2 { font-size: 1.1rem; }
}

/* Loading */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--gold);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Utility */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-4 {
  margin-top: 24px;
}

.hidden {
  display: none !important;
}

/* Markdown 内容渲染样式 */
.article-content,
.article-content * {
  box-sizing: border-box !important;
  max-width: 100% !important;
  min-width: 0 !important;
  width: auto !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  white-space: normal !important;
  overflow-x: hidden !important;
}
.article-content p,
.article-content li,
.article-content blockquote,
.article-content div,
.article-content span,
.article-content h1,
.article-content h2,
.article-content h3 {
  display: block !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
.dashboard-grid, .main-content, .content-section, .content-card, .content-list-item {
  min-width: 0 !important;
  overflow-x: hidden !important;
}
.article-content h1 { font-size: 1.5rem; font-weight: 700; color: #fff; margin: 24px 0 12px; padding-bottom: 8px; border-bottom: 1px solid #333; }
.article-content h2 { font-size: 1.3rem; font-weight: 600; color: #e0e0e0; margin: 20px 0 10px; }
.article-content h3 { font-size: 1.1rem; font-weight: 600; color: #ccc; margin: 16px 0 8px; }
.article-content p { margin-bottom: 12px; line-height: 1.8; }
.article-content strong { color: #ffd700; font-weight: 600; }
.article-content em { color: #aaa; }
.article-content a { color: #00d4aa; text-decoration: underline; }
.article-content code { background: #333; padding: 2px 6px; border-radius: 3px; font-size: 0.9em; color: #00d4aa; white-space: normal !important; word-break: break-all !important; }
.article-content pre,
.article-content pre * { white-space: pre-wrap !important; overflow-x: auto; max-width: 100% !important; min-width: 0 !important; }
.article-content pre { background: #1a1a1a; border: 1px solid #333; border-radius: 6px; padding: 16px; overflow-x: auto; margin: 12px 0; line-height: 1.5; }
.article-content pre code { background: none; padding: 0; color: #ddd; }
.article-content blockquote { border-left: 3px solid #c9a227; padding: 8px 16px; margin: 12px 0; background: rgba(201,162,39,0.05); color: #ccc; }
.article-content ul, .article-content ol { padding-left: 24px; margin: 8px 0 16px; line-height: 1.8; }
.article-content li { margin-bottom: 4px; }
.article-content hr { border: none; border-top: 1px solid #333; margin: 24px 0; }
.article-content table { width: 100%; border-collapse: collapse; margin: 16px 0; display: block; overflow-x: auto; }
.article-content th, .article-content td { padding: 8px 12px; border: 1px solid #333; text-align: left; font-size: 0.9rem; word-break: break-word; }
.article-content th { background: #252525; color: #ffd700; font-weight: 600; }
.article-content td { background: #1e1e1e; }
.article-content img { max-width: 100%; border-radius: 6px; margin: 12px 0; }

/* Editor preview */
.article-content img { max-width: 100%; border-radius: 6px; margin: 12px 0; }

/* Editor preview */
#articlePreview h1, #articlePreview h2, #articlePreview h3 { margin-top: 20px; }
#articlePreview p { margin-bottom: 10px; }
#articlePreview code { background: #333; padding: 2px 6px; border-radius: 3px; color: #00d4aa; }
#articlePreview blockquote { border-left: 3px solid #c9a227; padding: 8px 16px; margin: 10px 0; background: rgba(201,162,39,0.05); }

/* 格式工具栏按钮悬停 */
#formatToolbar button:hover { background: #3a3a3a !important; color: #fff !important; border-color: #666 !important; }
#formatToolbar button:active { background: #00d4aa !important; color: #000 !important; }

/* 内容列表卡片悬停 */
.content-list-item { transition: all 0.2s ease; }
.content-list-item:hover { border-color: #555 !important; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
