:root {
  --bg: #0a0c14; --bg2: #10131f; --card: #141828; --card2: #1a1f33; --line: #262c45; --line2: #323a5c;
  --text: #e8eaf4; --mute: #9aa2c0; --dim: #6b7394;
  --a1: #7c5cff; --a2: #22d3ee; --ok: #34d399; --warn: #fbbf24; --err: #f87171;
  --r: 14px; --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 500px at 15% -10%, rgba(124, 92, 255, .22), transparent 60%), radial-gradient(800px 500px at 95% 0%, rgba(34, 211, 238, .14), transparent 60%); }
a { color: #a5b4fc; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
button { font: inherit; cursor: pointer; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(10, 12, 20, .78); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.top-in { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand em { font-style: normal; color: var(--a2); }
.top-nav { display: flex; gap: 22px; margin-left: auto; }
.top-nav a { color: var(--mute); font-size: 14.5px; font-weight: 500; }
.top-nav a:hover { color: var(--text); text-decoration: none; }
.langs { display: flex; gap: 2px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.langs a { color: var(--mute); font-size: 12.5px; font-weight: 700; padding: 4px 9px; border-radius: 7px; }
.langs a:hover { color: var(--text); text-decoration: none; }
.langs a[aria-current] { background: var(--card2); color: var(--text); }
@media (max-width: 720px) { .top-nav { display: none; } .langs { margin-left: auto; } }

/* hero + tool */
.hero { padding: 54px 0 28px; }
h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 16px; font-weight: 800; }
h1 span { display: block; font-size: .52em; letter-spacing: -.02em; margin-top: 8px; background: linear-gradient(90deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--mute); font-size: 18px; max-width: 680px; margin: 0 0 28px; }
.tool { background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, rgba(124, 92, 255, .7), rgba(34, 211, 238, .5)) border-box;
  border: 1.5px solid transparent; border-radius: 20px; padding: 14px; box-shadow: 0 30px 80px -30px rgba(124, 92, 255, .45); }
.tool-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.agent-pick { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--mute); font-weight: 600; }
.agent-pick select { background: var(--bg2); color: var(--text); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 30px 8px 12px; font: 600 14px var(--font);
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.tool-btns { display: flex; gap: 6px; }
.btn-soft { display: inline-flex; align-items: center; gap: 6px; background: var(--bg2); color: var(--mute); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font-size: 13.5px; font-weight: 600; }
.btn-soft:hover { color: var(--text); border-color: var(--line2); }
textarea { width: 100%; min-height: 92px; max-height: 360px; resize: vertical; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  font: 15px/1.55 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea::placeholder { color: var(--dim); }
textarea:focus { border-color: var(--a1); box-shadow: 0 0 0 4px rgba(124, 92, 255, .18); }
.tool-bottom { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.msg { flex: 1; margin: 0; font-size: 14px; color: var(--mute); min-height: 1.4em; }
.msg.err { color: var(--err); }
.btn-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 26px; color: #fff; font-weight: 700; font-size: 16px;
  background: linear-gradient(135deg, var(--a1), #5b7cfa 55%, var(--a2)); box-shadow: 0 10px 30px -10px rgba(124, 92, 255, .8); transition: transform .12s, filter .12s; }
.btn-go:hover { filter: brightness(1.1); text-decoration: none; }
.btn-go:active { transform: translateY(1px); }
.btn-go.inline { display: inline-flex; color: #fff; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 16px 4px 0; color: var(--mute); font-size: 13.5px; }
.trust li { display: flex; align-items: center; gap: 6px; }
.trust svg { color: var(--ok); }

/* results */
.results { margin-top: 22px; }
.res-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.res-bar .count { font-weight: 700; margin-right: auto; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 10px; animation: in .25s ease-out both; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }
.item.bad { border-color: rgba(248, 113, 113, .35); }
.item-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plat { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; background: rgba(124, 92, 255, .16); color: #c4b5fd; }
.plat.taobao { background: rgba(251, 146, 60, .15); color: #fdba74; }
.plat.p1688 { background: rgba(34, 211, 238, .14); color: #67e8f9; }
.iid { font: 600 14px ui-monospace, Consolas, monospace; color: var(--text); }
.src { color: var(--dim); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.note { font-size: 13px; color: var(--warn); margin: 8px 0 0; }
.item.bad .note { color: var(--err); }
.item-main { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn-open { display: inline-flex; align-items: center; gap: 8px; background: var(--text); color: #0a0c14; border-radius: 10px; padding: 9px 16px; font-weight: 700; font-size: 14.5px; }
.btn-open:hover { text-decoration: none; filter: brightness(.92); }
.btn-line { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: var(--text); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 13px; font-weight: 600; font-size: 14px; }
.btn-line:hover { border-color: var(--a1); text-decoration: none; }
.btn-line.done { border-color: var(--ok); color: var(--ok); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; margin-top: 12px; }
.grid[hidden] { display: none; }
.ag { display: flex; align-items: center; gap: 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 6px 8px; min-width: 0; }
.ag a { flex: 1; color: var(--text); font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag.off { opacity: .45; }
.ag.off span.x { font-size: 12px; color: var(--dim); flex: 1; }
.ag button { background: transparent; border: 0; color: var(--dim); padding: 4px 6px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.ag button:hover { color: var(--text); background: var(--card2); }
.ico { width: 24px; height: 24px; border-radius: 6px; flex: none; background: #fff; object-fit: contain; }
.btn-open .ico { width: 20px; height: 20px; }
.agents tbody th .ico { margin-right: 10px; vertical-align: middle; }
.mono { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--c); color: #fff; font-size: 12px; font-weight: 800; flex: none; }
.star { color: var(--warn); font-size: 11px; }

/* coupons */
.coupons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.coupon { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: 18px; color: #fff; overflow: hidden; }
.coupon:hover { text-decoration: none; transform: translateY(-2px); }
.coupon { transition: transform .15s; }
.coupon.kb { background: linear-gradient(135deg, #ff5a1f, #e11d48); }
.coupon.uf { background: linear-gradient(135deg, #2f6bff, #7c3aed); }
.coupon::after { content: ''; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.coupon small { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.coupon b { font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.coupon span { font-size: 14.5px; opacity: .92; }
.coupon i { font-style: normal; font-weight: 700; margin-top: 8px; }
@media (max-width: 720px) { .coupons { grid-template-columns: 1fr; } }

/* content */
.block { padding: 46px 16px 0; }
h2 { font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -.025em; line-height: 1.2; margin: 0 0 16px; }
.sub { color: var(--mute); margin: -6px 0 18px; max-width: 760px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.steps h3 { margin: 10px 0 6px; font-size: 17px; }
.steps p { margin: 0; color: var(--mute); font-size: 15px; }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--a1), var(--a2)); font-weight: 800; color: #fff; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 30px; }
.prose p { color: #c9cde0; margin: 0 0 14px; }
.prose b { color: var(--text); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
table.agents { width: 100%; border-collapse: collapse; font-size: 14px; }
.agents th, .agents td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.agents thead th { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; background: var(--bg2); }
.agents tbody th { white-space: nowrap; font-weight: 600; }
.agents tbody th .ico { width: 24px; height: 24px; border-radius: 6px; flex: none; background: #fff; object-fit: contain; }
.btn-open .ico { width: 20px; height: 20px; }
.agents tbody th .ico { margin-right: 10px; vertical-align: middle; }
.mono { margin-right: 10px; }
.agents tr:last-child th, .agents tr:last-child td { border-bottom: 0; }
.agents td:last-child { color: var(--mute); white-space: nowrap; font-size: 13px; }
.agents code { font: 12.5px ui-monospace, Consolas, monospace; color: var(--mute); word-break: break-all; }
.agents mark { background: rgba(124, 92, 255, .25); color: #ddd6fe; border-radius: 4px; padding: 0 2px; }
.code { font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--ok); border: 1px solid rgba(52, 211, 153, .4); border-radius: 5px; padding: 0 5px; margin-left: 6px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--a2); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 0; padding: 0 18px 16px; color: var(--mute); }
.page { padding-top: 46px; padding-bottom: 20px; max-width: 760px; }
.page p { color: #c9cde0; }

/* footer */
.foot { margin-top: 70px; border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--dim); font-size: 14px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--mute); }
.foot p { margin: 6px 0; }
.fine { font-size: 12.5px; }
