/* ============================================================
   大飞视频工具 · H5 样式（与小程序原型图 1:1 对齐）
   移动优先 / 品牌渐变 / 手机屏幕式布局
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; }
:root {
  --brand: #5b5bd6; --brand2: #7c5cff; --green: #07c160; --bg: #eef0f6;
  --card: #fff; --text: #16162a; --muted: #8a8a9a; --line: #eceef3;
  --dy: #161823; --ks: #ff7900; --sph: #fa9d3b; --bili: #fb7299; --xhs: #ff2442; --wb: #e6162d; --xg: #f5414f;
}
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: linear-gradient(160deg, #f6f7fb, #e9ebf5);
  color: var(--text);
}
button, input { font-family: inherit; }
.hidden { display: none !important; }

/* ===== 手机屏幕式容器 ===== */
.app {
  max-width: 480px; margin: 0 auto; height: 100%;
  display: flex; flex-direction: column;
  background: var(--bg);
  box-shadow: 0 0 40px rgba(30, 30, 70, .12);
  position: relative;
}
@media (min-width: 520px) {
  body { padding: 24px 0; }
  .app { height: calc(100% - 48px); border-radius: 34px; overflow: hidden; }
}

/* ===== 导航栏 ===== */
.nav {
  height: 48px; flex: 0 0 48px; display: flex; align-items: center; justify-content: center;
  position: relative; font-size: 16px; font-weight: 600;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); z-index: 5;
}
.nav .back { position: absolute; left: 14px; font-size: 22px; font-weight: 400; cursor: pointer; color: #555; }
.nav .vipchip {
  position: absolute; right: 12px; font-size: 11.5px; font-weight: 600; cursor: pointer;
  background: linear-gradient(90deg, #f7b733, #fc4a1a); color: #fff;
  padding: 4px 11px; border-radius: 20px; box-shadow: 0 3px 8px rgba(252, 74, 26, .3);
}

/* ===== 主体 ===== */
.body { flex: 1; overflow: hidden; position: relative; }
.scroll { height: 100%; overflow-y: auto; padding: 14px; -webkit-overflow-scrolling: touch; }
.scroll::-webkit-scrollbar { width: 0; }

/* ===== TabBar ===== */
.tab {
  height: 56px; flex: 0 0 56px; background: rgba(255, 255, 255, .94);
  border-top: 1px solid var(--line); display: flex; backdrop-filter: blur(10px); z-index: 5;
}
.tab a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 10.5px; color: #9a9aa8; text-decoration: none; cursor: pointer;
}
.tab a .ic { font-size: 19px; line-height: 1; filter: grayscale(1); opacity: .55; }
.tab a.on { color: var(--brand); font-weight: 600; }
.tab a.on .ic { filter: none; opacity: 1; }

/* ===== 通用组件 ===== */
.card { background: var(--card); border-radius: 16px; padding: 14px; box-shadow: 0 4px 16px rgba(40, 40, 90, .05); margin-bottom: 12px; }
.hero {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border-radius: 18px; padding: 18px 16px; color: #fff; margin-bottom: 14px;
  position: relative; overflow: hidden;
}
.hero:after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; background: rgba(255, 255, 255, .12); border-radius: 50%; }
.hero h2 { font-size: 19px; margin-bottom: 6px; }
.hero p { font-size: 12.5px; opacity: .9; }
.hero .badges { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.hero .badges span { background: rgba(255, 255, 255, .2); border-radius: 20px; padding: 4px 10px; font-size: 11px; }
.field {
  display: flex; align-items: center; background: #fff; border: 1.5px solid var(--line);
  border-radius: 14px; padding: 4px 4px 4px 14px; margin-bottom: 12px;
}
.field input { flex: 1; border: 0; outline: 0; font-size: 13px; background: transparent; color: var(--text); padding: 9px 0; min-width: 0; }
.field input::placeholder { color: #b6b8c6; }
.btn {
  border: 0; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 12px 16px; width: 100%; transition: transform .12s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; box-shadow: 0 8px 20px rgba(91, 91, 214, .32); }
.btn.green { background: linear-gradient(135deg, #09d96c, var(--green)); color: #fff; box-shadow: 0 8px 20px rgba(7, 193, 96, .3); }
.btn.ghost { background: #f2f3f8; color: #555; }
.btn.mini { width: auto; padding: 7px 13px; font-size: 12px; border-radius: 9px; }
.btn.mini2 { width: auto; padding: 9px 26px; font-size: 13px; margin-top: 14px; }
.btn.paste { background: #eef0ff; color: var(--brand); width: auto; padding: 9px 14px; font-size: 12.5px; border-radius: 10px; flex: 0 0 auto; }
.sec { font-size: 13px; font-weight: 700; margin: 4px 2px 10px; display: flex; align-items: center; justify-content: space-between; }
.sec small { color: var(--muted); font-weight: 400; font-size: 11.5px; }
.linklike { color: var(--brand); cursor: pointer; }
.domfoot { text-align: center; color: #c0c2d0; font-size: 11px; margin: 6px 0 10px; }

/* 平台图标 */
.plats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; }
.plat { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.plat .logo {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
}
.plat span { font-size: 11px; color: #555; }
.lg-dy { background: linear-gradient(135deg, #25f4ee, #000 55%, #fe2c55); }
.lg-ks { background: linear-gradient(135deg, #ff9d3d, #ff7900); }
.lg-sph { background: linear-gradient(135deg, #ffc85a, #fa7c2f); }
.lg-bili { background: linear-gradient(135deg, #ff9db8, #fb7299); }
.lg-xhs { background: linear-gradient(135deg, #ff6b81, #ff2442); }
.lg-wb { background: linear-gradient(135deg, #ff8a5c, #e6162d); }
.lg-xg { background: linear-gradient(135deg, #ff8f6b, #f5414f); }
.lg-more { background: linear-gradient(135deg, #c7c9d6, #a9acc0); }

/* 步骤 */
.steps { display: flex; justify-content: space-between; gap: 8px; }
.steps .st { flex: 1; text-align: center; }
.steps .n {
  width: 28px; height: 28px; border-radius: 50%; background: #eef0ff; color: var(--brand);
  font-weight: 700; font-size: 13px; display: grid; place-items: center; margin: 0 auto 6px;
}
.steps p { font-size: 11px; color: #666; line-height: 1.4; }

/* 解析中 */
.loadwrap { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 0 30px; }
.spin { width: 54px; height: 54px; border: 4px solid #e7e8f5; border-top-color: var(--brand); border-radius: 50%; animation: sp 1s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.loadwrap h3 { font-size: 16px; }
.lsteps { width: 100%; margin-top: 6px; }
.lsteps .ls { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 9px 0; color: #9a9aa8; }
.lsteps .ls .d { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #dcdcec; display: grid; place-items: center; font-size: 10px; flex: 0 0 18px; }
.lsteps .ls.done { color: var(--text); }
.lsteps .ls.done .d { background: var(--green); border-color: var(--green); color: #fff; }
.lsteps .ls.done .d:after { content: "✓"; }
.lsteps .ls.now { color: var(--brand); }
.lsteps .ls.now .d { border-color: var(--brand); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(91, 91, 214, .15); } }
.tip { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.6; margin-top: 8px; }

/* 结果卡片 */
.vcard { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 20px rgba(40, 40, 90, .08); margin-bottom: 12px; }
.cover { height: 210px; background: linear-gradient(135deg, #3a2f6b, #7c5cff) center/cover no-repeat; position: relative; display: grid; place-items: center; }
.cover .play {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .28);
  display: grid; place-items: center; backdrop-filter: blur(4px); border: 2px solid rgba(255, 255, 255, .6);
}
.cover .play:after { content: ""; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.cover .dur { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 6px; }
.cover .nw { position: absolute; left: 10px; top: 10px; background: var(--green); color: #fff; font-size: 10.5px; padding: 3px 8px; border-radius: 6px; font-weight: 600; }
.vmeta { padding: 13px 14px; }
.vmeta .ttl { font-size: 14px; line-height: 1.5; margin-bottom: 9px; font-weight: 500; }
.vrow { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.vrow.between { justify-content: space-between; margin-bottom: 7px; }
.vrow.between:last-child { margin-bottom: 0; }
.vrow.between b { color: #333; }
.vrow.between b.brand { color: var(--brand); }
.ava { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #ff9d3d, #ff7900); flex: 0 0 24px; }
.tag { background: #f2f3f8; border-radius: 6px; padding: 2px 8px; font-size: 11px; color: #666; }
.tag.dy { background: #e8e8ee; color: #111; }
.btnrow { display: flex; gap: 9px; margin-bottom: 10px; }
.btnrow .btn { flex: 1; }

/* 记录列表 */
.item { display: flex; gap: 11px; background: #fff; border-radius: 14px; padding: 11px; margin-bottom: 10px; box-shadow: 0 3px 12px rgba(40, 40, 90, .05); }
.thumb {
  width: 64px; height: 80px; border-radius: 10px; flex: 0 0 64px;
  background: linear-gradient(135deg, #6a5acd, #a98bff) center/cover no-repeat;
  position: relative; display: grid; place-items: center; color: #fff; font-size: 18px;
}
.thumb.k { background: linear-gradient(135deg, #ff9d3d, #ff7900); }
.thumb.b { background: linear-gradient(135deg, #ff9db8, #fb7299); }
.thumb .dur { position: absolute; bottom: 4px; right: 5px; font-size: 9.5px; background: rgba(0, 0, 0, .5); padding: 1px 4px; border-radius: 4px; }
.imeta { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.imeta .t { font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.imeta .sub { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.imeta .acts { display: flex; gap: 7px; margin-top: 7px; }
.chip { font-size: 10.5px; padding: 2px 7px; border-radius: 5px; color: #fff; }
.chip.dy { background: #161823; }
.chip.ks { background: var(--ks); }
.chip.bili { background: var(--bili); }
.chip.sph { background: var(--sph); }
.chip.xhs { background: var(--xhs); }
.chip.wb { background: var(--wb); }
.chip.xg { background: var(--xg); }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }
.empty .eic { font-size: 44px; opacity: .5; }
.empty p { font-size: 13px; margin-top: 10px; }

/* 会员 */
.vipbg { background: linear-gradient(180deg, #5b4b8a 0, var(--bg) 110px); }
.mstat { background: linear-gradient(135deg, #2b2b46, #3d3a63); border-radius: 16px; padding: 16px; color: #fff; margin-bottom: 13px; position: relative; overflow: hidden; }
.mstat .wm { position: absolute; right: 8px; bottom: -14px; font-size: 60px; font-weight: 800; opacity: .1; }
.mstat h3 { font-size: 15px; }
.mstat p { font-size: 12px; opacity: .85; margin-top: 5px; }
.mstat .gold { color: #ffd76a; }
.mtabs { display: flex; background: #e9eaf2; border-radius: 11px; padding: 3px; margin-bottom: 13px; }
.mtabs div { flex: 1; text-align: center; font-size: 13px; padding: 8px; border-radius: 9px; cursor: pointer; color: #777; font-weight: 600; }
.mtabs div.on { background: #fff; color: var(--brand); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.plans { display: flex; gap: 9px; margin-bottom: 13px; }
.plan { flex: 1; border: 1.6px solid var(--line); border-radius: 13px; padding: 12px 8px; text-align: center; cursor: pointer; background: #fff; position: relative; }
.plan.on { border-color: var(--brand); background: linear-gradient(180deg, #f4f3ff, #fff); }
.plan .rec { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, #ff7a45, #ff4d4f); color: #fff; font-size: 9.5px; padding: 2px 8px; border-radius: 8px; white-space: nowrap; }
.plan .du { font-size: 12.5px; color: #666; font-weight: 600; }
.plan .pr { font-size: 19px; color: var(--brand); font-weight: 800; margin: 5px 0 2px; }
.plan .pr small { font-size: 11px; }
.plan .og { font-size: 10.5px; color: #b3b5c2; text-decoration: line-through; }
.plan .rate { font-size: 10px; color: #999; margin-top: 3px; }
.rights { display: flex; flex-direction: column; gap: 9px; }
.rights .r { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: #444; }
.rights .r .ok { color: var(--green); font-weight: 700; }
.paybar { padding: 4px 2px 10px; }
.agree { font-size: 10.5px; color: #aaa; text-align: center; margin-top: 7px; }

/* 我的 */
.ucard { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 16px; margin-bottom: 12px; box-shadow: 0 4px 16px rgba(40, 40, 90, .05); }
.uava { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand2)); display: grid; place-items: center; color: #fff; font-size: 20px; }
.uinfo h3 { font-size: 16px; display: flex; align-items: center; gap: 7px; }
.vipbadge { background: linear-gradient(90deg, #f7b733, #fc4a1a); color: #fff; font-size: 10px; padding: 2px 7px; border-radius: 6px; }
.uinfo p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stats { display: flex; background: #fff; border-radius: 14px; padding: 15px 0; margin-bottom: 12px; box-shadow: 0 4px 16px rgba(40, 40, 90, .05); }
.stats div { flex: 1; text-align: center; border-right: 1px solid var(--line); }
.stats div:last-child { border: 0; }
.stats b { font-size: 19px; color: var(--brand); display: block; }
.stats span { font-size: 11px; color: var(--muted); }
.menu { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 16px rgba(40, 40, 90, .05); }
.menu .m { display: flex; align-items: center; gap: 12px; padding: 14px 15px; font-size: 13.5px; border-bottom: 1px solid var(--line); cursor: pointer; }
.menu .m:last-child { border: 0; }
.menu .m .mi { width: 26px; height: 26px; border-radius: 8px; background: #eef0ff; display: grid; place-items: center; font-size: 14px; }
.menu .m .arr { margin-left: auto; color: #c8cad6; }
.ver { text-align: center; color: #c0c2d0; font-size: 11px; margin-top: 18px; }

/* toast */
#toast {
  position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%) translateY(20px);
  background: rgba(20, 20, 35, .92); color: #fff; padding: 11px 20px; border-radius: 12px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: .28s; z-index: 99;
  max-width: 80%; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
