/* HEU KMS Activator 官网样式 */
:root {
  --primary: #0a2e6e;
  --primary-light: #1e56b3;
  --accent: #00b4ff;
  --accent-glow: rgba(0, 180, 255, 0.35);
  --dark: #0b1526;
  --dark-2: #101d33;
  --text: #2b3446;
  --text-light: #6b7690;
  --bg: #f5f8fd;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(10, 46, 110, 0.10);
  --shadow-hover: 0 14px 40px rgba(10, 46, 110, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ===== 导航栏 ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11, 21, 38, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s;
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.15rem; }
.brand svg { width: 30px; height: 30px; }
.brand span { letter-spacing: 0.5px; }
.brand em { font-style: normal; color: var(--accent); }

.nav-links { display: flex; gap: 6px; }
.nav-links a {
  color: #b9c4d8; padding: 8px 16px; border-radius: 8px;
  font-size: 0.95rem; transition: all 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(0, 180, 255, 0.14); }

.nav-cta {
  background: linear-gradient(135deg, var(--accent), #0080ff);
  color: #fff !important; padding: 9px 22px; border-radius: 8px;
  font-weight: 600; box-shadow: 0 4px 18px var(--accent-glow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 26px var(--accent-glow); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 26px; height: 26px; stroke: #fff; }

/* ===== Hero 区 ===== */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 70% -10%, rgba(0, 180, 255, 0.22), transparent),
    radial-gradient(ellipse 60% 50% at 10% 110%, rgba(30, 86, 179, 0.35), transparent),
    linear-gradient(160deg, #0b1526 0%, #0d1b33 55%, #0a2e6e 130%);
  color: #fff;
  padding: 150px 0 110px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  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: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 100%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0, 180, 255, 0.12); border: 1px solid rgba(0, 180, 255, 0.35);
  color: var(--accent); font-size: 0.85rem; padding: 6px 16px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero-badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 var(--accent-glow); } 50% { box-shadow: 0 0 0 8px transparent; } }

.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); line-height: 1.25; font-weight: 800; letter-spacing: -0.5px; }
.hero h1 .grad {
  background: linear-gradient(90deg, #4dd8ff, #0080ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.desc { color: #a8b6cf; font-size: 1.08rem; margin: 20px 0 34px; max-width: 520px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: 10px; font-weight: 600; font-size: 1rem;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  cursor: pointer; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0080ff); color: #fff;
  box-shadow: 0 6px 24px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px var(--accent-glow); }
.btn-ghost {
  background: rgba(255,255,255,0.06); color: #dbe6f8;
  border: 1px solid rgba(255,255,255,0.18);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }
.btn svg { width: 19px; height: 19px; }

.hero-stats { display: flex; gap: 42px; margin-top: 46px; flex-wrap: wrap; }
.stat b { font-size: 1.55rem; font-weight: 800; color: #fff; display: block; }
.stat b em { font-style: normal; color: var(--accent); }
.stat span { color: #8291ab; font-size: 0.86rem; }

/* Hero 卡片（软件截图） */
.hero-visual { perspective: 1200px; }
.window-card {
  background: linear-gradient(165deg, rgba(22, 36, 60, 0.92), rgba(13, 24, 43, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px; padding: 14px 14px 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 180, 255, 0.12);
  animation: float 6s ease-in-out infinite;
  position: relative;
}
@keyframes float { 0%,100% { transform: translateY(0) rotateX(2deg); } 50% { transform: translateY(-14px) rotateX(2deg); } }
.window-card .wc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 0 4px; }
.wc-dot { width: 12px; height: 12px; border-radius: 50%; }
.wc-title { margin-left: auto; color: #7688a5; font-size: 0.82rem; }
.window-card img {
  width: 100%; height: auto; display: block;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.tag-ok {
  font-size: 0.78rem; color: #34e39b; background: rgba(52, 227, 155, 0.12);
  border: 1px solid rgba(52, 227, 155, 0.3); padding: 3px 12px; border-radius: 999px;
}
.progress-bar { height: 8px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; margin: 6px 0 16px; }
.progress-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), #0080ff);
  border-radius: 99px; animation: load 2.4s ease forwards 0.4s;
}
@keyframes load { to { width: 100%; } }

/* ===== 通用区块 ===== */
.section { padding: 90px 0; }
.section.alt { background: var(--white); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.sec-kicker {
  color: var(--primary-light); font-weight: 700; font-size: 0.88rem;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px;
}
.sec-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--dark); font-weight: 800; }
.sec-head p { color: var(--text-light); margin-top: 14px; }

/* 特性卡片 */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: var(--white); border-radius: var(--radius); padding: 32px 26px;
  box-shadow: var(--shadow); border: 1px solid rgba(10, 46, 110, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.card .icon {
  width: 54px; height: 54px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(0,180,255,0.12), rgba(30,86,179,0.12));
  margin-bottom: 20px;
}
.card .icon svg { width: 27px; height: 27px; stroke: var(--primary-light); }
.card h3 { color: var(--dark); font-size: 1.08rem; margin-bottom: 10px; }
.card p { color: var(--text-light); font-size: 0.92rem; }

/* 支持系统条 */
.support-strip {
  background: linear-gradient(135deg, #0b1526, #12305e);
  border-radius: 20px; padding: 44px 40px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.support-strip h3 { font-size: 1.3rem; margin-bottom: 6px; }
.support-strip p { color: #9db0cd; font-size: 0.92rem; }
.support-logos { display: flex; gap: 34px; flex-wrap: wrap; align-items: center; }
.support-logos span {
  display: flex; align-items: center; gap: 9px;
  color: #c6d4ea; font-weight: 600; font-size: 0.95rem;
}
.support-logos svg { width: 24px; height: 24px; }

/* 步骤 */
.steps { counter-reset: step; }
.step-card { position: relative; overflow: hidden; }
.step-num {
  position: absolute; top: -14px; right: 6px;
  font-size: 5.2rem; font-weight: 900; line-height: 1;
  color: rgba(10, 46, 110, 0.055); user-select: none;
}

/* 版本信息 */
.version-box {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.version-head {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; padding: 26px 34px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.version-head h3 { font-size: 1.35rem; }
.version-head .v-tag {
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.3);
  padding: 4px 14px; border-radius: 999px; font-size: 0.88rem;
}
.version-body { padding: 30px 34px; }
.changelog { list-style: none; }
.changelog li { position: relative; padding-left: 26px; color: var(--text-light); margin-bottom: 12px; font-size: 0.95rem; }
.changelog li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 9px; height: 9px; border-radius: 2px;
  background: var(--accent); transform: rotate(45deg);
}
.version-meta { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 22px; padding-top: 22px; border-top: 1px dashed #e3eaf5; }
.version-meta div b { color: var(--dark); font-size: 1.05rem; display: block; }
.version-meta div span { color: var(--text-light); font-size: 0.84rem; }

/* 下载区 */
.dl-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: stretch; }
.dl-main {
  background: linear-gradient(165deg, #0b1526, #10305f);
  border-radius: 20px; color: #fff; padding: 46px 42px;
  position: relative; overflow: hidden;
}
.dl-main::after {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,255,0.25), transparent 70%);
  top: -120px; right: -80px; pointer-events: none;
}
.dl-main h2 { font-size: 1.7rem; margin-bottom: 10px; position: relative; }
.dl-main .sub { color: #9db0cd; margin-bottom: 30px; position: relative; }
.dl-checks { margin: 26px 0 32px; position: relative; }
.dl-checks li { display: flex; align-items: center; gap: 10px; color: #c6d4ea; margin-bottom: 10px; font-size: 0.93rem; }
.dl-checks svg { width: 18px; height: 18px; flex-shrink: 0; }
.dl-meta { display: flex; gap: 34px; flex-wrap: wrap; position: relative; margin-bottom: 32px; }
.dl-meta div b { font-size: 1.2rem; display: block; }
.dl-meta div span { color: #8291ab; font-size: 0.82rem; }

.dl-side { display: flex; flex-direction: column; gap: 20px; }
.dl-alt {
  background: var(--white); border-radius: var(--radius); padding: 24px 26px;
  box-shadow: var(--shadow); border: 1px solid rgba(10,46,110,0.05);
  display: flex; align-items: center; gap: 18px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.dl-alt:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.dl-alt .icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(0,180,255,0.12), rgba(30,86,179,0.12));
}
.dl-alt .icon svg { width: 23px; height: 23px; stroke: var(--primary-light); }
.dl-alt b { color: var(--dark); display: block; font-size: 0.98rem; }
.dl-alt span { color: var(--text-light); font-size: 0.84rem; }

/* 提示框 */
.notice {
  background: #eef5ff; border-left: 4px solid var(--accent);
  border-radius: 10px; padding: 18px 22px; color: #33507e; font-size: 0.93rem;
  margin: 30px 0;
}
.notice.warn { background: #fff7ea; border-left-color: #f5a623; color: #7a5410; }
.notice b { color: inherit; }

/* FAQ 手风琴 */
.faq-item {
  background: var(--white); border-radius: 12px; margin-bottom: 14px;
  box-shadow: var(--shadow); overflow: hidden; border: 1px solid rgba(10,46,110,0.05);
}
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 26px; background: none; border: none; cursor: pointer;
  text-align: left; font-size: 1rem; font-weight: 600; color: var(--dark);
  font-family: inherit;
}
.faq-q .arrow { transition: transform 0.3s; flex-shrink: 0; }
.faq-q .arrow svg { width: 18px; height: 18px; stroke: var(--primary-light); }
.faq-item.open .arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a-inner { padding: 0 26px 22px; color: var(--text-light); font-size: 0.94rem; }
.faq-a-inner code {
  background: #eef3fb; color: var(--primary-light); padding: 2px 8px;
  border-radius: 5px; font-size: 0.86rem;
}

/* 教程页 */
.toc {
  background: var(--white); border-radius: var(--radius); padding: 26px 30px;
  box-shadow: var(--shadow); margin-bottom: 40px;
}
.toc b { color: var(--dark); display: block; margin-bottom: 12px; }
.toc ol { padding-left: 20px; color: var(--primary-light); }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--primary-light); font-weight: 500; }
.toc a:hover { text-decoration: underline; }

.doc-sec { margin-bottom: 54px; }
.doc-sec h2 {
  font-size: 1.45rem; color: var(--dark); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.doc-sec h2::before {
  content: ""; width: 5px; height: 24px; border-radius: 99px;
  background: linear-gradient(180deg, var(--accent), var(--primary-light));
}
.doc-sec h3 { font-size: 1.08rem; color: var(--dark); margin: 24px 0 12px; }
.doc-sec p { color: var(--text-light); margin-bottom: 14px; }
.doc-sec ol, .doc-sec ul { padding-left: 22px; color: var(--text-light); margin-bottom: 16px; }
.doc-sec li { margin-bottom: 8px; }

.code-block {
  background: #0d1b33; border-radius: 10px; padding: 18px 22px;
  color: #c9e3ff; font-family: Consolas, "Courier New", monospace;
  font-size: 0.88rem; overflow-x: auto; margin: 16px 0;
  border: 1px solid rgba(0, 180, 255, 0.15);
}
.code-block .cm { color: #5a7396; }

/* 关于页 */
.value-grid { text-align: center; }
.value-grid .card { padding: 38px 26px; }
.value-grid .icon { margin: 0 auto 20px; }

/* CTA */
.cta-band {
  background:
    radial-gradient(ellipse 60% 90% at 80% 10%, rgba(0, 180, 255, 0.3), transparent),
    linear-gradient(135deg, #0b1526, #0a2e6e);
  border-radius: 24px; text-align: center; color: #fff;
  padding: 70px 40px;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.cta-band p { color: #a8b6cf; margin-bottom: 32px; }

/* 页头（内页） */
.page-head {
  background:
    radial-gradient(ellipse 70% 80% at 75% -20%, rgba(0, 180, 255, 0.18), transparent),
    linear-gradient(160deg, #0b1526, #0d2140 70%, #0a2e6e);
  color: #fff; text-align: center; padding: 140px 0 70px;
}
.page-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; }
.page-head p { color: #9db0cd; margin-top: 12px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* 面包屑 */
.breadcrumb { padding: 18px 0 0; font-size: 0.86rem; color: #8291ab; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: #5a6b8a; }
.breadcrumb a { color: #9db0cd; transition: color 0.25s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: #c6d4ea; }

/* 页脚 */
footer { background: #080e1c; color: #8291ab; padding: 64px 0 0; margin-top: 90px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 16px; }
.footer-brand svg { width: 28px; height: 28px; }
.footer-desc { font-size: 0.9rem; max-width: 320px; }
footer h4 { color: #dbe6f8; font-size: 0.98rem; margin-bottom: 18px; }
footer li { margin-bottom: 10px; }
footer a { color: #8291ab; font-size: 0.9rem; transition: color 0.25s; }
footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07); padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 0.84rem;
}

/* 友情链接 */
.friend-links { border-top: 1px solid rgba(255,255,255,0.07); padding: 26px 0 30px; }
.friend-links b { color: #dbe6f8; font-size: 0.95rem; display: block; margin-bottom: 14px; }
.friend-links ul { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.friend-links a {
  color: #8291ab; font-size: 0.88rem; transition: color 0.25s;
  display: inline-flex; align-items: center; gap: 6px;
}
.friend-links a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #3a4a68; transition: background 0.25s; }
.friend-links a:hover { color: var(--accent); }
.friend-links a:hover::before { background: var(--accent); }

/* 滚动动画 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* 返回顶部 */
#backtop {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 12px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #0080ff); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px var(--accent-glow);
  opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s;
}
#backtop.show { opacity: 1; pointer-events: auto; }
#backtop:hover { transform: translateY(-4px); }
#backtop svg { width: 20px; height: 20px; }

/* 404 */
.err-wrap { text-align: center; padding: 60px 0; }
.err-code {
  font-size: clamp(6rem, 16vw, 10rem); font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* 响应式 */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 46px; }
  .hero { padding: 120px 0 80px; }
  .dl-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(11, 21, 38, 0.97); flex-direction: column;
    padding: 18px 6%; gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .support-strip { flex-direction: column; text-align: center; }
  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
