/* ============================================================
 * Token Helper Sale — 公共样式
 * 沿用现有 index.html 蓝紫渐变风格，响应式
 * ============================================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;
  --text: #172033;
  --muted: #667085;
  --border: #e6eaf0;
  --surface: #ffffff;
  --page: #f7f9fc;
  --success: #15803d;
  --danger: #dc2626;
  --warning-bg: #fffaf0;
  --warning-border: #f1d9a8;
  --shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--page);
  line-height: 1.7;
}
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }

.container { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }

/* 顶部导航 */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(230, 234, 240, 0.9);
  backdrop-filter: blur(16px);
}
.nav { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 750; }
.logo {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.25);
}
.logo img { width: 100%; height: 100%; object-fit: cover; }
.brand small { display: block; margin-top: 1px; color: #98a2b3; font-size: 11px; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--primary); }
.nav-buy {
  padding: 8px 13px; border-radius: 9px; color: #fff !important;
  background: linear-gradient(135deg, #ff7a45, #ff5a1f); font-weight: 650;
}
.nav-buy:hover { opacity: 0.92; }

/* hero */
.hero {
  padding: 72px 0 60px; overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(37, 99, 235, 0.12), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(124, 58, 237, 0.10), transparent 25%),
    #fff;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  color: var(--primary); background: var(--primary-soft); font-size: 13px; font-weight: 650;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
h1 { margin: 20px 0 0; font-size: clamp(36px, 6vw, 56px); line-height: 1.08; letter-spacing: -1.8px; }
.gradient {
  background: linear-gradient(135deg, #2563eb 10%, #7c3aed 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-description { max-width: 660px; margin: 24px 0 0; color: var(--muted); font-size: 17px; }

.btn { border: 0; border-radius: 10px; padding: 11px 18px; cursor: pointer; transition: 0.16s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: var(--primary); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.20); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-buy {
  color: #fff; background: linear-gradient(135deg, #ff7a45, #ff5a1f);
  box-shadow: 0 10px 25px rgba(255, 90, 31, 0.22);
}
.btn-soft { color: var(--primary); background: var(--primary-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* 通用 section */
.section { padding: 72px 0; }
.section.white { background: #fff; }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.eyebrow { color: var(--primary); font-size: 13px; font-weight: 750; letter-spacing: 0.9px; text-transform: uppercase; }
.section h2 { margin: 8px 0 10px; font-size: clamp(26px, 4vw, 36px); line-height: 1.25; }
.section-head p { margin: 0; color: #7a8496; }

/* 脚本卡片网格（首页） */
.script-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.script-card {
  padding: 24px; border: 1px solid var(--border); border-radius: 16px;
  background: #fff; transition: 0.18s ease; display: flex; flex-direction: column;
}
.script-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.script-icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; color: #fff; font-weight: 800; font-size: 18px;
  background: linear-gradient(135deg, #2563eb, #7c3aed); margin-bottom: 14px;
}
.script-card h3 { margin: 0 0 6px; font-size: 18px; }
.script-card p { margin: 0; color: #7a8496; font-size: 14px; flex: 1; }
.script-card .card-actions { display: flex; gap: 8px; margin-top: 16px; }
.script-card .card-actions .btn { flex: 1; padding: 9px 12px; font-size: 13px; }
.script-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.script-tags span { font-size: 11px; color: var(--primary); background: var(--primary-soft); padding: 3px 8px; border-radius: 999px; }

/* 功能区 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: #fff; transition: 0.18s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--primary); background: var(--primary-soft); font-weight: 750; }
.feature h3 { margin: 16px 0 7px; font-size: 17px; }
.feature p { margin: 0; color: #7a8496; font-size: 14px; }

/* 授权验证 */
.access-wrap {
  max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: #fff; box-shadow: var(--shadow);
}
.access-info, .access-panel { padding: 36px; }
.access-info { background: linear-gradient(145deg, #172554, #1d4ed8); color: #fff; }
.access-info h2 { margin-top: 8px; }
.access-info p { color: rgba(255, 255, 255, 0.76); }
.access-list { margin: 22px 0 0; padding: 0; list-style: none; }
.access-list li { position: relative; padding: 6px 0 6px 25px; color: rgba(255, 255, 255, 0.84); font-size: 14px; }
.access-list li::before { content: "✓"; position: absolute; left: 0; color: #86efac; font-weight: 750; }
.access-badge { display: inline-flex; margin-bottom: 10px; padding: 5px 10px; border-radius: 999px; color: var(--primary); background: var(--primary-soft); font-size: 12px; font-weight: 700; }
.access-panel h3 { margin: 0 0 6px; font-size: 21px; }
.access-panel > p { margin: 0 0 20px; color: #7a8496; font-size: 14px; }
.input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #d8dee8; border-radius: 10px; outline: none; color: var(--text); background: #fff; }
.input:focus { border-color: #8db3ff; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08); }
.verify-btn { width: 100%; margin-top: 12px; }
.verify-btn:disabled { cursor: not-allowed; opacity: 0.65; transform: none; }
.message { min-height: 23px; margin-top: 10px; font-size: 13px; }
.message.success { color: var(--success); }
.message.error { color: var(--danger); }

/* 下载结果 */
.result { display: none; margin-top: 20px; }
.result.show { display: block; }
.result-note { margin-bottom: 14px; padding: 13px 14px; border: 1px solid #dce8ff; border-radius: 11px; color: #4b6387; background: #f5f8ff; font-size: 13px; line-height: 1.8; }
.notice-highlight {
  display: inline-flex; align-items: center; margin-left: 7px; padding: 5px 10px;
  border: 1px solid #fecdca; border-radius: 8px; color: #b42318; background: #fff0ed;
  font-size: 14px; font-weight: 800; line-height: 1.5; box-shadow: 0 2px 6px rgba(180, 35, 24, 0.08);
}
.notice-highlight::before { content: "🔑"; margin-right: 5px; font-size: 13px; }

.share-card { margin-top: 10px; padding: 16px; border: 1px solid #e3e8ef; border-radius: 13px; background: #fff; transition: 0.16s ease; }
.share-card:hover { border-color: #cbd8ec; box-shadow: 0 8px 20px rgba(16, 24, 40, 0.05); }
.share-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.share-name { font-weight: 750; }
.share-code { margin-top: 8px; color: #667085; font-size: 13px; }
.share-code strong { color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.share-actions { display: flex; gap: 8px; margin-top: 12px; }
.small-btn { flex: 1; padding: 8px 10px; border: 1px solid #dce5f4; border-radius: 8px; color: var(--primary); background: #fff; cursor: pointer; transition: 0.15s ease; }
.small-btn:hover { background: #f8fbff; border-color: #aac5f5; }
.updated { margin-top: 13px; color: #98a2b3; font-size: 12px; text-align: right; }

/* 直链下载 + 视频 */
.direct-box { margin-top: 14px; padding: 16px; border: 1px solid #dce8ff; border-radius: 13px; background: #f5f8ff; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.direct-box .direct-main { color: #4b6387; font-size: 14px; }
.video-box { margin-top: 20px; }
.video-box iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 14px; }

/* footer */
footer { padding: 32px 0; border-top: 1px solid var(--border); color: #98a2b3; background: #fff; text-align: center; font-size: 12px; }
footer p { margin: 4px 0; }

/* 响应式 */
@media (max-width: 820px) {
  .hero-grid, .access-wrap { grid-template-columns: 1fr; }
  .script-grid, .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links a:not(.nav-buy):not(.nav-access) { display: none; }
  .hero { padding: 48px 0; }
  .section { padding: 56px 0; }
  .script-grid, .features { grid-template-columns: 1fr; }
  .access-info, .access-panel { padding: 24px; }
  .share-actions { flex-direction: column; }
}
