/* ============================================================
   抓抓工具箱 — shared stylesheet
   Geometry calibrated against reference screenshots (1280x720).
   ============================================================ */

/* ---------- design tokens ---------- */
:root {
  --green: #15803d;
  --green-dark: #15803d;
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-border: #bbf7d0;

  --blue-bar: #eff6ff;
  --blue-text: #1e40af;
  --blue-border: #bfdbfe;
  --blue-icon: #2563eb;

  --orange: #f59e0b;

  --announce-bg: #ecfdf5;
  --announce-text: #15803d;

  --text: #111827;
  --text-2: #4b5563;
  --text-3: #6b7280;
  --text-4: #9ca3af;

  --border: #e5e7eb;
  --illu-bg: #f3f4f6;

  --header-h: 56px;
  --sidebar-w: 290px;
  --r-card: 10px;
  --r-btn: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 10px 26px rgba(15, 23, 42, 0.14);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
svg { display: block; }
.ico { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- language bar ---------- */
.lang-bar {
  background: var(--blue-bar);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 15px 56px;
  font-size: 15px;
  color: var(--blue-text);
}
.lang-bar > .ico { width: 20px; height: 20px; color: var(--blue-icon); }
.lang-switch {
  background: #fff;
  border: 1px solid var(--blue-border);
  color: var(--blue-text);
  font-size: 14px;
  padding: 5px 16px;
  border-radius: var(--r-btn);
}
.lang-switch:hover { border-color: var(--blue-icon); }
.lang-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  font-size: 15px;
  color: var(--blue-text);
}
.lang-more .ico { width: 14px; height: 14px; }
.lang-more:hover { text-decoration: underline; }
.bar-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  padding: 7px;
  border-radius: 6px;
  display: flex;
  color: var(--blue-icon);
}
.bar-close:hover { background: rgba(37, 99, 235, 0.08); }

/* ---------- announcement bar ---------- */
.announce {
  background: var(--announce-bg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 56px;
  font-size: 14px;
  color: var(--announce-text);
}
.announce > .ico { width: 16px; height: 16px; color: var(--green); }
.announce .bar-close { color: #94a3b8; }
.announce .bar-close:hover { background: rgba(100, 116, 139, 0.12); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
}
.hamburger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  border-radius: 8px;
  color: var(--text);
}
.hamburger:hover { background: #f3f4f6; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 800; letter-spacing: 0.5px; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--green-50);
  border: 1px solid var(--green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}
.header-nav { margin-left: auto; display: flex; align-items: center; gap: 32px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  color: #374151;
  white-space: nowrap;
}
.nav-link:hover { color: var(--green); }
.nav-link--vip { color: var(--orange); font-weight: 500; }
.nav-link--vip:hover { color: #d97706; }
.btn-login {
  background: var(--green);
  color: #fff;
  font-size: 15px;
  padding: 8px 20px;
  border-radius: var(--r-btn);
  white-space: nowrap;
}
.btn-login:hover { background: var(--green-dark); }

/* ---------- layout / sidebar ---------- */
.layout { display: flex; align-items: stretch; min-height: calc(100vh - var(--header-h)); }
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 40;
}

.side-nav { padding: 16px 12px 2px; display: flex; flex-direction: column; gap: 5px; }
.side-nav--tight { padding-top: 8px; gap: 3px; }
.side-item {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  padding: 7px 12px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}
.side-item:hover { background: #f9fafb; }
.side-item .si-icon { width: 20px; height: 20px; color: #4b5563; }
.side-item.active {
  background: var(--green-50);
  border-color: var(--green-border);
  color: var(--green);
  font-weight: 500;
}
.side-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  height: 56%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--green);
}
.side-item.active .si-icon { color: var(--green); }
.side-section {
  margin: 6px 12px 0;
  border-top: 1px solid var(--border);
  padding: 19px 12px 5px;
  font-size: 14px;
  color: var(--text-4);
}
.side-group {
  margin: 4px 12px 0;
  border-top: 1px solid var(--border);
  padding: 16px 12px 5px;
  font-size: 14px;
  color: var(--text-4);
}
.side-item .side-sub {
  flex-basis: 100%;
  font-size: 12px;
  line-height: 1.2;
  color: var(--text-4);
  padding-left: 31px;
  margin-top: -6px;
  margin-bottom: -3px;
  white-space: nowrap;
}
.side-item.active .side-sub { color: var(--green); opacity: 0.75; }
.side-item--sub { padding: 7px 12px; flex-direction: column; align-items: stretch; gap: 1px; }
.sub-row { display: flex; align-items: center; gap: 11px; }
.sub-desc { font-size: 12px; line-height: 1.2; color: var(--text-4); padding-left: 31px; }
.new-pill {
  margin-left: auto;
  background: var(--green-100);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 999px;
  line-height: 1.4;
}
.side-bottom {
  position: fixed;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 42%);
  border-top: 1px solid transparent;
  padding: 10px 51px 22px 43px;
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--text-2);
}
.side-bottom::before { content: none; }
.lang-pick {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  height: 16px;
  gap: 8px;
  background: none;
  border: 0;
  font-size: 14px;
  color: var(--text-2);
  padding: 0 8px;
  border-radius: 6px;
}
.lang-pick:hover { background: #f3f4f6; }
.lang-pick .ico { width: 16px; height: 16px; }
.lang-pick .chev { width: 13px; height: 13px; color: var(--text-4); }
.flex-sp { flex: 1; }
.icon-btn { background: none; border: 0; padding: 0; border-radius: 6px; display: flex; color: var(--text-2); }
.icon-btn .ico { width: 20px; height: 20px; }
.side-bottom .flex-sp { display: none; }
.icon-btn:hover { background: #f3f4f6; }
.sidebar-overlay { display: none; }

/* ---------- content ---------- */
.content {
  flex: 1;
  min-width: 0;
  background: linear-gradient(180deg, var(--green-50) 0%, #fff 430px);
}
.page { max-width: 1200px; margin: 0 auto; padding: 0 22px; }

.sidebar div.side-section:nth-of-type(2) { margin-top: 12px; }
.sidebar div.side-nav:nth-of-type(3) { padding-top: 4px; }

/* ---------- hero ---------- */
.hero { padding-top: 89px; text-align: center; }
.hero h1 { margin: 0; font-size: 47px; line-height: 1.2; font-weight: 800; color: var(--text); }
.hero-sub { margin: 14px auto 0; font-size: 20px; color: var(--text-2); line-height: 1.4; max-width: 800px; }
.page-youtube .hero { padding-top: 101px; }
.page-youtube .hero-sub { margin-top: 20px; }
.page-playlist .hero-sub { max-width: 764px; letter-spacing: 0.3px; }
.page-playlist .m3-search i, .page-playlist .m3-search .plus { display: none; }
.page-playlist .m2 { justify-content: flex-start; align-items: stretch; padding: 54px 56px 0 70px; gap: 3px; }
.page-playlist .m2 i.pb { width: auto; height: 7px; background: #dadada; }
.page-playlist .step:nth-child(2) .b-body { padding: 0 0 12px; }
.page-playlist .step:nth-child(1) .b-body { padding-top: 3px; }
.page-playlist .m2-inrow { margin: 5px 0 0; }
.page-playlist .m2-row { height: 20px; }
.page-playlist .m2-go { position: absolute; right: -54px; top: 0; width: 65px; height: 22px; border-radius: 4px; }
.page-playlist .m2-cursor { right: auto; left: -42px; top: 5px; transform: rotate(12deg); }


/* ---------- extract box ---------- */
.extract-wrap { margin: 17px 0 0; }
.extract-box {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.15s;
}
.extract-box:focus-within { border-color: var(--green); }
.extract-field { flex: 1; display: flex; align-items: center; min-width: 0; }
.extract-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  color: var(--text);
  padding: 11px 4px 11px 18px;
  font-family: inherit;
}
.extract-field input::placeholder,
.extract-box textarea::placeholder { color: var(--text-4); }
.copy-btn {
  background: none;
  border: 0;
  color: #374151;
  padding: 8px;
  margin-right: 10px;
  border-radius: var(--r-btn);
  display: flex;
}
.copy-btn .ico { width: 24px; height: 24px; }
.copy-btn:hover { color: var(--green); background: var(--green-50); }
.extract-btn {
  border: 0;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 0 21px;
  flex-shrink: 0;
}
.extract-btn:hover { background: var(--green-dark); }
/* textarea variant */
.extract-box--area { flex-direction: column; align-items: stretch; }
.extract-box--area textarea {
  border: 0;
  outline: 0;
  resize: vertical;
  min-height: 116px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  font-family: inherit;
  background: transparent;
}
.extract-box--area .extract-btn {
  align-self: flex-end;
  margin: 0 10px 10px;
  border-radius: var(--r-btn);
  height: 40px;
}
.page-youtube .extract-wrap { margin-top: 31px; }

/* ---------- step cards (browser mockups) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 58px;
  margin: 48px 25px 0;
}
.page-playlist .steps { margin-top: 71px; }
.step { min-width: 0; }
.step-cap {
  margin: 8px auto 0;
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
  text-align: center;
  max-width: 245px;
}
.illu { position: relative; }
.browser {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.b-bar {
  height: 15px;
  background: #26282b;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
}
.b-bar > i { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.b-bar > i:nth-child(1) { background: #f87171; }
.b-bar > i:nth-child(2) { background: #fbbf24; }
.b-bar > i:nth-child(3) { background: #34d399; }
.b-nav { display: flex; gap: 4px; margin-left: 3px; }
.b-nav i { width: 0; height: 0; border-radius: 0; background: none; border-top: 3px solid transparent; border-bottom: 3px solid transparent; }
.b-nav i:first-child { border-right: 4px solid #9ca3af; }
.b-nav i:last-child { border-left: 4px solid #9ca3af; }
.b-addr {
  flex: 0 1 44%;
  height: 8px;
  background: #fff;
  border-radius: 5px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  overflow: hidden;
}
.b-addr span { display: block; width: 62%; height: 3px; border-radius: 2px; background: #ef4444; }
.b-addr.plain span { display: none; }
.b-icons { display: flex; gap: 4px; }
.b-icons i { width: 5px; height: 7px; border-radius: 1px; background: #6b7280; }
.b-body { padding: 12px; display: flex; gap: 10px; height: 151px; }
/* variant 1: video + copy tooltip */
.m1-main {
  flex: 1.6;
  align-self: center;
  height: 96px;
  background: #d6d6d6;
  border-radius: 5px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.play-circle svg { width: 15px; height: 15px; color: #374151; margin-left: 2px; }
.m1-tip {
  position: absolute;
  right: -10px;
  top: 63%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.m1-tip i { display: block; height: 5px; border-radius: 2px; }
.m1-tip i:nth-child(1) { width: 22px; background: #d1d5db; }
.m1-tip i:nth-child(2) { width: 38px; height: 7px; background: #fff; border: 1px solid #ef4444; }
.m1-tip i:nth-child(3) { width: 44px; background: #e5e7eb; }
.m1-cursor {
  position: absolute;
  right: -2px;
  top: 57%;
  width: 0;
  height: 0;
  border-left: 6px solid #111827;
  border-right: 4px solid transparent;
  border-top: 9px solid transparent;
  transform: rotate(12deg);
  z-index: 3;
}
.m1-side { flex: 0.52; align-self: center; height: 96px; display: flex; flex-direction: column; gap: 8px; }
.m1-side i { flex: 1; background: #d6d6d6; border-radius: 4px; }
/* variant 2: paste input + button */
.m2 { flex: 1; display: flex; flex-direction: column; gap: 5px; justify-content: center; align-items: center; }

.m2 i { display: block; height: 5px; border-radius: 3px; background: #d1d5db; }
.m2 i.w70 { width: 35%; }
.m2 i.w50 { width: 56%; }
.m2-inrow { width: 76%; display: flex; align-items: center; gap: 3px; position: relative; margin-top: 4px; }
.m2-row {
  flex: 1;
  height: 15px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 6px 0 8px;
  gap: 6px;
  background: #fff;
}
.m2-row .ln { flex: 1; height: 4px; background: var(--illu-bg); border-radius: 2px; }
.m2-row .cp { width: 8px; height: 8px; border: 1.5px solid #ef4444; border-radius: 2px; flex-shrink: 0; }
.m2-go {
  width: 34px;
  height: 20px;
  background: #22c55e;
  border: 1px solid #ef4444;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.m2-go::after { content: ""; width: 56%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.95); }
.m2-cursor {
  position: absolute;
  right: 2px;
  bottom: -11px;
  width: 0;
  height: 0;
  border-left: 6px solid #111827;
  border-right: 4px solid transparent;
  border-top: 9px solid transparent;
  transform: rotate(12deg);
}
/* variant 3: format options */
.m3 { flex: 1; display: flex; flex-direction: column; gap: 3px; align-items: center; justify-content: flex-start; margin-top: 30px; }
.m3 > i { display: block; height: 5px; border-radius: 3px; background: #d1d5db; }
.m3 i.w35 { width: 33%; }
.m3 i.w55 { width: 55%; }
.m3-search {
  width: 96%;
  height: 9px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 6px;
  gap: 6px;
  margin-top: 3px;
}
.m3-search i { flex: 0 0 35%; display: block; height: 3px; border-radius: 2px; background: #d1d5db; }
.m3-search .plus { font-size: 8px; line-height: 1; color: #6b7280; margin-left: auto; }
.m3-search .mini { width: 24px; height: 6px; border-radius: 2px; background: #22c55e; flex-shrink: 0; }
.m3-panel--fill { height: auto; flex: 1; margin-top: 1px; }
.m3-panel--fill .cell { height: 40px; }
.m3-panel--fill .m-gcells .cell::before { display: none; }
.m3-panel {
  width: 96%;
  height: 55px;
  margin-top: 6px;
  border: 1px solid #fca5a5;
  border-radius: 4px;
  padding: 4px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  justify-content: space-evenly;
}
.m3-panel .tline { display: block; height: 3px; border-radius: 2px; background: #d1d5db; }
.m3-panel i.t60 { width: 88%; }
.m3-panel i.t46 { width: 50%; }
.m3-panel i.t40 { width: 38%; background: #4ade80; height: 3px; }
.m3-row { display: flex; gap: 5px; width: 100%; }
.m3-row i { height: 6px; border-radius: 2px; flex: 1; }
.c-blue { background: #93c5fd; }
.c-green { background: #4ade80; }
.c-orange { background: #fb923c; }
.c-gray { background: #e5e7eb; }
.c-grayb { background: #f3f4f6; border: 1px solid #e5e7eb; }
/* profile variant (playlist card 1) */
.m-profile { flex: 1; display: flex; flex-direction: column; gap: 5px; position: relative; }
.m-profile .banner { height: 31px; background: #e5e7eb; border-radius: 4px; flex-shrink: 0; }
.m-profile .head { display: flex; align-items: center; gap: 9px; padding-left: 13px; position: relative; z-index: 1; }
.m-profile .ava { width: 30px; height: 30px; border-radius: 50%; background: #e6e8ec; flex-shrink: 0; }
.m-profile .head .cols { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.m-profile .head .cols i { height: 6px; border-radius: 3px; background: #e5e7eb; display: block; }
.m-profile .head .cols i:last-child { width: 55%; }
.m-profile .tip {
  position: absolute;
  right: 24%;
  top: -4px;
  background: #fff;
  color: #111827;
  font-size: 7.5px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.25);
  white-space: nowrap;
  z-index: 2;
}
.m-gcells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
.m-profile .m-gcells { grid-template-columns: repeat(4, 43px); gap: 12px; width: auto; padding-left: 14px; }
.m-profile .m-gcells .cell::after, .m-profile .m-gcells .cell::before { display: none; }
.m-gcells { row-gap: 12px; }
.m-profile .wrow { display: block; width: 64%; height: 7px; border-radius: 3px; background: #e5e7eb; margin-left: 55px; margin-top: 2px; }
.m-gcells .cell { background: #e5e7eb; border-radius: 4px; height: 25px; position: relative; }
.m-gcells .cell::before { content: ""; position: absolute; left: 12%; right: 12%; bottom: -9px; height: 3px; border-radius: 2px; background: #e5e7eb; }
.m-gcells .cell::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 22px; height: 7px; margin-left: -11px; border-radius: 2px; background: #22c55e; }
/* grid variant (playlist card 3) */
.m-grid { flex: 1; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: flex-start; padding-top: 0; }
.m-grid .m3-search { margin-top: 2px; }
.m-grid > i { display: block; height: 5px; border-radius: 3px; background: #d1d5db; }
.m-grid i.w35 { width: 35%; }
.m-grid i.w55 { width: 55%; }

/* ---------- generic sections ---------- */
.section { margin-top: 72px; }
.section h2 { margin: 0 0 26px; font-size: 27px; font-weight: 700; text-align: center; color: var(--text); }

/* ---------- supported sites grid ---------- */
.sites-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.site-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 20px 10px;
  font-size: 15px;
  color: #374151;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.site-card:hover { border-color: var(--green-border); box-shadow: var(--shadow-sm); }
.site-card .ico { width: 26px; height: 26px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
}
.faq-q .chev { transition: transform 0.2s; color: var(--text-4); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.25s ease; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 4px 20px; font-size: 15px; line-height: 1.8; color: var(--text-3); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ---------- download (client) cards ---------- */
.dl-cards { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.dl-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 12px;
  padding: 18px 24px;
  min-width: 250px;
  border: 1px solid var(--border);
  background: #fff;
}
.dl-card .ico { width: 34px; height: 34px; }
.dl-card b { display: block; font-size: 17px; margin-bottom: 4px; }
.dl-card small { font-size: 13px; opacity: 0.85; }
.dl-card--green { background: var(--green); border-color: var(--green); color: #fff; }
.dl-card--green:hover { background: var(--green-dark); }
.dl-card:not(.dl-card--green):hover { border-color: #d1d5db; box-shadow: var(--shadow-sm); }
.dl-card:not(.dl-card--green) small { color: var(--text-3); opacity: 1; }

/* ---------- YouTube tabs ---------- */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-top: 48px;
  padding-left: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 14px 17px 16px;
  margin-bottom: -1px;
  font-size: 15px;
  color: #374151;
  white-space: nowrap;
}
.tab:hover { color: var(--green); }
.tab.active { color: var(--green); border-bottom-color: var(--green); font-weight: 500; }
.tab .ico { width: 18px; height: 18px; }

/* ---------- features grid (YouTube page) ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.page-youtube .features { margin-top: 185px; }
.feat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); padding: 22px; }
.feat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--green-50);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feat-icon .ico { width: 22px; height: 22px; }
.feat-card h3 { margin: 0 0 8px; font-size: 16px; }
.feat-card p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text-3); }

/* ---------- bulk page ---------- */
.bulk-hero {
  display: grid;
  grid-template-columns: 433px minmax(0, 1fr);
  gap: 21px;
  align-items: start;
  padding-top: 90px;
}
.bulk-left { margin-top: 56px; min-width: 0; }
.bulk-hero h1 { margin: 0; font-size: 47px; font-weight: 800; line-height: 1.2; }
.bulk-hero .hero-sub { margin: 13px 0 0; text-align: left; font-size: 20px; line-height: 1.4; max-width: 440px; }
.bulk-hero .dl-cards { justify-content: flex-start; margin-top: 33px; gap: 17px; flex-wrap: nowrap; }
.bulk-hero .dl-card { min-width: 0; padding: 17px 17px; gap: 12px; border-radius: 10px; }
.bulk-hero .dl-card .ico { width: 30px; height: 30px; }
.bulk-hero .dl-card b { font-size: 17px; }
.bulk-hero .dl-card small { font-size: 12.5px; white-space: nowrap; }
.bulk-hero .extract-wrap { margin: 185px 0 0; max-width: none; }
.stats-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 0; padding: 0; font-size: 14px; color: var(--text-3); }
.stats-row li { display: inline-flex; align-items: center; gap: 6px; }
.stats-row .ico { width: 15px; height: 15px; color: var(--green); }

/* app window mockup */
.app-shot {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}
.app-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.app-titlebar b { font-size: 10px; display: flex; align-items: center; gap: 5px; color: var(--text); }
.win-controls { display: flex; gap: 10px; font-size: 9px; color: #9ca3af; line-height: 1; }
.app-body { display: flex; height: 341px; }
.app-side {
  width: 116px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: #fff;
  padding: 22px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.app-side .mi {
  font-size: 7.5px;
  color: #4b5563;
  padding: 6px 6px 6px 17px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}
.app-side .mi::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 1.5px;
  background: #c7cbd1;
}
.app-side .mi.on::before { background: #4ade80; }
.app-side .mi.on { background: var(--green-50); color: var(--green-dark); }
.app-side .m-sec { font-size: 7px; color: #9ca3af; padding: 5px 6px 2px; }
.app-side .spacer { flex: 1; }
.app-user {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 7px;
  color: #6b7280;
  padding: 4px 6px;
  border-top: 1px solid var(--border);
}
.app-user .ava { width: 10px; height: 10px; border-radius: 50%; background: #d1d5db; flex-shrink: 0; }
.app-main { flex: 1; padding: 5px 14px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.app-h { font-size: 9px; font-weight: 600; color: var(--text); }
.app-input { position: relative; border: 1px solid var(--border); border-radius: 6px; padding: 5px 9px; display: flex; flex-direction: column; gap: 1px; height: 44px; overflow: hidden; }
.app-input .close { position: absolute; right: 7px; top: 4px; font-size: 8px; color: #6b7280; }
.app-btnrow { display: flex; margin-top: 21px; }
.app-btnrow .big { width: 150px; height: 22px; border-radius: 11px; background: var(--green); opacity: 0.9; margin-left: 62px; }
.app-input .url { font-size: 8px; line-height: 1.15; color: #6b7280; word-break: break-all; }
.app-input .btn-label { font-size: 7px; color: #fff; }
.app-input .row { display: flex; align-items: center; justify-content: center; }
.app-input .btn { width: 50px; height: 16px; border-radius: 4px; background: var(--green); }
.app-meta { display: flex; align-items: center; gap: 6px; font-size: 7.5px; color: #4b5563; }
.app-meta .dd { border: 1px solid var(--border); border-radius: 3px; padding: 2px 5px; background: #fff; }
.app-meta .grow { flex: 1; }
.app-meta .sel { width: 52px; height: 13px; border: 1px solid var(--border); border-radius: 3px; }
.app-meta .btn { width: 44px; height: 14px; border-radius: 3px; background: var(--green); opacity: 0.9; }
.app-table { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; flex: 1; display: flex; flex-direction: column; }
.app-table .app-tr:first-child { flex: 0 0 10px; }
.app-tr .pill { border: 1px solid var(--border); }
.app-tr {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  flex: 1;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  font-size: 8px;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
}
.app-tr:last-child { border-bottom: 0; }
.app-tr .idx { width: 10px; color: #374151; }
.app-tr .bar { flex: 0 1 200px; }
.app-tr .grow { flex: 1; height: 4px; border-radius: 2px; background: #f3f4f6; }
.app-tr .th { color: #9ca3af; }
.app-tr .pill { font-size: 6.5px; line-height: 1; padding: 2px 5px; border-radius: 2px; background: #fff; color: #374151; flex-shrink: 0; white-space: nowrap; }
.app-tr .pill--blue { background: #dbeafe; }
.app-tr .dots { width: 16px; color: #374151; font-size: 8px; flex-shrink: 0; text-align: center; margin-left: auto; }
.app-path {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  color: #4b5563;
}
.app-path .sel { width: 70px; height: 12px; border: 1px solid var(--border); border-radius: 3px; margin-left: auto; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 26px 20px 34px;
  text-align: center;
  font-size: 14px;
  color: var(--text-4);
}
.site-footer a { color: var(--text-4); }
.site-footer a:hover { color: var(--green); }
.site-footer .dot { margin: 0 10px; }

/* ============================================================
   generated tool pages (standard / upload / image templates)
   ============================================================ */

/* green CTA button used by generated pages */
.btn-primary {
  border: 0;
  background: #57ac2f;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--r-btn);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: #4c9929; }

/* centered tabs + wider extract gap: generated standard pages only */
.page-gen .hero .tabs { justify-content: center; padding-left: 0; margin-top: 44px; gap: 4px; }
.page-gen .hero .extract-wrap { margin-top: 32px; }

/* SEO heading section on standard pages */
.seo-h { margin: 128px 0 0; font-size: 38px; font-weight: 700; text-align: center; color: var(--text); }

/* ---------- upload template (transcribe) ---------- */
.import-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 4px;
  margin-top: 15px;
}
.import-pills .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  font-size: 15px;
  color: var(--text-2);
  padding: 8px 20px;
  border-radius: 999px;
}
.import-pills .pill.active {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  font-weight: 500;
}
.import-pills .pill .ico { width: 17px; height: 17px; }
.dropzone {
  max-width: 772px;
  margin: 7px auto 0;
  background: #fff;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 64px 24px 60px;
  text-align: center;
}
.dropzone .btn-primary { padding: 10px 28px; border-radius: 6px; }
.dz-hint { margin: 13px 0 0; font-size: 14px; color: #374151; }
.dz-formats { margin: 8px 0 0; font-size: 13px; color: var(--text-3); }
.feat-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px 24px;
  max-width: 420px;
  margin: 24px auto 0;
  padding: 0;
}
.feat-row li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #4b5563;
}
.feat-row .ico { width: 15px; height: 15px; color: #57ac2f; }

/* ---------- video-to-audio variant: card + dropzone + format pills ---------- */
.v2a-card {
  max-width: 950px;
  margin: 32px auto 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 26px 24px 24px;
}
.v2a-card .dropzone {
  max-width: none;
  margin: 0;
  padding: 52px 24px 24px;
  border-width: 1px;
}
.v2a-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.v2a-icon .ico { width: 22px; height: 22px; }
.v2a-card .dz-hint { margin-top: 14px; font-size: 13px; }
.fmt-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}
.fmt-row .fmt-label { font-size: 14px; color: var(--text-2); }
.fmt-pills {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 4px;
}
.fmt-pill {
  border: 1px solid transparent;
  background: none;
  font-size: 14px;
  color: #374151;
  padding: 6px 16px;
  border-radius: 6px;
}
.fmt-pill.active {
  background: #fff;
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-weight: 500;
}

/* ---------- image template (two-column) ---------- */
.crumb {
  padding-top: 34px;
  font-size: 14px;
  color: var(--text-3);
}
.crumb .sep { margin: 0 10px; color: var(--text-4); }
.tool-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 516px;
  gap: 65px;
  align-items: start;
  margin-top: 30px;
  margin-bottom: 140px;
  padding: 0 0 0 25px;
  margin-right: -22px;
}
.tool-copy { padding-top: 41px; }
.tool-copy h1 { margin: 0; font-size: 40px; line-height: 1.25; font-weight: 800; color: var(--text); }
.tool-desc {
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 360px;
}
.tool-copy .btn-primary { margin-top: 8px; }
.chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.chip-label { font-size: 14px; color: var(--text-3); margin-right: 4px; }
.chip {
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13.5px;
  color: #374151;
  padding: 6px 12px;
  border-radius: 999px;
  transition: border-color 0.15s;
}
.chip:hover { border-color: var(--green-border); color: var(--green); }
.tool-sample { min-width: 0; }
.sample-panel {
  position: relative;
  height: 310px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 12% 8%, #fde8d7 0%, rgba(253, 232, 215, 0) 52%),
    radial-gradient(110% 90% at 88% 14%, #d7ecfd 0%, rgba(215, 236, 253, 0) 55%),
    radial-gradient(130% 100% at 78% 92%, #dcf5e3 0%, rgba(220, 245, 227, 0) 58%),
    radial-gradient(120% 110% at 18% 88%, #f3e8fd 0%, rgba(243, 232, 253, 0) 55%),
    linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sample-canvas {
  width: 300px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  transform: rotate(-2deg);
}
.sc-head { display: flex; gap: 5px; }
.sc-head i { width: 7px; height: 7px; border-radius: 50%; background: #e5e7eb; }
.sc-head i:nth-child(1) { background: #fca5a5; }
.sc-head i:nth-child(2) { background: #fcd34d; }
.sc-head i:nth-child(3) { background: #86efac; }
.sc-blob {
  display: block;
  height: 86px;
  border-radius: 8px;
  background:
    radial-gradient(60% 90% at 22% 30%, #fbbf24 0%, rgba(251, 191, 36, 0) 60%),
    radial-gradient(55% 80% at 78% 22%, #60a5fa 0%, rgba(96, 165, 250, 0) 62%),
    radial-gradient(70% 90% at 55% 88%, #4ade80 0%, rgba(74, 222, 128, 0) 60%),
    radial-gradient(50% 70% at 15% 85%, #f472b6 0%, rgba(244, 114, 182, 0) 58%),
    #f3f4f6;
}
.sc-line { display: block; height: 8px; border-radius: 4px; background: #e5e7eb; }
.sc-line.w80 { width: 82%; }
.sc-line.w55 { width: 56%; }
.sc-swatch { display: flex; gap: 8px; }
.sc-swatch i { width: 22px; height: 22px; border-radius: 6px; }
.sc-swatch .c1 { background: #fca5a5; }
.sc-swatch .c2 { background: #fcd34d; }
.sc-swatch .c3 { background: #86efac; }
.sc-swatch .c4 { background: #93c5fd; }
.sample-caption {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  max-width: 92%;
  background: rgba(17, 24, 39, 0.78);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  padding: 8px 14px;
  border-radius: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sample-caption .sp { margin-right: 7px; }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hamburger { display: flex; }
  .header-nav .nav-link { display: none; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100vh;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    z-index: 90;
  }
  body.sidebar-open .sidebar { transform: none; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18); }
  .side-bottom { position: static; }
  .side-bottom::before { display: none; }
  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 80;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
  }
  body.sidebar-open .sidebar-overlay { opacity: 1; pointer-events: auto; }
  .bulk-hero { grid-template-columns: 1fr; gap: 36px; }
  .bulk-left { margin-top: 0; }
  .bulk-hero .extract-wrap { margin-top: 26px; }
  .page-youtube .features { margin-top: 48px; }
}

@media (max-width: 900px) {
  .sites-grid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .page { padding: 0 18px; }
  .site-header { padding: 0 12px; gap: 8px; }
  .hero { padding-top: 34px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .page-youtube .hero { padding-top: 34px; }
  .page-youtube .hero-sub { margin-top: 12px; }
  .lang-bar { font-size: 13px; gap: 10px; padding: 10px 44px; }
  .lang-text { display: none; }
  .announce { font-size: 13px; }
  .extract-wrap { margin-top: 24px; }
  .page-youtube .extract-wrap { margin-top: 24px; }
  .extract-box { flex-wrap: wrap; }
  .extract-field { flex: 1 1 100%; border-bottom: 1px solid var(--border); }
  .extract-field input { padding: 13px 4px 13px 16px; }
  .extract-btn { flex: 1 1 100%; height: 46px; }
  .extract-box--area .extract-btn { flex: 0 1 auto; }
  .steps { grid-template-columns: 1fr; gap: 26px; margin: 40px 0 0; }
  .page-playlist .steps { margin-top: 40px; }
  .section { margin-top: 52px; }
  .section h2 { font-size: 22px; }
  .sites-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .dl-cards { flex-direction: column; align-items: stretch; }
  .bulk-hero { padding-top: 34px; }
  .bulk-hero h1 { font-size: 30px; }
  .bulk-hero .hero-sub { font-size: 15px; }
  .bulk-hero .dl-cards { flex-direction: column; align-items: stretch; flex-wrap: wrap; }
  .site-footer { margin-top: 56px; }
}

/* ---------- generated-page templates, small screens ---------- */
@media (max-width: 1024px) {
  .tool-two-col { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .tool-sample { order: 2; margin-top: 0; }
  .sample-panel { height: 260px; }
  .page-gen .hero .tabs { flex-wrap: nowrap; }
}
@media (max-width: 640px) {
  .crumb { padding-top: 20px; font-size: 13px; }
  .tool-two-col { margin-top: 16px; margin-right: 0; margin-bottom: 40px; padding: 0 2px; }
  .sample-panel { width: 100%; }
  .tool-copy h1 { font-size: 28px; }
  .tool-desc { font-size: 15px; }
  .sample-panel { height: 210px; border-radius: 12px; }
  .sample-canvas { width: 240px; padding: 12px 14px 14px; gap: 8px; }
  .sc-blob { height: 58px; }
  .sample-caption { font-size: 12px; bottom: 10px; }
  .page-gen .hero .tabs { margin-top: 28px; }
  .page-gen .hero .extract-wrap { margin-top: 20px; }
  .import-pills { margin-top: 14px; }
  .dropzone { padding: 40px 16px 32px; }
  .feat-row { gap: 8px 18px; }
  .seo-h { margin-top: 64px; font-size: 24px; }
  .v2a-card { padding: 18px 14px 16px; margin-top: 20px; }
  .v2a-card .dropzone { padding: 32px 14px 24px; }
  .fmt-row { flex-wrap: wrap; gap: 10px; }
}

/* ---- 提取引擎结果区 ---- */
.ex-zone { margin-top: 16px; }
.ex-result, .ex-state { background:#fff; border:1px solid var(--line,#e5e7eb);
  border-radius:10px; padding:16px; text-align:left; }
.ex-head { display:flex; gap:10px; align-items:center; margin-bottom:10px; flex-wrap:wrap; }
.ex-badge { color:#fff; font-size:12px; padding:2px 10px; border-radius:999px; }
.ex-author, .ex-dur { color:#6b7280; font-size:13px; }
.ex-body { display:flex; gap:14px; align-items:flex-start; }
.ex-thumb { width:180px; border-radius:8px; display:block; }
.ex-thumb-blank { width:180px; height:101px; background:#f3f4f6; }
.ex-meta { flex:1; min-width:0; }
.ex-title { font-size:15px; margin:0 0 6px; color:#111827; }
.ex-note { font-size:13px; color:#6b7280; margin:0 0 6px; }
.ex-client { font-size:13px; color:var(--green,#15803d); font-weight:600; text-decoration:none; }
.ex-src { font-size:12px; color:#9ca3af; margin:8px 0 0; word-break:break-all; }
.ex-src a { color:#6b7280; }
.ex-state { text-align:center; }
.ex-state-title { font-weight:600; margin:0 0 4px; color:#111827; }
.ex-state-detail { font-size:13px; color:#6b7280; margin:0; word-break:break-all; }
.ex-loading { color:var(--green,#15803d); }

/* ---- 后端接线 UI ---- */
.rb-auth { background:#fff; border:1px solid #e5e7eb; border-radius:10px; padding:20px; }
.rb-auth-title { font-weight:600; color:#111827; margin:0 0 12px; }
.rb-in { display:block; width:100%; max-width:360px; margin:0 auto 10px; padding:10px 12px;
  border:1px solid #e5e7eb; border-radius:8px; font:inherit; }
.rb-auth-btns { display:flex; gap:10px; justify-content:center; }
.rb-ghost { background:#fff; border:1px solid #e5e7eb; border-radius:8px; padding:10px 18px; cursor:pointer; }
.rb-err { color:#dc2626; font-size:13px; min-height:18px; margin:8px 0 0; }
.rb-fmt { width:100%; border-collapse:collapse; margin-top:12px; font-size:13px; }
.rb-fmt th { text-align:left; color:#6b7280; font-weight:500; padding:6px 8px; border-bottom:1px solid #e5e7eb; }
.rb-fmt td { padding:6px 8px; border-bottom:1px solid #f3f4f6; color:#111827; }
.rb-dl { color:#15803d; font-weight:600; text-decoration:none; margin-right:10px; }
.rb-dl-proxy { color:#6b7280; font-weight:400; }
.rb-upsell { margin-top:10px; }

/* ---- 丰富版 footer（站点地图）---- */
.site-footer--rich { text-align: left; padding: 32px 24px 24px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; max-width: 1200px; margin: 0 auto 20px; }
.footer-col-title { font-weight: 600; color: var(--text-2, #374151); margin-bottom: 10px; font-size: 14px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin: 6px 0; }
.footer-list a { font-size: 13px; }
.footer-legal { text-align: center; border-top: 1px solid rgba(0,0,0,.06); padding-top: 16px; font-size: 13px; }

/* ---- 无侧栏页全宽（affiliate-site 等，原站形态）---- */
.content--full { flex: 1 1 auto; max-width: none; }

/* ---- 教程区 ---- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 24px 0; }
.article-card { display: block; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px 20px; text-decoration: none; transition: box-shadow .15s; }
.article-card:hover { box-shadow: 0 4px 14px rgba(21,128,61,.12); }
.article-card-title { font-size: 16px; font-weight: 600; color: #111827; margin: 0 0 8px; }
.article-card-sub { font-size: 13px; color: #6b7280; margin: 0; line-height: 1.6; }
.doc { max-width: 760px; margin: 0 auto; }
.doc h1 { font-size: 26px; margin: 28px 0 8px; }
.doc-summary { color: #6b7280; margin: 0 0 20px; }
.doc-sec { margin: 22px 0; }
.doc-sec h2 { font-size: 19px; margin: 0 0 10px; }
.doc-sec p { line-height: 1.8; color: #374151; margin: 8px 0; }
.doc-cta { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 16px 20px; }

/* ---- 登录弹层增强（对齐对标站结构）---- */
.rb-auth { position: relative; }
.rb-close { position: absolute; top: 8px; right: 10px; background: none; border: none; color: #9ca3af; font-size: 12px; cursor: pointer; }
.rb-close:hover { color: #374151; }
.rb-auth-row { text-align: right; margin: -6px 0 10px; }
.rb-forgot { font-size: 12px; color: #6b7280; text-decoration: none; }
.rb-forgot:hover { color: #15803d; }
.rb-auth-alt { margin-top: 12px; border-top: 1px solid #f3f4f6; padding-top: 12px; text-align: center; }
.rb-google { width: 100%; }
.rb-google[disabled] { opacity: .55; cursor: not-allowed; }
.rb-switch { font-size: 12px; color: #6b7280; margin: 8px 0 0; }
.rb-switch b { color: #15803d; }
.rb-auth-host { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 9998; width: min(400px, 92vw); background: #fff; border-radius: 14px; box-shadow: 0 12px 48px rgba(0,0,0,.22); padding: 8px 4px; }
