/* gg修改器 · ggxiugaiqi.net —— 工业机甲风（深青黑 + 铜橙 + 沙金 + 钢青）
   全本地资源，无任何 CDN；图片一律 width 百分比 + height:auto 成对声明 */

:root {
  --bg: #0a1216;
  --bg-2: #0d1a20;
  --bg-3: #0f2027;
  --panel: #112229;
  --panel-2: #16303a;
  --line: #1e3b46;
  --line-2: #295366;
  --copper: #e2711d;
  --copper-2: #ff8f3c;
  --gold: #f2c14e;
  --steel: #5aa9c9;
  --text: #e4eef2;
  --muted: #8ba5b0;
  --ok: #4fd1a5;
  --warn: #e05c5c;
  --radius: 10px;
  --mono: Consolas, "SFMono-Regular", Menlo, "Liberation Mono", monospace;
  --sans: -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; border: 0; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--copper-2); }

p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin: 6px 0; }

h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 14px; font-weight: 800; letter-spacing: .2px; }
h1 { font-size: 40px; }
h2 { font-size: 28px; }
h3 { font-size: 19px; }
h4 { font-size: 16px; }

code, .mono { font-family: var(--mono); font-size: .95em; }

code {
  background: #0b1a21;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--gold);
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- 纹理底 ---------- */
.grid-bg {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% -10%, rgba(226, 113, 29, .16), transparent 46%),
    radial-gradient(circle at 88% 4%, rgba(90, 169, 201, .13), transparent 44%),
    linear-gradient(rgba(41, 83, 102, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 83, 102, .18) 1px, transparent 1px);
  background-size: auto, auto, 46px 46px, 46px 46px;
}

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 18, 22, .93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(9px);
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 42px; height: 42px; border-radius: 11px; }

.brand-name { display: flex; flex-direction: column; line-height: 1.16; }
.brand-name b { font-size: 19px; color: #fff; letter-spacing: .3px; }
.brand-name .sub { font-family: var(--mono); font-size: 10px; color: var(--steel); letter-spacing: 1.6px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  transition: color .18s, background .18s;
}
.nav a:hover { color: var(--text); background: #14262e; }
.nav a.is-active { color: var(--gold); background: #172e38; box-shadow: inset 0 -2px 0 var(--copper); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 7px;
  font-weight: 800;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .16s, box-shadow .16s, filter .16s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--copper) 0%, #ff9b34 48%, var(--gold) 100%);
  color: #21160a;
  box-shadow: 0 8px 22px rgba(226, 113, 29, .3);
}
.btn-primary:hover { color: #21160a; filter: brightness(1.08); transform: translateY(-2px); }

.btn-ghost {
  background: #12252d;
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { color: var(--gold); border-color: var(--copper); }

.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 34px; font-size: 17px; }

.nav .header-cta { margin-left: 10px; }

/* ---------- Hero ---------- */
.hero { padding: 62px 0 54px; border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 44px;
  align-items: center;
}
.hero-grid > * { min-width: 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--steel);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.kicker:before { content: ""; width: 26px; height: 2px; background: var(--copper); }

.hero h1 { font-size: 46px; margin-bottom: 8px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold), var(--copper-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub { color: var(--muted); font-size: 16.5px; max-width: 560px; margin-bottom: 24px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 22px; }

.hero-note { font-size: 13px; color: var(--muted); }
.hero-note b { color: var(--gold); font-weight: 700; }

.hero-visual { display: flex; gap: 18px; justify-content: center; align-items: flex-end; }

.phone {
  position: relative;
  background: #060e12;
  border: 2px solid var(--line-2);
  border-radius: 26px;
  padding: 9px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, .5);
}
.phone .notch {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  width: 46px;
  height: 5px;
  border-radius: 3px;
  background: #2a4a56;
  z-index: 2;
}
.phone .screen {
  border-radius: 18px;
  overflow: hidden;
  background: #0b1a21;
  border: 1px solid var(--line);
}
.phone .screen img { width: 100%; height: auto; }

.hero-visual .phone { width: clamp(150px, 45%, 214px); flex-shrink: 1; }
.hero-visual .phone.small { width: clamp(112px, 33%, 152px); flex-shrink: 1; }

/* ---------- 数据信任条 ---------- */
.stats { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.stat { background: var(--bg-2); padding: 22px 18px; text-align: center; }
.stat b { display: block; font-family: var(--mono); font-size: 26px; color: var(--gold); font-weight: 700; }
.stat span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- 通用区块 ---------- */
.section { padding: 62px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { margin-bottom: 32px; max-width: 780px; }
.section-head p { color: var(--muted); margin: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards--two { grid-template-columns: repeat(2, 1fr); }
.cards--four { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  position: relative;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--copper), var(--gold));
  opacity: .85;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 16px 30px rgba(0, 0, 0, .34); }

.card h3 { color: #fff; }
.card p { color: var(--muted); font-size: 14.5px; margin-bottom: 0; }
.card .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--steel);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 12px;
}

.card-body { display: block; color: inherit; }
.card-body:hover { color: inherit; }

/* ---------- 截图 gallery ---------- */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shots--pair { grid-template-columns: repeat(2, 1fr); }
.shot { margin: 0; }
.shot .frame {
  background: #060e12;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 8px;
  overflow: hidden;
}
.shot img { width: 100%; height: auto; border-radius: 10px; }
.shot figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.shot figcaption b { color: var(--gold); font-weight: 700; display: block; font-size: 14.5px; margin-bottom: 2px; }

/* ---------- 评价 ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.review p { font-size: 14.5px; color: #cfe0e6; }
.review .who { display: flex; align-items: center; gap: 11px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.review .avatar {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--copper), var(--gold));
  color: #20150a; font-weight: 800; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
}
.review .who b { display: block; font-size: 14px; color: #fff; }
.review .who span { font-size: 12px; color: var(--muted); font-family: var(--mono); }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer;
  padding: 16px 20px 16px 46px;
  position: relative;
  font-weight: 700;
  color: #fff;
  list-style: none;
  font-size: 15.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:before {
  content: "?";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  border-radius: 5px;
  background: #1d3a45;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.faq details[open] summary { color: var(--gold); }
.faq .a { padding: 0 20px 18px 46px; color: var(--muted); font-size: 14.5px; }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- FAQ 分组（内页） ---------- */
.faq-group { margin-bottom: 34px; }
.faq-group > h2 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.faq-group > h2 .n {
  font-family: var(--mono);
  font-size: 13px;
  color: #22160a;
  background: linear-gradient(135deg, var(--copper), var(--gold));
  border-radius: 6px;
  padding: 3px 9px;
}

/* ---------- 底部下载通道 ---------- */
.cta-band {
  background:
    radial-gradient(circle at 82% 20%, rgba(242, 193, 78, .2), transparent 52%),
    linear-gradient(120deg, #16232a 0%, #1c2f38 52%, #241a10 100%);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  padding: 54px 0;
}
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; justify-content: space-between; }
.cta-inner h2 { font-size: 27px; margin-bottom: 6px; }
.cta-inner p { color: var(--muted); margin: 0; }

/* ---------- 内页排版 ---------- */
.page-head { padding: 46px 0 34px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.page-head h1 { font-size: 36px; margin-bottom: 10px; }
.page-head p { color: var(--muted); max-width: 720px; margin: 0; }

.crumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumb a { color: var(--steel); }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  align-items: start;
}
.layout > * { min-width: 0; }

.prose { min-width: 0; font-size: 16px; }
.prose h2 { margin-top: 40px; padding-bottom: 10px; border-bottom: 1px dashed var(--line-2); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 26px; color: var(--gold); }
.prose > p, .prose > ul, .prose > ol { color: #cbdde3; }
.prose strong { color: #fff; }
.prose .shot { margin: 26px auto; max-width: 368px; }
.prose .shot figcaption { text-align: center; }

.steps { counter-reset: st; list-style: none; padding: 0; }
.steps li {
  counter-increment: st;
  position: relative;
  padding: 0 0 4px 52px;
  margin: 0 0 22px;
}
.steps li:before {
  content: counter(st, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px; height: 36px;
  border-radius: 9px;
  background: #16303a;
  border: 1px solid var(--line-2);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.steps li b { display: block; color: #fff; margin-bottom: 4px; font-size: 16px; }

.callout {
  border: 1px solid var(--line-2);
  border-left: 4px solid var(--copper);
  background: #12242c;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 22px 0;
  color: #cfe0e6;
  font-size: 14.8px;
}
.callout b { color: var(--gold); }
.callout--warn { border-left-color: var(--warn); }
.callout--ok { border-left-color: var(--ok); }
.callout p:last-child { margin-bottom: 0; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; margin: 22px 0; }
table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 14.5px; }
.table-scroll table { border: 0; border-radius: 0; }
th, td { text-align: left; padding: 11px 15px; border-bottom: 1px solid var(--line); }
th { background: #13262e; color: var(--gold); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td { color: #cbdde3; }
td code { white-space: nowrap; }

.side { position: sticky; top: 92px; }
.side-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.side-box h3 { font-size: 16px; color: #fff; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li { margin: 0; border-bottom: 1px dashed var(--line); }
.side-box li:last-child { border-bottom: 0; }
.side-box li a { display: block; padding: 9px 0; font-size: 14.5px; color: var(--muted); }
.side-box li a:hover { color: var(--gold); padding-left: 5px; transition: padding .16s; }

.anchors { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.anchors a {
  font-size: 13.5px;
  font-family: var(--mono);
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  color: var(--steel);
  background: #10222a;
}
.anchors a:hover { color: #22160a; background: linear-gradient(135deg, var(--copper), var(--gold)); border-color: transparent; }

/* ---------- 页脚 ---------- */
.site-footer { background: #081013; border-top: 1px solid var(--line); padding: 46px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-col p { color: var(--muted); font-size: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { display: block; padding: 5px 0; font-size: 14px; color: var(--muted); }
.footer-col a:hover { color: var(--gold); }

.footer-disclaimer {
  margin-top: 30px;
  padding: 15px 18px;
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--muted);
  background: #0c171b;
}
.footer-bottom {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 渐显 ---------- */
.reveal { transition: opacity .5s ease, transform .5s ease; }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .reveal { opacity: 1; transform: none; transition: none; }
}

@media print {
  .js .reveal, .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  h1 { font-size: 32px; }
  .hero h1 { font-size: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .cards, .cards--four { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; gap: 30px; }
  .side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 48px 0; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .header-inner { flex-wrap: wrap; min-height: 0; padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .brand { width: 100%; }
  .brand img { width: 36px; height: 36px; border-radius: 9px; }
  .brand-name b { font-size: 18px; }
  .brand-name .sub { display: none; }
  .nav { width: 100%; margin-left: 0; justify-content: space-between; gap: 0; }
  .nav a { padding: 8px 6px; font-size: 14px; }
  .nav .header-cta { display: none; }

  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 30px; }
  .hero-visual { flex-wrap: wrap; justify-content: center; align-items: center; }
  .hero-visual .phone { width: 46vw; max-width: 210px; }
  .hero-visual .phone.small { width: 32vw; max-width: 150px; }

  .cards, .cards--two, .cards--four, .shots, .shots--pair { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 27px; }
  .section-head h2, .section h2 { font-size: 23px; }
  .cta-inner h2 { font-size: 22px; }
  .btn-lg { width: 100%; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }
  .steps li { padding-left: 46px; }
  .prose .shot { max-width: 300px; }
}
