/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #7EFF71;
  --black: #000000;
  --white: #FFFFFF;
  --text: #111111;
  --text-muted: #666666;
  --border: #E5E5E5;
  --bg-light: #FAFAFA;
  --radius: 4px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.14);
  --nav-h: 64px;
  --transition: 200ms ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: "Inter", "Noto Sans SC", -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

img, svg { display: block; max-width: 100%; }

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

.section { padding: 100px 0; }
.section-dark { background: var(--black); color: var(--white); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: #111111;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  border-bottom-color: rgba(255,255,255,0.1);
  box-shadow: 0 1px 16px rgba(0,0,0,0.2);
}
.navbar.section-dark { background: #111111; }
.navbar.section-dark .nav-logo,
.navbar.section-dark .nav-link { color: var(--white); }
.navbar.section-dark .nav-toggle span { background: var(--white); }

.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; color: #fff; }
.logo-accent { color: var(--primary); }

.nav-menu { display: flex; gap: 36px; align-items: center; }
.nav-link {
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.85); letter-spacing: 0.02em;
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1.5px; background: var(--primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-admin { color: var(--primary) !important; font-weight: 600; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--black); border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  background: var(--white); color: var(--black);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.hero-bg-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(200px, 40vw, 400px);
  font-weight: 700;
  color: rgba(0, 0, 0, 0.04);
  letter-spacing: -20px;
  user-select: none; pointer-events: none;
  font-family: "Inter", sans-serif;
}

.hero-content { position: relative; text-align: center; z-index: 1; padding: 0 24px; }
.hero-title {
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 700; letter-spacing: -3px; line-height: 1;
  margin-bottom: 20px;
}
.hero-title .accent { color: var(--primary); }
.hero-sub {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 300; letter-spacing: 0.1em;
  color: rgba(0,0,0,0.6);
  margin-bottom: 12px;
}
.hero-desc {
  font-size: 14px; color: rgba(0,0,0,0.4);
  letter-spacing: 0.08em; margin-bottom: 48px;
}

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

.hero-scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  font-size: 20px; color: rgba(0,0,0,0.3);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; letter-spacing: 0.03em;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer; white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: var(--black);
}
.btn-primary:hover { background: #6ae360; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(126,255,113,0.3); }

.btn-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { background: var(--primary); color: var(--black); border-color: var(--primary); }
.section:not(.section-dark) .btn-outline { color: var(--black); border-color: var(--black); }
.section:not(.section-dark) .btn-outline:hover { background: var(--primary); border-color: var(--primary); color: var(--black); }

.btn-full { width: 100%; }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 64px; }
.section-title {
  font-size: clamp(32px, 5vw, 48px); font-weight: 700;
  letter-spacing: -1px; margin-bottom: 16px;
}
.section-dark .section-title { color: var(--white); }
.section-sub { font-size: 16px; color: var(--text-muted); }
.section-dark .section-sub { color: rgba(255,255,255,0.5); }

/* ===== FONT GRID ===== */
.font-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.font-card {
  border: 1px solid var(--border);
  border-radius: 8px; padding: 32px 28px;
  background: var(--white);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative; overflow: hidden;
}
.font-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--primary);
  transform: scaleX(0); transition: transform var(--transition);
}
.font-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.font-card:hover::before { transform: scaleX(1); }

.font-card-preview {
  font-size: 64px; line-height: 1.1; margin-bottom: 20px;
  color: var(--text); overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis;
}
.font-card-name { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.font-card-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.font-tag {
  font-size: 11px; padding: 3px 10px;
  border-radius: 100px; background: var(--bg-light);
  color: var(--text-muted); font-weight: 500;
}
.font-tag.tag-free { background: rgba(0,0,0,0.08); color: #333; }
.font-tag.tag-pro { background: rgba(0,0,0,0.06); color: var(--text); }

/* ===== PRICING ===== */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; align-items: start; justify-content: center;
  max-width: 1100px; margin: 0 auto;
}
.pricing-card {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 12px; padding: 36px 28px;
  position: relative;
  transition: border-color var(--transition), background var(--transition);
}
.pricing-card:hover { border-color: var(--primary); }
.pricing-card[data-plan="pro"] { border-color: var(--primary); background: rgba(126,255,113,0.07); }

.pricing-badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 4px 12px; border-radius: 100px;
  background: rgba(126,255,113,0.15); color: #575757;
  letter-spacing: 0.05em; margin-bottom: 20px;
}
.pricing-name { font-size: 20px; font-weight: 600; color: #575757; margin-bottom: 12px; }
.pricing-price {
  font-size: 40px; font-weight: 700; color: #111111;
  margin-bottom: 28px; letter-spacing: -2px;
}
.pricing-unit { font-size: 14px; font-weight: 400; color: rgba(0,0,0,0.4); letter-spacing: 0; }

.pricing-features { margin-bottom: 32px; }
.pricing-features li {
  font-size: 14px; color: rgba(0,0,0,0.65);
  padding: 8px 0; border-bottom: 1px solid #eee;
  display: flex; align-items: center; gap: 10px;
}
.pricing-features li::before {
  content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0;
}

/* ===== DOWNLOAD ===== */
.download-preview-bar {
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
}
.preview-label { font-size: 13px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.05em; flex-shrink: 0; }
.preview-input {
  flex: 1; padding: 10px 16px; font-size: 15px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: inherit; outline: none; transition: border-color var(--transition);
}
.preview-input:focus { border-color: var(--primary); }

.download-filter { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 20px; border-radius: 100px;
  border: 1.5px solid var(--border); font-size: 13px; font-weight: 500;
  color: var(--text-muted); transition: var(--transition);
}
.filter-btn:hover { border-color: var(--primary); color: var(--text); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: var(--black); }

.download-table { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.download-thead {
  display: grid;
  grid-template-columns: 700px 1fr 80px 80px 100px;
  gap: 12px; padding: 14px 20px;
  background: var(--bg-light); font-size: 12px; font-weight: 600;
  color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase;
}
.download-tbody { }
.download-row {
  display: grid;
  grid-template-columns: 700px 1fr 80px 80px 100px;
  gap: 12px; padding: 16px 20px;
  align-items: center;
  border-top: 1px solid var(--border);
  font-size: 14px;
  transition: background var(--transition);
}
.download-row:nth-child(even) { background: var(--bg-light); }
.download-row:hover { background: rgba(126,255,113,0.06); }

.download-name { font-weight: 500; }
.download-name-preview {
  display: block; font-size: 22px; color: var(--text); margin-bottom: 4px;
  transition: font-family var(--transition);
}
.download-name-sub { font-size: 12px; color: var(--text-muted); font-weight: 400; }

.download-format { font-family: monospace; font-size: 12px; color: var(--text-muted); }
.download-size { color: var(--text-muted); font-size: 13px; }
.download-name { text-align: left; }

.detail-btn {
  font-size: 13px; font-weight: 500; color: var(--primary);
  padding: 6px 14px; border: 1px solid var(--primary);
  border-radius: var(--radius); transition: var(--transition);
  background: transparent;
}
.detail-btn:hover { background: var(--primary); color: var(--black); }
.download-btn {
  font-size: 13px; font-weight: 500; color: #111;
  padding: 6px 14px; border: 1.5px solid #111;
  border-radius: var(--radius); transition: var(--transition); background: transparent; cursor: pointer;
}
.download-btn:hover { background: var(--primary); border-color: var(--primary); }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-story .section-title { margin-bottom: 28px; }
.about-text {
  font-size: 15px; line-height: 1.8; color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}
.about-text:last-child { margin-bottom: 0; }

.contact-title {
  font-size: 20px; font-weight: 600; color: var(--white); margin-bottom: 24px;
}
.contact-list li {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.7); font-size: 14px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.contact-icon { color: var(--primary); flex-shrink: 0; display: flex; }

.about-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.tag {
  font-size: 12px; padding: 5px 14px;
  border-radius: 100px;
  background: rgba(126,255,113,0.1); color: var(--primary);
  border: 1px solid rgba(126,255,113,0.2);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--black); color: rgba(255,255,255,0.4);
  padding: 32px 0; font-size: 13px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-logo { font-size: 16px; font-weight: 700; color: var(--white); }
.footer-logo .accent { color: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .font-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .download-thead, .download-row { grid-template-columns: 700px 1fr 80px 100px; }
  .download-thead span:nth-child(4),
  .download-row span:nth-child(4) { display: none; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--white); flex-direction: column; gap: 0;
    padding: 8px 0; border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-110%); opacity: 0;
    transition: transform 300ms ease, opacity 300ms ease;
    pointer-events: none;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-menu li { width: 100%; }
  .nav-link { display: block; padding: 14px 24px; }
  .nav-link::after { display: none; }

  .hero-scroll-hint { display: none; }
  .font-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }

  .download-thead, .download-row { grid-template-columns: 1fr 80px 80px; }
  .download-thead span:nth-child(2),
  .download-row span:nth-child(2),
  .download-thead span:nth-child(4),
  .download-row span:nth-child(4) { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }
}

/* ===== ADMIN (Light) ===== */
/* 管理后台中性色（覆盖全局 var(--primary)） */
.admin-page, .admin-page * { --primary: #333; }

.admin-page { background: #F5F5F5; min-height: 100vh; padding-top: 80px; }
.admin-layout { display: flex; min-height: calc(100vh - 80px); }
.admin-sidebar {
  width: 220px; min-width: 220px; background: #fff;
  border-right: 1px solid #E5E5E5;
  display: flex; flex-direction: column;
}
.admin-sidebar-title {
  font-size: 16px; font-weight: 700; color: #111;
  padding: 24px 20px 16px;
  border-bottom: 1px solid #E5E5E5;
}
.admin-sidebar-user { padding: 16px 20px; border-bottom: 1px solid #E5E5E5; }
.admin-sidebar-tabs { flex: 1; padding: 12px 0; }
.admin-sidebar-tab {
  padding: 12px 20px; font-size: 14px; font-weight: 500;
  color: #888; cursor: pointer;
  border-left: 3px solid transparent;
  transition: all var(--transition);
}
.admin-sidebar-tab:hover { color: #333; background: #f9f9f9; }
.admin-sidebar-tab.active { color: var(--primary); border-left-color: var(--primary); background: rgba(0,0,0,0.04); }
.admin-main { flex: 1; padding: 32px 36px; overflow-y: auto; }
.admin-header { margin-bottom: 28px; }
.admin-title { font-size: 22px; font-weight: 700; color: #111; }
.admin-title span { color: var(--primary); }
.admin-subtitle { font-size: 13px; color: #999; margin-top: 4px; }
.admin-header-actions { display: flex; gap: 12px; }

.admin-tabs { display: none; }
.admin-tab { }
.admin-panel { display: none; }
.admin-panel.active { display: block; }

.admin-form { max-width: 720px; }
.form-section {
  background: #fff; border: 1px solid #E5E5E5;
  border-radius: 12px; padding: 28px 24px; margin-bottom: 20px;
}
.form-section-title {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: #999; margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid #F0F0F0;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row.full { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 500; color: #555; }
.form-label span { color: var(--primary); }

.form-input, .form-textarea, .form-select {
  padding: 10px 14px; font-size: 14px;
  background: #FAFAFA; border: 1.5px solid #E5E5E5;
  border-radius: var(--radius); color: #111; outline: none;
  transition: border-color var(--transition);
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--primary); }
.form-input::placeholder, .form-textarea::placeholder { color: #BBB; }
.form-textarea { resize: vertical; min-height: 80px; }
.form-select { appearance: none; cursor: pointer; }
.form-select option { background: #fff; }

.form-hint { font-size: 12px; color: #AAA; }

.form-tags-input { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.form-tag {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 4px 12px; border-radius: 100px;
  background: rgba(0,0,0,0.07); color: #333; border: 1px solid rgba(0,0,0,0.12);
}
.form-tag-remove { cursor: pointer; opacity: 0.7; font-size: 14px; line-height: 1; }
.form-tag-remove:hover { opacity: 1; }
.form-tag-input { flex: 1; min-width: 120px; }

.form-actions { display: flex; gap: 12px; margin-top: 24px; }

.admin-list { }
.admin-list-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.admin-list-count { font-size: 13px; color: #999; }

.admin-font-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px; align-items: center;
  padding: 12px 16px; border-radius: 8px;
  background: #fff; border: 1px solid #E5E5E5;
  margin-bottom: 8px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.admin-font-item:hover { border-color: var(--primary); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.admin-font-info { min-width: 0; }
.admin-font-info-name { font-size: 14px; font-weight: 600; color: #111; margin-bottom: 3px; }
.admin-font-info-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.admin-font-info-tag { font-size: 11px; padding: 2px 8px; border-radius: 100px; background: #F5F5F5; color: #666; }
.admin-font-actions { display: flex; gap: 8px; }
.admin-action-btn {
  padding: 6px 14px; border-radius: var(--radius); font-size: 13px; font-weight: 500;
  transition: var(--transition); cursor: pointer; border: none;
}
.admin-action-btn.edit { background: rgba(0,0,0,0.06); color: #333; }
.admin-action-btn.edit:hover { background: rgba(0,0,0,0.12); }
.admin-action-btn.delete { background: rgba(255,80,80,0.12); color: #d93636; }
.admin-action-btn.delete:hover { background: rgba(255,80,80,0.22); }

.admin-empty {
  text-align: center; padding: 80px 0; color: #AAA;
}
.admin-empty-icon { font-size: 48px; margin-bottom: 16px; }

.admin-toast {
  position: fixed; bottom: 32px; right: 32px;
  background: #111; border: 1px solid rgba(126,255,113,0.3);
  color: #fff; padding: 14px 24px; border-radius: 8px;
  font-size: 14px; z-index: 9999;
  transform: translateY(20px); opacity: 0;
  transition: transform 300ms ease, opacity 300ms ease;
  pointer-events: none;
}
.admin-toast.show { transform: translateY(0); opacity: 1; }
.admin-toast.error { border-color: rgba(255,80,80,0.5); }

/* 文件上传 */
.file-upload-area {
  border: 2px dashed #E5E5E5; border-radius: 8px; padding: 32px; text-align: center;
  cursor: pointer; transition: border-color var(--transition), background var(--transition);
  margin-bottom: 12px;
}
.file-upload-area:hover { border-color: #333; background: rgba(0,0,0,0.02); }
.file-upload-area.dragover { border-color: #333; background: rgba(0,0,0,0.05); }
.file-upload-icon { font-size: 32px; margin-bottom: 12px; }
.file-upload-text { font-size: 14px; color: #999; }
.file-upload-text strong { color: var(--primary); }
.file-upload-hint { font-size: 12px; color: #BBB; margin-top: 6px; }
.file-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.file-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: #FAFAFA; border: 1px solid #E5E5E5; border-radius: 6px;
  font-size: 13px;
}
.file-item-name { font-weight: 500; color: #333; display: flex; align-items: center; gap: 8px; }
.file-item-size { color: #999; font-size: 12px; }
.file-item-remove { color: #FF5050; cursor: pointer; font-size: 16px; line-height: 1; }
.file-item-remove:hover { opacity: 0.7; }

@media (max-width: 640px) {
  .admin-font-item { grid-template-columns: 1fr auto; }
  .form-row { grid-template-columns: 1fr; }
  .admin-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; min-width: unset; border-right: none; border-bottom: 1px solid #E5E5E5; flex-direction: row; flex-wrap: wrap; }
  .admin-sidebar-title { display: none; }
  .admin-sidebar-user { border-bottom: none; padding: 12px 16px; }
  .admin-sidebar-tabs { display: flex; flex-wrap: wrap; padding: 0; }
  .admin-sidebar-tab { padding: 10px 14px; border-left: none; border-bottom: 2px solid transparent; font-size: 13px; }
  .admin-sidebar-tab.active { border-left-color: transparent; border-bottom-color: #333; background: transparent; }
  .admin-main { padding: 20px 16px; }
  .font-admin-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 1100px) {
  .font-admin-grid { grid-template-columns: 1fr 1fr !important; }
  .font-list-col { min-width: 0; }
  .font-form-col { min-width: 0; }
}

.font-admin-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
  align-items: start;
}
.font-list-col { }
.font-form-col {
  background: #fff; border: 1px solid #E5E5E5;
  border-radius: 8px; padding: 20px;
}

/* ===== 统计面板 ===== */
.stats-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stats-kpi {
  background: #fff; border: 1px solid #E5E5E5; border-radius: 12px;
  padding: 24px; text-align: center;
}
.stats-kpi-value { font-size: 36px; font-weight: 700; color: #111; letter-spacing: -2px; }
.stats-kpi-label { font-size: 13px; color: #999; margin-top: 6px; }

.stats-chart-section { background: #fff; border: 1px solid #E5E5E5; border-radius: 12px; padding: 24px; margin-bottom: 24px; }
.stats-chart-title { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 20px; }
.stats-chart { display: flex; align-items: flex-end; gap: 4px; height: 120px; }
.stats-bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stats-bar-wrap { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.stats-bar { width: 100%; border-radius: 3px 3px 0 0; min-height: 2px; transition: opacity 200ms; }
.stats-bar.view-bar { background: #7EFF71; }
.stats-bar.dl-bar { background: #111; }
.stats-bar-label { font-size: 10px; color: #BBB; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.stats-bar:hover { opacity: 0.8; }

.stats-ranking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stats-rank-title { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 12px; }
.stats-rank-table { width: 100%; border-collapse: collapse; }
.stats-rank-table th { font-size: 11px; font-weight: 600; color: #999; letter-spacing: 0.05em; text-transform: uppercase; padding: 8px 12px; text-align: left; border-bottom: 1px solid #EEE; }
.stats-rank-table td { font-size: 13px; color: #333; padding: 10px 12px; border-bottom: 1px solid #F5F5F5; }
.stats-rank-table tr:hover td { background: #FAFAFA; }
.stats-rank-table td:first-child { color: #999; font-weight: 600; }
.stats-rank-num { display: inline-block; width: 20px; height: 20px; border-radius: 50%; background: #F0F0F0; text-align: center; line-height: 20px; font-size: 11px; color: #999; }
.stats-rank-num.top3 { background: #7EFF71; color: #111; font-weight: 700; }

@media (max-width: 640px) {
  .stats-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-ranking-grid { grid-template-columns: 1fr; }
}

/* ===== 字重编辑器 ===== */
.weight-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.weight-name { width: 130px; flex-shrink: 0; }
.weight-sample { flex: 1; }

/* ===== 授权申请弹窗 ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 2000; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-content {
  background: #fff; border-radius: 16px; padding: 32px; width: 100%; max-width: 420px;
  max-height: 90vh; overflow-y: auto; position: relative;
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px;
}
.modal-header h3 { font-size: 20px; font-weight: 600; color: #111; }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%; border: none; background: #f5f5f5;
  font-size: 20px; cursor: pointer; color: #666; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: #eee; }
.modal-content .form-group { margin-bottom: 20px; }
.modal-content .form-group label {
  display: block; font-size: 13px; font-weight: 500; color: #333; margin-bottom: 8px;
}
.modal-content .form-group input {
  width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 8px;
  font-size: 14px; color: #333; outline: none; transition: border-color 200ms;
}
.modal-content .form-group input:focus { border-color: #333; }
.modal-content .form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 8px;
  font-size: 14px; color: #333; background: #fff; outline: none;
  min-height: 100px; cursor: pointer;
}
.modal-content .form-group select:focus { border-color: #333; }
.modal-content .form-group select option { padding: 8px; }
.font-checklist { display: flex; flex-direction: column; gap: 15px; max-height: 200px; overflow-y: auto; border: 1px solid #ddd; border-radius: 8px; padding: 12px; }
.font-check-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 6px; cursor: pointer; transition: background 200ms; }
.font-check-item:hover { background: #f5f5f5; }
.font-check-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: #7EFF71; cursor: pointer; }
.font-check-item span { font-size: 14px; color: #333; }
.duration-input { display: flex; align-items: center; gap: 12px; }
.duration-input button {
  width: 40px; height: 40px; border-radius: 8px; border: 1px solid #ddd; background: #fff;
  font-size: 18px; cursor: pointer; color: #333;
}
.duration-input button:hover { border-color: #333; color: #7EFF71; }
.duration-input input {
  width: 80px !important; text-align: center; font-size: 18px !important; font-weight: 600;
}
.price-calc {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px; background: #f9f9f9; border-radius: 8px; margin-bottom: 20px;
}
.price-label { font-size: 14px; color: #666; }
.price-value { font-size: 28px; font-weight: 700; color: #7EFF71; }
.pay-info { text-align: center; margin-bottom: 24px; }
.pay-title { font-size: 16px; color: #333; margin-bottom: 8px; }
.pay-amount { font-size: 32px; font-weight: 700; color: #111; }
.qr-code {
  display: flex; justify-content: center; margin-bottom: 24px;
  background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 20px;
}
.qr-code img { max-width: 100%; }
.success-msg { text-align: center; padding: 20px 0; }
.success-icon {
  width: 60px; height: 60px; border-radius: 50%; background: #7EFF71; color: #fff;
  font-size: 28px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.success-msg p { font-size: 16px; color: #333; margin-bottom: 8px; }
.success-email { font-size: 14px; color: #7EFF71; font-weight: 500; }
.bank-transfer { margin-bottom: 20px; padding: 16px; background: #f9f9f9; border-radius: 8px; }
.bank-title { font-size: 13px; color: #666; margin-bottom: 12px; text-align: center; }
.bank-info { font-size: 13px; color: #333; }
.bank-info p { margin-bottom: 6px; display: flex; gap: 8px; }
.bank-info span { color: #666; flex-shrink: 0; }
