/* 视频下载站 · 全局样式（深色，移动优先） */
:root {
  --bg: #0b0f14;
  --card: #141c26;
  --card2: #1c2937;
  --text: #eef2f6;
  --muted: #93a1b0;
  --line: #233042;
  --blue: #1d9bf0;
  --violet: #7c5cff;
  --grad: linear-gradient(135deg, #1d9bf0, #7c5cff);
  --green: #00ba7c;
  --red: #f4212e;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(640px 320px at 15% -80px, rgba(29, 155, 240, .22), transparent 70%),
    radial-gradient(560px 300px at 90% -40px, rgba(124, 92, 255, .18), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---- 表头 ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 60px;
}
.logo { font-size: 18px; font-weight: 800; color: var(--text); white-space: nowrap; letter-spacing: .2px; }
.logo:hover { text-decoration: none; }
.logo .badge {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  margin-right: 6px;
  border-radius: 8px;
  background: var(--grad);
  color: #fff;
  font-size: 14px;
  vertical-align: -3px;
}
.logo .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .drop-btn {
  color: var(--text);
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 999px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .15s;
}
.nav > a:hover, .drop-btn:hover { background: var(--card2); text-decoration: none; }
.nav > a.active, .drop-btn.active { color: var(--blue); font-weight: 700; }
.dropdown { position: relative; }
.drop-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 240px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow);
  max-height: 70vh;
  overflow-y: auto;
}
.dropdown.open .drop-menu { display: block; }
.drop-menu a {
  display: block;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  transition: background .15s;
}
.drop-menu a:hover { background: var(--card2); text-decoration: none; }
.drop-menu a .sub { display: block; font-size: 12px; color: var(--muted); }

/* ---- 主体 ---- */
.main { max-width: 960px; margin: 0 auto; padding: 32px 16px 72px; }
.hero { text-align: center; padding: 48px 0 16px; }
.hero h1 { font-size: 38px; margin: 0 0 14px; line-height: 1.25; letter-spacing: .2px; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 17px; margin: 0 auto; max-width: 640px; }
.hero-btns { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(29, 155, 240, .35);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(29, 155, 240, .45); }
.btn.ghost { background: var(--card2); color: var(--text); box-shadow: none; border: 1px solid var(--line); }
.btn.ghost:hover { background: #233247; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.trust {
  margin-top: 26px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.trust span {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(20, 28, 38, .7);
  padding: 5px 12px;
  border-radius: 999px;
}
.trust span i { font-style: normal; color: var(--green); margin-right: 4px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.step .num {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}
.step h3 { margin: 14px 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

h2.sec { font-size: 22px; margin: 56px 0 18px; letter-spacing: .2px; }
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .grid, .grid.three { grid-template-columns: 1fr; } }
.plat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .15s, border-color .15s;
}
.plat:hover { transform: translateY(-2px); border-color: #33465e; }
.plat .glyph {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  font-size: 22px;
  margin-bottom: 12px;
}
.plat .glyph.x { background: #000; color: #fff; border: 1px solid #333; }
.plat .glyph.tk { background: linear-gradient(135deg, #fe2c55, #25f4ee); color: #fff; }
.plat b { display: block; font-size: 17px; }
.plat span { color: var(--muted); font-size: 13px; }
.plat .ok { display: inline-block; margin-top: 12px; color: var(--green); font-size: 13px; font-weight: 700; }
.plat .ok:hover { text-decoration: none; }
.feature { text-align: left; }
.feature .glyph {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--card2);
  font-size: 19px;
  margin-bottom: 10px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.muted { color: var(--muted); }

/* ---- 下载器内页 ---- */
.dl-box { max-width: 680px; margin: 0 auto; }
.dl-hero { text-align: center; padding: 40px 0 8px; }
.dl-hero .glyph {
  display: inline-grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 17px;
  font-size: 28px;
  margin-bottom: 14px;
}
.dl-hero .glyph.x { background: #000; color: #fff; border: 1px solid #333; }
.dl-hero .glyph.tk { background: linear-gradient(135deg, #fe2c55, #25f4ee); color: #fff; }
.dl-box h1 { font-size: 26px; margin: 0 0 10px; }
.dl-box .lead { color: var(--muted); margin: 0 auto; max-width: 520px; }
.url-row { display: flex; gap: 10px; margin-top: 28px; }
.url-row input {
  flex: 1;
  min-width: 0;
  padding: 15px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.url-row input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 155, 240, .18); }
.url-row input::placeholder { color: #6b7a8a; }
.url-row button {
  padding: 0 28px;
  border: 0;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(29, 155, 240, .3);
  transition: transform .15s, opacity .15s;
}
.url-row button:hover { transform: translateY(-1px); }
.url-row button:disabled { opacity: .55; cursor: default; transform: none; }
@media (max-width: 520px) {
  .url-row { flex-direction: column; }
  .url-row button { padding: 15px; }
  .hero h1 { font-size: 30px; }
}
.err { color: var(--red); margin-top: 16px; }
.result img.thumb { width: 100%; border-radius: 12px; }
.tweet-text { color: var(--muted); white-space: pre-wrap; word-break: break-all; }
.dl-btns { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.dl-btns a.dl {
  display: inline-block;
  padding: 9px 16px;
  background: var(--grad);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.dl-btns a.dl:hover { text-decoration: none; filter: brightness(1.1); }
.dl-btns button.copy {
  padding: 9px 16px;
  background: var(--card2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.dl-btns button.copy:hover { background: #233247; }
.note { font-size: 13px; color: var(--muted); margin-top: 24px; text-align: center; }

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 28px 16px 44px;
}
