:root {
  --accent-color: #38BDF8;
  --accent-glow: rgba(56, 189, 248, 0.45);
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.78);
  --text-muted: rgba(255, 255, 255, 0.5);
  --ui-scale: 1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #04060A;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
}

.screen-wrapper {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* 铺满 100% 屏幕视口，杜绝任何电视/浏览器下的左右黑边与 Flexbox 挤压 */
.poster-stage {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #070B12;
  overflow: hidden;
}

/* ================= 1. FULL-BLEED REAL PHOTOGRAPHY STAGE ================= */
.photo-stage {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background-color: #070B12;
}

.photo-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.0);
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.photo-layer.active {
  opacity: 1;
  animation: kenBurnsBreath 28s ease-in-out infinite alternate;
}

/* 电影级纯净光影遮罩：保持纯星空/纯海洋/珠峰的通透感，同时让正中央品牌与四角文字清晰沉稳 */
.cinematic-veil {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 52% 38% at 50% 48%, rgba(4, 8, 18, 0.38) 0%, rgba(4, 8, 18, 0.12) 70%, transparent 100%),
    linear-gradient(180deg, rgba(4, 8, 18, 0.36) 0%, rgba(4, 8, 18, 0.08) 38%, rgba(4, 8, 18, 0.14) 68%, rgba(4, 8, 18, 0.68) 100%);
  pointer-events: none;
}

.subtle-ai-grid {
  display: none;
}

#particleCanvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

/* ================= 2. TOP-RIGHT: HANGZHOU WEATHER & MINIMAL TIME ================= */
.minimal-header {
  position: absolute;
  top: 5.8%;
  right: 4.5%;
  z-index: 5;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  transform-origin: top right;
  transform: scale(var(--ui-scale, 1));
}

.weather-identity {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  white-space: nowrap;
}

.weather-main-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 7px;
  white-space: nowrap;
}

.weather-icon-box {
  width: 24px;
  height: 24px;
  margin-right: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.weather-icon-box svg {
  width: 24px;
  height: 24px;
  display: block;
}

.weather-city {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.92);
  margin-right: 8px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.weather-desc {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.8);
  margin-right: 10px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.weather-temp-now {
  font-family: "SF Pro Display", "JetBrains Mono", "Helvetica Neue", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 1px;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.weather-sub-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.66);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

.header-v-divider {
  width: 1px;
  height: 44px;
  margin: 0 26px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0.24) 50%,
    rgba(255, 255, 255, 0.02) 100%
  );
  flex-shrink: 0;
}

.time-identity {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  white-space: nowrap;
}

.minimal-clock {
  font-family: "SF Pro Display", "JetBrains Mono", "Helvetica Neue", sans-serif;
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 3px;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
  margin-bottom: 6px;
}

.minimal-date-row {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.68);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

.date-sep {
  opacity: 0.45;
  margin: 0 8px;
}

/* ================= 3. CENTER HERO: 模擎科技官方 LOGO & 标准字 (放大主视觉) ================= */
.center-brand-stage {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.brand-hero-lockup {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 40px 48px;
  border-radius: 48px;
  cursor: pointer;
  pointer-events: auto;
  transform-origin: center center;
  transform: scale(var(--ui-scale, 1));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 衬托官方四色方块的柔和呼吸背光，让左上深靛蓝方块在深色实景上也清晰分明 */
.brand-logo-halo {
  position: absolute;
  left: 16px;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(44, 92, 255, 0.2) 45%, transparent 72%);
  filter: blur(30px);
  pointer-events: none;
  animation: pulseBreath 5s ease-in-out infinite;
}

.brand-logo-box {
  position: relative;
  width: 240px;
  height: 240px;
  min-width: 240px;
  min-height: 240px;
  margin-right: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter:
    drop-shadow(0 0 1.2px rgba(255, 255, 255, 0.46))
    drop-shadow(0 20px 48px rgba(0, 0, 0, 0.62));
}

.brand-logo-box img,
.brand-logo-box svg {
  width: 240px;
  height: 240px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-titles {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logotype-svg {
  width: 786px;
  height: 204px;
  min-width: 786px;
  display: block;
  flex-shrink: 0;
  filter:
    drop-shadow(0 14px 38px rgba(0, 0, 0, 0.74))
    drop-shadow(0 2px 8px rgba(0, 0, 0, 0.46));
}

.brand-cn {
  font-size: 154px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 22px;
  color: #FFFFFF;
  margin-bottom: 20px;
  white-space: nowrap;
  text-shadow:
    0 14px 44px rgba(0, 0, 0, 0.76),
    0 2px 10px rgba(0, 0, 0, 0.48);
}

.brand-en {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 19px;
  padding-left: 4px;
  color: rgba(255, 255, 255, 0.84);
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.68);
}

/* ================= 4. BOTTOM-RIGHT: SUBTLE SMALL GREETING ================= */
.corner-greeting {
  position: absolute;
  right: 4.5%;
  bottom: 6.2%;
  z-index: 5;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  transform-origin: bottom right;
  transform: scale(var(--ui-scale, 1));
}

.hero-status-line {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  white-space: nowrap;
}

.ai-pulse-dot {
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
  animation: pulseBreath 3s ease-in-out infinite;
}

.status-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.greeting-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: 8px;
  white-space: nowrap;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.greeting-subtitle {
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.64);
  white-space: nowrap;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

/* ================= 5. BOTTOM-LEFT: SUBTLE FLOATING DOCK ================= */
.floating-dock {
  position: absolute;
  left: 4.5%;
  bottom: 6.2%;
  z-index: 10;
  display: flex;
  align-items: center;
  opacity: 0.16;
  transform-origin: bottom left;
  transform: scale(var(--ui-scale, 1));
  transition: opacity 0.35s ease;
}

.floating-dock:hover {
  opacity: 1;
}

.kiosk-mode .floating-dock {
  opacity: 0 !important;
  pointer-events: none;
}

.dock-btn {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px 15px;
  margin-right: 8px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dock-btn:last-child {
  margin-right: 0;
}

.dock-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.32);
}

.modal-action-btn {
  padding: 9px 20px;
  font-size: 13px;
}

.modal-action-btn.primary {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.55);
  color: #FFFFFF;
}

/* ================= MODALS ================= */
.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 10, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  width: 820px;
  max-width: 92vw;
  max-height: 84vh;
  background: #0B101B;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal-backdrop.open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #FFFFFF;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  cursor: pointer;
}

.modal-body {
  padding: 22px 26px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mode-explain-bar {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid #F59E0B;
  padding: 12px 16px;
  border-radius: 8px;
}

.section-subtitle {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #FBBF24;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 8px;
}

.theme-card-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #FFFFFF;
  font-family: inherit;
}

.theme-card-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(245, 158, 11, 0.45);
}

.theme-card-btn .t-name {
  font-size: 13.5px;
  font-weight: 500;
  display: block;
}

.theme-card-btn .t-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  display: block;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.form-input {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.04);
  color: #FFFFFF;
  outline: none;
}

.form-input:focus {
  border-color: #F59E0B;
}

@keyframes kenBurnsBreath {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.06); }
}

@keyframes pulseBreath {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.18); }
}

.kiosk-toast {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: rgba(11, 16, 27, 0.88);
  backdrop-filter: blur(16px);
  color: #FFFFFF;
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 200;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.kiosk-toast.visible {
  transform: translateX(-50%) translateY(0);
}
