/* ============================================================
   QuickQ — Modern Dark Tech Stylesheet
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Surfaces */
  --bg-0: #05070f;
  --bg-1: #0a0f1a;
  --bg-2: #0f1626;
  --bg-elev: rgba(20, 28, 50, 0.72);
  --bg-elev-solid: #141e3c;

  /* Brand */
  --brand-cyan: #00d4ff;
  --brand-blue: #4facfe;
  --brand-violet: #7c5cff;
  --brand-green: #00ff9d;
  --brand-amber: #ffb547;

  /* Text */
  --text-100: #ffffff;
  --text-200: #e6ecf5;
  --text-300: #c2d0e3;
  --text-400: #8899aa;
  --text-500: #5d6d80;

  /* Borders */
  --line: rgba(0, 212, 255, 0.18);
  --line-soft: rgba(255, 255, 255, 0.06);

  /* Shadows */
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 12px 40px rgba(0, 212, 255, 0.28);

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Layout */
  --container: 1200px;
  --pad-x: 24px;
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.18s var(--ease);
  --t-base: 0.28s var(--ease);
  --t-slow: 0.55s var(--ease);

  /* Type */
  --font: "Inter", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text-200);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}

ul,
ol {
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ---------- Layout helpers ---------- */
.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--brand-cyan);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--text-100);
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--text-300);
  font-size: 17px;
  line-height: 1.7;
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: all var(--t-base);
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 100%);
  color: #04141c;
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.32);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(0, 212, 255, 0.55);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-200);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: rgba(0, 212, 255, 0.08);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(5, 7, 15, 0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}

.site-header.is-scrolled {
  background: rgba(5, 7, 15, 0.95);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text-100);
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 100%);
  color: #04141c;
  border-radius: 10px;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 6px 18px rgba(0, 212, 255, 0.4);
}

.brand-accent {
  color: var(--brand-cyan);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-300);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--text-100);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.is-active {
  color: var(--brand-cyan);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-blue));
  border-radius: 2px;
}

.nav-cta {
  padding: 10px 22px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-100);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 80px;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 50% -200px, rgba(0, 212, 255, 0.18), transparent 60%),
    linear-gradient(180deg, #05070f 0%, #0a0f1a 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}

.hero-orb--1 {
  width: 520px;
  height: 520px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.55), transparent 70%);
}

.hero-orb--2 {
  width: 440px;
  height: 440px;
  top: 20%;
  right: -150px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.45), transparent 70%);
  animation-delay: -6s;
}

.hero-orb--3 {
  width: 380px;
  height: 380px;
  bottom: -180px;
  left: 35%;
  background: radial-gradient(circle, rgba(0, 255, 157, 0.3), transparent 70%);
  animation-delay: -12s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.06); }
  66%      { transform: translate(-30px, 30px) scale(0.96); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-cyan);
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--brand-green);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--brand-green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(1.25); }
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  color: var(--text-100);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}

.hero-title .gradient-text {
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--text-300);
  max-width: 720px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero-stat-num {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  color: var(--brand-cyan);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero-stat-label {
  font-size: 14px;
  color: var(--text-400);
  letter-spacing: 0.04em;
}

/* ---------- Feature Grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  position: relative;
  padding: 32px 26px;
  background: linear-gradient(160deg, rgba(20, 28, 50, 0.85) 0%, rgba(15, 22, 38, 0.85) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--line);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  font-size: 26px;
  margin-bottom: 20px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--line);
}

.feature-icon--blue   { background: rgba(79, 172, 254, 0.12); border-color: rgba(79, 172, 254, 0.3); }
.feature-icon--cyan   { background: rgba(0, 212, 255, 0.12); border-color: rgba(0, 212, 255, 0.3); }
.feature-icon--green  { background: rgba(0, 255, 157, 0.12); border-color: rgba(0, 255, 157, 0.3); }
.feature-icon--violet { background: rgba(124, 92, 255, 0.14); border-color: rgba(124, 92, 255, 0.32); }

.feature-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-100);
  margin-bottom: 10px;
}

.feature-text {
  color: var(--text-300);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ---------- Node Grid ---------- */
.node-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.node-card {
  padding: 26px;
  background: linear-gradient(160deg, rgba(20, 28, 50, 0.7) 0%, rgba(15, 22, 38, 0.7) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
  display: flex;
  flex-direction: column;
}

.node-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: var(--shadow-md);
}

.node-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.node-flag {
  font-size: 36px;
  line-height: 1;
}

.node-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-100);
  margin-bottom: 2px;
}

.node-count {
  font-size: 13px;
  color: var(--brand-cyan);
  font-weight: 600;
}

.node-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.node-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--text-200);
  transition: background var(--t-fast);
}

.node-list li:hover {
  background: rgba(0, 212, 255, 0.08);
}

.node-ping {
  color: var(--brand-green);
  font-weight: 600;
  font-size: 13px;
}

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
  align-items: stretch;
}

.price-card {
  position: relative;
  padding: 36px 28px;
  background: linear-gradient(160deg, rgba(20, 28, 50, 0.7) 0%, rgba(15, 22, 38, 0.7) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base), border-color var(--t-base);
}

.price-card:hover {
  transform: translateY(-4px);
}

.price-card--featured {
  border-color: var(--brand-cyan);
  background:
    radial-gradient(circle at top, rgba(0, 212, 255, 0.18), transparent 60%),
    linear-gradient(160deg, rgba(20, 28, 50, 0.9) 0%, rgba(15, 22, 38, 0.9) 100%);
  box-shadow: 0 20px 50px rgba(0, 212, 255, 0.18);
}

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 18px;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-blue));
  color: #04141c;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--r-pill);
  letter-spacing: 0.06em;
  box-shadow: 0 6px 18px rgba(0, 212, 255, 0.4);
}

.price-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-300);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.price-amount {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-100);
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.price-currency {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-cyan);
  margin-right: 2px;
  vertical-align: top;
  line-height: 1.6;
}

.price-unit {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-400);
  margin-left: 4px;
}

.price-desc {
  font-size: 14px;
  color: var(--text-400);
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
}

.price-features li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  color: var(--text-300);
}

.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  background: rgba(0, 255, 157, 0.15);
  border: 1px solid rgba(0, 255, 157, 0.4);
  border-radius: 50%;
}

.price-features li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--brand-green);
  border-bottom: 2px solid var(--brand-green);
  transform: rotate(-45deg);
}

/* ---------- CTA Section ---------- */
.cta-section {
  padding: 60px 0 100px;
}

.cta-card {
  text-align: center;
  padding: 64px 32px;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(0, 212, 255, 0.18), transparent 70%),
    linear-gradient(160deg, rgba(20, 28, 50, 0.95) 0%, rgba(15, 22, 38, 0.95) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}

.cta-title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  color: var(--text-100);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.cta-text {
  color: var(--text-300);
  font-size: 17px;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--line-soft);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-desc {
  color: var(--text-400);
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  font-size: 16px;
  transition: all var(--t-base);
}

.social-link:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--brand-cyan);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-100);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list a {
  color: var(--text-400);
  font-size: 14px;
  transition: color var(--t-fast);
}

.footer-list a:hover {
  color: var(--brand-cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--text-400);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a:hover {
  color: var(--brand-cyan);
}

/* ---------- Reveal Animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .node-grid    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .price-grid  { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 768px) {
  :root {
    --pad-x: 18px;
    --header-h: 64px;
  }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }

  /* Mobile nav */
  .nav-main {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px var(--pad-x) 28px;
    background: rgba(5, 7, 15, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--t-base);
  }

  .nav-main.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-link {
    display: block;
    padding: 14px 4px;
    font-size: 16px;
  }

  .nav-link.is-active::after {
    display: none;
  }

  .nav-link.is-active {
    color: var(--brand-cyan);
  }

  .nav-cta {
    margin-top: 18px;
    text-align: center;
    width: 100%;
  }

  .nav-toggle { display: flex; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 30px); padding-bottom: 60px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .hero-actions { margin-bottom: 56px; }

  .cta-card { padding: 48px 22px; }
  .cta-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .node-grid    { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; text-align: center; }
  .footer-brand .brand { justify-content: center; }
  .footer-desc  { margin-inline: auto; }
  .footer-social { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hero-actions .btn { width: 100%; }
}

/* ============================================================
   Legacy Class Compatibility
   ============================================================ */
/* These styles preserve the old class names used by
   about.html / download.html / guide.html / faq.html / 404.html
   so that pre-refactor pages continue to render correctly. */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(5, 7, 15, 0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: var(--pad-x);
  height: 100%;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text-100);
  letter-spacing: 0.02em;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 100%);
  color: #04141c;
  border-radius: 10px;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 6px 18px rgba(0, 212, 255, 0.4);
}

.nav-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-100);
}

.nav-logo-text span {
  color: var(--brand-cyan);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu li {
  display: flex;
  align-items: center;
}

.nav-link {
  display: inline-block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-300);
  border-radius: var(--r-sm);
  position: relative;
  transition: color var(--t-fast), background var(--t-fast);
}

.nav-link:hover { color: var(--text-100); background: rgba(255,255,255,0.04); }
.nav-link.active { color: var(--brand-cyan); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-blue));
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 100%);
  color: #04141c;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--r-pill);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.35);
  white-space: nowrap;
  transition: all var(--t-base);
}
.nav-cta:hover {
  box-shadow: 0 8px 26px rgba(0, 212, 255, 0.55);
  transform: translateY(-2px);
}

/* Page Header (used by inner pages) */
.page-header {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 70px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 50% -100px, rgba(0, 212, 255, 0.18), transparent 60%),
    linear-gradient(180deg, #05070f 0%, #0a0f1a 100%);
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--text-400);
  letter-spacing: 0.04em;
}

.breadcrumb a {
  color: var(--text-400);
  transition: color var(--t-fast);
}
.breadcrumb a:hover { color: var(--brand-cyan); }
.breadcrumb span { color: var(--brand-cyan); }

.page-title {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  color: var(--text-100);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.page-subtitle {
  color: var(--text-300);
  font-size: clamp(15px, 1.6vw, 18px);
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Section header (legacy) */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--brand-cyan);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--text-100);
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-300);
  font-size: 17px;
  line-height: 1.7;
}

/* Content sections & cards (guide / about / faq) */
.content-section {
  padding: 96px 0;
  position: relative;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.content-card {
  padding: 32px 26px;
  background: linear-gradient(160deg, rgba(20, 28, 50, 0.85) 0%, rgba(15, 22, 38, 0.85) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}

.content-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: var(--shadow-md);
}

.content-card-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  font-size: 26px;
  margin-bottom: 20px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--line);
}

.content-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-100);
  margin-bottom: 10px;
}

.content-card p {
  color: var(--text-300);
  font-size: 14.5px;
  line-height: 1.7;
}

/* Download cards */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.download-card {
  padding: 32px 26px;
  background: linear-gradient(160deg, rgba(20, 28, 50, 0.7) 0%, rgba(15, 22, 38, 0.7) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  text-align: center;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}

.download-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: var(--shadow-md);
}

.download-icon {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 18px;
}

.download-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-100);
  margin-bottom: 8px;
}

.download-card p {
  color: var(--text-300);
  font-size: 14px;
  margin-bottom: 18px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 100%);
  color: #04141c;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--r-pill);
  box-shadow: 0 8px 22px rgba(0, 212, 255, 0.32);
  transition: all var(--t-base);
}

.download-btn:hover {
  box-shadow: 0 12px 30px rgba(0, 212, 255, 0.55);
  transform: translateY(-2px);
}

/* Comparison / Requirements tables */
.comparison-table,
.requirements-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  background: linear-gradient(160deg, rgba(20, 28, 50, 0.85) 0%, rgba(15, 22, 38, 0.85) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.comparison-table th,
.comparison-table td,
.requirements-table th,
.requirements-table td {
  padding: 16px 18px;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
  color: var(--text-200);
}

.comparison-table th,
.requirements-table th {
  background: rgba(0, 212, 255, 0.08);
  color: var(--brand-cyan);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 13px;
}

.comparison-table td:first-child,
.requirements-table td:first-child {
  text-align: left;
  color: var(--text-100);
  font-weight: 600;
}

.comparison-table tr:last-child td,
.requirements-table tr:last-child td {
  border-bottom: 0;
}

.comparison-table tr:hover td {
  background: rgba(0, 212, 255, 0.04);
}

.check-icon {
  color: var(--brand-green);
  font-weight: 700;
  margin-right: 6px;
}
.cross-icon {
  color: #ff4d6d;
  font-weight: 700;
  margin-right: 6px;
}

/* Step list (guide / download) */
.steps-list {
  counter-reset: step;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-item {
  display: flex;
  gap: 24px;
  position: relative;
}

.step-item::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 100%);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
  color: #04141c;
  box-shadow: 0 6px 18px rgba(0, 212, 255, 0.4);
}

.step-content {
  flex: 1;
  padding: 22px 24px;
  background: linear-gradient(160deg, rgba(20, 28, 50, 0.7) 0%, rgba(15, 22, 38, 0.7) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
}

.step-content h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-100);
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-300);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.step-content ul {
  margin: 8px 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-content li {
  color: var(--text-300);
  font-size: 14px;
  position: relative;
  padding-left: 4px;
  list-style: disc;
}

/* Feature card (about stats) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  position: relative;
  padding: 32px 26px;
  background: linear-gradient(160deg, rgba(20, 28, 50, 0.85) 0%, rgba(15, 22, 38, 0.85) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  text-align: center;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: var(--shadow-md);
}

.feature-card .stat-number {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--brand-cyan);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.feature-card .feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-100);
  margin-bottom: 8px;
}

.feature-card .feature-desc {
  color: var(--text-300);
  font-size: 14px;
}

/* FAQ list */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: linear-gradient(160deg, rgba(20, 28, 50, 0.7) 0%, rgba(15, 22, 38, 0.7) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-base);
}

.faq-item:hover {
  border-color: var(--line);
}

.faq-item summary {
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-100);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--t-fast);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 24px;
  color: var(--brand-cyan);
  transition: transform var(--t-fast);
  flex-shrink: 0;
  line-height: 1;
}

.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--brand-cyan); }

.faq-answer {
  padding: 0 22px 22px;
  color: var(--text-300);
  font-size: 14.5px;
  line-height: 1.75;
}

.faq-answer p { margin-bottom: 10px; }
.faq-answer ul { margin: 8px 0 12px 20px; }
.faq-answer li { margin-bottom: 4px; list-style: disc; }
.faq-answer strong { color: var(--text-100); }
.faq-answer a { color: var(--brand-cyan); }

/* Footer (legacy) */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--line-soft);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text-100);
  margin-bottom: 16px;
}

.footer-logo-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 100%);
  color: #04141c;
  border-radius: 10px;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 6px 18px rgba(0, 212, 255, 0.4);
}

.footer-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-100);
}
.footer-logo-text span { color: var(--brand-cyan); }

.footer-desc {
  color: var(--text-400);
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  font-size: 16px;
  transition: all var(--t-base);
}
.social-link:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--brand-cyan);
  transform: translateY(-2px);
}

.footer-column h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-100);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  color: var(--text-400);
  font-size: 14px;
  transition: color var(--t-fast);
}
.footer-links li a:hover { color: var(--brand-cyan); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  color: var(--text-400);
  font-size: 13px;
}

.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  color: var(--text-400);
  font-size: 13px;
  transition: color var(--t-fast);
}
.footer-legal a:hover { color: var(--brand-cyan); }

/* Error / 404 page */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) 24px 60px;
  background:
    radial-gradient(1000px 500px at 50% -100px, rgba(0, 212, 255, 0.18), transparent 60%),
    linear-gradient(180deg, #05070f 0%, #0a0f1a 100%);
  text-align: center;
}

.error-content {
  max-width: 640px;
}

.error-code {
  font-size: clamp(120px, 18vw, 180px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.error-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--text-100);
  margin-bottom: 12px;
}

.error-desc {
  color: var(--text-300);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.error-page ul a { color: var(--brand-cyan); }
.error-page ul a:hover { text-decoration: underline; }

/* Fade-in animation (legacy .fade-in class) */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.is-visible,
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Legacy responsive tweaks */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .comparison-table th,
  .comparison-table td,
  .requirements-table th,
  .requirements-table td {
    padding: 12px;
    font-size: 13.5px;
  }
}

@media (max-width: 768px) {
  .navbar .container {
    flex-wrap: wrap;
  }
  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px var(--pad-x) 28px;
    background: rgba(5, 7, 15, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--t-base);
  }

  .navbar .container.is-open .nav-menu,
  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu li { border-bottom: 1px solid var(--line-soft); }
  .nav-link { display: block; padding: 14px 4px; font-size: 16px; }
  .nav-link.active::after { display: none; }
  .nav-cta { margin-top: 14px; text-align: center; }

  .content-section { padding: 72px 0; }
  .section-header { margin-bottom: 40px; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand .footer-logo { justify-content: center; }
  .footer-desc { margin-inline: auto; }
  .footer-social { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .content-grid  { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
}

/* ============================================================
   友情链接 (Friend Links)
   ============================================================ */
/* 独立页面顶部小条 */
.links-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(160deg, rgba(20, 28, 50, 0.7) 0%, rgba(15, 22, 38, 0.7) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.links-toolbar p {
  color: var(--text-300);
  font-size: 14px;
  margin: 0;
}

.links-toolbar p strong {
  color: var(--brand-cyan);
  font-weight: 700;
  margin-right: 4px;
}

/* 卡片网格 */
.friend-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.friend-link-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 22px;
  background: linear-gradient(160deg, rgba(20, 28, 50, 0.85) 0%, rgba(15, 22, 38, 0.85) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.friend-link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at -20% -20%, rgba(0, 212, 255, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
}

.friend-link-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: var(--shadow-md);
}

.friend-link-card:hover::before { opacity: 1; }

.friend-link-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.friend-link-logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 100%);
  color: #04141c;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 6px 18px rgba(0, 212, 255, 0.32);
}

.friend-link-logo.alt-1 {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff9f43 100%);
  box-shadow: 0 6px 18px rgba(255, 107, 107, 0.32);
}
.friend-link-logo.alt-2 {
  background: linear-gradient(135deg, #4dabf7 0%, #228be6 100%);
  box-shadow: 0 6px 18px rgba(77, 171, 247, 0.32);
}
.friend-link-logo.alt-3 {
  background: linear-gradient(135deg, #9775fa 0%, #5f3dc4 100%);
  box-shadow: 0 6px 18px rgba(151, 117, 250, 0.32);
}
.friend-link-logo.alt-4 {
  background: linear-gradient(135deg, #51cf66 0%, #2f9e44 100%);
  box-shadow: 0 6px 18px rgba(81, 207, 102, 0.32);
}
.friend-link-logo.alt-5 {
  background: linear-gradient(135deg, #ffd43b 0%, #f59f00 100%);
  box-shadow: 0 6px 18px rgba(255, 212, 59, 0.32);
  color: #1a1a1a;
}
.friend-link-logo.alt-6 {
  background: linear-gradient(135deg, #ff8787 0%, #e03131 100%);
  box-shadow: 0 6px 18px rgba(255, 135, 135, 0.32);
}
.friend-link-logo.alt-7 {
  background: linear-gradient(135deg, #63e6be 0%, #099268 100%);
  box-shadow: 0 6px 18px rgba(99, 230, 190, 0.32);
}

.friend-link-meta {
  flex: 1;
  min-width: 0;
}

.friend-link-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-100);
  margin: 0 0 2px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.friend-link-name .badge-new {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #04141c;
  background: var(--brand-cyan);
  border-radius: var(--r-pill);
  letter-spacing: 0.04em;
}

.friend-link-domain {
  font-size: 12.5px;
  color: var(--text-400);
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-link-desc {
  color: var(--text-300);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.friend-link-arrow {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--brand-cyan);
  font-weight: 600;
  margin-top: 4px;
}

.friend-link-arrow .arrow {
  display: inline-block;
  transition: transform var(--t-base);
}

.friend-link-card:hover .friend-link-arrow .arrow {
  transform: translateX(4px);
}

/* 友链申请说明区 */
.links-cta {
  margin-top: 60px;
  padding: 32px 28px;
  background: linear-gradient(160deg, rgba(20, 28, 50, 0.7) 0%, rgba(15, 22, 38, 0.7) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.links-cta h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-100);
  margin: 0 0 10px 0;
}

.links-cta p {
  color: var(--text-300);
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0 0 6px 0;
}

.links-cta ul {
  margin: 8px 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-300);
  font-size: 14px;
}

.links-cta ul li {
  list-style: disc;
}

.links-cta-action {
  text-align: right;
}

.links-cta-action .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
}

/* Footer 内的友情链接栏（紧凑布局） */
.friend-links-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 4px;
}

.friend-links-mini a {
  color: var(--text-400);
  font-size: 13.5px;
  transition: color var(--t-fast);
}

.friend-links-mini a:hover { color: var(--brand-cyan); }

.friend-links-mini .divider {
  color: var(--text-400);
  opacity: 0.4;
  user-select: none;
}

/* 友情链接分组的标题小标记 */
.friend-link-section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-400);
  text-transform: uppercase;
  margin: 40px 0 18px;
  padding-left: 12px;
  border-left: 3px solid var(--brand-cyan);
}

/* 移动端 */
@media (max-width: 768px) {
  .friend-link-card { padding: 20px 18px; }
  .links-cta {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }
  .links-cta ul { margin-inline: 18px; text-align: left; }
  .links-cta-action { text-align: center; }
}

@media (max-width: 480px) {
    .friend-links-grid { grid-template-columns: 1fr; }
}

/* ========== 友情链接（底部一行式） ========== */
.friend-links {
    padding: 14px 0 18px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 2;
}

.friend-links-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 8px;
}

.friend-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-right: 14px;
    transition: color 0.2s ease;
}

.friend-links a:hover {
    color: var(--brand-cyan);
}

@media (max-width: 768px) {
    .friend-links a { margin-right: 10px; }
    .friend-links { line-height: 2.2; }
}
