:root { color-scheme: dark; --bg: #0d1117; --panel: #151c25; --panel-2: #1b2530; --line: rgba(255,255,255,.11); --text: #eef4f8; --muted: #9eacb9; --green: #50c58a; --blue: #65a8ef; --gold: #e8c673; --red: #ee7e85; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: radial-gradient(circle at 15% 0%, #203044 0, transparent 42%), var(--bg); font: 15px/1.7 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
a { color: inherit; }
.shell { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .02em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #0d1117; background: var(--green); font-weight: 900; }
.nav-links { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 14px; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,.88fr); gap: 34px; align-items: center; min-height: 600px; padding: 48px 0 74px; }
.hero-media { min-width: 0; }
.poster-frame { margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: #0c1420; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.poster-frame img { display: block; width: 100%; height: auto; }
.poster-frame figcaption { padding: 10px 14px; color: var(--muted); background: #111b27; font-size: 12px; }
.eyebrow { color: var(--green); font-size: 13px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1 { max-width: 700px; margin: 14px 0 18px; font-size: clamp(38px, 6vw, 70px); line-height: 1.05; letter-spacing: -.03em; }
h2 { margin: 0 0 12px; font-size: 27px; line-height: 1.2; }
h3 { margin: 0 0 6px; font-size: 17px; }
p { color: var(--muted); }
.hero-copy p { max-width: 660px; font-size: 18px; }
.hero-note { max-width: 620px; margin-top: 18px; padding: 10px 12px; border-left: 3px solid var(--gold); color: #e7d7a8; background: rgba(232,198,115,.08); font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--panel-2); text-decoration: none; font-weight: 700; cursor: pointer; }
.button.primary { border-color: #61d39a; color: #07120c; background: var(--green); }
.button.purchase { border-color: rgba(101,168,239,.72); color: #d9eaff; background: rgba(101,168,239,.12); box-shadow: 0 8px 24px rgba(101,168,239,.09); }
.button.lookup { border-color: rgba(232,198,115,.62); color: #f4d98d; background: rgba(232,198,115,.1); box-shadow: 0 0 0 1px rgba(232,198,115,.05), 0 8px 24px rgba(232,198,115,.08); }
.button:hover { filter: brightness(1.1); }
.hero-panel { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(44,66,84,.84), rgba(20,27,36,.92)); box-shadow: 0 24px 60px rgba(0,0,0,.24); }
.mini-label { color: var(--muted); font-size: 12px; }
.version { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 6px 0 18px; }
.version strong { font-size: 35px; line-height: 1; }
.status-dot { color: var(--green); font-size: 13px; }
.prob-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 20px 0; }
.prob { padding: 13px 8px; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 7px; background: rgba(0,0,0,.18); text-align: center; }
.prob:first-child { border-top-color: var(--red); }.prob:last-child { border-top-color: var(--green); }.prob b { display: block; font-size: 22px; }
.notice { padding: 10px 12px; border-left: 3px solid var(--gold); color: #e7d7a8; background: rgba(232,198,115,.08); font-size: 13px; }
.band { padding: 74px 0; border-top: 1px solid var(--line); }
.section-intro { max-width: 720px; margin-bottom: 25px; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.card { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 9px; background: rgba(21,28,37,.84); }
.card p { margin-bottom: 0; }
.number { color: var(--green); font-size: 13px; font-weight: 800; }
.steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; counter-reset: step; }
.step { position: relative; min-height: 160px; padding: 20px 18px 16px; border-top: 2px solid var(--blue); background: var(--panel); }
.step:before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; margin-bottom: 15px; color: var(--blue); font-size: 24px; font-weight: 800; }
.code { padding: 14px 16px; overflow: auto; border: 1px solid var(--line); border-radius: 7px; color: #cbe5d6; background: #090d12; font: 13px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace; }
.faq { display: grid; gap: 8px; }.faq details { padding: 13px 16px; border: 1px solid var(--line); background: var(--panel); }.faq summary { cursor: pointer; font-weight: 700; }
.footer { display: flex; justify-content: space-between; gap: 14px; padding: 30px 0 50px; color: var(--muted); font-size: 13px; }
.admin-page { min-height: 100vh; background: radial-gradient(circle at 86% 0%, rgba(50,87,105,.34), transparent 33%), var(--bg); }
.admin-page h1 { max-width: none; margin: 7px 0 9px; font-size: clamp(32px, 4vw, 50px); letter-spacing: -.025em; }
.admin-page h2 { margin: 3px 0 0; font-size: 22px; }
.admin-wrap { width: min(1320px, calc(100% - 48px)); margin: 0 auto; padding: 22px 0 70px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.admin-nav { color: var(--muted); font-size: 14px; }.admin-nav a { text-decoration: none; }.admin-nav a:hover { color: var(--text); }
.admin-kicker { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 26px; padding: 42px 0 25px; }.admin-heading p { margin: 0; max-width: 680px; }.admin-heading-meta { display: grid; gap: 3px; color: var(--muted); font-size: 12px; text-align: right; white-space: nowrap; }.admin-heading-meta .status-dot { color: var(--green); }
.admin-notice { margin-bottom: 18px; }
.admin-stats { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-bottom: 17px; }.admin-stat { display: grid; gap: 1px; min-height: 112px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 9px; background: rgba(21,28,37,.78); }.admin-stat span { color: var(--muted); font-size: 13px; }.admin-stat strong { color: var(--text); font-size: 31px; line-height: 1.15; }.admin-stat small { color: #71808e; font-size: 11px; }.admin-stat-online strong { color: var(--green); }
.admin-workspace { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 17px; margin-bottom: 34px; }.admin-card,.admin-form { min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg, rgba(25,36,48,.93), rgba(18,24,32,.94)); box-shadow: 0 16px 35px rgba(0,0,0,.13); }.admin-form { display: grid; gap: 9px; max-width: none; }.admin-form input,.admin-form select { width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; color: var(--text); background: #0b1016; }.admin-form input:focus,.admin-form select:focus { outline: 2px solid rgba(101,168,239,.65); outline-offset: 1px; }.admin-form label { color: #cbd6df; font-size: 12px; font-weight: 700; }.admin-form-row { display: grid; grid-template-columns: minmax(120px,.42fr) minmax(0,1fr); gap: 10px; }.admin-form-row > div { display: grid; gap: 9px; min-width: 0; }.admin-form .button { margin-top: 7px; }.admin-form-help { margin: 2px 0 0; color: #81909e; font-size: 12px; line-height: 1.55; }.admin-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }.admin-icon { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid rgba(80,197,138,.26); border-radius: 7px; color: var(--green); background: rgba(80,197,138,.08); font-size: 20px; line-height: 1; }.admin-generated-card { display: flex; flex-direction: column; }.admin-generated-code { min-height: 96px; max-height: 180px; white-space: pre-wrap; overflow: auto; color: #cbe5d6; font-size: 14px; letter-spacing: .04em; }.admin-generated-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; color: var(--muted); font-size: 12px; }.admin-empty { display: grid; align-content: center; min-height: 96px; padding: 18px; border: 1px dashed rgba(255,255,255,.16); border-radius: 7px; color: var(--muted); }.admin-empty strong { color: var(--text); }.admin-empty span { font-size: 12px; }
.button.small { min-height: 31px; padding: 4px 9px; border-radius: 5px; font-size: 12px; }.button.danger { color: #f2b0b4; border-color: rgba(238,126,133,.25); background: rgba(238,126,133,.08); }.button.danger:hover { background: rgba(238,126,133,.16); }
.admin-list-section { padding-top: 4px; }.admin-list-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 13px; }.admin-list-heading > span { color: var(--muted); font-size: 12px; }.table-wrap { overflow: auto; margin-top: 0; border: 1px solid var(--line); border-radius: 9px; background: rgba(15,21,28,.68); }.table { width: 100%; border-collapse: collapse; white-space: nowrap; }.table th,.table td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }.table th { color: var(--muted); background: rgba(255,255,255,.025); font-size: 11px; font-weight: 700; }.table tbody tr:last-child td { border-bottom: 0; }.table tbody tr:hover { background: rgba(255,255,255,.025); }.admin-table td:first-child { min-width: 250px; }.license-key { color: #d8f1df; font: 600 13px ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .025em; }.license-key.is-expired { color: #9babb5; }.duration-pill { display: inline-flex; min-width: 48px; justify-content: center; padding: 3px 7px; border: 1px solid rgba(101,168,239,.25); border-radius: 5px; color: #b5d8fa; background: rgba(101,168,239,.08); font-size: 12px; }.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 20px; font-size: 12px; }.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }.status-unused { color: var(--gold); background: rgba(232,198,115,.09); }.status-active { color: var(--green); background: rgba(80,197,138,.09); }.status-expired,.status-disabled { color: #ef9b9f; background: rgba(238,126,133,.09); }.presence-pill { min-width: 58px; justify-content: center; }.presence-online { color: var(--green); background: rgba(80,197,138,.09); }.presence-offline { color: #aab5be; background: rgba(170,181,190,.09); }.presence-never { color: var(--gold); background: rgba(232,198,115,.09); }.last-seen-cell { min-width: 166px; color: #b7c4ce; font-size: 12px; }.countdown-cell { min-width: 152px; color: #d5e2eb; font-size: 12px; }.note-cell { max-width: 180px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; }.muted { color: #71808e; }.admin-actions { display: flex; flex-wrap: wrap; gap: 5px; }.admin-actions form { margin: 0; }.admin-table-empty { padding: 35px !important; color: var(--muted); text-align: center !important; }.admin-list-footnote { margin: 10px 2px 0; color: #71808e; font-size: 11px; }.admin-login-shell { display: grid; place-items: center; min-height: 100vh; padding: 24px; }.admin-login-card { width: min(430px,100%); padding: 30px; border: 1px solid var(--line); border-radius: 11px; background: rgba(21,28,37,.9); box-shadow: 0 22px 60px rgba(0,0,0,.24); }.admin-login-card h1 { margin-top: 8px; }.admin-login-card p { margin-top: 0; }.admin-login-card .admin-form { margin-top: 22px; padding: 0; border: 0; background: transparent; box-shadow: none; }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 35px; }.hero-media { order: 2; max-width: 680px; width: 100%; }.cards,.steps { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 540px) { .shell { width: min(100% - 24px,1120px); }.nav { align-items: flex-start; flex-direction: column; }.hero { min-height: auto; }.hero-media,.poster-frame { max-width: 100%; }.cards,.steps { grid-template-columns: 1fr; }.footer { flex-direction: column; } h1 { font-size: 43px; } }
.admin-form .notice { margin-top: 4px; }
@media (max-width: 900px) { .admin-workspace { grid-template-columns: 1fr; }.admin-table-wrap { overflow: visible; }.admin-table,.admin-table tbody,.admin-table tr,.admin-table td { display: block; }.admin-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }.admin-table tr { padding: 13px 15px; border-bottom: 1px solid var(--line); }.admin-table tbody tr:last-child { border-bottom: 0; }.admin-table td { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 12px; min-width: 0 !important; max-width: none; padding: 7px 0; border: 0; white-space: normal; }.admin-table td:before { color: #71808e; font-size: 11px; font-weight: 700; }.admin-table td:nth-child(1):before { content: "完整卡密"; }.admin-table td:nth-child(2):before { content: "套餐"; }.admin-table td:nth-child(3):before { content: "授权状态"; }.admin-table td:nth-child(4):before { content: "在线状态"; }.admin-table td:nth-child(5):before { content: "最近心跳"; }.admin-table td:nth-child(6):before { content: "剩余时间"; }.admin-table td:nth-child(7):before { content: "激活时间"; }.admin-table td:nth-child(8):before { content: "到期时间"; }.admin-table td:nth-child(9):before { content: "备注"; }.admin-table td:nth-child(10):before { content: "操作"; }.admin-table-empty { display: block !important; }.admin-table-empty:before { content: none !important; } }
@media (max-width: 760px) { .admin-wrap { width: min(100% - 28px,1320px); padding-top: 14px; }.admin-heading { align-items: start; flex-direction: column; gap: 13px; padding-top: 30px; }.admin-heading-meta { text-align: left; }.admin-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }.admin-form-row { grid-template-columns: 1fr; }.admin-card,.admin-form { padding: 19px; } }
@media (max-width: 480px) { .admin-stats { grid-template-columns: 1fr; }.admin-topbar { align-items: start; flex-direction: column; gap: 10px; }.admin-page h1 { font-size: 36px; }.admin-generated-actions { align-items: start; flex-direction: column; }.admin-actions { display: grid; grid-template-columns: repeat(2,max-content); }.admin-login-card { padding: 22px; } }

.admin-view-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 17px; }
.admin-view-actions .button { min-width: 96px; justify-content: center; }
.admin-visit-stats { grid-template-columns: repeat(5,minmax(0,1fr)); }
.admin-visit-stat { color: inherit; text-decoration: none; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.admin-visit-stat:hover { border-color: rgba(101,168,239,.62); background: rgba(31,48,65,.88); transform: translateY(-1px); }
.admin-visit-stat.is-selected { border-color: rgba(80,197,138,.7); background: rgba(35,66,57,.78); box-shadow: inset 0 0 0 1px rgba(80,197,138,.12); }
.admin-period-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: -3px 0 20px; }
.admin-visit-grid { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(280px,.82fr); gap: 17px; margin-bottom: 34px; }
.admin-visit-grid .admin-card { min-width: 0; }
.admin-daily-list,.admin-region-list { display: grid; gap: 11px; }
.admin-daily-row { display: grid; grid-template-columns: 96px minmax(0,1fr) 42px; align-items: center; gap: 10px; color: #cbd6df; font-size: 12px; }
.admin-daily-row strong,.admin-region-row strong { color: var(--text); text-align: right; }
.admin-daily-bar { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.admin-daily-bar i { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--green)); }
.admin-region-row { display: grid; grid-template-columns: minmax(0,1fr) 42px; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.07); color: #cbd6df; font-size: 13px; }
.admin-region-row:last-child { border-bottom: 0; }
.admin-visitor-id { color: #f4d98d; font: 700 12px ui-monospace,SFMono-Regular,Menlo,monospace; }
.admin-device-info { display: inline-block; min-width: 170px; color: #cbd6df; font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
.admin-ip-address,.admin-page-path { color: #cbe5d6; font: 600 12px ui-monospace,SFMono-Regular,Menlo,monospace; overflow-wrap: anywhere; }
.admin-page-path { color: #b5d8fa; }
.admin-page-label { color: #b5d8fa; font-weight: 700; white-space: nowrap; }
.admin-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.admin-payment-order-table td:first-child { min-width: 174px; }
.admin-trade-number { color: #c8d5de; font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.promotion-order-label { color: #8796a4; font-size: 12px; white-space: nowrap; }
.promotion-order-label.is-active { color: #ffd889; font-weight: 700; }
@media (max-width: 900px) {
  .admin-payment-order-table.admin-table td:nth-child(1)::before { content: "创建时间"; }
  .admin-payment-order-table.admin-table td:nth-child(2)::before { content: "手机号"; }
  .admin-payment-order-table.admin-table td:nth-child(3)::before { content: "微信号"; }
  .admin-payment-order-table.admin-table td:nth-child(4)::before { content: "套餐"; }
  .admin-payment-order-table.admin-table td:nth-child(5)::before { content: "金额"; }
  .admin-payment-order-table.admin-table td:nth-child(6)::before { content: "活动标识"; }
  .admin-payment-order-table.admin-table td:nth-child(7)::before { content: "支付状态"; }
  .admin-payment-order-table.admin-table td:nth-child(8)::before { content: "支付宝交易号"; }
  .admin-payment-order-table.admin-table td:nth-child(9)::before { content: "完整授权码"; }
}
.guide-hero h1 { max-width: 850px; }
.guide-lead { max-width: 760px; font-size: 18px; }
.guide-note { display: flex; gap: 12px; align-items: flex-start; max-width: 880px; margin-top: 22px; padding: 13px 15px; border-left: 3px solid var(--gold); color: #e7d7a8; background: rgba(232,198,115,.08); }
.guide-note strong { flex: 0 0 auto; color: var(--gold); }
.guide-note span { color: var(--muted); }
.guide-package-band { padding-top: 52px; padding-bottom: 52px; }
.guide-package-layout { display: grid; grid-template-columns: minmax(0,.88fr) minmax(280px,.72fr); gap: 14px; align-items: stretch; }
.guide-package-tree { margin: 0; min-height: 202px; color: #cbe5d6; white-space: pre-wrap; }
.guide-package-tree span { color: #f4d98d; font-weight: 700; }
.guide-package-warning { display: grid; align-content: center; gap: 8px; min-width: 0; padding: 20px; border: 1px solid rgba(232,198,115,.3); border-left: 3px solid var(--gold); border-radius: 8px; background: rgba(232,198,115,.07); }
.guide-package-warning strong { color: var(--gold); font-size: 14px; }
.guide-package-warning span { color: var(--muted); font-size: 13px; line-height: 1.65; }
.guide-package-warning code { padding: 2px 5px; border-radius: 4px; color: #cbe5d6; background: #090d12; font: 12px ui-monospace,SFMono-Regular,Menlo,monospace; overflow-wrap: anywhere; }
.guide-band { padding-top: 42px; }
.guide-list { display: grid; gap: 34px; }
.guide-step { display: grid; grid-template-columns: minmax(230px,.34fr) minmax(0,.66fr); gap: 26px; align-items: start; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.guide-step:last-child { padding-bottom: 0; border-bottom: 0; }
.guide-copy h2 { margin: 8px 0 12px; font-size: 25px; line-height: 1.2; }
.guide-copy p { margin: 0; }
.guide-copy code { padding: 2px 5px; border-radius: 4px; color: #cbe5d6; background: #090d12; font: 13px ui-monospace,SFMono-Regular,Menlo,monospace; }
.guide-check { display: grid; gap: 3px; margin-top: 19px; padding: 11px 13px; border-left: 3px solid var(--green); background: rgba(80,197,138,.08); }
.guide-check strong { color: var(--green); font-size: 12px; }
.guide-check span { color: var(--muted); font-size: 13px; }
.guide-figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.guide-figure img { display: block; width: 100%; height: auto; }
.guide-figure figcaption { padding: 8px 11px; color: var(--muted); font-size: 12px; }
.lookup-hero { min-height: 560px; }
.lookup-panel { min-width: 0; }
.lookup-note { display: grid; gap: 2px; max-width: 620px; }
.lookup-note strong { color: var(--gold); }
.lookup-note span { color: var(--muted); }
.lookup-form { display: grid; gap: 9px; margin-top: 18px; }
.lookup-form label { color: #cbd6df; font-size: 12px; font-weight: 700; }
.lookup-form input { width: 100%; min-height: 44px; padding: 10px 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 7px; color: var(--text); background: #0b1016; font-size: 14px; }
.lookup-form input:focus { outline: 2px solid rgba(101,168,239,.7); outline-offset: 1px; }
.lookup-form button { width: 100%; margin-top: 7px; }
.lookup-or { display: flex; align-items: center; gap: 10px; color: #71808e; font-size: 12px; }
.lookup-or::before,.lookup-or::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.lookup-hint { margin: 14px 0 0; color: #81909e; font-size: 12px; }
.lookup-message { margin-top: 2px; padding: 12px 14px; border-left: 3px solid var(--green); color: #cbe5d6; background: rgba(80,197,138,.08); font-size: 13px; }
.lookup-message.is-error { border-left-color: var(--red); color: #ffc4c7; background: rgba(238,126,133,.1); }
.lookup-results { padding-top: 50px; }
.lookup-results-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.lookup-result { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: rgba(21,28,37,.84); }
.lookup-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.lookup-status-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 25px; padding: 3px 9px; border-radius: 999px; color: var(--muted); background: rgba(170,181,190,.1); font-size: 12px; white-space: nowrap; }
.lookup-status-badge.is-unused { color: var(--gold); background: rgba(232,198,115,.1); }
.lookup-status-badge.is-active { color: var(--green); background: rgba(80,197,138,.1); }
.lookup-status-badge.is-expired,.lookup-status-badge.is-disabled,.lookup-status-badge.is-invalid { color: #ef9b9f; background: rgba(238,126,133,.1); }
.license-display { overflow-wrap: anywhere; padding: 13px 14px; border: 1px solid rgba(80,197,138,.25); border-radius: 7px; color: #d8f1df; background: #090d12; font: 700 16px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .04em; }
.license-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px 16px; margin: 17px 0 0; }
.license-meta div { min-width: 0; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.07); }
.license-meta dt { color: #81909e; font-size: 11px; }
.license-meta dd { margin: 1px 0 0; color: #d5e2eb; font-size: 13px; overflow-wrap: anywhere; }
.lookup-help { padding-top: 50px; }
@media (max-width: 800px) { .lookup-results-grid { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .lookup-result-heading { align-items: flex-start; flex-direction: column; gap: 7px; }.license-meta { grid-template-columns: 1fr; } }
.purchase-public-page { min-height: 100vh; background: #0d1117; }
.purchase-shell { width: min(1020px, calc(100% - 36px)); }
.purchase-main { padding: 34px 0 60px; }
.purchase-page-content { max-width: 980px; }
.purchase-heading { max-width: none; margin-bottom: 20px; padding-bottom: 17px; border-bottom: 1px solid rgba(255,255,255,.08); }
.purchase-heading::after { display: block; width: 54px; height: 3px; margin-top: 16px; content: ""; background: var(--green); }
.purchase-heading h1,.purchase-transfer h1,.purchase-status-card h1 { max-width: none; margin: 0 0 8px; font-size: clamp(31px,4vw,48px); line-height: 1.14; letter-spacing: 0; }
.purchase-heading p,.purchase-transfer p,.purchase-status-card > p { margin: 0; }
.purchase-heading p { font-size: 14px; }
.purchase-alert { margin: 0 0 16px; padding: 12px 14px; border-left: 3px solid var(--gold); color: #e7d7a8; background: rgba(232,198,115,.08); font-size: 13px; }
.purchase-alert.is-error { border-left-color: var(--red); color: #ffc4c7; background: rgba(238,126,133,.1); }
.purchase-form { display: grid; gap: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #151c25; box-shadow: 0 18px 42px rgba(0,0,0,.16); }
.package-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.package-grid legend { grid-column: 1 / -1; width: 100%; margin-bottom: 0; color: #cbd6df; font-size: 13px; font-weight: 700; }
.package-option { position: relative; display: grid; gap: 4px; min-width: 0; min-height: 144px; padding: 17px; border: 1px solid rgba(255,255,255,.13); border-radius: 7px; color: var(--text); background: #111925; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.package-option:hover { border-color: rgba(101,168,239,.64); background: #142033; }
.package-option:has(input:checked),.package-option.is-selected { border-color: var(--blue); background: rgba(101,168,239,.14); box-shadow: inset 0 0 0 1px rgba(101,168,239,.18); }
.package-option input { position: absolute; top: 12px; right: 12px; width: 15px; height: 15px; accent-color: var(--blue); }
.package-title { padding-right: 20px; color: #e9f2fa; font-size: 16px; font-weight: 800; }
.package-price { color: var(--green); font: 700 18px/1.35 ui-monospace,SFMono-Regular,Menlo,monospace; }
.package-note { margin-top: auto; color: #8796a4; font-size: 11px; }
.purchase-promotion-note { margin: -4px 0 0; padding: 8px 12px; border-left: 3px solid #f2b15f; color: #f4d39c; background: rgba(242,177,95,.09); font-size: 12px; }
.purchase-promotion-note.is-regular { border-left-color: var(--blue); color: #c9e2fb; background: rgba(101,168,239,.08); }
.package-option--promo { grid-column: span 2; min-height: 168px; padding: 53px 20px 17px; overflow: hidden; isolation: isolate; border-color: rgba(237,112,83,.86); background-color: #2a2021; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 13px); box-shadow: 0 0 0 1px rgba(237,112,83,.16), 0 14px 30px rgba(117,54,42,.18); animation: purchase-promo-breathe 3.6s ease-in-out infinite; }
.package-option--promo::before { position: absolute; inset: 7px; content: ""; border: 1px solid rgba(255,207,151,.36); border-radius: 5px; pointer-events: none; animation: purchase-promo-frame 3.6s ease-in-out infinite; }
.package-option--promo::after { position: absolute; top: -85%; left: -24%; width: 15%; height: 270%; content: ""; transform: rotate(22deg); background: rgba(255,232,193,.2); filter: blur(1px); pointer-events: none; animation: purchase-promo-sweep 4.8s cubic-bezier(.2,.7,.3,1) infinite; }
.package-option--promo > :not(input) { position: relative; z-index: 1; }
.package-option--promo input { z-index: 4; }
.package-option--promo:has(input:checked),.package-option--promo.is-selected { border-color: #ff946d; background-color: #322326; box-shadow: 0 0 0 1px rgba(255,148,109,.25), 0 16px 34px rgba(117,54,42,.24); transform: translateY(-1px); }
.package-option--promo:hover { border-color: #ff946d; background-color: #322326; }
.package-option--promo .package-title { padding-right: 74px; font-size: 19px; }
.promo-card-stitch { position: absolute !important; top: 16px; right: 22px; display: flex; align-items: end; gap: 4px; width: 34px; height: 22px; transform: rotate(-8deg); z-index: 3 !important; }
.promo-card-stitch i { display: block; width: 4px; height: 12px; border-radius: 1px; background: #f4b45c; transform: skew(-16deg); animation: purchase-promo-stitch 1.8s ease-in-out infinite; }
.promo-card-stitch i:nth-child(2) { height: 19px; animation-delay: .16s; }
.promo-card-stitch i:nth-child(3) { height: 15px; animation-delay: .32s; }
.promo-card-stitch i:nth-child(4) { height: 22px; animation-delay: .48s; }
.promo-lottie { position: absolute !important; top: 46px; right: 18px; width: 108px; height: 108px; opacity: .92; pointer-events: none; z-index: 2 !important; }
.promo-lottie svg { display: block; width: 100%; height: 100%; overflow: visible; }
.package-option--promo .package-title,.package-option--promo .package-price,.package-option--promo .package-original-price,.package-option--promo .package-countdown,.package-option--promo .package-note { max-width: calc(100% - 126px); }
.package-badge { position: absolute !important; top: 14px; left: 18px; display: inline-flex; align-items: center; gap: 7px; max-width: calc(100% - 76px); padding: 5px 9px; border: 1px solid rgba(255,198,138,.76); border-radius: 4px; color: #fff1cf; background: #b75345; box-shadow: 0 5px 14px rgba(0,0,0,.2); font-size: 11px; font-weight: 800; line-height: 1.25; white-space: nowrap; animation: purchase-promo-badge 1.2s ease both; }
.package-badge::before { width: 5px; height: 5px; content: ""; transform: rotate(45deg); background: #ffe3ad; animation: purchase-promo-dot 1.8s ease-in-out infinite; }
.package-badge em { color: #ffe09e; font-size: 10px; font-style: normal; font-weight: 700; }
.package-promo-price { color: #ffd06f; font-size: 28px; line-height: 1.15; }
.package-original-price { color: #a9b1b9; font-size: 11px; text-decoration: line-through; }
.package-countdown { display: inline-flex; align-items: center; gap: 7px; width: fit-content; min-height: 26px; padding: 3px 8px; border: 1px solid rgba(238,126,133,.5); border-radius: 3px; color: #ffd0a5; background: #351e21; font: 700 12px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace; }
.package-countdown::before { width: 6px; height: 6px; flex: 0 0 auto; content: ""; border-radius: 50%; background: #f27863; box-shadow: 0 0 0 3px rgba(242,120,99,.12); animation: purchase-promo-dot 1.6s ease-in-out infinite; }
.package-option--promo .package-note { font-size: 12px; }
.package-option--promo.is-promo-expired { border-color: rgba(255,255,255,.13); background: #111925; box-shadow: none; animation: none; transform: none; }
.package-option--promo.is-promo-expired::before,.package-option--promo.is-promo-expired::after,.package-option--promo.is-promo-expired .promo-card-stitch { opacity: .25; animation: none; }
.package-option--promo.is-promo-regular { border-color: rgba(101,168,239,.48); background-color: #1d2938; background-image: none; animation: none; }
.package-option--promo.is-promo-regular::after { opacity: 0; animation: none; }
.package-option--promo.is-promo-regular .package-badge { border-color: rgba(101,168,239,.42); color: #c9e2fb; background: rgba(47,83,121,.7); }
.package-option--promo.is-promo-regular .package-badge em,.package-option--promo.is-promo-regular .package-countdown { color: #b5d8fa; }
.package-option--promo.is-promo-expired .package-badge { border-color: rgba(255,255,255,.2); color: #aab5be; background: rgba(170,181,190,.12); }
.package-option--promo.is-promo-expired .package-badge em,.package-option--promo.is-promo-expired .package-countdown { color: #aab5be; }
@keyframes purchase-promo-breathe { 0%,100% { box-shadow: 0 0 0 1px rgba(237,112,83,.16), 0 14px 30px rgba(117,54,42,.18); } 50% { box-shadow: 0 0 0 2px rgba(255,148,109,.3), 0 18px 38px rgba(117,54,42,.28); } }
@keyframes purchase-promo-frame { 0%,100% { opacity: .28; transform: scale(1); } 50% { opacity: .7; transform: scale(.985); } }
@keyframes purchase-promo-sweep { 0%,52% { left: -24%; opacity: 0; } 64% { opacity: .75; } 78%,100% { left: 125%; opacity: 0; } }
@keyframes purchase-promo-stitch { 0%,100% { opacity: .55; transform: skew(-16deg) scaleY(.78); } 50% { opacity: 1; transform: skew(-16deg) scaleY(1); } }
@keyframes purchase-promo-badge { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes purchase-promo-dot { 0%,100% { opacity: .65; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.12); } }
.purchase-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.purchase-fields label { display: grid; gap: 7px; min-width: 0; color: #cbd6df; font-size: 12px; font-weight: 700; }
.purchase-fields input,.purchase-form textarea { width: 100%; min-width: 0; min-height: 44px; padding: 10px 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 7px; color: var(--text); background: #0b1016; font: 14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.purchase-fields input:focus,.purchase-form textarea:focus { outline: 2px solid rgba(101,168,239,.7); outline-offset: 1px; }
.purchase-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.08); }
.purchase-submit-copy { display: grid; flex: 1 1 0; gap: 10px; min-width: 0; max-width: 590px; }
.purchase-submit-copy p { margin: 0; color: #8796a4; font-size: 12px; }
.purchase-validation-message { max-width: none !important; padding: 10px 12px; border-left: 3px solid var(--red); color: #ffc4c7 !important; background: rgba(238,126,133,.1); }
.purchase-submit-row .button { flex: 0 0 auto; }
.purchase-form .button[disabled],.purchase-form input[disabled],.purchase-form textarea[disabled],.package-option:has(input[disabled]) { cursor: not-allowed; opacity: .52; }
.purchase-transfer,.purchase-status-card { max-width: 820px; padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: rgba(21,28,37,.9); box-shadow: 0 16px 38px rgba(0,0,0,.14); }
.purchase-transfer .button { margin-top: 20px; }
.purchase-status-card.is-paid { border-color: rgba(80,197,138,.4); }
.purchase-status-card.is-closed { border-color: rgba(238,126,133,.36); }
.purchase-status-heading { margin-bottom: 18px; }
.purchase-status-details,.purchase-status-card .license-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 20px 0; }
.purchase-status-detail,.purchase-status-card .license-meta div { min-width: 0; padding: 13px; border: 1px solid rgba(255,255,255,.08); border-radius: 7px; background: rgba(0,0,0,.13); }
.purchase-status-details dt,.purchase-status-card .license-meta dt { color: #81909e; font-size: 11px; }
.purchase-status-details dd,.purchase-status-card .license-meta dd { margin: 3px 0 0; color: #d5e2eb; font-size: 13px; overflow-wrap: anywhere; }
.purchase-status-countdown { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-left: 3px solid var(--blue); color: #cbd6df; background: rgba(101,168,239,.08); }
.purchase-status-countdown strong { color: #c9e2fb; font: 700 17px/1 ui-monospace,SFMono-Regular,Menlo,monospace; }
.purchase-status-guidance { display: grid; gap: 4px; margin: 18px 0 0; }
.purchase-status-guidance p { margin: 0; color: var(--muted); }
.purchase-status-query-message { min-height: 22px; margin: 14px 0 0; color: #b5d8fa; font-size: 13px; }
.purchase-status-query-message.is-error,.license-copy-hint.is-error { color: #ffc4c7; }
.purchase-status-actions,.license-copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.purchase-status-reopen { border-color: rgba(101,168,239,.58); color: #d9eaff; }
.license-copy-hint { margin: 0; color: #8796a4; font-size: 12px; }
.license-copy-hint.is-success { color: #a7e8c3; }
.purchase-public-page .nav-action { min-height: 34px; padding: 5px 10px; font-size: 12px; }
.release-history { display: grid; gap: 0; margin: 28px 0 22px; border-top: 1px solid rgba(255,255,255,.1); }
.release-entry { display: grid; grid-template-columns: minmax(170px,.28fr) minmax(0,.72fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.release-entry.is-current { padding-top: 24px; padding-bottom: 24px; border-color: rgba(80,197,138,.32); }
.release-entry-meta { display: flex; flex-wrap: wrap; align-content: start; align-items: center; gap: 8px 10px; }
.release-version { color: #d9f4e3; font: 800 20px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace; }
.release-entry-meta time { width: 100%; color: #8796a4; font-size: 12px; line-height: 1.5; }
.release-current { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 8px; border: 1px solid rgba(80,197,138,.38); border-radius: 4px; color: #a7e8c3; background: rgba(80,197,138,.1); font-size: 11px; font-weight: 700; }
.release-entry-copy { min-width: 0; }
.release-entry-copy h3 { margin: 0 0 7px; color: #dce8ef; font-size: 17px; }
.release-entry-copy p { max-width: 720px; margin: 0 0 13px; color: #aab8c3; font-size: 13px; line-height: 1.75; }
.release-entry-copy .button { width: fit-content; }
.admin-spider-table td:nth-child(1) { min-width: 170px; }
.admin-spider-table td:nth-child(6),.admin-spider-table td:nth-child(7) { max-width: 280px; }
@media (max-width: 800px) { .package-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.package-option--promo { grid-column: span 2; }.purchase-fields,.purchase-status-details,.purchase-status-card .license-meta { grid-template-columns: 1fr; }.purchase-submit-row { align-items: flex-start; flex-direction: column; } }
@media (max-width: 540px) { .purchase-shell { width: min(100% - 24px,1020px); }.purchase-main { padding-top: 28px; }.purchase-form,.purchase-transfer,.purchase-status-card { padding: 18px; }.package-grid { grid-template-columns: 1fr; }.package-option,.package-option--promo { grid-column: auto; min-height: 104px; }.purchase-submit-row .button { width: 100%; }.purchase-status-countdown { align-items: flex-start; flex-direction: column; }.purchase-status-actions .button { width: 100%; } }
@media (max-width: 540px) { .package-option--promo { min-height: 142px; padding: 45px 16px 15px; }.package-option--promo .package-title { font-size: 17px; }.package-badge { top: 12px; left: 12px; max-width: calc(100% - 61px); }.promo-card-stitch { top: 14px; right: 16px; } }
@media (max-width: 540px) { .promo-lottie { top: 48px; right: 12px; width: 82px; height: 82px; opacity: .82; }.package-option--promo .package-title,.package-option--promo .package-price,.package-option--promo .package-original-price,.package-option--promo .package-countdown,.package-option--promo .package-note { max-width: calc(100% - 94px); } }
@media (prefers-reduced-motion: reduce) { .package-option--promo,.package-option--promo::before,.package-option--promo::after,.package-badge,.package-badge::before,.package-countdown::before,.promo-card-stitch i,.promo-lottie { animation: none; } }
@media (max-width: 800px) { .guide-step { grid-template-columns: 1fr; gap: 16px; } .guide-hero h1 { font-size: 42px !important; } }
@media (max-width: 800px) { .guide-package-layout { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .guide-note { display: grid; gap: 4px; } .guide-copy h2 { font-size: 22px; } .guide-figure { border-radius: 7px; } }

@media (max-width: 900px) {
  .admin-visit-grid { grid-template-columns: 1fr; }
  .release-entry { grid-template-columns: 1fr; gap: 10px; }
  .admin-visit-table.admin-table td:nth-child(1)::before { content: "进入时间"; }
  .admin-visit-table.admin-table td:nth-child(2)::before { content: "访客编号"; }
  .admin-visit-table.admin-table td:nth-child(3)::before { content: "设备信息"; }
  .admin-visit-table.admin-table td:nth-child(4)::before { content: "访问 IP"; }
  .admin-visit-table.admin-table td:nth-child(5)::before { content: "访问地区"; }
  .admin-visit-table.admin-table td:nth-child(6)::before { content: "入口页面"; }
  .admin-spider-table.admin-table td:nth-child(1)::before { content: "时间"; }
  .admin-spider-table.admin-table td:nth-child(2)::before { content: "爬虫"; }
  .admin-spider-table.admin-table td:nth-child(3)::before { content: "页面"; }
  .admin-spider-table.admin-table td:nth-child(4)::before { content: "状态"; }
  .admin-spider-table.admin-table td:nth-child(5)::before { content: "访问 IP"; }
  .admin-spider-table.admin-table td:nth-child(6)::before { content: "User-Agent"; }
  .admin-spider-table.admin-table td:nth-child(7)::before { content: "来源"; }
}

/* Keep the license inventory readable without a horizontal scrollbar. */
.admin-license-table-wrap { overflow: visible; border: 0; background: transparent; }
.admin-license-table { display: block; white-space: normal; border-collapse: separate; }
.admin-license-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.admin-license-table tbody { display: grid; gap: 12px; }
.admin-license-table tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 18px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 9px; background: rgba(15,21,28,.68); }
.admin-license-table td { display: grid; grid-template-columns: 1fr; gap: 5px; min-width: 0 !important; max-width: none; padding: 8px 0; border: 0; white-space: normal; }
.admin-license-table td::before { color: #71808e; font-size: 11px; font-weight: 700; }
.admin-license-table td:nth-child(1)::before { content: "完整卡密"; }
.admin-license-table td:nth-child(2)::before { content: "套餐"; }
.admin-license-table td:nth-child(3)::before { content: "授权状态"; }
.admin-license-table td:nth-child(4)::before { content: "在线状态"; }
.admin-license-table td:nth-child(5)::before { content: "最近心跳"; }
.admin-license-table td:nth-child(6)::before { content: "剩余时间"; }
.admin-license-table td:nth-child(7)::before { content: "激活时间"; }
.admin-license-table td:nth-child(8)::before { content: "到期时间"; }
.admin-license-table td:nth-child(9)::before { content: "创建时间"; }
.admin-license-table td:nth-child(10)::before { content: "购买用户"; }
.admin-license-table td:nth-child(11)::before { content: "备注"; }
.admin-license-table td:nth-child(1), .admin-license-table td:nth-child(12) { grid-column: 1 / -1; }
.admin-license-table td:nth-child(1) { padding-top: 0; }
.admin-license-table td:nth-child(12) { padding-bottom: 0; }
.admin-license-table .license-key { overflow-wrap: anywhere; word-break: break-word; }
.admin-license-table .admin-actions { align-items: center; }
.admin-license-table tr:hover { background: rgba(255,255,255,.045); }
.admin-modal[hidden] { display: none; }
.admin-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(3,7,11,.72); }
.admin-modal-card { width: min(440px,100%); padding: 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: #151f2a; box-shadow: 0 24px 70px rgba(0,0,0,.42); }
.admin-modal-card h2 { margin: 7px 0 9px; color: var(--text); font-size: 22px; }
.admin-modal-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.admin-modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
@media (max-width: 700px) { .admin-license-table tr { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 14px; padding: 14px; } }
@media (max-width: 430px) { .admin-license-table tr { grid-template-columns: 1fr; } .admin-license-table td:nth-child(1), .admin-license-table td:nth-child(12) { grid-column: auto; } .admin-modal-actions { flex-direction: column-reverse; } .admin-modal-actions .button { width: 100%; } }
