/* =========================================================
   2003BX5 — style.css
   Light-mint aurora glassmorphism: pale mint base, soft mint /
   water-cyan / lime blobs, near-transparent white frosted glass
   over it with DARK ink text, square corners, AA-checked contrast.
   Offline-safe: system fonts only, inline data: assets.
   ========================================================= */

/* ---------- Reset & tokens ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* 方案 4 清透薄荷 MINTCLARITY — LIGHT mint base (near-transparent white glass) */
  --bg-0: #EAFBF4;          /* light mint (top) */
  --bg-1: #D6F5EA;          /* light mint (bottom) */
  --panel-solid: #F2FBF6;   /* opaque light mint — no-blur glass fallback */

  /* Text — DARK ink (the light mint base + near-transparent glass stays light) */
  --ink: #10241F;           /* primary text (near-black teal) */
  --muted: #31534A;         /* secondary text (dark teal gray) */

  /* Accent TEXT */
  --primary-ink: #04543C;   /* deep teal-green */
  --secondary: #14503C;     /* deep green — also nav underline / spinner */
  --good: #14532D;          /* status green */
  --danger: #8A1C12;        /* status red (errors) */

  /* Fills / borders / glow (non-text) */
  --primary: #0E9F6E;       /* mint emerald */
  --primary-strong: #047857;/* filled controls (white text) */
  --accent: #84CC16;        /* lime */
  --danger-strong: #8A1C12; /* delete fill (white text) */

  /* Glass — NEAR-FULLY-TRANSPARENT white: white coverage 0.06 (bottom) → 0.12
     (top); the light mint background shows through almost entirely. */
  --glass: linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  --glass-strong: linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.10));
  --glass-border: rgba(12, 80, 60, 0.16);   /* subtle mint-dark edge for definition */
  --glass-hi: rgba(255, 255, 255, 0.60);    /* 1px frost highlight */

  /* LIGHT MINT scrim — dark text sitting directly on the raw aurora */
  --scrim: radial-gradient(100% 100% at 50% 45%,
      rgba(234, 251, 244, 0.80) 0%,
      rgba(222, 248, 236, 0.62) 70%,
      rgba(222, 248, 236, 0) 100%);

  /* Shape — SQUARE corners (t38): all radii zeroed */
  --r-sm: 0;
  --r-md: 0;
  --r-lg: 0;
  --r-pill: 0;

  /* Shadows (warm-tinted) */
  --shadow-soft: 0 18px 50px -20px rgba(12, 60, 48, 0.18);
  --shadow-lift: 0 30px 70px -24px rgba(12, 60, 48, 0.24);
  --blur: blur(18px) saturate(140%);

  /* Type — offline-safe system stack */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans SC",
    "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  /* Spacing scale (24–48) */
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  /* Light mint base + soft mint / water-cyan / lime blobs */
  background:
    radial-gradient(60% 50% at 16% 8%, rgba(150, 235, 205, 0.34), transparent 62%),
    radial-gradient(56% 46% at 84% 18%, rgba(140, 225, 235, 0.28), transparent 62%),
    radial-gradient(54% 48% at 70% 88%, rgba(190, 230, 150, 0.24), transparent 62%),
    linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 100%);
  background-attachment: fixed;
  font-weight: 500;
  line-height: 1.65;
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

/* Floating light-mint aurora blob layer */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(36% 36% at 22% 26%, rgba(150, 235, 205, 0.34), transparent 62%),
    radial-gradient(34% 34% at 80% 30%, rgba(140, 225, 235, 0.28), transparent 62%),
    radial-gradient(32% 32% at 66% 82%, rgba(190, 230, 150, 0.24), transparent 62%),
    radial-gradient(30% 30% at 40% 62%, rgba(150, 235, 205, 0.16), transparent 62%),
    radial-gradient(28% 28% at 12% 74%, rgba(140, 225, 235, 0.18), transparent 62%);
  filter: blur(46px);
  animation: auroraDrift 26s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2.5%, 2%, 0) scale(1.08); }
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
::selection { background: var(--primary); color: #10241F; }

/* ---------- Glass surface (shared warm look) ---------- */
.glass,
.eyebrow,
.badge,
.glass-card,
.hud-bar,
.ab-panel,
.upload-zone,
.photo-card,
.drive-note,
.drive-upload,
.drive-item,
.edit-item,
.home-card,
.page-head .section-head {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft), inset 0 1px 0 var(--glass-hi);
}

/* No-blur fallback: opaque WARM WHITE surface so the dark text keeps AA contrast */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass,
  .eyebrow,
  .badge,
  .glass-card,
  .hud-bar,
  .ab-panel,
  .upload-zone,
  .photo-card,
  .drive-note,
  .drive-upload,
  .drive-item,
  .edit-item,
  .home-card,
  .page-head .section-head,
  .header-inner,
  .site-footer,
  .mobile-menu {
    background: var(--panel-solid);
  }
}

/* ---------- LIGHT frosted scrim (text directly on the raw aurora) ----------
   hero-inner / section-head / gallery-status have no glass panel, so a soft
   light radial keeps the DARK text ≥4.5:1 even over multi-blob overlaps. */
.hero-inner,
.section-head,
.gallery-status {
  position: relative;
  background: var(--scrim);
  border-radius: var(--r-lg);
}
.hero-inner { padding: var(--sp-4) var(--sp-3); }
.section-head { padding: var(--sp-4) var(--sp-3); }
.gallery-status { padding: 10px 16px; }

/* ---------- Subtle warm texture (noise + vignette) ---------- */
.crt { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }
.crt-scan { display: none; } /* scanlines removed for the glass theme */
.crt-noise {
  position: absolute; inset: -60px; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: noiseShift 0.6s steps(3) infinite;
}
.crt-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(16, 36, 31, 0.10) 100%);
}
@keyframes noiseShift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-12px, 8px); }
  66% { transform: translate(10px, -6px); }
  100% { transform: translate(0, 0); }
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--sp-3); }
.section { padding: var(--sp-6) 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--secondary);
  background: var(--glass-strong);
  border-radius: var(--r-pill);
  padding: 7px 16px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.6rem, 5vw, 2.7rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.section-sub { font-size: 1.02rem; color: var(--muted); }

/* Warm gradient text */
.pix1, .pix2 {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.pix1 { background-image: linear-gradient(120deg, #0B3B2C 0%, #0E7A5A 100%); }
.pix2 { background-image: linear-gradient(120deg, #14532D 0%, #3F7A1E 100%); }

/* ---------- Buttons (square glass) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-family: var(--font);
  font-size: 1rem;
  border-radius: var(--r-pill);
  padding: 12px 24px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease,
    border-color 0.35s ease, filter 0.35s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-pix {
  background: var(--primary-strong);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow: 0 14px 34px -14px rgba(14, 159, 110, 0.60),
    inset 0 1px 0 rgba(255, 255, 255, 0.30);
}
.btn-pix:hover { transform: translateY(-2px); filter: brightness(1.08); }

.btn-bk {
  background: var(--glass-strong);
  color: var(--ink);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-soft), inset 0 1px 0 var(--glass-hi);
}
.btn-bk:hover {
  transform: translateY(-2px);
  background: rgba(14, 159, 110, 0.14);
}

.btn-lg { padding: 15px 32px; font-size: 1.1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* ---------- Header : floating square glass bar ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0;
  transition: padding 0.35s ease;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 62px;
  padding: 0 12px 0 20px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-soft), inset 0 1px 0 var(--glass-hi);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-header.scrolled .header-inner {
  background: var(--glass-strong);
  box-shadow: var(--shadow-lift), inset 0 1px 0 var(--glass-hi);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.08rem; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, #0E9F6E 0%, #84CC16 100%);
  color: #10241F; font-size: 1rem;
  box-shadow: 0 8px 22px -8px rgba(14, 159, 110, 0.60), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.brand-name { color: var(--ink); letter-spacing: 0.06em; }

.nav-list { display: flex; gap: 26px; }
.nav-link {
  font-size: 0.96rem; font-weight: 600; color: var(--muted);
  padding: 8px 2px; position: relative;
  transition: color 0.35s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 2px;
  background: var(--secondary); border-radius: 0;
  box-shadow: 0 0 12px var(--secondary);
  transform: translateX(-50%);
  transition: width 0.35s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px; width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  background: var(--glass-strong); border: 1px solid var(--glass-border);
}
.nav-toggle span {
  width: 18px; height: 2px; background: var(--ink); border-radius: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: absolute; top: 86px; left: var(--sp-3); right: var(--sp-3);
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
  padding: 16px;
}
.mobile-menu.open { display: block; animation: menuIn 0.3s ease; }
.mobile-list { display: flex; flex-direction: column; gap: 4px; }
.mobile-link {
  display: block; padding: 13px 14px; font-size: 1.02rem; font-weight: 600;
  color: var(--ink); border-radius: var(--r-sm);
}
.mobile-link:hover { background: rgba(14, 159, 110, 0.14); }
.mobile-list .btn { margin-top: 10px; }
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero : warm aurora + floating glass card ---------- */
.hero { position: relative; padding: 168px 0 96px; overflow: hidden; min-height: 92vh; }
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 900px; }

.badge {
  display: inline-block; font-size: 0.9rem; font-weight: 600;
  color: var(--secondary);
  background: var(--glass-strong);
  border-radius: var(--r-pill);
  padding: 8px 18px; margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(2.6rem, 8vw, 5.2rem); font-weight: 800;
  line-height: 1.04; letter-spacing: -0.02em; margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.12rem; color: var(--muted); max-width: 620px;
  margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.hero-meta {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  font-size: 0.9rem; color: var(--muted);
}
.hero-meta-item { display: inline-flex; align-items: center; gap: 6px; }

/* Floating glass card */
.glass-card {
  max-width: 520px;
  margin: var(--sp-6) auto 0;
  padding: 22px 24px;
  text-align: left;
  animation: floatCard 9s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.gc-head {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: 0.08em;
  color: var(--secondary); margin-bottom: 14px;
}
.gc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-top: 1px solid rgba(12, 80, 60, 0.14);
  font-size: 0.94rem;
}
.gc-row:first-of-type { border-top: none; }
.gc-row span:first-child { color: var(--ink); font-weight: 600; }
.gc-row span:last-child { color: var(--muted); }

/* HUD bar (kept minimal) */
.hud { position: relative; z-index: 2; margin-top: var(--sp-5); display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hud-bar { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: var(--r-pill); }
.hud-lbl { font-size: 0.8rem; letter-spacing: 0.12em; color: var(--muted); }
.hud-val { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.hp-track { width: 140px; height: 12px; border-radius: var(--r-pill); background: rgba(12, 80, 60, 0.14); overflow: hidden; }
.hp-fill { display: block; width: 70%; height: 100%; background: linear-gradient(90deg, #84CC16, #0E9F6E); border-radius: var(--r-pill); }

/* ---------- About ---------- */
.about { position: relative; }
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-6); align-items: center; }
.about-copy .section-title { text-align: left; margin-bottom: 16px; }
.about-copy .section-sub { margin-bottom: var(--sp-3); }
.check-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: var(--sp-3); }
.check-list li { display: flex; align-items: center; gap: 12px; font-size: 0.98rem; }
.check {
  display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: var(--r-pill); flex-shrink: 0;
  background: linear-gradient(135deg, #0E9F6E, #84CC16);
  color: #10241F; font-size: 0.85rem;
  box-shadow: 0 8px 20px -8px rgba(14, 159, 110, 0.60);
}

.about-visual { position: relative; }
.ab-panel { padding: var(--sp-4); text-align: center; }
.ab-title { font-size: 0.98rem; letter-spacing: 0.12em; color: var(--secondary); margin-bottom: 18px; }
.ab-hearts { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.heart { width: 16px; height: 16px; border-radius: var(--r-pill); background: var(--accent); box-shadow: 0 0 14px rgba(132, 204, 22, 0.55); }
.ab-sprite { display: grid; place-items: center; margin: 0 auto 20px; width: 88px; height: 88px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.60); border: 1px solid var(--glass-border); }
.ab-sprite svg { width: 62%; height: 62%; }
.ab-stats { display: flex; flex-direction: column; gap: 8px; }
.stat { font-size: 0.92rem; color: var(--muted); }
.stat b { display: inline-block; min-width: 74px; text-align: left; color: var(--secondary); font-weight: 700; }

/* ---------- Gallery ---------- */
.upload-zone {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin: 0 auto var(--sp-5); max-width: 560px; padding: var(--sp-5) var(--sp-3);
  cursor: pointer; text-align: center;
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s ease;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: rgba(14, 159, 110, 0.60);
  background: rgba(14, 159, 110, 0.12);
  transform: translateY(-3px);
}
.upload-zone input { display: none; }
.uz-icon { font-size: 1.9rem; line-height: 1; color: var(--secondary); }
.uz-title { font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.uz-hint { font-size: 0.86rem; color: var(--muted); }
.uz-status { margin-top: 6px; font-size: 0.92rem; font-weight: 700; min-height: 1.2em; color: var(--good); }
.uz-status.err { color: var(--danger); }
.uz-status.ok { color: var(--good); }

.gallery-status { text-align: center; margin-bottom: var(--sp-3); min-height: 1.2em; }
.gs-state { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.98rem; }
.gs-state.error { color: var(--danger); }
.gs-state.empty { color: var(--muted); }
.spinner {
  width: 18px; height: 18px; border-radius: 0;
  border: 2px solid rgba(12, 80, 60, 0.22);
  border-top-color: var(--secondary);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.photo-card {
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  animation: cardIn 0.45s ease both;
}
.photo-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift), inset 0 1px 0 var(--glass-hi);
  border-color: rgba(14, 159, 110, 0.50);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.photo-imgwrap { position: relative; aspect-ratio: 4 / 3; background: rgba(12, 80, 60, 0.10); overflow: hidden; }
.photo-imgwrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.photo-card:hover .photo-imgwrap img { transform: scale(1.05); }
.photo-imgwrap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(12, 60, 48, 0.38) 100%);
  pointer-events: none;
}
.photo-info { padding: 16px 18px 18px; }
.pi-head {
  display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem;
  color: var(--secondary); margin-bottom: 12px; letter-spacing: 0.06em;
}
.pi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.pi-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pi-key { font-size: 0.7rem; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.pi-val { font-size: 0.9rem; font-weight: 600; color: var(--ink); word-break: break-word; }
.pi-full { grid-column: 1 / -1; }

/* ---------- Footer (mint glass bar + © mark) ---------- */
.site-footer {
  margin: var(--sp-6) var(--sp-3) var(--sp-4);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft), inset 0 1px 0 var(--glass-hi);
  padding: var(--sp-5) var(--sp-3);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-inner .brand-name { color: var(--ink); }
.footer-tag { color: var(--muted); font-size: 0.92rem; }
.footer-meta { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; font-size: 0.86rem; color: var(--muted); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.9rem; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--ink); }

/* ---------- Floating controls ---------- */
.back-top, .fx-toggle {
  position: fixed; width: 48px; height: 48px; border-radius: var(--r-pill);
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  color: var(--ink); font-size: 1.15rem;
  display: grid; place-items: center;
  box-shadow: var(--shadow-soft), inset 0 1px 0 var(--glass-hi);
  z-index: 90;
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.35s ease;
}
.back-top { bottom: 26px; right: 26px; opacity: 0; transform: translateY(12px); pointer-events: none; }
.back-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top:hover { background: rgba(14, 159, 110, 0.16); }
.fx-toggle { bottom: 26px; left: 26px; opacity: 0.85; }
.fx-toggle:hover { opacity: 1; background: rgba(14, 159, 110, 0.16); }
.fx-toggle[aria-pressed="true"] { color: var(--muted); opacity: 0.8; }

/* ---------- Reveal (gated on .js so no-JS stays visible) ---------- */
.reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- no-fx : calm the aurora + texture ---------- */
body.no-fx::before { animation: none; }
body.no-fx .crt,
body.no-fx .crt-scan,
body.no-fx .crt-noise,
body.no-fx .crt-vignette { display: none; }
body.no-fx .glass-card { animation: none; }

/* ---------- Nav active (glowing underline) ---------- */
.nav-active { color: var(--ink) !important; }
.nav-active::after { width: 100%; }
.mobile-link.nav-active { background: rgba(14, 159, 110, 0.18); }

/* ---------- Inline link ---------- */
.inline-link { color: var(--primary-ink); border-bottom: 1px solid rgba(4, 84, 60, 0.5); }
.inline-link:hover { color: var(--secondary); }

/* ---------- Edit page ---------- */
.edit-list { display: flex; flex-direction: column; gap: var(--sp-3); max-width: 780px; margin: 0 auto; }
.edit-item { display: flex; gap: 18px; padding: 16px; animation: cardIn 0.45s ease both; }
.ei-img {
  flex: 0 0 160px; aspect-ratio: 4 / 3; border-radius: var(--r-md);
  background: rgba(12, 80, 60, 0.10); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ei-img img { width: 100%; height: 100%; object-fit: cover; }
.ei-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ei-name { font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.ei-exif { font-size: 0.82rem; line-height: 1.55; color: var(--muted); margin-bottom: 12px; word-break: break-word; }
.ei-actions { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; }

.btn-danger {
  background: var(--danger-strong); color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 14px 34px -16px rgba(138, 28, 18, 0.55);
}
.btn-danger:disabled { opacity: 0.55; }

.ei-form { border-top: 1px solid rgba(12, 80, 60, 0.14); margin-top: 14px; padding-top: 14px; }
.ef-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; margin-bottom: 14px; }
.ef-field { display: flex; flex-direction: column; gap: 5px; }
.ef-label { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.ef-input {
  font-family: var(--font); font-weight: 500; font-size: 0.95rem;
  color: var(--ink); background: rgba(255, 255, 255, 0.60);
  border: 1px solid var(--glass-border); border-radius: var(--r-sm);
  padding: 9px 11px;
}
.ef-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14, 159, 110, 0.30); }
.ef-input::placeholder { color: var(--muted); }
.ei-form .ei-actions { margin-top: 0; }
.about-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer © mark ---------- */
.copy-door {
  font: inherit; color: inherit; line-height: inherit;
  background: none; border: none; padding: 8px 7px; margin: 0;
  cursor: pointer; border-radius: var(--r-sm);
  display: inline-block; vertical-align: baseline;
  transition: color 0.3s ease;
}
.copy-door:hover { color: var(--secondary); }
.copy-door:focus { outline: none; }
.copy-door:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }

/* ---------- Home cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.home-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: var(--sp-4) var(--sp-3); text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.home-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift), inset 0 1px 0 var(--glass-hi);
  border-color: rgba(14, 159, 110, 0.50);
}
.hc-icon { font-size: 1.9rem; color: var(--secondary); }
.hc-title { font-size: 1.14rem; font-weight: 700; color: var(--ink); }
.hc-desc { font-size: 0.92rem; color: var(--muted); }
.hc-go { margin-top: 6px; font-weight: 700; color: var(--primary-ink); }

/* ---------- Gallery / page heads ---------- */
.page-head { padding: 150px 0 84px; }
.page-head .section-head { padding: var(--sp-5) var(--sp-3); margin-bottom: var(--sp-4); }

/* ---------- Drive page ---------- */
.drive-note {
  max-width: 640px; margin: 0 auto var(--sp-4); text-align: center;
  padding: 13px 18px; border-radius: var(--r-pill);
  color: var(--secondary); font-weight: 600; font-size: 0.92rem;
}
.drive-upload { max-width: 580px; margin: 0 auto var(--sp-5); padding: var(--sp-4) var(--sp-3); text-align: center; }
.drive-drop { display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; }
.drive-drop .uz-icon { font-size: 1.9rem; color: var(--secondary); }
.drive-drop span:last-child { font-weight: 700; color: var(--ink); }
#drive-file { display: none; }
.drive-ttl-row {
  margin: 16px auto 8px; display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--muted); font-weight: 600;
}
.drive-ttl-row select {
  color: var(--ink); background: rgba(255, 255, 255, 0.60);
  border: 1px solid var(--glass-border); border-radius: var(--r-sm); padding: 8px 11px;
  font-family: inherit;
}
.drive-upload .uz-status { display: block; margin-top: 8px; }

.drive-list { display: flex; flex-direction: column; gap: var(--sp-3); max-width: 780px; margin: 0 auto; }
.drive-item { padding: 18px; animation: cardIn 0.45s ease both; transition: transform 0.4s ease, border-color 0.4s ease; }
.drive-item:hover { transform: translateY(-4px); border-color: rgba(14, 159, 110, 0.45); }
.dr-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.dr-name { font-size: 1rem; font-weight: 700; color: var(--ink); word-break: break-all; }
.dr-meta { font-size: 0.82rem; color: var(--muted); }
.dr-progress {
  height: 10px; border-radius: var(--r-pill);
  background: rgba(12, 80, 60, 0.14); overflow: hidden; margin-bottom: 14px;
}
.dr-progress i {
  display: block; height: 100%; border-radius: var(--r-pill);
  background: linear-gradient(90deg, #84CC16 0%, #0E9F6E 100%);
  box-shadow: 0 0 14px rgba(14, 159, 110, 0.45);
}
.drive-item .ei-actions { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .section { padding: var(--sp-5) 0; }
  .hero { padding: 132px 0 72px; min-height: auto; }
  .nav { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { padding: 0 10px 0 16px; }
  .photo-grid { grid-template-columns: 1fr; }
  .pi-grid { grid-template-columns: 1fr 1fr; }
  .edit-item { flex-direction: column; }
  .ei-img { flex-basis: auto; width: 100%; }
  .ef-grid { grid-template-columns: 1fr; }
  .site-footer { margin: var(--sp-5) 16px var(--sp-3); }
}
@media (max-width: 620px) {
  .astro-origin,
  .astro-elements { padding: 16px 14px; }
  .astro-note { font-size: 0.8rem; }
}
@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .astro-actions { flex-direction: column; align-items: stretch; }
}
@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;
  }
  .js .reveal { opacity: 1; transform: none; }
  body::before { animation: none; }
  .crt { display: none; }
  .glass-card { animation: none; }
  .fx-toggle { display: none; }
}

/* =========================================================
   ASTEROID PAGE (t59) — 3D view stage inside a glass panel.
   The stage itself is a "space window": deep field inside, mint
   glass frame outside, so it reads as space without leaving the
   light-mint + square-corner design language.
   ========================================================= */
.astro-panel { padding: var(--sp-3); margin-bottom: var(--sp-5); }
/* This panel holds a continuously animating canvas: a backdrop-filter here makes
   the compositor re-capture + re-blur the backdrop every frame (iGPU killer), so
   the stage panel is opaque with no backdrop-filter. Other panels keep glass. */
.glass.astro-panel {
  background: var(--panel-solid);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
/* Asteroid page: the two full-viewport animated layers (aurora drift + film
   grain) keep their look but stop re-compositing behind the 3D canvas. */
body.astro-page::before,
body.astro-page .crt-noise { animation: none; }
.astro-meta .btn { margin-left: auto; }
.astro-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 62vh;
  min-height: 300px;
  background: #05070d;
  border: 1px solid var(--glass-border);
  overflow: hidden;
}
.astro-stage canvas { display: block; width: 100%; height: 100%; }
/* static fallback: shown by default (also when JS never runs) and hidden
   as soon as a live renderer paints its first frame (stage gets .live) */
.astro-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 40%, #101a2b 0%, #05070d 100%);
  color: #d8e2ee;
  padding: var(--sp-3);
  text-align: center;
}
.astro-stage.live .astro-fallback { display: none; }
.astro-fallback svg { width: min(220px, 46%); height: auto; }
.astro-fallback p { font-size: 0.84rem; color: #9fb0c4; max-width: 40ch; }
.astro-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px 2px;
}
.astro-note { font-size: 0.84rem; color: var(--muted); }
.astro-renderer { font-weight: 700; color: var(--secondary); }
.astro-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--sp-3);
}

/* ---------- Main column + info sidebar (t64) ---------- */
.astro-layout { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); align-items: start; }
.astro-main { min-width: 0; }
.astro-main .astro-panel { margin-bottom: 0; }
.astro-side { min-width: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
@media (min-width: 1024px) {
  .astro-layout { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 980px) {
  .astro-layout { grid-template-columns: 1fr; }
}

/* ---------- Sidebar panels: 站名由来 + 紧凑轨道要素 (t64) ---------- */
.astro-origin,
.astro-elements { padding: 18px 16px; }
.astro-origin .el-title,
.astro-elements .el-title {
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 0 0 8px;
  color: var(--ink);
}
.el-note { font-size: 0.8rem; line-height: 1.55; color: var(--muted); }
.el-sub { margin-bottom: 10px; }
.el-wrap { overflow-x: auto; }
.el-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.el-table th,
.el-table td {
  text-align: left;
  padding: 6px 0;
  vertical-align: baseline;
  border-top: 1px solid var(--line);
}
.el-table thead th {
  border-top: none;
  padding: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.el-key { font-size: 0.78rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.el-sym {
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--secondary);
  margin-right: 2px;
}
.el-val {
  text-align: right;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.el-unit { font-size: 0.7rem; font-weight: 500; color: var(--muted); margin-left: 5px; }
.el-unc {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.el-foot { margin-top: 10px; font-size: 0.72rem; }
.el-source { margin-top: 6px; font-size: 0.7rem; }
.el-foot code {
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 0.7rem;
  color: var(--ink);
}

/* ---------- Write unlock panel (t70) ---------- */
.unlock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto var(--sp-4);
  padding: 14px 16px;
}
.unlock-hint { font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.unlock-locked,
.unlock-open { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.unlock-open { display: none; }
.unlock.is-open .unlock-locked { display: none; }
.unlock.is-open .unlock-open { display: flex; }
.unlock-input { width: 200px; max-width: 46vw; }
.unlock-status { flex: 1 0 100%; margin: 0; }

/* =========================================================
   SQUARE CORNERS (t38) — right angles everywhere.
   Belt-and-braces: the radius tokens above are already 0, and
   this catch-all guarantees no element keeps a rounded corner
   (cards, glass panels, the nav glass bar, buttons, inputs,
   upload zones, badges, progress bars, spinner, …).
   NOTE: aurora blobs stay soft/round — they are radial-gradient
   backgrounds, not rounded boxes, so they carry no border-radius.
   ========================================================= */
*,
*::before,
*::after {
  border-radius: 0 !important;
}
