/* =========================================================
   御剑天堂1 HD · 站点样式  site.css
   风格：极简 / 暗色 / 玻璃拟态 / 青蓝霓虹
   ========================================================= */

:root {
  --bg: #05070b;
  --ink: #edf1f8;
  --muted: #8b95aa;
  --cyan: #3ee0ff;
  --blue: #2f8cff;
  --line: rgba(255, 255, 255, .09);
  --glass: rgba(16, 20, 28, .62);
  --shadow: 0 24px 60px rgba(0, 0, 0, .55);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

::selection { background: rgba(62, 224, 255, .28); color: #fff; }

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- 背景层 ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(.95) brightness(.70);
  transform: scale(1.03);
}

.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  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: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000 0%, transparent 78%);
  opacity: .55;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 85% at 50% 0%, rgba(5, 7, 11, .30), rgba(5, 7, 11, .86) 58%, #05070b 100%),
    linear-gradient(180deg, rgba(5, 7, 11, .45), rgba(5, 7, 11, .96));
}

.glow {
  position: fixed;
  left: 50%;
  bottom: -26%;
  width: 1100px;
  max-width: 120vw;
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(62, 224, 255, .16), rgba(47, 140, 255, .08) 45%, transparent 72%);
  z-index: -2;
  pointer-events: none;
}

/* ---------- 首页 ---------- */
.home {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
}

.brand i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(62, 224, 255, .9);
  flex: 0 0 auto;
}

.topbar .chip {
  font-size: 10.5px;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .38);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  background: rgba(255, 255, 255, .03);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero {
  width: 100%;
  max-width: 1080px;
  margin-top: auto;
  padding-top: 132px;
  text-align: center;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(62, 224, 255, .82);
  margin-bottom: 26px;
}

.title {
  font-size: clamp(44px, 6.4vw, 82px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: .05em;
  background: linear-gradient(180deg, #ffffff 0%, #dcefff 38%, #8fc2ea 70%, #4f7ea8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 16px 40px rgba(47, 140, 255, .28));
}

.tagline {
  margin-top: 24px;
  font-size: 14px;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .48);
}

.actions {
  margin-top: 52px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 34px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
  letter-spacing: .05em;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background .35s, border-color .35s, color .35s;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #5ceaff, #2f8cff);
  color: #02121c;
  font-weight: 600;
  box-shadow: 0 12px 34px rgba(47, 140, 255, .34);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(62, 214, 255, .46);
}

.btn-ghost {
  background: rgba(255, 255, 255, .045);
  border-color: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(62, 224, 255, .65);
  background: rgba(62, 224, 255, .09);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .45);
}

/* ---------- 引导卡片 ---------- */
.guides {
  width: 100%;
  max-width: 1080px;
  margin: 66px 0 76px;
}

.guides-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.guides-head span {
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.guides-head i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .14), transparent);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.guide {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 28px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s var(--ease);
}

.guide::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(62, 224, 255, .8), transparent);
  transition: opacity .4s;
}

.guide:hover {
  transform: translateY(-4px);
  border-color: rgba(62, 224, 255, .42);
  box-shadow: 0 22px 52px rgba(0, 0, 0, .5), 0 0 34px rgba(62, 224, 255, .1);
}

.guide:hover::before { opacity: 1; }

.guide-ico {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(62, 224, 255, .22);
  background: rgba(62, 224, 255, .075);
  color: var(--cyan);
}

.guide-ico svg { width: 22px; height: 22px; display: block; }

.guide-body { min-width: 0; }

.guide h3 {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: .07em;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guide p {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .02em;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide .arrow {
  margin-left: auto;
  font-size: 18px;
  color: rgba(255, 255, 255, .3);
  transition: transform .4s var(--ease), color .4s;
}

.guide:hover .arrow { transform: translateX(6px); color: var(--cyan); }

/* ---------- 页脚 ---------- */
.footer {
  margin-top: auto;
  width: 100%;
  padding: 22px 0 30px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .3);
}

/* ---------- 内页 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 40px;
  background: rgba(5, 7, 11, .74);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12.5px;
  letter-spacing: .06em;
  transition: color .3s;
  white-space: nowrap;
}

.nav a:hover { color: var(--cyan); }

.nav-title {
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 76px 40px 90px;
}

.page-hero { margin-bottom: 40px; }

.page-hero h1 {
  margin: 16px 0 16px;
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.16;
  letter-spacing: .04em;
  background: linear-gradient(180deg, #ffffff, #bcdcf7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-sub {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 640px;
  letter-spacing: .02em;
}

.prose {
  padding: 44px 48px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  word-break: break-word;
}

.prose > *:first-child { margin-top: 0; }

.prose h2 {
  position: relative;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.45;
  color: #fff;
  margin: 40px 0 16px;
  padding-left: 15px;
}

.prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  bottom: .18em;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(47, 140, 255, .18));
  box-shadow: 0 0 14px rgba(62, 224, 255, .5);
}

.prose h3 {
  font-size: 17px;
  font-weight: 600;
  color: #eaf3ff;
  margin: 30px 0 10px;
  letter-spacing: .03em;
}

.prose p {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.95;
  color: #ccd6e4;
}

.prose strong { color: #fff; font-weight: 600; }
.prose em { color: #9fb4cc; font-style: normal; }

.prose a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(62, 224, 255, .3);
  transition: border-color .3s;
}

.prose a:hover { border-bottom-color: var(--cyan); }

.prose ul,
.prose ol {
  margin: 0 0 20px;
  padding-left: 24px;
  color: #ccd6e4;
}

.prose li {
  margin: 9px 0;
  line-height: 1.85;
  font-size: 15.5px;
  color: #ccd6e4;
}

.prose ul li::marker { color: rgba(62, 224, 255, .8); }
.prose ol li::marker { color: rgba(62, 224, 255, .8); font-weight: 600; }

.prose figure { margin: 28px 0; }

.prose img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.prose figcaption {
  margin-top: 11px;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: .05em;
  color: var(--muted);
}

.prose blockquote {
  margin: 26px 0;
  padding: 16px 22px;
  border-left: 2px solid rgba(62, 224, 255, .55);
  border-radius: 0 10px 10px 0;
  background: rgba(62, 224, 255, .05);
  color: #cfe6f5;
}

.prose blockquote p { margin: 0; color: #cfe6f5; }

.prose code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #a8e9ff;
}

.prose hr {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 36px 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}

.prose th { background: rgba(255, 255, 255, .05); color: #fff; font-weight: 600; }

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.updated {
  margin-top: 28px;
  font-size: 11.5px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .28);
}

/* ---------- 入场动画 ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.eyebrow,
.title,
.tagline,
.actions,
.guides { animation: rise .9s var(--ease) both; }

.eyebrow { animation-delay: .05s; }
.title { animation-delay: .14s; }
.tagline { animation-delay: .24s; }
.actions { animation-delay: .34s; }
.guides { animation-delay: .44s; }

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .home { padding: 0 22px; }
  .topbar { padding: 16px 22px; }
  .hero { padding-top: 108px; }
  .tagline { font-size: 12.5px; letter-spacing: .12em; }
  .actions { margin-top: 40px; gap: 12px; }
  .btn { height: 48px; padding: 0 24px; font-size: 14px; flex: 1 1 160px; }
  .guides { margin: 52px 0 56px; }
  .guide-grid { grid-template-columns: 1fr; gap: 12px; }
  .guide { padding: 20px 22px; gap: 16px; }
  .nav { padding: 14px 18px; }
  .nav-title { display: none; }
  .page { padding: 48px 18px 70px; }
  .prose { padding: 26px 22px; border-radius: 14px; }
  .prose h2 { font-size: 19px; margin-top: 36px; }
  .prose p,
  .prose li { font-size: 15px; line-height: 1.9; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
