/* ============================================================
   HTML2WEB PHP 版 · 全站样式（深色皮肤，取自 html2link/DEVFILE）
   类名与旧版兼容：仅换肤，页面结构不变
   背景 #080d1a · 卡片 #0e1525 · 强调紫蓝渐变 #7c6af7→#5b8cf8
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }

:root {
  --bg-dark: #080d1a;
  --bg-card: #0e1525;
  --bg-card2: #111827;
  --border: rgba(255,255,255,0.07);
  --border-light: rgba(255,255,255,0.12);
  --text-primary: #f0f4ff;
  --text-secondary: #8a9bb8;
  --text-muted: #4a5a7a;
  --accent: #7c6af7;
  --accent2: #5b8cf8;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #f59e0b;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; }
.container { max-width: 1100px; margin-inline: auto; padding-inline: 16px; }
.page-main { min-height: 60vh; padding: 40px 16px 64px; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #2a3555; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a4a75; }

/* ---------- 头部（毛玻璃） ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(8,13,26,.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 58px; }
.brand { font-size: 16px; font-weight: 700; color: var(--text-primary); letter-spacing: -.01em; display: flex; align-items: center; text-decoration: none; }
.brand-name { background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; font-size: 18px; }
.site-nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.site-nav a { padding: 6px 12px; border-radius: 8px; color: var(--text-secondary); font-size: 14px; white-space: nowrap; transition: color .2s, background .2s; }
.site-nav a:hover { color: var(--text-primary); background: rgba(255,255,255,.05); text-decoration: none; }
.site-nav a.active { color: var(--text-primary); font-weight: 600; background: rgba(124,106,247,.14); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.credits-badge { font-size: 13px; color: var(--accent); background: rgba(124,106,247,.14); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-primary); }
.announcement { background: rgba(245,158,11,.12); color: var(--yellow); text-align: center; font-size: 14px; padding: 6px 16px; }

/* ---------- 按钮（渐变主色） ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border-radius: 9px; font-size: 14px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: opacity .2s, transform .15s, background .2s; white-space: nowrap; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #6d5ef0); color: #fff; box-shadow: 0 0 24px rgba(124,106,247,.28); }
.btn-primary:hover { opacity: .88; transform: translateY(-1px); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: rgba(255,255,255,.06); color: var(--text-primary); }
.btn-outline { background: rgba(255,255,255,.06); border-color: var(--border-light); color: var(--text-primary); }
.btn-outline:hover { background: rgba(255,255,255,.1); transform: translateY(-1px); color: var(--text-primary); }
.btn-lg { padding: 12px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- 卡片 ---------- */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: box-shadow .2s ease, transform .2s ease, border-color .2s; }
.card + .card { margin-top: 16px; }
.card:hover { border-color: var(--border-light); box-shadow: 0 8px 32px rgba(0,0,0,.35); }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text-primary); }
.form-label .req { color: var(--red); }
.form-input, .form-select, .form-textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border-light); border-radius: 8px; font-size: 15px; font-family: inherit; background: var(--bg-card2); color: var(--text-primary); outline: none; transition: border-color .15s, box-shadow .15s; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,106,247,.18); }
.form-input::placeholder { color: var(--text-muted); }
.form-input:disabled { background: rgba(255,255,255,.04); color: var(--text-muted); cursor: not-allowed; }
.form-textarea { min-height: 120px; resize: vertical; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.6; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-error { color: var(--red); font-size: 14px; margin: 10px 0; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: 12px; overflow: hidden; font-size: 14px; }
table.data th { background: var(--bg-card2); text-align: left; padding: 10px 14px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1; }
table.data td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-primary); }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: rgba(124,106,247,.05); }

/* ---------- 徽章 ---------- */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.badge-free { background: rgba(255,255,255,.07); color: var(--text-secondary); }
.badge-pro { background: rgba(124,106,247,.16); color: var(--accent); }
.badge-premium { background: rgba(245,158,11,.16); color: var(--yellow); }
.badge-red { background: rgba(239,68,68,.16); color: var(--red); }
.badge-green { background: rgba(34,197,94,.16); color: var(--green); }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 提示 ---------- */
.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.alert-info { background: rgba(91,140,248,.14); color: #9cc0ff; }
.alert-danger { background: rgba(239,68,68,.14); color: #ff9a9a; }
.alert-success { background: rgba(34,197,94,.14); color: #7ddfa7; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0a1120; border-top: 1px solid var(--border); padding: 48px 0 0; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { font-size: 14px; color: var(--text-primary); margin-bottom: 6px; }
.footer-col a { color: var(--text-secondary); font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-brand-name { font-size: 18px; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-intro { color: var(--text-secondary); font-size: 14px; line-height: 1.7; max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 8px; }
.footer-social a, .qr-link { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; background: var(--bg-card2); border: 1px solid var(--border-light); border-radius: 50%; font-size: 16px; color: var(--text-secondary); }
.footer-bottom { border-top: 1px solid var(--border); text-align: center; padding: 16px; color: var(--text-muted); font-size: 13px; }
.qr-link, .float-qr { position: relative; cursor: pointer; }
.qr-pop, .float-qr-pop { display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--bg-card2); border: 1px solid var(--border-light); border-radius: 12px; padding: 8px; box-shadow: 0 8px 32px rgba(0,0,0,.5); z-index: 50; }
.qr-pop img, .float-qr-pop img { width: 110px; height: 110px; object-fit: contain; display: block; background: #fff; border-radius: 6px; padding: 2px; }
.qr-pop i, .float-qr-pop i { display: block; font-style: normal; text-align: center; font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.qr-link:hover .qr-pop, .float-qr:hover .float-qr-pop { display: block; }

/* ---------- 悬浮按钮 ---------- */
.float-actions { position: fixed; right: 16px; bottom: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.float-btn { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; background: var(--bg-card2); border: 1px solid var(--border-light); border-radius: 50%; font-size: 17px; box-shadow: 0 4px 16px rgba(0,0,0,.4); cursor: pointer; color: var(--text-primary); transition: transform .15s, border-color .2s; }
.float-btn:hover { transform: scale(1.08); border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 80px 16px 64px; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,106,247,.15) 0%, transparent 70%); }
.hero-badge { display: inline-block; background: rgba(255,255,255,.05); border: 1px solid var(--border-light); color: var(--text-secondary); font-size: 13px; padding: 6px 16px; border-radius: 999px; margin-bottom: 24px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 900; letter-spacing: -1.5px; line-height: 1.12; max-width: 720px; margin: 0 auto 20px; color: #fff; }
.hero p { font-size: 17px; color: var(--text-secondary); max-width: 620px; margin: 0 auto 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.section { padding: 48px 0; }
.section-title { text-align: center; font-size: clamp(24px, 3.5vw, 34px); font-weight: 800; letter-spacing: -.5px; margin-bottom: 8px; color: #fff; }
.section-sub { text-align: center; color: var(--text-secondary); margin-bottom: 32px; }
.step-card, .use-card, .why-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; transition: transform .2s ease, border-color .2s, box-shadow .2s; }
.step-card:hover, .use-card:hover, .why-card:hover, .price-card:hover { transform: translateY(-2px); border-color: var(--border-light); box-shadow: 0 10px 32px rgba(0,0,0,.35); }
.step-card .step-no { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; border-radius: 8px; font-weight: 700; margin-bottom: 12px; }
.step-card h3, .use-card h3, .why-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--text-primary); }
.step-card p, .use-card p, .why-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

/* ---------- 定价 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.price-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; text-align: center; position: relative; transition: transform .2s, border-color .2s; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 40px rgba(124,106,247,.2); }
.price-card .price { font-size: 34px; font-weight: 800; margin: 12px 0 4px; color: #fff; }
.price-card .price small { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.price-card ul { list-style: none; text-align: left; margin: 20px 0; }
.price-card li { padding: 7px 0; font-size: 14px; color: var(--text-secondary); border-bottom: 1px dashed var(--border); }
.price-card li.no { color: var(--text-muted); text-decoration: line-through; }
.flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: 12px; padding: 4px 14px; border-radius: 999px; }

/* ---------- 认证页 ---------- */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(124,106,247,.14) 0%, transparent 70%), var(--bg-dark); padding: 24px; }
.auth-card { width: 100%; max-width: 420px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 16px; padding: 32px; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.auth-card h1 { font-size: 22px; text-align: center; margin-bottom: 6px; color: #fff; }
.auth-card .auth-sub { text-align: center; color: var(--text-secondary); font-size: 14px; margin-bottom: 24px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-secondary); }

/* ---------- 编辑器（带行号） ---------- */
.editor-wrap { display: flex; border: 1px solid var(--border-light); border-radius: 12px; overflow: hidden; background: var(--bg-card2); }
.editor-gutter { width: 42px; background: var(--bg-card); border-right: 1px solid var(--border); color: var(--text-muted); text-align: right; font-size: 13px; line-height: 1.6; padding: 12px 0; overflow: hidden; user-select: none; font-family: ui-monospace, Menlo, monospace; }
.editor-gutter div { padding-right: 8px; }
.editor-area { flex: 1; border: none; outline: none; resize: none; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.6; padding: 12px; color: var(--text-primary); background: transparent; min-height: 320px; }

/* ---------- 进度条（用户中心用量） ---------- */
.usage-bar { margin-bottom: 14px; }
.usage-bar .usage-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-secondary); margin-bottom: 5px; }
.usage-bar .usage-track { height: 8px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.usage-bar .usage-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 999px; transition: width .3s; }
.usage-bar .usage-fill.danger { background: var(--red); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 58px; left: 0; right: 0; background: var(--bg-dark); flex-direction: column; padding: 8px 16px 16px; box-shadow: 0 12px 32px rgba(0,0,0,.5); border-bottom: 1px solid var(--border); }
  .site-nav.open { display: flex; }
  .header-actions .credits-badge { display: none; }
  .hero { padding: 56px 16px 40px; }
  .hero h1 { font-size: 36px; }
  .section { padding: 32px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-main { padding: 24px 16px 48px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
