:root {
  --ink: #f4efe6;
  --ink-soft: #cbbfae;
  --muted: #8f867a;
  --gold: #c6a46b;
  --gold-2: #e2c48a;
  --bg: #0b0c0f;
  --panel: rgba(16, 14, 12, 0.82);
  --line: rgba(198, 164, 107, 0.28);
  --ok: #9dcea2;
  --warn: #e2c48a;
  --fail: #e2a0a0;
  --radius: 0;
  --max: 1100px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: "Noto Sans SC", "PingFang SC", "Helvetica Neue", sans-serif;
  background:
    linear-gradient(180deg, rgba(8,8,10,0.62), rgba(8,8,10,0.92)),
    url("/style/texture-web.jpg") center/cover fixed;
}

/* 主题色滚动条 */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(198, 164, 107, 0.55) rgba(8, 8, 10, 0.55);
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: rgba(8, 8, 10, 0.55);
  border-left: 1px solid rgba(198, 164, 107, 0.12);
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #e2c48a, #c6a46b);
  border: 1px solid rgba(226, 196, 138, 0.25);
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #edd7a4, #d4b372);
}
*::-webkit-scrollbar-corner {
  background: rgba(8, 8, 10, 0.55);
}


a { color: var(--gold-2); text-decoration: none; }
button, input, textarea, select { font: inherit; }

/* Top nav */
.topnav,
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem 0.75rem;
  padding: 0 4vw;
  min-height: 58px;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.app-topnav-mount {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  overflow: visible;
}
.app-topnav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem 0.75rem;
  min-width: 0;
  width: 100%;
  overflow: visible;
}
.topnav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Noto Serif SC", serif;
  color: var(--ink);
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  flex-shrink: 0;
}
/* 自定义顶栏链接：可横向滚动，不被遮挡 */
.app-top-navlinks {
  display: flex;
  align-items: stretch;
  gap: 0.1rem;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(198, 164, 107, 0.45) transparent;
  mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 18px), transparent 100%);
}
.app-top-navlinks::-webkit-scrollbar {
  height: 3px;
}
.app-top-navlinks::-webkit-scrollbar-thumb {
  background: rgba(198, 164, 107, 0.4);
  border-radius: 2px;
}
.topnav-link {
  appearance: none;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #cbbfae;
  padding: 0 14px;
  height: 58px;
  line-height: 58px;
  font: inherit;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.topnav-link:hover,
.topnav-link:focus-visible {
  color: #e2c48a;
  background: rgba(226, 196, 138, 0.08);
  outline: none;
}
.topnav-link.is-active {
  color: #e2c48a;
  border-bottom-color: #c6a46b;
}
.topnav-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
.brand-logo {
  width: 1.7rem;
  height: 1.7rem;
  object-fit: cover;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 1px solid rgba(198, 164, 107, 0.28);
  background: #0b0c0f;
}
.hero-logo {
  width: clamp(3.4rem, 6.5vw, 4.4rem);
  height: clamp(3.4rem, 6.5vw, 4.4rem);
  object-fit: cover;
  margin: 0 0 0.85rem;
  border-radius: 50%;
  border: 1px solid rgba(198, 164, 107, 0.32);
  background: #0b0c0f;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.topnav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}
.topnav-links a:hover { color: var(--gold-2); }
.topnav-current { color: var(--gold-2); }
.topnav-help {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gold-2);
  padding: 0.35rem 0.7rem;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  cursor: pointer;
}
.topnav-help:hover {
  background: rgba(226, 196, 138, 0.08);
}
.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.2rem;
}
.panel-toolbar .step { margin-bottom: 0; }
.link-help {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--gold-2);
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.link-help:hover { color: var(--ink); }

/* Modal */
.modal[hidden] { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.72);
  backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(80vh, 640px);
  overflow: auto;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(18,16,14,0.96), rgba(12,11,10,0.98)),
    url("/style/panel-web.jpg") center/cover;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
  padding: 1.2rem 1.25rem 1.1rem;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.modal-head h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  margin: 0;
  color: var(--ink);
}
.modal-close {
  appearance: none;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold-2);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.modal-body {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.75;
}
.modal-body strong {
  display: block;
  color: var(--gold-2);
  margin: 0.7rem 0 0.35rem;
  letter-spacing: 0.08em;
}
.modal-body strong:first-child { margin-top: 0; }
.modal-body ol, .modal-body ul {
  margin: 0.25rem 0 0.6rem 1.15rem;
  padding: 0;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}
.modal-foot .btn {
  width: auto;
  min-width: 7rem;
}
body.modal-open { overflow: hidden; }

/* Home landing */
html { overflow-x: hidden; }
.page-home {
  background-attachment: scroll;
  overflow-x: hidden;
}
.page-home .app-topbar { flex-shrink: 0; }
@keyframes home-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes home-logo-in {
  from { opacity: 0; transform: scale(0.88); filter: blur(2px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes home-bg-ken {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
@keyframes home-veil-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.88; }
}
.home-hero {
  position: relative;
  /* 减去顶栏高度，避免首屏多出一条纵向滚动条 */
  min-height: calc(100vh - 58px);
  min-height: calc(100dvh - 58px);
  min-height: calc(100svh - 58px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0b0c0f;
  border-bottom: 1px solid var(--line);
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/style/hero-web.jpg") right center/cover no-repeat;
  transform-origin: center center;
  animation: home-bg-ken 18s ease-out forwards;
  z-index: 0;
}
.home-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(8,8,10,0.9) 0%, rgba(8,8,10,0.55) 48%, rgba(8,8,10,0.28) 100%);
  animation: home-veil-breathe 9s ease-in-out infinite;
}
.home-hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), 92vw);
  margin: 0 auto;
  padding: 6rem 0 4rem;
}
.page-home .hero-logo {
  animation: home-logo-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.page-home .home-hero-content .brand-en {
  animation: home-fade-up 0.7s ease 0.12s both;
}
.page-home .home-hero-content .brand {
  animation: home-fade-up 0.75s ease 0.22s both;
}
.page-home .home-hero-content .lead {
  animation: home-fade-up 0.8s ease 0.34s both;
}
.page-home .home-actions {
  animation: home-fade-up 0.8s ease 0.46s both;
}
.page-home .home-chips .chip {
  opacity: 0;
  animation: home-fade-up 0.55s ease both;
}
.page-home .home-chips .chip:nth-child(1) { animation-delay: 0.58s; }
.page-home .home-chips .chip:nth-child(2) { animation-delay: 0.66s; }
.page-home .home-chips .chip:nth-child(3) { animation-delay: 0.74s; }
.page-home .home-chips .chip:nth-child(4) { animation-delay: 0.82s; }
.page-home .feature-card {
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.page-home .feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(226, 196, 138, 0.45);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}
@media (prefers-reduced-motion: reduce) {
  .home-hero::before,
  .home-hero-veil,
  .page-home .hero-logo,
  .page-home .home-hero-content .brand-en,
  .page-home .home-hero-content .brand,
  .page-home .home-hero-content .lead,
  .page-home .home-actions,
  .page-home .home-chips .chip {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .page-home .feature-card:hover { transform: none; }
}
.home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.6rem;
}
.home-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 8.6rem;
  padding: 0.78rem 1.45rem !important;
  letter-spacing: 0.22em !important;
  font-size: 0.86rem !important;
  font-weight: 500 !important;
  line-height: 1;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, filter 0.2s ease;
}
.home-actions .btn-cta {
  background: linear-gradient(180deg, #dfc08a, #b99252) !important;
  color: #1a1510 !important;
  border: 1px solid rgba(226, 196, 138, 0.55) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.home-actions .btn-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.home-actions .btn-cta-ghost {
  background: transparent !important;
  color: var(--gold-2) !important;
  border: 1px solid rgba(198, 164, 107, 0.45) !important;
  box-shadow: none;
}
.home-actions .btn-cta-ghost:hover {
  background: rgba(226, 196, 138, 0.08) !important;
  border-color: rgba(226, 196, 138, 0.75) !important;
  transform: translateY(-1px);
}
.home-chips { margin-top: 0.2rem; }
.home-section {
  width: min(var(--max), 92vw);
  margin: 0 auto;
  padding: 3rem 0;
}
.home-section-alt {
  width: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.28);
  padding: 0;
}
.home-section-inner {
  width: min(var(--max), 92vw);
  margin: 0 auto;
  padding: 2.4rem 0;
}
.home-h2 {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: 0.08em;
  margin: 0 0 1.4rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.feature-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(18,16,14,0.88), rgba(12,11,10,0.92)),
    url("/style/panel-web.jpg") center/cover;
  padding: 1.25rem 1.15rem;
}
.feature-card h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.55rem;
  color: var(--gold-2);
}
.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 0.92rem;
}
.home-cta-band {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.home-footer { padding: 1.6rem 0 2.2rem; }

.hero {
  min-height: min(68vh, 560px);
  background:
    linear-gradient(105deg, rgba(8,8,10,0.86) 0%, rgba(8,8,10,0.42) 50%, rgba(8,8,10,0.18) 100%),
    url("/style/hero-web.jpg") right center/cover no-repeat;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
}
.hero-compact { min-height: min(38vh, 320px); }
.brand-sm { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
.hero-inner {
  width: min(var(--max), 92vw);
  margin: 0 auto;
  padding: 4.2rem 0 2.6rem;
}
.hero-compact .hero-inner { padding: 2.4rem 0 1.8rem; }
.brand-en {
  font-family: "Noto Serif SC", serif;
  letter-spacing: 0.42em;
  font-size: 0.78rem;
  color: var(--gold-2);
  margin-bottom: 0.7rem;
}
.brand {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.15;
  margin: 0 0 0.9rem;
  text-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
.lead {
  max-width: 34rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.75;
  margin: 0 0 1.25rem;
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  border: 1px solid var(--line);
  color: var(--gold-2);
  background: rgba(0,0,0,0.28);
  padding: 0.32rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.divider {
  height: 42px;
  background: url("/style/divider-web.jpg") center/cover;
  opacity: 0.85;
  border-bottom: 1px solid rgba(198,164,107,0.2);
}

.wrap {
  width: min(var(--max), 92vw);
  margin: 0 auto;
  padding: 1.6rem 0 3.5rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.1rem;
}

.side, .panel {
  background:
    linear-gradient(180deg, rgba(18,16,14,0.9), rgba(12,11,10,0.94)),
    url("/style/panel-web.jpg") center/cover;
  border: 1px solid var(--line);
  box-shadow: 0 20px 70px rgba(0,0,0,0.32);
  padding: 1.15rem;
}
.side h2, .panel h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.35rem;
}
.side p, .hint {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}
.field { margin-bottom: 0.9rem; }
.field label {
  display: block;
  color: var(--gold-2);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}
.field input, .field select, .field textarea, .shot-edit textarea {
  width: 100%;
  background: rgba(8,8,10,0.72);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
  outline: none;
}
.field input::placeholder,
.field textarea::placeholder,
.shot-edit textarea::placeholder {
  color: rgba(232, 228, 220, 0.38);
  opacity: 1;
}
.field textarea { min-height: 180px; resize: vertical; line-height: 1.65; }
.field input:focus, .field select:focus, .field textarea:focus,
.shot-edit textarea:focus { border-color: rgba(226,196,138,0.65); }
.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.toggle input { width: auto; accent-color: var(--gold); }
.remember-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}
.remember-row input {
  width: auto;
  margin: 0;
  accent-color: var(--gold);
}

.step {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-2);
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  margin: 0 0 0.65rem;
}
.step i {
  width: 1.4rem; height: 1.4rem;
  border: 1px solid var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-family: "Noto Serif SC", serif;
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  background: linear-gradient(180deg, #d4b07a, #b48a4d);
  color: #161310;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 0.85rem 1.1rem;
  width: 100%;
}
.btn:hover { filter: brightness(1.05); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; filter: none; }
.btn-ghost {
  background: transparent;
  color: var(--gold-2);
  border: 1px solid var(--line);
}
.btn-stop {
  border-color: rgba(226, 160, 160, 0.45);
  color: #e2a0a0;
}
.btn-stop:hover {
  background: rgba(226, 160, 160, 0.1);
}
.btn-sm { padding: 0.65rem 0.9rem; letter-spacing: 0.1em; }

.guide {
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.22);
  margin-bottom: 1rem;
}
.guide summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1rem;
  color: var(--gold-2);
  letter-spacing: 0.08em;
}
.guide summary::-webkit-details-marker { display: none; }
.guide-body {
  padding: 0 1rem 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}
.guide-body ol { margin: 0.4rem 0 0.8rem 1.1rem; padding: 0; }

.status {
  margin: 0.8rem 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.25);
  color: var(--ink-soft);
  font-size: 0.9rem;
  display: none;
}
.status.show { display: block; }
.status.error { color: var(--fail); border-color: rgba(226,160,160,0.35); }
.status.ok { color: var(--ok); border-color: rgba(157,206,162,0.35); }

.progress {
  display: none;
  height: 4px;
  background: rgba(255,255,255,0.08);
  margin: 0.8rem 0 1rem;
  overflow: hidden;
}
.progress.show { display: block; }
.progress > i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transition: width 0.25s ease;
}

.shot-list { display: grid; gap: 1rem; }

/* 右侧分镜锚点导航 */
.shot-rail {
  position: fixed;
  right: max(0.75rem, calc((100vw - min(1280px, 100vw)) / 2 + 0.35rem));
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  width: 72px;
  max-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.55rem 0.4rem 0.45rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(22, 18, 14, 0.94), rgba(12, 10, 8, 0.96)),
    url("/style/panel-web.jpg") center/cover;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.shot-rail[hidden] { display: none !important; }
.shot-rail-head {
  display: grid;
  gap: 0.12rem;
  text-align: center;
  padding: 0 0.05rem 0.4rem;
  border-bottom: 1px solid rgba(198, 164, 107, 0.22);
  min-width: 0;
}
.shot-rail-kicker {
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  line-height: 1.2;
}
.shot-rail-head strong {
  color: var(--gold-2);
  font-family: "Noto Serif SC", serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
  overflow: visible;
}
.shot-rail-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.15rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(198, 164, 107, 0.45) transparent;
}
.shot-rail-list::-webkit-scrollbar { width: 3px; }
.shot-rail-list::-webkit-scrollbar-thumb {
  background: rgba(198, 164, 107, 0.4);
}
.shot-rail-item {
  appearance: none;
  width: 100%;
  min-height: 28px;
  padding: 0.15rem 0;
  border: 1px solid rgba(198, 164, 107, 0.22);
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  line-height: 1;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.shot-rail-item:hover {
  border-color: rgba(226, 196, 138, 0.55);
  color: var(--gold-2);
}
.shot-rail-item.is-done {
  color: var(--gold-2);
  border-color: rgba(198, 164, 107, 0.42);
}
.shot-rail-item.is-wait {
  color: var(--warn);
  border-style: dashed;
}
.shot-rail-item.is-fail {
  color: var(--fail);
  border-color: rgba(200, 90, 90, 0.45);
}
.shot-rail-item.is-active {
  background: rgba(198, 164, 107, 0.16);
  border-color: var(--gold-2);
  color: var(--gold-2);
  box-shadow: inset 2px 0 0 var(--gold);
}
.shot-rail-top {
  appearance: none;
  width: 100%;
  min-height: 26px;
  border: 1px solid rgba(198, 164, 107, 0.28);
  background: rgba(0, 0, 0, 0.22);
  color: var(--gold-2);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  flex: 0 0 auto;
}
.shot-rail-top:hover {
  border-color: rgba(226, 196, 138, 0.55);
}

@media (max-width: 1100px) {
  .shot-rail {
    right: 0.45rem;
    width: 64px;
    max-height: min(62vh, 480px);
    padding: 0.45rem 0.3rem 0.35rem;
  }
  .shot-rail-head strong { font-size: 0.66rem; }
  .shot-rail-item { min-height: 26px; font-size: 0.64rem; }
}

@media (max-width: 720px) {
  .shot-rail {
    top: auto;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    right: 0.55rem;
    left: 0.55rem;
    width: auto;
    max-height: none;
    transform: none;
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.5rem;
  }
  .shot-rail-head {
    border-bottom: 0;
    border-right: 1px solid rgba(198, 164, 107, 0.22);
    padding: 0 0.55rem 0 0.15rem;
    flex: 0 0 auto;
  }
  .shot-rail-list {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    gap: 0.28rem;
  }
  .shot-rail-item {
    flex: 0 0 auto;
    width: 36px;
    min-height: 30px;
  }
  .shot-rail-top {
    width: 32px;
    min-height: 30px;
    flex: 0 0 auto;
  }
  .shot-card { scroll-margin-top: 4.5rem; }
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-left: auto;
}
.cover-box {
  margin: 0 0 1rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(8, 8, 10, 0.45);
}
.cover-box .cover-label {
  display: flex;
  align-items: center;
  margin-bottom: 0.65rem;
  color: var(--gold-2);
  letter-spacing: 0.08em;
  font-size: 0.86rem;
}
.cover-box .cover-label > span {
  flex: 0 0 auto;
  white-space: nowrap;
}
.cover-box img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #0b0c0f;
}
.cover-box .cover-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}
.cover-box .cover-actions .btn {
  white-space: nowrap;
}
.shot-card {
  border: 1px solid var(--line);
  background: rgba(10,10,12,0.55);
  padding: 1rem;
  scroll-margin-top: 5.5rem;
}
.shot-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}
.badge {
  border: 1px solid var(--line);
  color: var(--gold-2);
  padding: 0.18rem 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}
.state-ok { color: var(--ok); }
.state-wait { color: var(--warn); }
.state-fail { color: var(--fail); }

.shot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}
.shot-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
  min-height: 0;
}
.shot-video-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: rgba(8, 8, 10, 0.72);
  color: var(--gold-2);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}
.shot-video-loading-logo {
  width: 3.2rem;
  height: 3.2rem;
  object-fit: contain;
  border-radius: 0.4rem;
  opacity: 0.95;
  animation: shot-logo-pulse 1.4s ease-in-out infinite;
}
.shot-video-loading-spin {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(198, 164, 107, 0.25);
  border-top-color: #e2c48a;
  border-radius: 50%;
  animation: shot-spin 0.7s linear infinite;
}
@keyframes shot-spin { to { transform: rotate(360deg); } }
@keyframes shot-logo-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}
.shot-card.is-video-loading .js-to-video {
  opacity: 0.7;
}
.shot-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.shot-media-label {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 1;
  padding: 0.15rem 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.88);
  background: rgba(0,0,0,0.45);
}
.shot-visual img,
.shot-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.style-prompt-wrap {
  position: relative;
}
.style-prompt-wrap textarea {
  width: 100%;
  min-height: 180px;
  background: rgba(8, 8, 10, 0.72);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.7rem;
  font: inherit;
  box-sizing: border-box;
  resize: vertical;
}
.style-prompt-wrap.is-loading textarea {
  color: transparent;
  caret-color: transparent;
}
.style-prompt-loading {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: rgba(8, 8, 10, 0.72);
  color: var(--muted);
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}
.style-prompt-wrap.is-loading .style-prompt-loading {
  display: flex;
}
.style-prompt-loading .spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(198, 164, 107, 0.25);
  border-top-color: #e2c48a;
  border-radius: 50%;
  animation: shot-spin 0.7s linear infinite;
}

.shot-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.shot-actions .btn { width: 100%; }
.modal-body label {
  display: block;
  color: var(--gold-2);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin: 0.55rem 0 0.3rem;
}
.modal-body textarea,
.modal-body input[type="number"],
.modal-body select {
  width: 100%;
  background: rgba(8, 8, 10, 0.72);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  font: inherit;
  box-sizing: border-box;
}
.modal-body input[type="number"] { max-width: 8rem; }
.narration {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.8rem 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.8rem;
}
.shot-edit label {
  display: block;
  color: var(--gold-2);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin: 0.55rem 0 0.3rem;
}
.shot-edit textarea { min-height: 72px; }
.advanced { margin-top: 0.5rem; }
.advanced summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}
.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  margin-top: 1.4rem;
}

@media (max-width: 900px) {
  .wrap { grid-template-columns: 1fr; }
  .side { order: 2; }
  .main { order: 1; }
  .shot-grid { grid-template-columns: 1fr; }
  .hero { min-height: 52vh; background-position: 72% center; }
  .hero-inner { padding: 3rem 0 2rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .home-hero {
    min-height: calc(100svh - 52px);
    background-position: 70% center;
  }
  .home-hero-content { padding: 4.2rem 0 2.4rem; }
  .home-cta-band { align-items: stretch; }
  .home-cta-band .btn { width: 100%; }
  .home-actions {
    gap: 0.55rem;
  }
  .home-actions .btn {
    min-width: 0;
    flex: 1 1 calc(50% - 0.3rem);
    padding: 0.72rem 0.9rem !important;
    letter-spacing: 0.16em !important;
  }

  /* H5 顶栏 */
  .app-topbar,
  .topnav {
    padding: 0 0.75rem;
    min-height: 52px;
    gap: 0.25rem;
  }
  .topnav-brand {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    max-width: 42vw;
  }
  .topnav-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .brand-logo { width: 1.45rem; height: 1.45rem; }
  .app-topnav-mount,
  .app-topnav-inner {
    min-width: 0;
    overflow: visible;
  }
  .app-top-navlinks {
    mask-image: none;
  }
  .topnav-link {
    height: 48px;
    line-height: 48px;
    padding: 0 10px;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
  }
  .app-top-menu {
    --el-menu-horizontal-height: 52px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .app-top-menu::-webkit-scrollbar { display: none; }
  .app-top-menu .el-menu-item {
    padding: 0 10px !important;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
  }
  .topnav-meta {
    width: 100%;
    margin: 0;
    padding: 0 0 0.45rem;
    gap: 0.45rem;
    flex-wrap: wrap;
  }

  /* H5 内容区 */
  .wrap {
    width: 100%;
    padding: 0.85rem 0.85rem 1.5rem;
    margin: 0 auto;
  }
  .panel {
    padding: 1rem 0.95rem 1.15rem;
  }
  .panel h2 {
    font-size: 1.25rem;
  }
  .auth-card .el-button--large,
  .auth-card .el-input {
    font-size: 16px; /* 防止 iOS 聚焦放大 */
  }
  .home-hero-content .brand {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }
  .home-hero-content .lead {
    font-size: 0.92rem;
    line-height: 1.7;
  }
  .page-home .home-actions .btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .app-topbar { flex-wrap: wrap; padding-top: 0.2rem; }
  .app-topnav-mount { width: 100%; }
  .topnav-brand { max-width: none; }
  .home-chips { gap: 0.4rem; }
  .chip { font-size: 0.72rem; padding: 0.28rem 0.55rem; }
}

/* 安全区（刘海屏） */
@supports (padding: max(0px)) {
  .app-topbar,
  .topnav {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
    padding-top: env(safe-area-inset-top);
  }
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

