/* Shared shell for the hub and the V2 Importer page.
   Modern browsers only; the BiliLight page keeps its own iOS 5 compatible stylesheet. */
:root {
  color-scheme: light dark;
  --paper: #f5f7f3;
  --surface: #fbfcfa;
  --surface-2: #eef2ec;
  --line: #d3dcd5;
  --line-soft: #e4eae4;
  --ink: #22343a;
  --ink-2: #4b5f5e;
  --muted: #73857f;
  --teal: #126e77;
  --teal-soft: #dde9e5;
  --teal-ink: #235955;
  --pink: #d93a73;
  --pink-soft: #fbe4ec;
  --pink-ink: #8e1f4b;
  --violet: #6f6288;
  --violet-soft: #ebe7f1;
  --amber-bg: #fff5e5;
  --amber-line: #dfc39c;
  --amber-ink: #82511e;
  --amber-body: #654c32;
  --focus: #149ca7;
  --shadow: 0 18px 40px rgba(37, 56, 61, .11);
  --shadow-soft: 0 8px 22px rgba(37, 56, 61, .08);
  --radius: 14px;
  --radius-lg: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111615;
    --surface: #182020;
    --surface-2: #1f2927;
    --line: #2e3b39;
    --line-soft: #253030;
    --ink: #e6ecea;
    --ink-2: #b9c6c2;
    --muted: #8fa09b;
    --teal: #5fb3b8;
    --teal-soft: #1d3537;
    --teal-ink: #a6dcd9;
    --pink: #ef6f9d;
    --pink-soft: #3a1f2b;
    --pink-ink: #f5b7cc;
    --violet: #b2a6cc;
    --violet-soft: #2a2535;
    --amber-bg: #2d2416;
    --amber-line: #5c4727;
    --amber-ink: #e3bf86;
    --amber-body: #cdb897;
    --shadow: 0 18px 40px rgba(0, 0, 0, .45);
    --shadow-soft: 0 8px 22px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "PingFang SC", "Noto Sans CJK SC", "Noto Sans", "Apple SD Gothic Neo", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--teal-soft); color: var(--teal-ink); }

.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 84px; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: .02em; }
.brand .brand-sub { color: var(--muted); font-weight: 400; font-size: 12px; }
.brand .brand-back { color: var(--muted); font-weight: 400; }
.header-tools { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { padding: 6px 10px; border-radius: 7px; font-size: 13px; color: var(--ink-2); }
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.langs { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.langs button {
  border: 0; background: transparent; padding: 6px 10px; border-radius: 6px;
  font-size: 12px; color: var(--muted); cursor: pointer;
}
.langs button:hover { color: var(--ink); background: var(--surface-2); }
.langs button[aria-pressed="true"] { background: var(--teal-soft); color: var(--teal-ink); font-weight: 600; }

/* Typography helpers */
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .19em; font-weight: 700; color: var(--teal); text-transform: uppercase; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.eyebrow.pink { color: var(--pink); }
.eyebrow.violet { color: var(--violet); }
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-head { max-width: 720px; margin-bottom: 30px; }
.section-title { font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -.03em; line-height: 1.25; margin: 10px 0 0; }
.section-lead { color: var(--muted); font-size: 15px; margin: 12px 0 0; }
.lead { color: var(--ink-2); font-size: 16px; line-height: 1.85; }
.muted { color: var(--muted); }
.small { font-size: 12px; color: var(--muted); line-height: 1.6; }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace; font-size: .92em; }

/* Buttons and chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px; border-radius: 11px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-pink { background: var(--pink); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); font-size: 12px; line-height: 1.4; white-space: nowrap;
}
.chip.pink { background: var(--pink-soft); color: var(--pink-ink); }
.chip.teal { background: var(--teal-soft); color: var(--teal-ink); }
.chip.violet { background: var(--violet-soft); color: var(--violet); }

/* Cards and lists */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.feature-card { padding: 26px 28px; }
.feature-card h3 { margin: 10px 0 8px; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.feature-card p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.feature-num { font-size: 11px; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 26px; margin: 0 0 10px; color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 12px; height: 7px;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg);
}
.check-list.pink li::before { border-color: var(--pink); }
.notice {
  padding: 32px 36px; background: var(--amber-bg); border: 1px solid var(--amber-line);
  border-left: 5px solid var(--amber-ink); border-radius: 10px;
}
.notice h2 { margin: 4px 0 14px; font-size: clamp(24px, 2.6vw, 32px); color: var(--amber-ink); letter-spacing: -.02em; }
.notice p { margin: 10px 0; color: var(--amber-body); line-height: 1.85; }
.notice details { margin-top: 20px; border-top: 1px solid var(--amber-line); padding-top: 12px; }
.notice summary { cursor: pointer; color: var(--amber-ink); font-size: 13px; font-weight: 600; }
.notice .notice-full { white-space: pre-wrap; font-size: 13px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); padding: 26px 0 44px; display: flex; justify-content: space-between;
  gap: 14px 24px; flex-wrap: wrap; font-size: 12px; color: var(--muted);
}
.site-footer a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { width: min(1120px, calc(100% - 32px)); }
  .site-header { flex-direction: column; align-items: stretch; gap: 10px; padding: 16px 0 12px; }
  .header-tools { justify-content: space-between; gap: 8px; }
  .section { padding: 44px 0; }
  .notice { padding: 24px 20px; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover { transition: none; transform: none; }
}
