:root {
  --pink: #e8659a;
  --pink-light: #fce8f2;
  --pink-mid: #f5b8d4;
  --teal: #3abfa0;
  --teal-light: #e0f7f2;
  --amber: #f5a623;
  --purple: #8b6cd4;
  --purple-light: #ede8f8;
  --red-light: #fdeaea;
  --red: #d94f4f;
  --green-light: #e8f5e2;
  --green: #3e9c5f;
  --bg: #fdf8fb;
  --surface: #ffffff;
  --surface2: #f7f0f5;
  --border: #eedde9;
  --text: #2a1a25;
  --text2: #6b4d60;
  --text3: #a07a90;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(180,100,140,0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Noto Sans SC', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }

/* ─── Header ─── */
.header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 1.5rem; display: flex; align-items: center; gap: 1.5rem; height: 56px; position: sticky; top: 0; z-index: 100; }
.logo { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 18px; color: var(--pink); letter-spacing: -0.3px; display: flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none; }
.logo span { color: var(--text); }
.nav-links { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-link { padding: 6px 14px; border-radius: 20px; font-size: 13px; color: var(--text2); cursor: pointer; border: none; background: transparent; white-space: nowrap; font-family: 'Noto Sans SC', sans-serif; transition: all 0.15s; text-decoration: none; display: inline-block; }
.nav-link:hover { background: var(--surface2); color: var(--text); }
.nav-link.active { background: var(--pink-light); color: var(--pink); font-weight: 500; }

/* ─── Layout ─── */
.main { max-width: 820px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }

/* ─── Hero ─── */
.hero { background: linear-gradient(135deg, #fff0f7 0%, #f0faff 100%); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem 1.75rem 1.25rem; margin-bottom: 1.5rem; }
.hero h1 { font-family: 'Outfit', sans-serif; font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.hero h1 .heart { color: var(--pink); }
.hero p { font-size: 14px; color: var(--text2); line-height: 1.6; margin-bottom: 1rem; }
.hero-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-btn { padding: 8px 16px; border-radius: 10px; border: 1px solid var(--border); font-size: 13px; font-family: 'Noto Sans SC', sans-serif; cursor: pointer; text-decoration: none; display: inline-block; transition: all 0.15s; }
.hero-btn.primary { background: var(--pink); color: white; border-color: var(--pink); }
.hero-btn.secondary { background: var(--surface); color: var(--text2); }
.hero-btn:hover { opacity: 0.85; }

/* ─── Search ─── */
.search-row { display: flex; gap: 8px; margin-bottom: 1rem; }
.search-row input { flex: 1; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--border); background: white; font-size: 14px; font-family: 'Noto Sans SC', sans-serif; color: var(--text); outline: none; }
.search-row input:focus { border-color: var(--pink-mid); }
.search-row button { padding: 9px 16px; border-radius: 10px; border: 1px solid var(--border); background: white; font-size: 14px; cursor: pointer; color: var(--text2); }

/* ─── Section label ─── */
.section-label { font-size: 11px; font-weight: 700; color: var(--text3); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; margin-top: 1.5rem; }

/* ─── Tab strip ─── */
.tab-strip { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1.25rem; }
.tab-btn { padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border); font-size: 13px; color: var(--text2); cursor: pointer; background: var(--surface); font-family: 'Noto Sans SC', sans-serif; transition: all 0.12s; }
.tab-btn.on { background: var(--pink-light); border-color: var(--pink-mid); color: var(--pink); font-weight: 500; }

/* ─── Cards ─── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; margin-bottom: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; text-decoration: none; display: block; color: inherit; }
.card:hover { border-color: var(--pink-mid); box-shadow: var(--shadow); }
.card-icon { font-size: 22px; margin-bottom: 8px; }
.card-title { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.card-desc { font-size: 12px; color: var(--text2); line-height: 1.5; }

/* ─── Guide blocks ─── */
.guide-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 12px; }
.guide-block h3 { font-size: 15px; font-weight: 500; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.guide-block h2 { font-size: 17px; font-weight: 600; margin-bottom: 14px; }

/* ─── Step list ─── */
.step-list { list-style: none; counter-reset: steps; }
.step-list li { counter-increment: steps; display: flex; gap: 10px; font-size: 13px; color: var(--text2); line-height: 1.6; padding: 6px 0; border-bottom: 1px solid var(--border); }
.step-list li:last-child { border-bottom: none; }
.step-list li::before { content: counter(steps); min-width: 22px; height: 22px; border-radius: 50%; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--text); flex-shrink: 0; margin-top: 1px; }

/* ─── Notice ─── */
.notice { background: var(--surface2); border-left: 3px solid var(--pink-mid); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 10px 12px; font-size: 13px; color: var(--text2); margin-bottom: 12px; line-height: 1.6; }
.notice.warn { border-left-color: var(--amber); background: #fff8ec; }
.notice.tip { border-left-color: var(--teal); background: var(--teal-light); }
.notice.success { border-left-color: var(--green); background: var(--green-light); }

/* ─── Table ─── */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { background: var(--surface2); padding: 8px 12px; text-align: left; font-size: 11px; font-weight: 700; color: var(--text3); letter-spacing: 0.05em; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.data-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); color: var(--text2); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface2); }
.data-table .name { font-weight: 500; color: var(--text); }
.data-table .profit { color: var(--green); font-weight: 600; }
.data-table .price { color: var(--text); font-weight: 500; }

/* ─── Badge ─── */
.badge { font-size: 10px; padding: 2px 7px; border-radius: 10px; font-weight: 600; display: inline-block; }
.badge-free { background: var(--green-light); color: var(--green); }
.badge-paid { background: var(--red-light); color: var(--red); }
.badge-both { background: var(--teal-light); color: #0e7a62; }
.badge-new { background: #fff0cc; color: #8a5500; }
.badge-expired { background: var(--surface2); color: var(--text3); }
.badge-active { background: var(--green-light); color: var(--green); }
.badge-rare { background: var(--purple-light); color: var(--purple); }
.badge-common { background: var(--surface2); color: var(--text2); }

/* ─── Checklist ─── */
.checklist { list-style: none; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text2); line-height: 1.5; cursor: pointer; }
.checklist li:last-child { border-bottom: none; }
.check-box { width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--border); flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; font-size: 11px; transition: all 0.12s; }
.checklist li.done .check-box { background: var(--teal); border-color: var(--teal); color: white; }
.checklist li.done .check-text { text-decoration: line-through; color: var(--text3); }
.check-tag { font-size: 10px; padding: 2px 7px; border-radius: 10px; font-weight: 600; flex-shrink: 0; margin-top: 2px; }
.tag-medal { background: #fdf0cc; color: #8a6200; }
.tag-gold { background: var(--green-light); color: var(--green); }
.tag-daily { background: var(--teal-light); color: #0e7a62; }
.tag-explore { background: var(--purple-light); color: var(--purple); }

/* ─── Code card ─── */
.code-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.code-card.expired { opacity: 0.5; }
.code-str { font-family: monospace; font-size: 15px; font-weight: 700; color: var(--text); background: var(--surface2); padding: 6px 12px; border-radius: var(--radius-sm); letter-spacing: 1px; flex-shrink: 0; }
.code-info { flex: 1; }
.code-reward { font-size: 13px; color: var(--text2); line-height: 1.5; margin-top: 3px; }
.code-copy { padding: 6px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 12px; cursor: pointer; background: var(--surface); color: var(--text2); font-family: 'Noto Sans SC', sans-serif; flex-shrink: 0; transition: all 0.12s; }
.code-copy:hover { border-color: var(--pink-mid); color: var(--pink); }
.code-copy.copied { background: var(--green-light); border-color: var(--green); color: var(--green); }

/* ─── NPC ─── */
.npc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 10px; cursor: pointer; transition: border-color 0.15s; }
.npc-card:hover { border-color: var(--pink-mid); }
.npc-head { display: flex; align-items: center; gap: 12px; }
.npc-avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; background: var(--surface2); border: 1px solid var(--border); }
.npc-meta { flex: 1; min-width: 0; }
.npc-name { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.npc-role { font-size: 12px; color: var(--text2); margin-top: 2px; }
.npc-loc { font-size: 11px; color: var(--text3); margin-top: 1px; }
.npc-tag { font-size: 11px; padding: 3px 9px; border-radius: 10px; font-weight: 600; flex-shrink: 0; }
.tag-mentor { background: var(--teal-light); color: #0e7a62; }
.tag-shop { background: #edf3ff; color: #2d5fbe; }
.tag-town { background: var(--purple-light); color: var(--purple); }
.tag-special { background: var(--red-light); color: var(--red); }
.chevron { font-size: 14px; color: var(--text3); transition: transform 0.2s; display: inline-block; }
.npc-body { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); display: none; }
.npc-body.open { display: block; }
.chevron.open { transform: rotate(180deg); }
.npc-desc { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 10px; }
.gift-section { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.gift-col { border-radius: var(--radius-sm); padding: 8px 10px; }
.gift-col.love { background: #fdeef5; border: 1px solid #f5b8d4; }
.gift-col.like { background: var(--green-light); border: 1px solid #b6dfa0; }
.gift-col.hate { background: var(--red-light); border: 1px solid #f5b0b0; }
.gift-col .gl { font-size: 11px; font-weight: 600; margin-bottom: 4px; }
.gift-col.love .gl { color: #c0336e; }
.gift-col.like .gl { color: var(--green); }
.gift-col.hate .gl { color: var(--red); }
.gift-col .gi { font-size: 12px; color: var(--text2); line-height: 1.6; }
.strategy-box { margin-top: 8px; background: var(--surface2); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 12px; color: var(--text2); line-height: 1.5; }

/* ─── Info grid ─── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.info-chip { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.info-chip .ic-label { font-size: 11px; color: var(--text3); margin-bottom: 3px; }
.info-chip .ic-val { font-size: 14px; font-weight: 600; color: var(--text); }

/* ─── Stats row ─── */
.stats-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 1.25rem; }
.stat-chip { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 16px; text-align: center; flex: 1; min-width: 80px; }
.stat-chip .sv { font-size: 20px; font-weight: 700; color: var(--pink); font-family: 'Outfit', sans-serif; }
.stat-chip .sl { font-size: 11px; color: var(--text3); margin-top: 2px; }

/* ─── Filter row ─── */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1rem; align-items: center; }
.filter-row input, .filter-row select { padding: 7px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-family: 'Noto Sans SC', sans-serif; color: var(--text); outline: none; }
.filter-row input:focus, .filter-row select:focus { border-color: var(--pink-mid); }

/* ─── Footer ─── */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 2rem 1.5rem; margin-top: 3rem; }
.footer-inner { max-width: 820px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 16px; color: var(--pink); }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--text3); text-decoration: none; }
.footer-links a:hover { color: var(--pink); }
.footer-copy { font-size: 12px; color: var(--text3); width: 100%; }

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .gift-section { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .header { padding: 0 1rem; gap: 0.75rem; }
  .hero { padding: 1.25rem; }
  .code-card { flex-wrap: wrap; }
  .stats-row { gap: 6px; }
}

/* ─── Language Switcher ─── */
.lang-switcher { position: relative; flex-shrink: 0; }
.lang-current { font-size: 12px; color: var(--text2); cursor: pointer; padding: 5px 10px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.lang-current:hover { border-color: var(--pink-mid); color: var(--pink); }
.lang-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); min-width: 140px; z-index: 200; overflow: hidden; }
.lang-switcher:hover .lang-menu { display: block; }
.lang-menu a { display: block; padding: 8px 14px; font-size: 13px; color: var(--text2); text-decoration: none; }
.lang-menu a:hover { background: var(--surface2); color: var(--pink); }

/* ─── Footer langs ─── */
.footer-langs { font-size: 12px; color: var(--text3); width: 100%; margin-top: 4px; }
.footer-langs a { color: var(--text3); text-decoration: none; }
.footer-langs a:hover { color: var(--pink); }
