/* ============ THEME: 极简杂志 (editorial) ============ */
/* 字体：Noto Sans SC（正文）/ Noto Serif SC（标题）/ Space Mono（标签数字） */

body[data-theme="editorial"] {
  --bg: #faf7f0;
  --card: #ffffff;
  --primary: #1a1813;
  --primary-light: #ece7dd;
  --primary-dark: #000000;
  --accent: #a8472f;
  --accent-light: #f3e3dd;
  --success: #5b7a52;
  --success-light: #e7ecdf;
  --text: #1a1813;
  --text-secondary: #6a6055;
  --text-muted: #a39a8a;
  --border: rgba(26, 24, 19, 0.14);
  --danger: #a8472f;
  --radius: 6px;
  --shadow: 0 6px 22px rgba(20, 16, 8, 0.06);
  --shadow-lg: 0 16px 40px rgba(20, 16, 8, 0.1);
  --font-stack: 'Noto Sans SC', sans-serif;
}
body[data-theme="editorial"] { background: #faf7f0; }

body[data-theme="editorial"] .header { background: #faf7f0; border-bottom: 1px solid #1a1813; backdrop-filter: none; }
body[data-theme="editorial"] .header h1 { font-family: 'Noto Serif SC', serif; font-weight: 600; }
body[data-theme="editorial"] .header .subtitle { font-family: 'Space Mono', monospace; font-size: 11px; }
body[data-theme="editorial"] .streak-badge { background: transparent; color: #a8472f; border: 1px solid #1a1813; border-radius: 4px; font-family: 'Space Mono', monospace; }

/* hero -> editorial headline block */
body[data-theme="editorial"] .hero-card { background: #fff; color: #1a1813; border: 1px solid #ece4d6; box-shadow: var(--shadow); }
body[data-theme="editorial"] .hero-card::after { display: none; }
body[data-theme="editorial"] .hero-avatar { background: #f3efe6; color: #1a1813; border: 1px solid #d8cfbe; border-radius: 8px; font-family: 'Noto Serif SC', serif; }
body[data-theme="editorial"] .hero-name { font-family: 'Noto Serif SC', serif; font-weight: 600; }
body[data-theme="editorial"] .hero-rank-chip { background: transparent; color: #a8472f; border: 1px solid #a8472f; font-family: 'Space Mono', monospace; font-weight: 400; }
body[data-theme="editorial"] .hero-sub { color: #6a6055; font-family: 'Space Mono', monospace; font-size: 11px; }
body[data-theme="editorial"] .hero-stat { background: #faf7f0; border: 1px solid #ece4d6; }
body[data-theme="editorial"] .hero-stat strong { font-family: 'Noto Serif SC', serif; }
body[data-theme="editorial"] .hero-stat span { font-family: 'Space Mono', monospace; opacity: 1; color: #8a8276; }
body[data-theme="editorial"] .xp-track { background: #faf7f0; border: 1px solid #ece4d6; }
body[data-theme="editorial"] .xp-meta { color: #8a8276; opacity: 1; font-family: 'Space Mono', monospace; }
body[data-theme="editorial"] .xp-bar { background: rgba(26, 24, 19, 0.12); }
body[data-theme="editorial"] .xp-bar-fill { background: #a8472f; box-shadow: none; }
body[data-theme="editorial"] .xp-bar-fill::after { display: none; }

/* quote -> italic serif with left rule */
body[data-theme="editorial"] .quote-card { background: transparent; color: #2a261e; border-left: 1px solid #1a1813; border-radius: 0; padding: 4px 0 4px 16px; box-shadow: none; }
body[data-theme="editorial"] .quote-card::before { display: none; }
body[data-theme="editorial"] .quote-text { font-family: 'Noto Serif SC', serif; font-style: italic; font-size: 16px; }
body[data-theme="editorial"] .quote-author { font-family: 'Space Mono', monospace; text-transform: uppercase; letter-spacing: .1em; opacity: 1; color: #a39a8a; }

body[data-theme="editorial"] .card,
body[data-theme="editorial"] .quest-card,
body[data-theme="editorial"] .chart-container,
body[data-theme="editorial"] .profile-card,
body[data-theme="editorial"] .stat-card,
body[data-theme="editorial"] .badge-tile,
body[data-theme="editorial"] .badge-summary { background: #fff; border: 1px solid #ece4d6; }

body[data-theme="editorial"] .progress-ring-fill { stroke: #a8472f; }
body[data-theme="editorial"] .progress-center { color: #1a1813; font-family: 'Noto Serif SC', serif; }
body[data-theme="editorial"] .progress-info h3 { font-family: 'Noto Serif SC', serif; }

body[data-theme="editorial"] .quest-row { background: #faf7f0; border: 1px solid #ece4d6; border-radius: 4px; }
body[data-theme="editorial"] .quest-check { background: #fff; border-color: #c8bfad; border-radius: 4px; }
body[data-theme="editorial"] .quest-reward { font-family: 'Space Mono', monospace; color: #a8472f; }

body[data-theme="editorial"] .entry-input { background: #faf7f0; border-radius: 4px; }
body[data-theme="editorial"] .entry-input:focus { background: #fff; border-color: #1a1813; }
body[data-theme="editorial"] .entry-number { background: transparent; color: #a8472f; font-family: 'Space Mono', monospace; font-weight: 700; }
body[data-theme="editorial"] .entry-number.filled { background: transparent; color: #a8472f; }
body[data-theme="editorial"] .tag-select { background: #fff; border-radius: 4px; font-family: 'Space Mono', monospace; }
body[data-theme="editorial"] .entry-add-btn { border-radius: 4px; border-color: #d8cfbe; }

body[data-theme="editorial"] .save-btn,
body[data-theme="editorial"] .auth-btn,
body[data-theme="editorial"] .modal-btn,
body[data-theme="editorial"] .dream-add-btn { background: #1a1813; border-radius: 4px; box-shadow: none; letter-spacing: .04em; }
body[data-theme="editorial"] .save-btn:hover { background: #000; }
body[data-theme="editorial"] .share-action { background: transparent !important; color: #a8472f; border: none; box-shadow: none; font-family: 'Space Mono', monospace; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }

body[data-theme="editorial"] .tab-bar { background: #faf7f0; border-top: 1px solid rgba(26, 24, 19, 0.12); }
body[data-theme="editorial"] .tab-item.active { color: #1a1813; }
body[data-theme="editorial"] .tab-item span { font-family: 'Space Mono', monospace; }

body[data-theme="editorial"] .jar-card { background: #1a1813; }
body[data-theme="editorial"] .stat-value { color: #1a1813; font-family: 'Noto Serif SC', serif; }

/* ============ SHARE CARD ============ */
body[data-theme="editorial"] .share-card { background: #faf7f0; color: #1a1813; font-family: 'Noto Sans SC', sans-serif; padding: 34px 30px; }
body[data-theme="editorial"] .share-card-header { text-align: left; border-bottom: 1px solid #1a1813; padding-bottom: 16px; }
body[data-theme="editorial"] .share-card-header h2 { font-family: 'Noto Serif SC', serif; font-weight: 600; font-size: 26px; }
body[data-theme="editorial"] .share-card-header p { font-family: 'Space Mono', monospace; letter-spacing: .1em; color: #8a8276; opacity: 1; }

body[data-theme="editorial"] .share-card-stats { gap: 0; justify-content: space-between; margin: 20px 0; }
body[data-theme="editorial"] .share-card-stat { flex: 1; text-align: left; padding-left: 16px; border-left: 1px solid rgba(26,24,19,.16); }
body[data-theme="editorial"] .share-card-stat:first-child { padding-left: 0; border-left: none; }
body[data-theme="editorial"] .share-card-stat .val { font-family: 'Noto Serif SC', serif; font-weight: 500; font-size: 30px; }
body[data-theme="editorial"] .share-card-stat .lbl { font-family: 'Space Mono', monospace; text-transform: uppercase; letter-spacing: .12em; color: #8a8276; opacity: 1; }

body[data-theme="editorial"] .share-card-entries { background: transparent; padding: 0; backdrop-filter: none; border-top: 1px solid #1a1813; }
body[data-theme="editorial"] .share-card-entry { padding: 15px 0; align-items: flex-start; }
body[data-theme="editorial"] .share-card-entry + .share-card-entry { border-top: 1px solid rgba(26,24,19,.1); }
body[data-theme="editorial"] .share-card-num { background: transparent; color: #a8472f; font-family: 'Space Mono', monospace; font-weight: 700; width: auto; height: auto; }
body[data-theme="editorial"] .share-card-tag { background: transparent; color: #a39a8a; font-family: 'Space Mono', monospace; text-transform: uppercase; letter-spacing: .1em; padding: 0; }

body[data-theme="editorial"] .share-card-qr { background: transparent; border-top: 1px solid #1a1813; border-radius: 0; padding: 18px 0 0; }
body[data-theme="editorial"] .share-qr-label { font-family: 'Space Mono', monospace; }
body[data-theme="editorial"] .share-qr-url { font-family: 'Space Mono', monospace; opacity: 1; color: #a39a8a; }
body[data-theme="editorial"] .share-card-footer { font-family: 'Space Mono', monospace; }
body[data-theme="editorial"] .share-card-footer .streak { color: #2a261e; font-weight: 400; }
body[data-theme="editorial"] .share-card-footer .brand { color: #a39a8a; opacity: 1; }
