/* ============================================================
   proxy-ip static-ip-demo v2 · 深色沉稳设计系统
   ============================================================ */
:root {
  --bg: #0b0f16;
  --bg-2: #0f1520;
  --panel: #131a27;
  --panel-2: #17202f;
  --line: #223047;
  --line-soft: #1a2536;
  --ink: #e7edf5;
  --ink-2: #9fb0c7;
  --ink-3: #64748b;
  --accent: #2dd4bf;
  --accent-2: #14b8a6;
  --accent-dim: rgba(45, 212, 191, 0.12);
  --gold: #f59e0b;
  --red: #f87171;
  --green: #34d399;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --font: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ============ 顶部导航 ============ */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(11, 15, 22, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; height: 66px; gap: 36px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: 0.5px; }
.brand-dot { width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--accent), #0ea5e9); box-shadow: 0 0 12px var(--accent); }
.nav-links { display: flex; gap: 30px; font-size: 14.5px; color: var(--ink-2); }
.nav-links a { padding: 6px 2px; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.nav-auth { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; font-size: 14px; font-weight: 600; padding: 10px 22px; transition: all 0.2s; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04211c; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-3); }
.btn-lg { padding: 14px 34px; font-size: 15.5px; border-radius: 12px; }
.user-chip { display: flex; align-items: center; gap: 12px; }
.user-chip .avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #0ea5e9); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #04211c; font-size: 15px; }
.user-chip .meta { line-height: 1.25; }
.user-chip .meta b { font-size: 13.5px; display: block; }
.user-chip .meta span { font-size: 12px; color: var(--ink-3); }
.logout { font-size: 13px; color: var(--ink-3); transition: color 0.2s; }
.logout:hover { color: var(--red); }

/* ============ 首页 ============ */
.hero { position: relative; overflow: hidden; padding: 110px 0 90px; background:
  radial-gradient(700px 340px at 15% 0%, rgba(45, 212, 191, 0.09), transparent 65%),
  radial-gradient(600px 300px at 85% 10%, rgba(14, 165, 233, 0.08), transparent 65%),
  var(--bg); }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--accent); border: 1px solid rgba(45, 212, 191, 0.35); border-radius: 99px; padding: 6px 16px; background: var(--accent-dim); margin-bottom: 26px; }
.hero h1 { font-size: 46px; line-height: 1.22; font-weight: 800; letter-spacing: 0.5px; max-width: 640px; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--accent), #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { margin-top: 20px; font-size: 16.5px; color: var(--ink-2); max-width: 560px; }
.hero .cta { display: flex; gap: 14px; margin-top: 36px; }
.hero-stats { display: flex; gap: 56px; margin-top: 64px; }
.hero-stats .s b { font-size: 28px; font-weight: 800; color: var(--ink); }
.hero-stats .s b i { font-style: normal; color: var(--accent); }
.hero-stats .s span { display: block; font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.hero-glow { position: absolute; right: -120px; top: 40px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(45,212,191,0.14), transparent 60%); pointer-events: none; }

.section { padding: 84px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.sec-head { margin-bottom: 44px; }
.sec-head .kicker { font-size: 13px; letter-spacing: 2.5px; color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.sec-head h2 { font-size: 30px; font-weight: 800; }
.sec-head p { color: var(--ink-2); margin-top: 10px; max-width: 620px; }

.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 32px; transition: all 0.25s; position: relative; overflow: hidden; }
.pcard:hover { border-color: rgba(45, 212, 191, 0.5); transform: translateY(-3px); box-shadow: var(--shadow); }
.pcard .tag { position: absolute; top: 18px; right: 18px; font-size: 11.5px; color: var(--accent); background: var(--accent-dim); border: 1px solid rgba(45,212,191,0.3); padding: 4px 12px; border-radius: 99px; }
.pcard .icon { width: 50px; height: 50px; border-radius: 13px; background: var(--accent-dim); border: 1px solid rgba(45,212,191,0.3); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.pcard h3 { font-size: 20px; margin-bottom: 8px; }
.pcard p { color: var(--ink-2); font-size: 14px; min-height: 44px; }
.pcard .meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 22px; }
.chip { font-size: 12px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 7px; padding: 4px 10px; background: var(--panel-2); }
.pcard .go { color: var(--accent); font-weight: 600; font-size: 14px; }

.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.feat .fi { font-size: 24px; margin-bottom: 14px; }
.feat h4 { font-size: 15.5px; margin-bottom: 6px; }
.feat p { font-size: 13px; color: var(--ink-3); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: 1px; }
.step h4 { margin: 10px 0 6px; font-size: 15.5px; }
.step p { font-size: 13px; color: var(--ink-3); }

.cta-band { text-align: center; padding: 90px 24px; background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line-soft); }
.cta-band h2 { font-size: 32px; font-weight: 800; }
.cta-band p { color: var(--ink-2); margin: 14px 0 32px; }

/* ============ 认证页（登录/注册） ============ */
.auth-wrap { min-height: calc(100vh - 66px); display: flex; align-items: center; justify-content: center; padding: 60px 24px; background:
  radial-gradient(600px 300px at 20% 10%, rgba(45, 212, 191, 0.08), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 40px 38px; box-shadow: var(--shadow); }
.auth-card h2 { font-size: 24px; font-weight: 800; }
.auth-card .sub { color: var(--ink-3); font-size: 13.5px; margin: 8px 0 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.field input { width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-size: 14.5px; padding: 12px 14px; outline: none; transition: border-color 0.2s; }
.field input:focus { border-color: var(--accent); }
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.auth-card .btn { width: 100%; padding: 13px; margin-top: 6px; }
.auth-card .swap { text-align: center; font-size: 13.5px; color: var(--ink-3); margin-top: 22px; }
.auth-card .swap a { color: var(--accent); font-weight: 600; }
.form-err { display: none; background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.35); color: var(--red); font-size: 13px; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }

/* ============ 控制台布局（静态页） ============ */
.dash { display: grid; grid-template-columns: 230px 1fr 300px; gap: 0; min-height: calc(100vh - 66px); }
#dashView { display: none; }
#dashView[style*="contents"] { display: contents; }
#dashView.show { display: contents !important; }
.sidebar { background: var(--bg-2); border-right: 1px solid var(--line-soft); padding: 22px 16px; display: flex; flex-direction: column; gap: 4px; }
.bal-card { background: linear-gradient(150deg, rgba(45,212,191,0.14), rgba(14,165,233,0.08)); border: 1px solid rgba(45,212,191,0.3); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 16px; }
.bal-card .lbl { font-size: 12px; color: var(--ink-2); }
.bal-card .amt { font-size: 24px; font-weight: 800; margin: 2px 0 10px; }
.bal-card .amt small { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.bal-card .btn { padding: 7px 0; width: 100%; font-size: 13px; }
.snav { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: var(--ink-2); font-size: 14px; transition: all 0.18s; width: 100%; text-align: left; }
.snav:hover { background: var(--panel); color: var(--ink); }
.snav.active { background: var(--accent-dim); color: var(--accent); font-weight: 600; }
.side-foot { margin-top: auto; font-size: 12px; color: var(--ink-3); padding: 14px; border-top: 1px solid var(--line-soft); }

.main-area { padding: 30px 34px; overflow-x: hidden; }
.main-area h2.page-title { font-size: 21px; font-weight: 800; margin-bottom: 20px; }

.ip-type-row { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 18px; flex-wrap: wrap; }
.ip-type-row .lbl { font-size: 14px; font-weight: 700; margin-right: 6px; }
.seg { display: flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 4px; gap: 4px; }
.seg button { padding: 8px 22px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; transition: all 0.2s; }
.seg button.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04211c; }
.ip-type-row .tip { font-size: 12.5px; color: var(--ink-3); margin-left: auto; }

.continent-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.continent-tabs button { font-size: 13.5px; color: var(--ink-2); border: 1px solid var(--line); background: var(--panel); padding: 8px 18px; border-radius: 99px; transition: all 0.2s; }
.continent-tabs button.on { color: var(--accent); border-color: rgba(45,212,191,0.5); background: var(--accent-dim); font-weight: 600; }

.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px 16px; cursor: pointer; transition: all 0.18s; display: flex; flex-direction: column; gap: 6px; }
.rcard:hover { border-color: var(--ink-3); }
.rcard.sel { border-color: var(--accent); background: linear-gradient(160deg, rgba(45,212,191,0.08), var(--panel)); box-shadow: 0 0 0 1px rgba(45,212,191,0.4); }
.rcard .r-top { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; }
.rcard .r-top .f { font-size: 18px; }
.rcard .r-stock { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.rcard .r-stock .ok { color: var(--green); }
.rcard .r-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.rcard .r-price { font-size: 13px; color: var(--ink-2); }
.rcard .r-price b { color: var(--accent); font-size: 15px; }
.stepper { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; }
.stepper button { width: 22px; height: 22px; border-radius: 6px; color: var(--ink-2); font-size: 15px; display: flex; align-items: center; justify-content: center; }
.stepper button:hover { background: var(--panel-2); color: var(--ink); }
.stepper span { min-width: 20px; text-align: center; font-size: 13.5px; font-weight: 600; }
.rcard.zero { opacity: 0.55; }

/* 订单选购面板 */
.order-panel { position: sticky; top: 86px; margin: 30px 34px 30px 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; height: fit-content; }
.order-panel h3 { font-size: 16px; margin-bottom: 16px; }
.op-line { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.op-line .k { color: var(--ink-3); }
.op-line .v { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.op-line .v.big { font-size: 22px; color: var(--accent); }
.proto-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.proto-chips .chip { font-size: 11px; padding: 3px 9px; color: var(--accent); border-color: rgba(45,212,191,0.35); }
.op-coupon { display: flex; gap: 8px; margin: 14px 0; }
.op-coupon input { flex: 1; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 13px; padding: 9px 12px; outline: none; }
.op-coupon input:focus { border-color: var(--accent); }
.op-coupon button { font-size: 12.5px; color: var(--accent); font-weight: 600; padding: 0 10px; }
.pay-row { display: flex; align-items: center; gap: 10px; padding: 12px 0 16px; font-size: 13.5px; }
.pay-row .radio { width: 16px; height: 16px; border-radius: 50%; border: 5px solid var(--accent); background: var(--bg); }
.order-panel .buy-btn { width: 100%; padding: 14px; font-size: 15.5px; border-radius: 11px; }

/* 未登录门控 */
.gate { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 90px 30px; }
.gate .lock { width: 74px; height: 74px; border-radius: 22px; background: var(--accent-dim); border: 1px solid rgba(45,212,191,0.35); display: flex; align-items: center; justify-content: center; font-size: 32px; margin-bottom: 24px; }
.gate h2 { font-size: 24px; margin-bottom: 10px; }
.gate p { color: var(--ink-2); max-width: 420px; margin-bottom: 28px; }
.gate .actions { display: flex; gap: 12px; }

/* 订单明细 */
.orders-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.orders-table th { text-align: left; color: var(--ink-3); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.orders-table td { padding: 13px 12px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
.orders-table td b { color: var(--ink); font-weight: 600; }
.badge { font-size: 11.5px; padding: 3px 10px; border-radius: 99px; font-weight: 600; }
.badge.ok { color: var(--green); background: rgba(52, 211, 153, 0.12); }
.badge.warn { color: var(--gold); background: rgba(245, 158, 11, 0.12); }
.empty-tip { text-align: center; color: var(--ink-3); padding: 60px 0; font-size: 14px; }

/* ============ 动态页品牌卡 ============ */
.product-grid.brands { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 22px; text-align: center; transition: all 0.25s; }
.product-card:hover { border-color: rgba(45,212,191,0.5); transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card .logo-wrap { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 20px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.product-card .logo-wrap img { width: 100%; height: 100%; }
.product-card h4 { font-size: 16px; margin-bottom: 6px; }
.product-card .price { font-size: 17px; font-weight: 800; color: var(--accent); margin-top: 10px; }
.product-card .price .ph { color: var(--ink-3); font-weight: 500; font-size: 14px; }
.locked-price { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 13.5px; }

/* ============ 联系页 ============ */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ccard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px; text-align: center; }
.ccard .ci { font-size: 30px; margin-bottom: 14px; }
.ccard h4 { font-size: 16px; margin-bottom: 6px; }
.ccard p { color: var(--ink-2); font-size: 14px; }

/* ============ 弹窗 / 提示 ============ */
.modal-mask { position: fixed; inset: 0; background: rgba(4, 8, 14, 0.72); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px; }
.modal-mask.show { display: flex; }
.modal { width: 100%; max-width: 520px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); max-height: 85vh; overflow-y: auto; }
.modal h3 { font-size: 19px; margin-bottom: 6px; }
.modal .msub { color: var(--ink-3); font-size: 13px; margin-bottom: 20px; }
.cred-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; font-size: 13px; font-family: ui-monospace, Consolas, monospace; color: var(--ink-2); line-height: 1.9; word-break: break-all; }
.cred-box b { color: var(--accent); font-weight: 600; }
.modal .actions { display: flex; gap: 10px; margin-top: 18px; }
.modal .actions .btn { flex: 1; }
#toast { position: fixed; top: 84px; left: 50%; transform: translateX(-50%) translateY(-16px); background: var(--panel-2); border: 1px solid rgba(45,212,191,0.4); color: var(--ink); padding: 11px 24px; border-radius: 99px; font-size: 13.5px; opacity: 0; pointer-events: none; transition: all 0.3s; z-index: 300; box-shadow: var(--shadow); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 页脚 ============ */
.footer { border-top: 1px solid var(--line-soft); padding: 40px 0; color: var(--ink-3); font-size: 13px; }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .hero h1 { font-size: 34px; }
  .product-grid, .product-grid.brands, .contact-grid { grid-template-columns: 1fr 1fr; }
  .feat-grid, .steps { grid-template-columns: 1fr 1fr; }
  .region-grid { grid-template-columns: 1fr 1fr; }
  .dash { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .snav { width: auto; }
  .side-foot { display: none; }
  .order-panel { position: static; margin: 0 24px 30px; }
  .main-area { padding: 24px; }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .product-grid, .product-grid.brands, .feat-grid, .steps, .region-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 28px; }
}
