/* ================================================================
   PUBG Steam 工具 - 主页样式
   设计语言：战术暗色 + PUBG 金（单强调色）
   圆角体系：卡片 16px / 输入与按钮 12px / 徽标全圆角
   ================================================================ */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-var.87c506d88b9f.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #0f0f13;
  --bg-soft: #131318;
  --panel: #181820;
  --panel-2: #14141a;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f2f2ef;
  --text-2: #a6a6b0;
  --text-3: #70707c;
  --gold: #f2a900;
  --gold-2: #ffbf26;
  --gold-ink: #1c1403;
  --gold-tint: rgba(242, 169, 0, 0.12);
  --ok: #4ade80;
  --danger: #ff7069;
  --warn: #fb923c;
  --r-card: 16px;
  --r-btn: 12px;
  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: rgba(242, 169, 0, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* 图标 */
.i {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ===== 顶部导航 ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 15, 19, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  height: 64px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
}
.nav-brand svg { width: 26px; height: 26px; color: var(--gold); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  color: var(--text-2); font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta {
  color: var(--gold-ink); background: var(--gold);
  padding: 8px 18px; border-radius: var(--r-btn);
  font-size: 13.5px; font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.nav-links a.nav-cta:hover { background: var(--gold-2); color: var(--gold-ink); }
.nav-links a.nav-cta:active { transform: translateY(1px); }

/* ===== Hero ===== */
.hero {
  max-width: 1200px; margin: 0 auto;
  padding: 72px 24px 0;
}
.hero-inner {
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: 56px; align-items: center;
}
.hero-status {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 7px 15px; margin-bottom: 26px;
  background: var(--panel-2);
}
.hero-status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); animation: pulse 2s infinite;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}
.hero-status .dot.danger { background: var(--danger); box-shadow: 0 0 0 3px rgba(255, 112, 105, 0.15); }
.hero-status .dot.pending { background: var(--gold); box-shadow: 0 0 0 3px rgba(242, 169, 0, 0.15); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.hero h1 {
  font-size: clamp(36px, 4.6vw, 54px);
  font-weight: 700; line-height: 1.14;
  letter-spacing: -0.02em; margin-bottom: 18px;
}
.hero h1 .accent { color: var(--gold); }
.hero-desc {
  font-size: 16.5px; color: var(--text-2);
  line-height: 1.75; max-width: 30em; margin-bottom: 30px;
}

.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--gold); color: var(--gold-ink);
  padding: 14px 30px; border-radius: var(--r-btn);
  font-size: 15.5px; font-weight: 700; letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 6px 22px rgba(242, 169, 0, 0.22);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--gold-2); transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(242, 169, 0, 0.3);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 4px 14px rgba(242, 169, 0, 0.2); }
.btn-primary .i { width: 19px; height: 19px; stroke-width: 2.1; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: var(--r-btn);
  border: 1px solid var(--line-2); color: var(--text);
  font-size: 15px; font-weight: 600;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: rgba(242, 169, 0, 0.5); background: var(--gold-tint); }
.btn-ghost:active { transform: translateY(1px); }

.hero-meta {
  display: flex; gap: 22px; flex-wrap: wrap;
  margin-top: 22px; font-size: 13px; color: var(--text-3);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .i { width: 15px; height: 15px; color: var(--text-3); }

/* Hero 右侧：真实服务器状态面板 */
.hero-visual { position: relative; }
.live-panel {
  position: relative;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(242, 169, 0, 0.1), transparent 55%),
    linear-gradient(var(--panel), var(--panel)) padding-box;
  border: 1px solid var(--line-2);
  border-radius: 20px; padding: 24px 24px 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.live-panel::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(90% 70% at 70% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(90% 70% at 70% 0%, #000 30%, transparent 100%);
}
.live-head {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.live-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--text-2);
  letter-spacing: 0.02em;
}
.live-title .i { width: 16px; height: 16px; color: var(--gold); }
.live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: var(--gold);
  background: var(--gold-tint); border-radius: 999px; padding: 4px 11px;
}
.live-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); animation: pulse 2s infinite;
}
.live-online { position: relative; padding: 4px 0 18px; }
.live-online-num {
  font-size: clamp(38px, 4vw, 46px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.live-online-label { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.live-rows {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.live-row {
  padding: 12px 2px; border-bottom: 1px solid var(--line);
}
.live-row:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 14px; }
.live-row:nth-child(even) { padding-left: 14px; }
.live-row:nth-last-child(-n+2) { border-bottom: none; }
.live-row-k { font-size: 12px; color: var(--text-3); }
.live-row-v {
  font-size: 14px; font-weight: 600; margin-top: 2px;
  font-variant-numeric: tabular-nums; word-break: break-all;
}
.live-row-v.ok { color: var(--ok); }
.live-row-v.warn { color: var(--warn); }
.live-foot {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; font-size: 12px; color: var(--text-3);
}

/* 数据带：Hero 之下 */
.hero-stats-wrap { border-top: 1px solid var(--line); margin-top: 56px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-item { padding: 26px 28px 64px; }
.stat-item + .stat-item { border-left: 1px solid var(--line); }
.stat-item .stat-num {
  font-size: clamp(24px, 2.6vw, 32px); font-weight: 700;
  letter-spacing: -0.01em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-item .stat-label { font-size: 13px; color: var(--text-3); margin-top: 5px; }
.stat-item.live .stat-num { color: var(--gold); }

/* ===== 区块通用 ===== */
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-header { max-width: 640px; margin-bottom: 44px; }
.section-header h2 {
  font-size: clamp(26px, 3.2vw, 34px); font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 10px;
}
.section-header p { font-size: 15.5px; color: var(--text-2); }

/* ===== 查询工具 ===== */
.tools {
  padding: 88px 0 96px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tool-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-bottom: 20px;
}
.tool-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 26px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 169, 0, 0.28);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}
.tool-card-head { display: flex; align-items: center; gap: 12px; }
.tool-icon {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-tint); color: var(--gold);
}
.tool-icon .i { width: 20px; height: 20px; }
.tool-card-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tool-card-head h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.tool-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--gold); background: var(--gold-tint);
  padding: 2.5px 10px; border-radius: 999px;
}
.tool-desc { font-size: 13.5px; color: var(--text-2); margin: 12px 0 18px; }
.tool-form { display: flex; flex-direction: column; gap: 7px; }
.tool-label { font-size: 12px; font-weight: 500; color: var(--text-3); letter-spacing: 0.03em; }
.tool-row { display: flex; gap: 10px; }
.tool-input {
  flex: 1; min-width: 0;
  padding: 12px 14px; font-size: 14px; font-family: inherit;
  color: var(--text); background: var(--panel-2);
  border: 1px solid var(--line-2); border-radius: var(--r-btn);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.tool-input::placeholder { color: var(--text-3); }
.tool-input:focus {
  border-color: rgba(242, 169, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(242, 169, 0, 0.16);
}
.tool-btn {
  padding: 12px 24px; min-width: 86px;
  background: var(--gold); color: var(--gold-ink);
  border-radius: var(--r-btn); font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.tool-btn:hover { background: var(--gold-2); }
.tool-btn:active { transform: translateY(1px); }
.tool-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.tool-btn.loading .btn-text { display: none; }
.tool-btn.loading::after {
  content: ''; width: 15px; height: 15px;
  border: 2px solid rgba(28, 20, 3, 0.3); border-top-color: var(--gold-ink);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 服务器状态通栏面板 */
.tool-wide { margin-top: 0; }
.tool-wide-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 14px;
}
.tool-wide-head .tool-card-head { flex: 1; min-width: 0; }
.tool-refresh {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600;
  color: var(--gold); border: 1px solid rgba(242, 169, 0, 0.4);
  padding: 8px 16px; border-radius: 999px; transition: all 0.2s;
  white-space: nowrap;
}
.tool-refresh .i { width: 14px; height: 14px; }
.tool-refresh:hover { background: var(--gold-tint); border-color: var(--gold); }
.tool-refresh:active { transform: translateY(1px); }
.tool-wide-foot { font-size: 12.5px; color: var(--text-3); margin-top: 16px; }

/* ===== 查询结果 ===== */
.result-area { min-height: 30px; margin-top: 16px; }
.tool-wide .result-area { margin-top: 6px; }
.loading { text-align: center; color: var(--text-3); padding: 16px; font-size: 14px; }
.error {
  background: rgba(255, 112, 105, 0.09);
  border: 1px solid rgba(255, 112, 105, 0.3); color: var(--danger);
  padding: 12px 16px; border-radius: 12px; font-size: 14px;
}
.data-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.tool-card:not(.tool-wide) .data-grid { grid-template-columns: repeat(2, 1fr); }
.data-item {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 14px;
}
.data-label { font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.data-value {
  font-size: 15px; font-weight: 600; color: var(--text);
  word-break: break-all; font-variant-numeric: tabular-nums;
}
.data-value.success { color: var(--ok); }
.data-value.danger { color: var(--danger); }
.data-value.warning { color: var(--warn); }
.status-badge {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.status-badge.normal { background: rgba(74, 222, 128, 0.13); color: var(--ok); }
.status-badge.banned { background: rgba(255, 112, 105, 0.13); color: var(--danger); }
.status-badge.temp { background: rgba(251, 146, 60, 0.13); color: var(--warn); }
.status-badge.unknown { background: rgba(255, 255, 255, 0.07); color: var(--text-2); }

/* ===== 核心功能（非对称网格） ===== */
.features { padding: 96px 0; }
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 30px 28px;
  transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.06); color: var(--text);
}
.feature-icon .i { width: 21px; height: 21px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature-card p { font-size: 14px; color: var(--text-2); line-height: 1.7; }
/* 变化：金色调单元格 + 网格纹理单元格，避免整面白卡 */
.feature-card.tint {
  background: linear-gradient(135deg, rgba(242, 169, 0, 0.14), rgba(242, 169, 0, 0.04));
  border-color: rgba(242, 169, 0, 0.3);
}
.feature-card.tint .feature-icon { background: var(--gold-tint); color: var(--gold); }
.feature-card.tint:hover { border-color: rgba(242, 169, 0, 0.5); }
.feature-card.pattern { position: relative; overflow: hidden; }
.feature-card.pattern::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(80% 80% at 100% 0%, #000 20%, transparent 90%);
  -webkit-mask-image: radial-gradient(80% 80% at 100% 0%, #000 20%, transparent 90%);
}

/* ===== 常见问题 ===== */
.faq {
  padding: 88px 0 96px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 19px 4px; cursor: pointer; font-size: 15.5px; font-weight: 600;
  user-select: none; transition: color 0.2s;
}
.faq-q:hover { color: var(--gold); }
.faq-q .faq-arrow {
  transition: transform 0.25s; color: var(--text-3); flex: none;
}
.faq-q .faq-arrow .i { width: 17px; height: 17px; }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--gold); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  font-size: 14px; color: var(--text-2); line-height: 1.75;
}
.faq-item.open .faq-a { max-height: 240px; }
.faq-a-inner { padding: 0 32px 20px 4px; }

/* ===== 联系我们 ===== */
.contact { padding: 96px 0; }
.contact-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.contact-card { padding: 8px 32px; }
.contact-card:first-child { padding-left: 0; }
.contact-card:last-child { padding-right: 0; }
.contact-card + .contact-card { border-left: 1px solid var(--line); }
.contact-icon { color: var(--gold); margin-bottom: 14px; }
.contact-icon .i { width: 22px; height: 22px; }
.contact-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.contact-card p {
  font-size: 14.5px; color: var(--text); font-weight: 600;
  word-break: break-all; font-variant-numeric: tabular-nums;
}
.contact-card .contact-sub { font-size: 12.5px; color: var(--text-3); margin-top: 6px; font-weight: 400; }

/* ===== 页脚 ===== */
.footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 30px 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-left { font-size: 13px; color: var(--text-3); }
.footer-right { display: flex; gap: 24px; }
.footer-right a { font-size: 13px; color: var(--text-2); transition: color 0.2s; }
.footer-right a:hover { color: var(--gold); }

/* ===== 自定义弹窗 ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(8, 8, 11, 0.7);
  backdrop-filter: blur(4px);
  display: none; justify-content: center; align-items: center;
  z-index: 1000; animation: fadeIn 0.2s ease;
}
.modal-overlay.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  min-width: 360px; max-width: 90%; max-height: 80vh; overflow: hidden;
  animation: slideUp 0.28s ease;
}
.modal-header {
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-title { font-size: 15.5px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; }
.modal-close {
  color: var(--text-3); font-size: 24px; cursor: pointer;
  padding: 0; width: 30px; height: 30px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: all 0.2s;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.modal-body {
  padding: 20px 22px; font-size: 14.5px; line-height: 1.7; color: var(--text-2);
  max-height: 50vh; overflow-y: auto; word-wrap: break-word; word-break: break-word;
}
.modal-body.success { color: var(--ok); }
.modal-body.error { color: var(--danger); }
.modal-body.warning { color: var(--warn); }
.modal-body.info { color: var(--gold); }
.modal-footer {
  padding: 14px 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end; gap: 12px;
}
.modal-btn {
  padding: 10px 24px; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.modal-btn-primary { background: var(--gold); color: var(--gold-ink); }
.modal-btn-primary:hover { background: var(--gold-2); }
.modal-btn-primary:active { transform: translateY(1px); }
.modal-btn-secondary { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.modal-btn-secondary:hover { background: rgba(255, 255, 255, 0.14); }

/* ===== 进场动效（尊重系统减弱动效设置） ===== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-status .dot, .live-pill .dot { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ===== 汉堡菜单 ===== */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 10px;
  border-radius: 10px; transition: background 0.2s;
}
.hamburger:hover { background: rgba(255, 255, 255, 0.06); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  z-index: 99;
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.mobile-menu.open { max-height: 420px; }
.mobile-menu-inner { padding: 12px 24px 20px; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu-inner a {
  display: flex; align-items: center;
  padding: 14px 12px; font-size: 15px; font-weight: 500;
  color: var(--text-2); border-radius: 10px; transition: all 0.2s;
  min-height: 44px;
}
.mobile-menu-inner a:hover { background: rgba(255, 255, 255, 0.05); color: var(--gold); }
.mobile-menu-inner .nav-cta-mobile {
  background: var(--gold); color: var(--gold-ink) !important;
  justify-content: center; font-weight: 700; margin-top: 8px;
}
.mobile-menu-inner .nav-cta-mobile:hover { background: var(--gold-2); color: var(--gold-ink) !important; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 520px; }
}

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links { display: none !important; }
  .mobile-menu { display: block; }
  .hero { padding-top: 44px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 20px 22px 36px; }
  .stat-item:nth-child(3) { border-left: none; }
  .stat-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tools, .features, .faq, .contact { padding: 60px 0; }
  .tool-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; gap: 14px; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card { padding: 18px 0; }
  .contact-card + .contact-card { border-left: none; border-top: 1px solid var(--line); }
  .section-header { margin-bottom: 32px; }
  .data-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .nav-inner { padding: 0 16px; height: 58px; }
  .nav-brand { font-size: 15.5px; }
  .nav-brand svg { width: 23px; height: 23px; }
  .mobile-menu { top: 58px; }
  .hero { padding: 32px 16px 0; }
  .hero-inner { gap: 36px; }
  .hero h1 { font-size: 30px; }
  .hero-desc { font-size: 15px; }
  .hero-cta .btn-primary, .hero-cta .btn-ghost { width: 100%; }
  .hero-stats-wrap { margin-top: 40px; }
  .stat-item { padding: 16px 14px 28px; }
  .section-inner { padding: 0 16px; }
  .section-header h2 { font-size: 24px; }
  .tool-card { padding: 20px 16px; }
  .tool-row { flex-direction: column; }
  .tool-btn { width: 100%; min-height: 44px; }
  .tool-input { min-height: 44px; font-size: 16px; }
  .tool-wide-head { flex-wrap: wrap; }
  .data-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .data-item { padding: 11px 12px; }
  .modal { min-width: 0; width: calc(100% - 32px); }
  .footer-inner { padding: 22px 16px; flex-direction: column; text-align: center; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 26px; }
  .data-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 12px; }
}

/* 触控优化 */
@media (hover: none) and (pointer: coarse) {
  .tool-btn, .btn-primary, .btn-ghost, .hamburger, .tool-refresh, .faq-q {
    min-height: 44px;
  }
  .tool-input, input, select, textarea { font-size: 16px; }
}

/* 横屏矮视口 */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 20px 24px 0; }
  .hero h1 { font-size: 24px; }
  .mobile-menu { top: 56px; }
}
