/* 盘扣助手官网样式 —— 深蓝工程风 + 安全橙，纯静态无依赖 */
:root {
  --navy: #0d2b4e;
  --navy2: #123a66;
  --blue: #2f6db5;
  --accent: #f5820b;
  --ink: #1c2b3a;
  --muted: #5c6f82;
  --bg: #ffffff;
  --bg-alt: #f2f6fb;
  --line: #dbe5f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 43, 78, .10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }

/* ---------- 导航 ---------- */
#topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 43, 78, .92);
  backdrop-filter: blur(8px);
}
#topnav .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.logo { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.logo span { color: var(--accent); }
.menu { display: flex; gap: 4px; }
.menu a {
  color: #cfe0f2; padding: 8px 14px; border-radius: 8px; font-size: 15px;
  transition: background .2s, color .2s;
}
.menu a:hover { background: rgba(255,255,255,.12); color: #fff; }
.menu a.hot { background: var(--accent); color: #fff; font-weight: 600; }
.menu a.hot:hover { background: #ff9426; }
.burger { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }

/* ---------- 首屏 ---------- */
#hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0a2340 0%, var(--navy2) 55%, #1b4b82 100%);
  color: #fff;
  padding: 84px 0 96px;
}
#hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
#hero .wrap { position: relative; z-index: 2; max-width: 760px; }
.eyebrow { color: #9fc0e8; letter-spacing: 3px; font-size: 14px; margin-bottom: 14px; }
#hero h1 { font-size: clamp(30px, 5.2vw, 48px); line-height: 1.3; margin-bottom: 18px; }
#hero h1 em { font-style: normal; color: var(--accent); }
#hero .sub { color: #c8d9ec; font-size: 16px; max-width: 640px; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; }
.badges li {
  font-size: 13px; color: #d6e6f7; border: 1px solid rgba(255,255,255,.25);
  padding: 4px 12px; border-radius: 999px;
}
.hero-art {
  position: absolute; right: -20px; top: 50%; transform: translateY(-50%);
  width: min(420px, 40vw); opacity: .5; z-index: 1;
}
.hero-art .diag { stroke: #7fa8d4; stroke-dasharray: 6 5; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 10px;
  font-size: 16px; font-weight: 600; cursor: pointer; border: none;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(245,130,11,.4); }
.btn.primary:hover { background: #ff9426; }
.btn.ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn.line { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn.big { padding: 14px 34px; font-size: 17px; }

/* ---------- 区块 ---------- */
section { padding: 76px 0; }
section.alt { background: var(--bg-alt); }
h2.sec { text-align: center; font-size: clamp(24px, 3.4vw, 34px); color: var(--navy); margin-bottom: 10px; }
.sechead { text-align: center; color: var(--muted); margin-bottom: 44px; }

/* ---------- 功能卡片 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(13,43,78,.16); }
.card .ico {
  width: 56px; height: 56px; border-radius: 12px; margin-bottom: 16px;
  background: linear-gradient(135deg, #e8f1fb, #d5e5f6); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.card .ico svg { width: 34px; height: 34px; }
.card h3 { color: var(--navy); font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ---------- 三步 ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 40px; }
.step {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  padding: 28px 24px; text-align: center; box-shadow: var(--shadow);
}
.step b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; font-size: 22px;
  background: var(--navy); color: var(--accent); margin-bottom: 14px;
}
.step h3 { color: var(--navy); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- 下载 ---------- */
.dlbox {
  max-width: 780px; margin: 40px auto 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow);
}
.dlmain { text-align: center; }
.ver { color: var(--ink); font-size: 16px; margin-bottom: 22px; }
.ver b { color: var(--accent); font-size: 19px; }
.dl-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.tip { color: var(--muted); font-size: 13.5px; }
.log { margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 14px; }
.log summary { cursor: pointer; color: var(--navy); font-weight: 600; }
.log ul { margin: 12px 0 0 20px; color: var(--muted); font-size: 14.5px; }
.log li { margin-bottom: 6px; }
.log li b { color: var(--ink); }

/* ---------- FAQ ---------- */
.faqlist { max-width: 780px; margin: 40px auto 0; }
.faqlist details {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 12px; overflow: hidden;
}
.faqlist summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--navy);
  list-style: none; position: relative;
}
.faqlist summary::-webkit-details-marker { display: none; }
.faqlist summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 20px; color: var(--accent);
}
.faqlist details[open] summary::after { content: "−"; }
.faqlist details p { padding: 0 20px 16px; color: var(--muted); font-size: 14.5px; }

/* ---------- 联系 ---------- */
#contact { background: linear-gradient(135deg, var(--navy), #1b4b82); color: #fff; text-align: center; }
#contact h2.sec { color: #fff; }
#contact .sechead { color: #b9cde5; }
#contact .wx { color: var(--accent); font-size: 22px; letter-spacing: 1px; margin-right: 10px; }
#contact .btn { margin-left: 6px; }
#contact .sub { color: #b9cde5; font-size: 14px; margin-top: 26px; }
.cgrid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); max-width: 1000px; margin: 0 auto; }
.ccard {
  background: #fff; color: var(--ink); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; box-shadow: var(--shadow);
}
.ccard h3 { color: var(--navy); font-size: 17px; margin-bottom: 8px; }
.ccard .role { color: var(--muted); font-size: 13.5px; min-height: 40px; }
.ccard .wxno {
  font-size: 20px; font-weight: 700; color: var(--accent);
  letter-spacing: .5px; margin: 10px 0 14px; word-break: break-all;
}
.ccard .btn { margin-left: 0; }

/* ---------- 真实案例 ---------- */
.casebox {
  max-width: 860px; margin: 0 auto; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow); text-align: center;
}
.casebox h3 { color: var(--navy); font-size: 19px; margin-bottom: 10px; }
.casebox p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.casebox .tip { margin: 14px 0 0; font-size: 13.5px; }
.casebox .tip b { color: var(--ink); }

/* ---------- 页脚 ---------- */
footer { background: #081c33; color: #7f97b2; text-align: center; padding: 22px 0; font-size: 13.5px; }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- 规范合规条 ---------- */
.lawstrip { background: var(--navy); color: #c8d9ec; font-size: 14px; padding: 18px 0; }
.lawstrip b { color: #fff; }
.lawstrip span {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 700;
  padding: 2px 12px; border-radius: 6px; margin-right: 10px;
}

/* ---------- 菜单栏长图 ---------- */
.menurow { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.menurow figure {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px; box-shadow: var(--shadow);
}
.menurow img { display: block; height: 430px; width: auto; max-width: 30vw; object-fit: contain; }

/* ---------- 出图效果画廊 ---------- */
.gm { margin-bottom: 34px; }
.gm h3 {
  color: var(--navy); font-size: 19px; margin-bottom: 14px;
  border-left: 4px solid var(--accent); padding-left: 12px;
}
.shot { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.shot figure {
  position: relative; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; background: #fff; box-shadow: var(--shadow); cursor: zoom-in;
}
.shot img { display: block; width: 100%; height: 190px; object-fit: cover; object-position: 15% 30%; transition: transform .3s; }
.shot figure:hover img { transform: scale(1.04); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(13,43,78,.85));
  color: #fff; font-size: 13px; padding: 18px 10px 6px;
}
.more { text-align: center; color: var(--muted); margin-top: 8px; }

/* ---------- 灯箱 ---------- */
#lightbox {
  position: fixed; inset: 0; z-index: 99; display: none;
  background: rgba(5, 15, 30, .92); cursor: zoom-out;
  align-items: center; justify-content: center; padding: 24px;
}
#lightbox.show { display: flex; }
#lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; }

/* ---------- 视频 ---------- */
.vgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.vcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.vcard video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0a2340; }
.vcard p { padding: 12px 14px; color: var(--navy); font-weight: 600; font-size: 14.5px; }

/* ---------- 更新历程 ---------- */
.tl { max-width: 720px; margin: 0 auto; border-left: 3px solid var(--line); padding-left: 26px; }
.tli { position: relative; margin-bottom: 26px; }
.tli::before {
  content: ""; position: absolute; left: -34px; top: 6px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line);
}
.tli b { color: var(--navy); font-size: 17px; }
.tli ul { margin: 6px 0 0 18px; color: var(--muted); font-size: 14.5px; }

/* ---------- 移动端 ---------- */
@media (max-width: 820px) {
  .hero-art { display: none; }
  .menu {
    display: none; position: absolute; top: 58px; left: 0; right: 0;
    flex-direction: column; background: var(--navy); padding: 10px 16px 16px;
    border-top: 1px solid rgba(255,255,255,.12);
  }
  .menu.open { display: flex; }
  .burger { display: block; }
  #hero { padding: 60px 0 70px; }
  .menurow { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 8px; }
  .menurow img { height: 320px; max-width: none; }
}
