/* ============================================================
   荔枝硬件整蛊 · 官网样式
   ============================================================ */

:root {
  --bg: #080d1c;
  --bg-soft: #0d1428;
  --card: #131c36;
  --card-2: #172142;
  --line: #24325a;
  --text: #e9eefc;
  --muted: #93a0c2;
  --accent: #4f8cff;
  --accent-2: #a06bff;
  --ok: #35c07f;
  --warn: #ffb020;
  --danger: #ff5d5d;
  --radius: 16px;
  --shadow: 0 18px 46px rgba(0, 0, 0, .45);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.75 "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 460px at 12% -6%, rgba(79, 140, 255, .20), transparent 62%),
    radial-gradient(760px 520px at 92% 4%, rgba(160, 107, 255, .18), transparent 60%),
    radial-gradient(600px 400px at 50% 100%, rgba(53, 192, 127, .10), transparent 65%);
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 13, 28, .78);
  border-bottom: 1px solid rgba(36, 50, 90, .8);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
}

.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .3px; }
/* 卡片内的补充说明（如功能依赖的配套工具） */
.card-note {
  margin: 12px 0 0; padding-top: 11px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px; line-height: 1.75; color: var(--muted);
}
.card-note a { color: var(--accent); border-bottom: 1px dashed rgba(79, 140, 255, .45); }
.card-note a:hover { color: #fff; border-bottom-color: #fff; }

.brand .logo {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  object-fit: cover; display: block;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.brand b { font-size: 17px; }
.brand span { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .6px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted);
  transition: .18s; white-space: nowrap;
}
.main-nav a:hover { color: var(--text); background: rgba(79, 140, 255, .12); }
.main-nav a.active { color: #fff; background: rgba(79, 140, 255, .18); font-weight: 600; }

.nav-toggle {
  display: none; width: 40px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  font-size: 18px; cursor: pointer;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-size: 15px; font-weight: 600;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  cursor: pointer; transition: .18s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent; color: #fff;
  box-shadow: 0 12px 28px rgba(79, 140, 255, .32);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 10px; }

/* ---------- 通用区块 ---------- */
section { padding: 82px 0; position: relative; }
section.tight { padding: 56px 0; }

.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 14px; }
h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; letter-spacing: -.5px; }
h2 { font-size: clamp(23px, 3.4vw, 34px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 14px; color: #c8d2ea; }
.lead { font-size: clamp(15px, 1.6vw, 18px); color: var(--muted); max-width: 760px; }
.section-head { max-width: 800px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grad-text {
  background: linear-gradient(120deg, #6fa8ff, #c39bff 55%, #6ee7b7);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 首屏 ---------- */
.hero { padding: 76px 0 66px; }
.hero-grid {
  display: grid; grid-template-columns: 1.06fr .94fr; gap: 52px; align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero .lead { font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(19, 28, 54, .8); color: var(--muted);
}

.stats { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 32px; }
.stats div b { display: block; font-size: 26px; font-weight: 800; color: #fff; }
.stats div span { font-size: 12.5px; color: var(--muted); }

/* 产品界面示意（纯 CSS 绘制） */
.mock {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  box-shadow: var(--shadow); overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  background: rgba(8, 13, 28, .6);
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4770; display: block; }
.mock-bar i:nth-child(1) { background: #ff6b6b; }
.mock-bar i:nth-child(2) { background: #ffc94d; }
.mock-bar i:nth-child(3) { background: #35c07f; }
.mock-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.mock-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; }
.mock-col { border: 1px dashed var(--line); border-radius: 12px; padding: 10px; background: rgba(8, 13, 28, .45); }
.mock-col > b { display: block; font-size: 11px; letter-spacing: 1px; color: var(--accent); text-align: center; margin-bottom: 10px; }
.mock-node {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 9px 10px; margin-bottom: 9px;
  background: rgba(19, 28, 54, .95); font-size: 11.5px; color: var(--muted);
}
.mock-node b { display: block; color: var(--text); font-size: 12.5px; margin-bottom: 5px; }
.mock-node.mu { border-left-color: var(--ok); }
.mock-node.sp { border-left-color: var(--accent-2); }
.mock-node.rl { border-left-color: var(--warn); }
.mock-line { height: 6px; border-radius: 999px; background: rgba(147, 160, 194, .22); margin: 5px 0; }
.mock-line.s { width: 62%; }

/* ---------- 卡片网格 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(23, 33, 66, .9), rgba(19, 28, 54, .82));
  padding: 24px; transition: .2s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-3px); border-color: rgba(79, 140, 255, .55); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); }
.card .ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 20px; margin-bottom: 14px;
  background: rgba(79, 140, 255, .14); border: 1px solid rgba(79, 140, 255, .3);
}

/* 列表 */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: #c8d2ea; font-size: 14.5px; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--ok); font-weight: 800;
}

/* ---------- 平台 ---------- */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.platform {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  background: rgba(19, 28, 54, .72); text-align: center;
}
.platform .dot {
  width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 14px;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff;
}
.platform .dot.b { background: linear-gradient(135deg, #00aeec, #4f8cff); }
.platform .dot.d { background: linear-gradient(135deg, #fe2c55, #ff6b9d); }
.platform .dot.k { background: linear-gradient(135deg, #ff7a00, #ffb020); }
.platform .dot.w { background: linear-gradient(135deg, #07c160, #4ade80); }
.platform .dot.x { background: linear-gradient(135deg, #ff2442, #ff7a8a); }
.platform .dot.h { background: linear-gradient(135deg, #ffb300, #ffd94d); }
.platform .dot.y { background: linear-gradient(135deg, #1e90ff, #00d4ff); }
.platform .dot.t { background: linear-gradient(135deg, #ff5a1f, #ff9f1c); }
.platform .dot.tt { background: linear-gradient(135deg, #25f4ee, #fe2c55); }
.platform b { display: block; font-size: 16px; margin-bottom: 6px; }
.platform span { font-size: 13px; color: var(--muted); }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: rgba(19, 28, 54, .7); position: relative; }
.step::before {
  counter-increment: s; content: counter(s);
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14.5px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: rgba(13, 20, 40, .9); color: var(--accent); font-size: 13px; letter-spacing: .5px; }
tr:last-child td { border-bottom: none; }
td { color: #c8d2ea; }
td b { color: #fff; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 880px; margin: 0 auto; }
.qa { border: 1px solid var(--line); border-radius: 14px; background: rgba(19, 28, 54, .7); overflow: hidden; }
.qa summary {
  cursor: pointer; padding: 17px 20px; font-weight: 700; font-size: 15.5px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--accent); font-size: 20px; font-weight: 700; flex: none; }
.qa[open] summary::after { content: "−"; }
.qa .a { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; }
.qa .a p:last-child { margin-bottom: 0; }

/* ---------- 联系 / CTA ---------- */
.cta {
  border: 1px solid rgba(79, 140, 255, .38); border-radius: 22px; padding: 46px 34px; text-align: center;
  background: linear-gradient(135deg, rgba(79, 140, 255, .16), rgba(160, 107, 255, .14));
}
.cta h2 { margin-bottom: 10px; }
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px; margin-top: 30px; max-width: 760px; margin-left: auto; margin-right: auto;
}
.contact-item { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: rgba(19, 28, 54, .75); }
.contact-item b { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.contact-item span { font-size: 16px; font-weight: 700; word-break: break-all; }
.contact-item span.wx {
  font-size: 22px; letter-spacing: 1.5px;
  font-family: Consolas, "Courier New", monospace;
  background: linear-gradient(120deg, #6fa8ff, #c39bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact-item a { border-bottom: 1px dashed rgba(147, 160, 194, .6); }
.contact-item a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line); padding: 46px 0 30px; margin-top: 20px;
  background: rgba(8, 13, 28, .72);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
.site-footer h4 { font-size: 13px; letter-spacing: 1px; color: var(--accent); margin-bottom: 12px; }
.site-footer a, .site-footer li { color: var(--muted); font-size: 13.5px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--text); }
.keywords { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: #6f7c9e; line-height: 2; }
.copyright { margin-top: 14px; font-size: 12.5px; color: #6f7c9e; }

/* ---------- 下载 ---------- */
.main-nav a.nav-cta {
  padding: 8px 17px; border-radius: 999px; color: #fff; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 20px rgba(79, 140, 255, .3);
}
.main-nav a.nav-cta:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  filter: brightness(1.09);
}

.dl-list { display: grid; gap: 22px; }
.dl-card {
  display: grid; grid-template-columns: 1.12fr .88fr; gap: 28px; align-items: center;
  border: 1px solid rgba(79, 140, 255, .4); border-radius: 22px; padding: 34px;
  background: linear-gradient(135deg, rgba(79, 140, 255, .15), rgba(160, 107, 255, .12));
}
.dl-spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px; margin: 0 0 22px; }
.dl-spec div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: rgba(8, 13, 28, .55); }
.dl-spec b { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.dl-spec span { font-size: 15px; font-weight: 700; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dl-meta { font-size: 12px; color: var(--muted); margin: 16px 0 0; line-height: 1.9; }
.dl-meta code { font-family: Consolas, "Courier New", monospace; font-size: 11.5px; color: #9fb3d9; word-break: break-all; }
.dl-side {
  border: 1px solid var(--line); border-radius: 16px; padding: 22px;
  background: rgba(8, 13, 28, .62);
}
.dl-side h3 { font-size: 15px; margin-bottom: 12px; }
@media (max-width: 1000px) {
  .dl-card { grid-template-columns: 1fr; }
  .dl-spec { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 页面头（内页） ---------- */
.page-hero { padding: 62px 0 34px; border-bottom: 1px solid var(--line); background: rgba(13, 20, 40, .5); }

/* ---------- 动画 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  section { padding: 58px 0; }
  .grid-3, .grid-2, .platforms, .contact-grid { grid-template-columns: 1fr; }
  .main-nav {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 18px 18px;
    background: rgba(8, 13, 28, .98); border-bottom: 1px solid var(--line);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  .stats { gap: 20px; }
  .mock-body { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .grid-4, .steps, .mock-body { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
