/* ============================================================
   俄罗斯代购平台 - 全站设计系统 v2
   Design Language: Coinbase（金融级信任蓝）
   主色 #0052ff · 深色区 #0a0b0d · 药丸按钮 56px · DM Sans
   ============================================================ */
:root {
  --brand: #0052ff;          /* Coinbase Blue */
  --brand-hover: #578bfa;    /* Hover Blue */
  --brand-dark: #0a0b0d;     /* Near Black */
  --surface: #eef0f3;        /* Cool Gray Surface */
  --surface-2: #f7f7f9;
  --dark-card: #282b31;      /* Dark Card */
  --accent: #ff7a1a;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --text: #0a0b0d;
  --text-2: #5b616e;
  --line: #e6e9ee;
  --ok: #0f9d58;
  --warn: #d93025;
  --radius: 16px;
  --radius-pill: 56px;
  --shadow: 0 2px 10px rgba(10,11,13,0.06), 0 8px 28px rgba(10,11,13,0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'DM Sans', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
}
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 13px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { font-size: 21px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; letter-spacing: -0.3px; }
.logo .flag { font-size: 24px; }
.logo .dot { color: var(--brand); }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-size: 15px; font-weight: 500;
  transition: all .15s;
}
.nav-links a:hover { background: var(--surface); color: var(--text); }
.nav-links a.active { background: var(--brand); color: #fff; font-weight: 600; }
.nav-cta {
  background: var(--brand); color: #fff !important; font-weight: 600; border-radius: 999px;
  padding: 10px 20px !important;
}
.nav-cta:hover { background: var(--brand-hover); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
  padding: 76px 20px 60px;
  text-align: center;
}
.hero-inner { max-width: 900px; margin: 0 auto; }
.hero .badge {
  display: inline-block; background: var(--surface); color: var(--text-2);
  padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 22px;
  letter-spacing: 0.2px;
}
.hero h1 { font-size: 46px; line-height: 1.15; font-weight: 700; letter-spacing: -1px; }
.hero h1 .hl { color: var(--brand); }
.hero .sub { font-size: 18px; color: var(--text-2); margin: 18px auto 32px; max-width: 640px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 30px; border-radius: var(--radius-pill); font-size: 16px; font-weight: 600;
  transition: all .15s; border: none; cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-outline:hover { background: var(--surface); }
.hero-stats { display: flex; gap: 48px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.hero-stats .num { font-size: 28px; font-weight: 700; color: var(--brand); letter-spacing: -0.5px; }
.hero-stats .lbl { font-size: 13px; color: var(--text-2); }

/* ---------- 区块 ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: 56px 20px; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.5px; }
.section-head p { color: var(--text-2); margin-top: 8px; font-size: 16px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g3, .g4, .g2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .15s;
}
.card:hover { transform: translateY(-3px); }
.card .icon { font-size: 34px; margin-bottom: 12px; }
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.2px; }
.card p { color: var(--text-2); font-size: 14.5px; }
.card .tag {
  display: inline-block; background: var(--surface); color: var(--text-2);
  font-size: 12px; padding: 3px 10px; border-radius: 999px; margin-top: 10px; margin-right: 6px;
}

/* ---------- 价格对比卡（首页核心） ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); transition: transform .15s;
}
.pcard:hover { transform: translateY(-3px); }
.pcard .pimg {
  font-size: 40px; text-align: center; padding: 18px; background: var(--surface-2);
  border-radius: 12px; margin-bottom: 12px;
}
.pcard .pname { font-weight: 600; font-size: 15px; margin-bottom: 10px; letter-spacing: -0.2px; }
.pcard .pprice { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 8px; }
.pcard .pprice .ru { color: var(--text); font-weight: 600; }
.pcard .pprice .cn { color: var(--text-2); text-decoration: line-through; }
.pcard .psave {
  display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--ok);
  background: rgba(15,157,88,0.1); padding: 3px 10px; border-radius: 999px;
}
.pcard .pnote { font-size: 11px; color: #9aa1ad; margin-top: 8px; }
.price-note { text-align: center; font-size: 12.5px; color: #9aa1ad; margin-top: 14px; }

/* ---------- 步骤条 ---------- */
.steps { display: flex; gap: 0; counter-reset: step; margin-top: 10px; }
.step { flex: 1; text-align: center; padding: 0 18px; position: relative; }
.step::after {
  content: ""; position: absolute; top: 30px; left: 60%; width: 80%; height: 2px;
  background: var(--line);
}
.step:last-child::after { display: none; }
.step .n {
  width: 60px; height: 60px; line-height: 60px; border-radius: 50%;
  background: var(--surface); color: var(--brand); font-size: 22px; font-weight: 700;
  margin: 0 auto 14px;
}
.step h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--text-2); }
@media (max-width: 700px) { .steps { flex-direction: column; gap: 22px; } .step::after { display: none; } }

/* ---------- 深色区块（Coinbase 特色） ---------- */
.dark-band { background: var(--brand-dark); color: #fff; }
.dark-band .section-head h2 { color: #fff; }
.dark-band .section-head p { color: rgba(255,255,255,0.7); }
.dark-band .card { background: var(--dark-card); border: none; box-shadow: none; }
.dark-band .card h3 { color: #fff; }
.dark-band .card p { color: rgba(255,255,255,0.7); }
.dark-band .card .tag { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); }
.dark-band .btn-primary { background: var(--brand); color: #fff; }
.dark-band .btn-primary:hover { background: var(--brand-hover); }

/* ---------- 价格对比表 ---------- */
.price-table { width: 100%; border-collapse: collapse; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { padding: 14px 18px; text-align: left; font-size: 14.5px; }
.price-table thead th { background: var(--brand-dark); color: #fff; font-weight: 600; }
.price-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.price-table .free { color: var(--ok); font-weight: 700; }
.price-table .note { color: var(--text-2); font-size: 12.5px; }

/* ---------- 表单 ---------- */
.form-card { max-width: 620px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.form-group .req { color: var(--warn); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; transition: border .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--brand);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-tip { font-size: 12.5px; color: var(--text-2); margin-top: 5px; }
.btn-block { width: 100%; padding: 14px; font-size: 16px; border-radius: var(--radius-pill); }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  padding: 16px 20px; cursor: pointer; font-weight: 600; font-size: 15.5px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--brand); }
.faq-item[open] summary::after { content: "−"; }
.faq-item .body { padding: 0 20px 16px; color: var(--text-2); font-size: 14.5px; }

/* ---------- 提示条 ---------- */
.notice { background: #fff8ed; border: 1px solid #ffe0b3; border-radius: 12px; padding: 14px 18px; font-size: 13.5px; color: #7a4a00; margin-bottom: 20px; }
.notice b { color: #b45309; }
.tip-bar { background: var(--surface); border-radius: 12px; padding: 16px 20px; font-size: 14px; color: var(--text); margin-bottom: 24px; }

/* ---------- CTA 大条 ---------- */
.cta-band { background: var(--brand-dark); border-radius: 20px; padding: 48px 30px; text-align: center; color: #fff; margin-top: 20px; }
.cta-band h2 { font-size: 30px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.5px; }
.cta-band p { opacity: .85; margin-bottom: 22px; }
.cta-band .btn { background: var(--brand); color: #fff; }
.cta-band .btn:hover { background: var(--brand-hover); transform: translateY(-1px); }
.cta-band .wx { font-size: 20px; font-weight: 700; letter-spacing: 1px; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 40px; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 36px 20px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer .col h4 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.footer .col a, .footer .col p { display: block; color: var(--text-2); font-size: 13.5px; margin-bottom: 6px; }
.footer .copy { text-align: center; padding: 16px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 12.5px; }

/* ---------- 悬浮按钮 ---------- */
.float-wx {
  position: fixed; right: 22px; bottom: 26px; z-index: 99;
  background: var(--brand); color: #fff; border-radius: 999px; padding: 13px 22px;
  font-weight: 600; box-shadow: 0 8px 24px rgba(0,82,255,.35); display: flex; align-items: center; gap: 8px;
}
.float-wx:hover { background: var(--brand-hover); transform: translateY(-2px); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: var(--brand-dark); color: #fff; padding: 12px 24px; border-radius: 10px;
  font-size: 14.5px; opacity: 0; pointer-events: none; transition: all .3s; z-index: 999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 管理后台 ---------- */
.admin-wrap { max-width: 1120px; margin: 0 auto; padding: 40px 20px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
@media (max-width: 700px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.stat-card .v { font-size: 28px; font-weight: 700; color: var(--brand); letter-spacing: -0.5px; }
.stat-card .k { font-size: 13px; color: var(--text-2); }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.admin-table thead th { background: var(--surface); font-weight: 600; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.st-pending { background: #fff3e0; color: #b45309; }
.st-done { background: #e6f7ee; color: var(--ok); }
.st-ship { background: var(--surface); color: var(--brand); }
.empty-row td { text-align: center; color: var(--text-2); padding: 30px; }

/* ---------- 费用测算器 ---------- */
.calc-card { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.calc-result { background: var(--surface); border-radius: 14px; padding: 20px 24px; margin-top: 18px; }
.calc-result .row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14.5px; }
.calc-result .row.total { border-top: 2px dashed var(--brand); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 17px; }
.calc-result .row.total .v { color: var(--brand); }
