:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --text2: #6e6e73;
  --text3: #86868b;
  --line: rgba(0, 0, 0, 0.06);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --green: #34c759;
  --radius: 18px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --max: 980px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --text2: #a1a1a6;
    --text3: #8e8e93;
    --line: rgba(255, 255, 255, 0.08);
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(245, 245, 247, 0.72);
  border-bottom: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) {
  .topbar { background: rgba(0, 0, 0, 0.72); }
}
.topbar-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { font-size: 17px; font-weight: 600; color: var(--text); }
.brand small { display: block; font-size: 12px; font-weight: 400; color: var(--text3); margin-top: 2px; }
.brand a { color: inherit; text-decoration: none; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--text2);
  padding: 6px 14px; border-radius: 980px;
  background: rgba(0, 0, 0, 0.04);
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.is-active {
  color: var(--blue); background: rgba(0, 113, 227, 0.1); text-decoration: none;
}
@media (prefers-color-scheme: dark) {
  .nav-links a { background: rgba(255, 255, 255, 0.08); }
}

.page { max-width: var(--max); margin: 0 auto; padding: 20px 20px 48px; }

.hero {
  text-align: center;
  padding: 36px 0 28px;
}
.hero-badge {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  color: var(--blue);
  background: rgba(0, 113, 227, 0.1);
  padding: 5px 14px; border-radius: 980px;
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.hero-sub {
  font-size: 16px; color: var(--text2);
  max-width: 560px; margin: 0 auto 28px;
  line-height: 1.6;
}

.search-box {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  display: flex; gap: 8px;
  max-width: 640px; margin: 0 auto 20px;
  border: 1px solid var(--line);
}
.search-box:focus-within {
  border-color: rgba(0, 113, 227, 0.4);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12), var(--shadow);
}
.search-input {
  flex: 1; border: none; background: transparent;
  font: inherit; font-size: 16px; padding: 12px 16px;
  color: var(--text); outline: none; min-width: 0;
}
.search-input::placeholder { color: var(--text3); }
.btn {
  appearance: none; border: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500;
  padding: 10px 22px; border-radius: 12px;
  transition: background .2s, transform .15s;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); text-decoration: none; color: #fff; }
.btn-ghost { background: rgba(0, 0, 0, 0.05); color: var(--text); }
.btn-ghost:hover { background: rgba(0, 0, 0, 0.08); }
@media (prefers-color-scheme: dark) {
  .btn-ghost { background: rgba(255, 255, 255, 0.1); }
}

.cat-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-bottom: 8px;
}
.cat-chip {
  appearance: none; border: none; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 500;
  padding: 7px 16px; border-radius: 980px;
  background: var(--card); color: var(--text2);
  border: 1px solid var(--line);
  transition: all .2s;
}
.cat-chip:hover { color: var(--blue); border-color: rgba(0, 113, 227, 0.3); }
.cat-chip.is-active {
  background: var(--blue); color: #fff; border-color: var(--blue);
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
}
.card-label { font-size: 13px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }
.card-title { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 12px; }
.card-sub { font-size: 15px; color: var(--text2); line-height: 1.6; }
.card-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.contact-row { display: flex; flex-wrap: wrap; gap: 16px 24px; font-size: 14px; color: var(--text2); margin-top: 8px; }

.result-meta { font-size: 13px; color: var(--text3); margin-bottom: 16px; }
.result-list { list-style: none; }
.result-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.result-item:last-child { border-bottom: 0; }
.result-icon {
  flex: 0 0 auto; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; font-size: 20px;
  background: rgba(0, 113, 227, 0.08);
}
.result-body { flex: 1; min-width: 0; }
.result-title {
  font-size: 15px; font-weight: 600; line-height: 1.45;
  margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.result-title a { color: inherit; text-decoration: none; }
.result-title a:hover { color: var(--blue); }
.result-info { font-size: 12px; color: var(--text3); }
.result-tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 6px; margin-right: 6px;
  background: rgba(0, 0, 0, 0.05); color: var(--text2);
}
.result-action {
  flex: 0 0 auto; align-self: center;
  font-size: 12px; font-weight: 500;
  padding: 6px 14px; border-radius: 980px;
  background: rgba(52, 199, 89, 0.12); color: var(--green);
  text-decoration: none; white-space: nowrap;
}
.result-action:hover { background: rgba(52, 199, 89, 0.2); text-decoration: none; color: var(--green); }
.result-empty { text-align: center; color: var(--text3); padding: 40px 0; font-size: 15px; }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pick-card {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; transition: border-color .2s, box-shadow .2s;
}
.pick-card:hover { border-color: rgba(0, 113, 227, 0.25); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); }
.pick-type {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 6px; margin-bottom: 10px;
  background: var(--blue); color: #fff;
}
.pick-type--cn { background: #ff6b35; }
.pick-type--anime { background: #af52de; }
.pick-type--uk { background: #5856d6; }
.pick-type--us { background: #ff9500; }
.pick-type--jp { background: #ff2d55; }
.pick-name { font-size: 16px; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.pick-desc { font-size: 13px; color: var(--text2); line-height: 1.55; }

.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px;
}
.cat-card {
  text-align: center; padding: 20px 12px;
  border-radius: 14px; border: 1px solid var(--line);
  cursor: pointer; transition: all .2s;
  background: transparent; font: inherit; color: inherit;
}
.cat-card:hover { border-color: rgba(0, 113, 227, 0.3); background: rgba(0, 113, 227, 0.04); }
.cat-card-emoji { font-size: 28px; margin-bottom: 8px; display: block; }
.cat-card-name { font-size: 14px; font-weight: 600; }

.footer { text-align: center; font-size: 12px; color: var(--text3); padding: 24px 0 8px; }

@media (max-width: 640px) {
  .topbar-inner { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 24px; }
  .search-box { flex-direction: column; padding: 12px; }
  .search-box .btn { width: 100%; }
  .card { padding: 22px 18px; }
  .card-title { font-size: 21px; }
  .result-action { display: none; }
  .pick-grid { grid-template-columns: 1fr; }
}
