/* ============================================================
   ESP32S3 小智 AI 聊天小音箱 · Web Flasher
   深色终端 / 极客风主题
   ============================================================ */

:root {
  color-scheme: dark;
  --bg: #070b0f;
  --panel: #0c141b;
  --panel-2: #0a1219;
  --panel-3: #0d1720;
  --line: #1d2c37;
  --line-soft: #16232d;
  --text: #e4f0ee;
  --text-2: #9ab0b8;
  --text-3: #5f7782;
  --acid: #4dff9e;
  --cyan: #45d7f2;
  --amber: #ffb454;
  --rose: #ff7396;
  --radius: 8px;
  --radius-sm: 5px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(77, 255, 158, .10), transparent 70%),
    radial-gradient(ellipse 55% 40% at 100% 40%, rgba(69, 215, 242, .055), transparent 70%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(77, 255, 158, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 255, 158, .035) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .45) 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .45) 60%, transparent 100%);
}

.shell {
  max-width: 980px;
  margin: 0 auto;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  color: var(--acid);
  text-decoration: underline;
}

code {
  font-family: var(--mono);
  font-size: .85em;
  color: var(--amber);
  background: rgba(255, 180, 84, .09);
  border: 1px solid rgba(255, 180, 84, .18);
  padding: 1px 5px;
  border-radius: 3px;
}

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

/* ===================== HERO / 终端窗口 ===================== */

.site-header {
  padding: 1.5rem 1.25rem 0;
}

.terminal {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 17, 23, .88);
  overflow: hidden;
  box-shadow: 0 24px 70px -40px #000, 0 0 0 1px rgba(77, 255, 158, .04);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .9rem;
  background: #0d1720;
  border-bottom: 1px solid var(--line);
  font: .68rem/1.3 var(--mono);
}

.dots {
  display: inline-flex;
  gap: .35rem;
  flex-shrink: 0;
}

.dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}

.dots i:nth-child(1) { background: #ff605c; }
.dots i:nth-child(2) { background: #ffbd44; }
.dots i:nth-child(3) { background: #00ca4e; }

.window-path {
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-path b {
  color: var(--acid);
  font-weight: 500;
}

.window-status {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--acid);
  font-size: .62rem;
  letter-spacing: .12em;
}

.window-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 8px var(--acid);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: .3; }
}

.hero {
  padding: 1.35rem 1.5rem 1.25rem;
  text-align: center;
}

.term-cmd {
  font: .7rem/1.5 var(--mono);
  color: var(--text-3);
  text-align: left;
  padding-bottom: .7rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px dashed var(--line);
  word-break: break-all;
}

.term-cmd .prompt {
  color: var(--acid);
  margin-right: .45rem;
  font-weight: 700;
}

.badge {
  display: inline-block;
  font: 600 .68rem/1.4 var(--mono);
  letter-spacing: .14em;
  color: var(--acid);
  background: rgba(77, 255, 158, .08);
  border: 1px solid rgba(77, 255, 158, .32);
  border-radius: 3px;
  padding: .25rem .75rem;
}

.site-header h1 {
  font-size: clamp(1.65rem, 4.8vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.25;
  margin: .85rem 0 .5rem;
  background: linear-gradient(100deg, #eafff3 0%, var(--acid) 48%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-header p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-2);
  font-size: .87rem;
  line-height: 1.75;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  margin: 1.3rem 0 1.1rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .55rem .4rem;
  background: rgba(7, 11, 15, .7);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.stat .k {
  font: .6rem/1.3 var(--mono);
  color: var(--text-3);
  letter-spacing: .1em;
}

.stat .v {
  font: 700 .92rem/1.3 var(--mono);
  color: var(--cyan);
}

/* --- PCB 3D 渲染展示 --- */
.hero-art {
  position: relative;
  max-width: 760px;
  margin: 0 auto 1.1rem;
  padding: .5rem 1.1rem 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    radial-gradient(ellipse 60% 65% at 50% 55%, rgba(69, 215, 242, .10), transparent 70%),
    #080e14;
  overflow: hidden;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(69, 215, 242, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 215, 242, .05) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.hero-art img {
  position: relative;
  display: block;
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .75));
}

.corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--acid);
  z-index: 2;
  opacity: .75;
}

.corner.tl { top: 7px; left: 7px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 7px; right: 7px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 7px; left: 7px; border-right: 0; border-top: 0; }
.corner.br { bottom: 7px; right: 7px; border-left: 0; border-top: 0; }

.art-caption {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  padding: .5rem 0 .55rem;
  border-top: 1px solid var(--line-soft);
  font: .63rem/1.4 var(--mono);
  letter-spacing: .1em;
  color: var(--text-3);
}

.art-caption > span:first-child {
  color: var(--acid);
}

/* --- 驱动下载条 --- */
.driver-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem .85rem;
  padding: .7rem .9rem;
  border: 1px dashed rgba(77, 255, 158, .28);
  background: rgba(77, 255, 158, .04);
  border-radius: var(--radius-sm);
}

.driver-bar-title {
  font: 600 .67rem/1.4 var(--mono);
  color: var(--acid);
  letter-spacing: .12em;
}

.driver-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .25rem .55rem;
  font-size: .8rem;
}

.driver-link {
  color: var(--cyan);
  font-weight: 500;
}

.driver-link:hover {
  color: var(--acid);
}

.driver-sep {
  color: var(--text-3);
  font-family: var(--mono);
}

/* --- 快捷导航 --- */
.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .7rem .9rem;
  border-top: 1px solid var(--line);
  background: #091119;
}

.jump-nav a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .6rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text-2);
  font: .7rem/1.4 var(--mono);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.jump-nav a span {
  color: var(--acid);
}

.jump-nav a:hover {
  color: var(--acid);
  border-color: rgba(77, 255, 158, .55);
  background: rgba(77, 255, 158, .07);
  text-decoration: none;
}

/* ===================== 主体布局（上下单列） ===================== */

.container {
  padding: 1.25rem 1.25rem 2.5rem;
}

.layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  position: relative;
  padding: 1.35rem 1.4rem;
  background: linear-gradient(180deg, rgba(17, 26, 34, .94), rgba(10, 16, 22, .96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px -32px #000, inset 0 1px 0 rgba(255, 255, 255, .025);
  scroll-margin-top: 1rem;
}

.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 255, 158, .5), transparent);
}

.card-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--text);
}

.card-title::before {
  content: attr(data-idx);
  flex-shrink: 0;
  font: 700 .7rem/1 var(--mono);
  color: #04120a;
  background: var(--acid);
  padding: .3rem .42rem;
  border-radius: 3px;
  box-shadow: 0 0 14px rgba(77, 255, 158, .35);
}

.card-title .en {
  margin-left: auto;
  font: 500 .66rem/1 var(--mono);
  letter-spacing: .14em;
  color: var(--text-3);
}

/* ===================== 固件选择 ===================== */

.fw-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: .6rem;
}

.fw-card {
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .8rem .9rem;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.fw-card:hover {
  border-color: rgba(69, 215, 242, .5);
  background: #0d1a24;
  transform: translateY(-1px);
}

.fw-card.is-active {
  border-color: var(--acid);
  background: rgba(77, 255, 158, .065);
  box-shadow: 0 0 0 1px rgba(77, 255, 158, .22), 0 0 26px -10px rgba(77, 255, 158, .65);
}

.fw-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .3rem;
}

.fw-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
}

.fw-card.is-active .fw-name {
  color: var(--acid);
}

.fw-badge {
  font: 600 .62rem/1.4 var(--mono);
  letter-spacing: .06em;
  padding: .1rem .45rem;
  border-radius: 3px;
  background: #16242e;
  border: 1px solid var(--line);
  color: var(--text-2);
}

.fw-card.is-active .fw-badge {
  background: rgba(77, 255, 158, .12);
  border-color: rgba(77, 255, 158, .35);
  color: var(--acid);
}

.fw-desc {
  font-size: .77rem;
  line-height: 1.55;
  color: var(--text-2);
}

.fw-features {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .55rem;
}

.fw-feature {
  font: .66rem/1.5 var(--mono);
  color: var(--cyan);
  background: rgba(69, 215, 242, .07);
  border: 1px solid rgba(69, 215, 242, .2);
  padding: .08rem .45rem;
  border-radius: 3px;
}

.fw-card.is-active .fw-feature {
  border-color: rgba(77, 255, 158, .3);
  color: var(--acid);
  background: rgba(77, 255, 158, .07);
}

/* ===================== 表单 ===================== */

.field {
  margin-top: .9rem;
  text-align: left;
}

.field label {
  display: block;
  margin-bottom: .3rem;
  font: 600 .68rem/1.4 var(--mono);
  letter-spacing: .06em;
  color: var(--text-3);
}

select,
.input {
  width: 100%;
  padding: .55rem .7rem;
  font-size: .84rem;
  font-family: var(--mono);
  color: var(--text);
  background: #08121a;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

select:focus,
.input:focus {
  border-color: var(--acid);
  box-shadow: 0 0 0 3px rgba(77, 255, 158, .12);
}

input[type="file"]::file-selector-button {
  font: .72rem var(--mono);
  color: var(--acid);
  background: rgba(77, 255, 158, .08);
  border: 1px solid rgba(77, 255, 158, .3);
  border-radius: 3px;
  padding: .3rem .6rem;
  margin-right: .6rem;
  cursor: pointer;
}

.local-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.muted {
  font-size: .81rem;
  line-height: 1.7;
  color: var(--text-2);
}

.divider {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 1.25rem 0 .95rem;
  font: .67rem/1.4 var(--mono);
  letter-spacing: .12em;
  color: var(--text-3);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.local-block {
  text-align: left;
}

.local-block .muted {
  margin-bottom: .9rem;
}

.local-block .field {
  margin-top: 0;
}

.local-block .local-row .field {
  margin-top: .9rem;
}

.local-block .flash-panel {
  margin-top: .9rem;
  text-align: center;
}

/* ===================== 版本变更 ===================== */

.changes {
  margin-top: .7rem;
  padding: .7rem .85rem;
  background: #08121a;
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  line-height: 1.6;
  color: var(--text-2);
}

.changes strong {
  color: var(--acid);
  font-family: var(--mono);
  font-size: .78rem;
}

.changes ul {
  margin: .3rem 0 0;
  padding-left: 1.1rem;
}

.changes li {
  margin: .15rem 0;
}

.hash {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .6rem;
  padding-top: .55rem;
  border-top: 1px dashed var(--line);
}

.hash span {
  font: 600 .66rem var(--mono);
  letter-spacing: .1em;
  color: var(--text-3);
}

.hash code {
  font-size: .68rem;
  word-break: break-all;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--cyan);
}

/* ===================== 烧录区 ===================== */

.flash-panel {
  padding: 1.15rem;
  text-align: center;
  border: 1px solid rgba(69, 215, 242, .22);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(77, 255, 158, .07), transparent 75%),
    #080f16;
}

esp-web-install-button {
  display: block;
  --esp-tools-button-color: #102f24;
  --esp-tools-button-text-color: #4dff9e;
  --esp-tools-button-border-radius: 5px;
}

.btn-flash {
  appearance: none;
  width: 100%;
  padding: .8rem 1.5rem;
  cursor: pointer;
  font: 700 .95rem/1.4 var(--mono);
  letter-spacing: .06em;
  font-family: var(--mono);
  color: var(--acid);
  background: linear-gradient(135deg, #102f24, #0a211b);
  border: 1px solid var(--acid);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 24px -8px rgba(77, 255, 158, .6), inset 0 0 20px rgba(77, 255, 158, .07);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.btn-flash:hover {
  color: #04120a;
  background: var(--acid);
  transform: translateY(-1px);
  box-shadow: 0 0 34px -6px rgba(77, 255, 158, .8);
}

.btn-flash:active {
  transform: translateY(0);
}

.btn-flash .sub {
  display: block;
  margin-top: .1rem;
  font: 400 .7rem/1.4 var(--mono);
  letter-spacing: .08em;
  opacity: .8;
}

.fallback {
  padding: .9rem;
  text-align: left;
  font-size: .81rem;
  line-height: 1.65;
  color: var(--text-2);
  background: #0c1720;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
}

.fallback strong {
  color: var(--amber);
}

.flash-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  margin-top: .8rem;
}

.pill {
  font: .68rem/1.5 var(--mono);
  color: var(--text-2);
  background: #0c1720;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: .18rem .55rem;
}

/* ===================== 链接 ===================== */

.links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .9rem;
  margin-top: .7rem;
  font: .75rem/1.5 var(--mono);
}

.links.center {
  justify-content: center;
}

.links a {
  color: var(--cyan);
  border-bottom: 1px dashed rgba(69, 215, 242, .35);
  padding-bottom: 1px;
}

.links a:hover {
  color: var(--acid);
  border-color: rgba(77, 255, 158, .55);
  text-decoration: none;
}

/* ===================== 操作步骤 ===================== */

.steps {
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.3rem;
  margin-bottom: .75rem;
  font-size: .83rem;
  line-height: 1.65;
  color: var(--text-2);
}

.steps li:last-child {
  margin-bottom: 0;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .05rem;
  width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  font: 700 .68rem var(--mono);
  color: var(--acid);
  background: rgba(77, 255, 158, .09);
  border: 1px solid rgba(77, 255, 158, .32);
  border-radius: 3px;
}

.steps li strong {
  color: var(--text);
  font-weight: 600;
}

/* ===================== 硬件图鉴 ===================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.shot {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.shot:hover {
  border-color: rgba(69, 215, 242, .45);
  box-shadow: 0 0 24px -14px rgba(69, 215, 242, .7);
}

.shot-bar {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  padding: .35rem .6rem;
  background: var(--panel-3);
  border-bottom: 1px solid var(--line);
  font: .62rem/1.5 var(--mono);
  letter-spacing: .08em;
  color: var(--text-3);
}

.shot-bar span:first-child {
  color: var(--cyan);
}

.shot-img {
  height: 225px;
  overflow: hidden;
  background: #060b10;
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(.92);
  transition: transform .35s ease, filter .35s ease;
}

.shot:hover img {
  transform: scale(1.035);
  filter: saturate(1.14);
}

.shot figcaption {
  padding: .55rem .65rem .65rem;
  font-size: .75rem;
  line-height: 1.6;
  color: var(--text-2);
}

.shot figcaption strong {
  display: block;
  margin-bottom: .15rem;
  font-size: .8rem;
  color: var(--text);
}

/* ===================== 设备信息 / 设备一览 ===================== */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .8rem;
}

.chip {
  font: .68rem/1.5 var(--mono);
  color: var(--cyan);
  background: rgba(69, 215, 242, .08);
  border: 1px solid rgba(69, 215, 242, .25);
  border-radius: 3px;
  padding: .15rem .55rem;
}

.product-image {
  width: 100%;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .8rem;
  margin-bottom: .75rem;
  background:
    radial-gradient(ellipse 55% 70% at 50% 50%, rgba(69, 215, 242, .08), transparent 70%),
    #080f16;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.product-image img {
  display: block;
  max-width: 100%;
  max-height: 330px;
  object-fit: contain;
  border-radius: 4px;
}

.product-image .placeholder {
  color: var(--text-3);
  font: .75rem var(--mono);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: .55rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
  padding: .55rem .7rem;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-left: 2px solid rgba(69, 215, 242, .45);
  border-radius: var(--radius-sm);
}

.spec-item .k {
  font: 600 .66rem/1.4 var(--mono);
  letter-spacing: .08em;
  color: var(--text-3);
}

.spec-item .v {
  font-size: .81rem;
  line-height: 1.55;
  color: var(--text);
  text-align: left;
  word-break: break-word;
}

/* ===================== 关于本项目 ===================== */

.about-intro {
  font-size: .85rem;
  line-height: 1.8;
  color: var(--text-2);
  padding-bottom: .3rem;
}

.about-item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .7rem 0;
  border-top: 1px dashed var(--line);
}

.about-icon {
  flex: 0 0 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  font-size: .95rem;
  background: rgba(77, 255, 158, .08);
  border: 1px solid rgba(77, 255, 158, .2);
  border-radius: 4px;
}

.about-body {
  min-width: 0;
  flex: 1;
}

.about-title {
  margin-bottom: .15rem;
  font-size: .83rem;
  font-weight: 700;
  color: var(--acid);
}

.about-text {
  font-size: .8rem;
  line-height: 1.75;
  color: var(--text-2);
}

.about-note {
  margin-top: .5rem;
  padding: .6rem .75rem;
  font-size: .77rem;
  line-height: 1.7;
  color: var(--amber);
  background: rgba(255, 180, 84, .07);
  border: 1px solid rgba(255, 180, 84, .24);
  border-radius: var(--radius-sm);
}

/* ===================== 页脚 ===================== */

.site-footer {
  padding: 1.4rem 1.25rem 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(6, 11, 15, .85));
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem 1rem;
  font: .68rem/1.6 var(--mono);
  color: var(--text-3);
}

.footer-brand {
  color: var(--acid);
  letter-spacing: .08em;
}

.site-footer .links {
  justify-content: center;
}

.visit-counter {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .85rem;
  padding: .3rem .75rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel-2);
  color: var(--text-2);
  font: .72rem/1.5 var(--mono);
}

.visit-counter strong {
  color: var(--acid);
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
}

.visit-icon {
  color: var(--acid);
  font-size: .8rem;
}

/* ===================== 响应式 ===================== */

@media (max-width: 760px) {
  .site-header { padding: 1rem .75rem 0; }
  .container { padding: 1rem .75rem 2rem; }
  .hero { padding: 1.1rem 1rem 1rem; }
  .site-header h1 { font-size: 1.65rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-art img { max-height: 240px; }
  .art-caption-right { display: none; }
  .window-status { display: none; }
  .card { padding: 1.1rem 1rem; }
  .card-title .en { display: none; }
  .fw-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .shot-img { height: 250px; }
  .local-row { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .stat .v { font-size: .82rem; }
  .term-cmd { font-size: .62rem; }
  .jump-nav a { font-size: .65rem; }
}
