/* 冰白钛银·科技推荐站 — 黑哥博客 (heijichang.com) */
:root {
  --bg-page: #F6F9FD;
  --bg-panel: #FFFFFF;
  --bg-silver: #F1F5FA;
  --bg-blue-soft: #EAF2FF;
  --text-heading: #1754CF;
  --btn-primary: #1E5BE0;
  --btn-primary-hover: #1649B8;
  --accent-purple: #6246B5;
  --accent-cyan: #087E91;
  --text-body: #25354A;
  --text-muted: #65758A;
  --border-color: #DBE4F0;
  --border-strong: #B8C9E0;
  --shadow-sm: 0 2px 8px rgba(23, 84, 207, 0.05);
  --shadow-md: 0 10px 28px rgba(23, 84, 207, 0.08);
  --shadow-lg: 0 16px 40px rgba(23, 84, 207, 0.12);
  --radius-card: 12px;
  --radius-panel: 20px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.tabular-nums, table, .price-tag, .service-index, .stat-num {
  font-variant-numeric: tabular-nums;
}

img, svg {
  max-width: 100%;
}

a {
  color: var(--text-heading);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--btn-primary-hover);
}

:focus-visible {
  outline: 2px solid var(--btn-primary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--btn-primary);
  color: #FFFFFF;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.reading-col {
  max-width: 780px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: 44px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 0.01em;
}

.brand-domain {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-body);
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  background-color: var(--bg-blue-soft);
  color: var(--text-heading);
}

.nav-link.is-primary-nav {
  background-color: var(--bg-blue-soft);
  color: var(--text-heading);
  border-color: rgba(23, 84, 207, 0.22);
}

.nav-link.is-active {
  background-color: var(--btn-primary);
  color: #FFFFFF;
  border-color: var(--btn-primary);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-search {
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-input {
  min-height: 44px;
  width: 210px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-panel);
  color: var(--text-body);
  font-size: 14px;
  font-family: var(--font-sans);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--btn-primary);
  box-shadow: 0 0 0 3px rgba(30, 91, 224, 0.14);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  min-height: 44px;
  padding: 6px 12px;
  font-size: 14px;
}

.btn-primary {
  background-color: var(--btn-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(30, 91, 224, 0.2);
}

.btn-primary:hover {
  background-color: var(--btn-primary-hover);
  color: #FFFFFF;
}

.btn-outline {
  background-color: var(--bg-panel);
  color: var(--text-heading);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background-color: var(--bg-blue-soft);
  border-color: var(--btn-primary);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-muted);
  border-color: var(--border-color);
}

.btn-ghost:hover {
  background-color: var(--bg-silver);
  color: var(--text-body);
}

.anim-toggle[aria-pressed="true"] {
  background-color: var(--bg-blue-soft);
  color: var(--text-heading);
  border-color: var(--btn-primary);
}

/* Search results panel */
.search-results-panel {
  background-color: var(--bg-panel);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-strong);
  padding: 16px 0;
  box-shadow: var(--shadow-md);
}

.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.search-results-summary {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

.search-results-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  max-height: 55vh;
  overflow-y: auto;
}

.search-result-item {
  display: block;
  padding: 12px 14px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-body);
}

.search-result-item:hover {
  border-color: var(--btn-primary);
  background: var(--bg-blue-soft);
}

.search-result-type {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.search-result-title {
  display: block;
  font-weight: 700;
  color: var(--text-heading);
  font-size: 15px;
}

.search-result-snippet {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

mark.search-hl {
  background-color: #DCE8FF;
  color: var(--text-heading);
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 600;
}

/* Main & Sections */
.site-main {
  padding-bottom: 64px;
}

.section {
  padding: 40px 0;
}

.section-bordered {
  border-top: 1px solid var(--border-color);
}

h1, h2, h3 {
  color: var(--text-heading);
  line-height: 1.35;
  margin-top: 0;
  font-weight: 700;
}

h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-bottom: 18px;
}

h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

p {
  margin-top: 0;
  margin-bottom: 18px;
}

/* Titanium-Silver Tech Panels */
.tech-panel {
  background: linear-gradient(145deg, #FFFFFF 0%, #F3F7FC 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-sm);
}

.chamfer-box {
  clip-path: polygon(0 12px, 12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 48px 0 44px;
  background: linear-gradient(180deg, #EDF3FC 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

/* 5. Hero Grid Slow Shift (~35s) */
.hero-grid-bg {
  position: absolute;
  inset: -40px;
  background-image:
    linear-gradient(to right, rgba(23, 84, 207, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 84, 207, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  will-change: transform;
  animation: heroGridShift 35s linear infinite;
}

@keyframes heroGridShift {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-18px, 18px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 32px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 14px;
  font-family: var(--font-mono);
}

/* 1. Title Flowing Gradient (~9s) */
.hero-title-gradient {
  background: linear-gradient(110deg, #1754CF 0%, #087E91 35%, #6246B5 68%, #1754CF 100%);
  background-size: 240% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleGradientFlow 9s linear infinite;
}

@keyframes titleGradientFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 240% 50%; }
}

.hero-lead {
  font-size: 18px;
  color: var(--text-body);
  margin-bottom: 24px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero Right: Tech Showcase Panel */
.hero-showcase {
  position: relative;
  padding: 24px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* 4. Panel Edge Highlight (~14s) */
.hero-showcase::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 60%;
  height: 200%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.72) 50%, transparent 100%);
  transform: rotate(22deg);
  pointer-events: none;
  animation: panelEdgeSweep 14s ease-in-out infinite;
}

@keyframes panelEdgeSweep {
  0%, 60% { transform: translateX(-120%) rotate(22deg); opacity: 0; }
  75% { opacity: 0.75; }
  100% { transform: translateX(420%) rotate(22deg); opacity: 0; }
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.circuit-canvas {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.circuit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.circuit-base {
  fill: none;
  stroke: #CFDCEF;
  stroke-width: 1.5;
}

/* 2. Circuit Signal Patrol (7s, 9.5s, 12s) */
.circuit-signal {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 28 240;
}

.circuit-signal-1 {
  stroke: var(--btn-primary);
  animation: circuitPatrol 7s linear infinite;
}

.circuit-signal-2 {
  stroke: var(--accent-cyan);
  animation: circuitPatrol 9.5s linear infinite reverse;
}

.circuit-signal-3 {
  stroke: var(--accent-purple);
  animation: circuitPatrol 12s linear infinite;
}

@keyframes circuitPatrol {
  0% { stroke-dashoffset: 268; }
  100% { stroke-dashoffset: 0; }
}

.central-module {
  position: relative;
  z-index: 2;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.central-module-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.aux-modules-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* 3. Staggered Float (7s, 9s, 12s) */
.float-layer-1 { animation: floatModule 7s ease-in-out infinite; }
.float-layer-2 { animation: floatModule 9s ease-in-out infinite -2s; }
.float-layer-3 { animation: floatModule 12s ease-in-out infinite -4s; }

@keyframes floatModule {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -7px, 0); }
}

.aux-module {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 10px;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}

.aux-module-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.aux-module-value {
  display: block;
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 2px;
}

/* Quick Entry Grid & Content Cards */
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover {
  border-color: var(--btn-primary);
  box-shadow: var(--shadow-md);
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
  font-size: 15px;
  line-height: 1.65;
}

thead th {
  background-color: var(--bg-blue-soft);
  color: var(--text-heading);
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border-strong);
  white-space: nowrap;
}

tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background-color: #F9FBFF;
}

.col-highlight {
  background-color: rgba(234, 242, 255, 0.45);
  font-weight: 600;
}

/* Directory Filter Bar */
.filter-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.filter-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-page);
  color: var(--text-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--btn-primary);
  color: var(--text-heading);
}

.filter-chip.is-selected {
  background-color: var(--btn-primary);
  border-color: var(--btn-primary);
  color: #FFFFFF;
}

.filter-chip .chip-check {
  display: none;
}

.filter-chip.is-selected .chip-check {
  display: inline-flex;
}

.filter-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-muted);
}

.filter-empty {
  padding: 28px;
  text-align: center;
  background: var(--bg-panel);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-card);
  margin: 20px 0;
}

/* 28 Service Directory Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.service-card-wrap {
  display: flex;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Corner short lines that expand on hover/focus */
.corner-tick {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--btn-primary);
  border-style: solid;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.corner-tl { top: 6px; left: 6px; border-width: 2px 0 0 2px; transform: translate(4px, 4px); }
.corner-tr { top: 6px; right: 6px; border-width: 2px 2px 0 0; transform: translate(-4px, 4px); }
.corner-bl { bottom: 6px; left: 6px; border-width: 0 0 2px 2px; transform: translate(4px, -4px); }
.corner-br { bottom: 6px; right: 6px; border-width: 0 2px 2px 0; transform: translate(-4px, -4px); }

.service-card:hover,
.service-card:focus-within {
  border-color: var(--btn-primary);
  box-shadow: var(--shadow-lg);
}

.service-card:hover .corner-tick,
.service-card:focus-within .corner-tick {
  opacity: 1;
  transform: translate(0, 0);
}

.service-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-blue-soft);
  color: var(--text-heading);
  flex-shrink: 0;
  transition: transform 0.35s ease;
}

.service-card:hover .service-card-icon,
.service-card:focus-within .service-card-icon {
  transform: rotate(12deg);
}

.service-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.service-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card-head h3 {
  margin: 0;
  font-size: 18px;
  color: var(--text-heading);
}

.service-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-silver);
  padding: 2px 8px;
  border-radius: 6px;
}

.badge-promo {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-purple);
  background: #F1EEFA;
  border: 1px solid rgba(98, 70, 181, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.service-meta-block {
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.service-meta-label {
  font-weight: 700;
  color: var(--text-heading);
}

.service-tip-box {
  background: var(--bg-blue-soft);
  border-left: 3px solid var(--btn-primary);
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  line-height: 1.65;
  margin: 10px 0;
}

.service-card-actions {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Directory TOC */
.toc-bar {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 15px;
}

/* FAQ Blocks (All expanded in initial HTML) */
.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.faq-item h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: var(--text-heading);
}

.faq-item p:last-child {
  margin-bottom: 0;
}

/* Package Compare Interactive Calculator */
.compare-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.compare-value {
  transition: opacity 0.2s ease;
}

.compare-value.is-fading {
  opacity: 0.35;
}

/* Lightbox Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(23, 38, 66, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.modal-title {
  margin: 0;
  font-size: 18px;
}

/* Footer */
.site-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border-color);
  padding: 36px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-note {
  margin: 0;
  max-width: 780px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--text-body);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-heading);
  text-decoration: underline;
}

/* Scroll Reveal & Spring Pop (Progressive enhancement: visible by default if JS fails) */
.js-anim .reveal-text {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 380ms cubic-bezier(0.22, 1, 0.36, 1), transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js-anim .reveal-text.is-out {
  opacity: 0.15;
  transform: translate3d(0, 12px, 0);
  transition-duration: 220ms;
}

.js-anim .reveal-pop {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.js-anim .reveal-pop.is-out {
  opacity: 0.2;
  transform: translate3d(0, 22px, 0) scale(0.97);
  transition: opacity 220ms ease, transform 220ms ease;
}

.js-anim .reveal-pop.is-entering {
  animation: springPopIn 550ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes springPopIn {
  0% {
    opacity: 0.2;
    transform: translate3d(0, 22px, 0) scale(0.97);
  }
  75% {
    opacity: 1;
    transform: translate3d(0, -2px, 0) scale(1.005);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* Pause Animations & Reduced Motion */
html.animations-paused *,
html.animations-paused *::before,
html.animations-paused *::after,
html.tab-hidden *,
html.tab-hidden *::before,
html.tab-hidden *::after {
  animation-play-state: paused !important;
}

html.animations-paused .reveal-text.is-out,
html.animations-paused .reveal-pop.is-out {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-text.is-out,
  .reveal-pop.is-out {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsive Breakpoints (1024px, 768px, 390px, 320px) */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header {
    position: static;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .cards-grid-2,
  .cards-grid-3,
  .services-grid {
    grid-template-columns: 1fr;
  }
  .aux-modules-grid {
    grid-template-columns: 1fr;
  }
  /* Keep title gradient, one circuit signal, and scroll pop on mobile; pause heavy float/edge sweep */
  .circuit-signal-2,
  .circuit-signal-3,
  .hero-showcase::after {
    animation: none;
  }
  .header-tools {
    width: 100%;
  }
  .site-search {
    flex: 1;
    width: 100%;
  }
  .search-input {
    width: 100%;
    flex: 1;
  }
}

@media (max-width: 390px) {
  .container {
    padding: 0 14px;
  }
  .btn {
    width: 100%;
  }
  .site-search .btn {
    width: auto;
  }
  .header-tools .anim-toggle {
    width: 100%;
  }
}
