:root {
  --primary-red: #c8161d;
  --primary-dark: #8c0c11;
  --primary-light: #e63946;
  --gold: #d49b28;
  --gold-light: #f9d371;
  --gold-gradient: linear-gradient(135deg, #f9d371 0%, #d49b28 100%);
  --red-gradient: linear-gradient(135deg, #e63946 0%, #c8161d 50%, #8c0c11 100%);
  --tech-gradient: linear-gradient(135deg, rgba(200,22,29,0.92) 0%, rgba(140,12,17,0.95) 100%);
  --glass-bg: rgba(20, 20, 28, 0.78);
  --glass-border: rgba(249, 211, 113, 0.3);
  --glass-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  --text-main: #ffffff;
  --text-sub: #f0d5c0;
  --text-muted: #a3958d;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-family);
  background-color: #0b0b12;
  color: var(--text-main);
  user-select: none;
}

/* VR Container */
#vr-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

#vr-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Header Bar */
.top-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.88) 0%, rgba(10, 10, 15, 0.4) 80%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 10;
  pointer-events: auto;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-emblem {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(249, 211, 113, 0.6);
  border: 1.5px solid var(--gold-light);
  color: #fff;
  font-size: 20px;
}

.brand-text h1 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #ffffff 30%, #f9d371 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(200, 22, 29, 0.35);
  border: 1px solid rgba(249, 211, 113, 0.5);
  color: #f9d371;
  font-weight: 500;
  -webkit-text-fill-color: #f9d371;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.header-btn:hover {
  background: rgba(200, 22, 29, 0.4);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 22, 29, 0.3);
}

.header-btn.admin-portal {
  background: var(--red-gradient);
  border-color: var(--gold-light);
  font-weight: 600;
}

.header-btn.admin-portal:hover {
  box-shadow: 0 0 16px rgba(249, 211, 113, 0.5);
}

/* Announcement Ticker */
.announcement-bar {
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(140, 12, 17, 0.85);
  border: 1px solid rgba(249, 211, 113, 0.4);
  backdrop-filter: blur(10px);
  padding: 6px 18px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #fff8e7;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.announcement-bar .star-icon {
  color: #f9d371;
}

/* ========================================= */
/* LEFT ACTION DOCK (主页面左侧三个可伸缩按钮) */
/* ========================================= */
.action-dock {
  pointer-events: auto;
  position: absolute;
  left: 20px;
  bottom: 40%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  z-index: 20;
}

.dock-btn:focus,
.dock-btn:focus-visible,
.dock-btn:active,
.dock-btn:hover {
  background: transparent !important;
  background-color: transparent !important;
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.dock-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  position: relative;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -webkit-tap-highlight-color: transparent !important;
  padding: 0 !important;
  margin: 0;
  cursor: pointer;
  overflow: visible;
  border-radius: 50% !important;
}

/* 独立圆形图标：常驻在左侧，位置绝对不动 */
.dock-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red-gradient);
  border: 1.5px solid var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0;
  margin: 0;
  z-index: 2;
}

.dock-icon-box .dock-icon-svg {
  display: block;
  margin: auto;
}

.dock-icon-box svg {
  vertical-align: middle;
}

/* 悬停或触碰时，图标轻微高光，位置纹丝不动 */
.dock-btn:hover .dock-icon-box,
.dock-btn.is-expanded .dock-icon-box {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(200, 22, 29, 0.6), 0 0 12px rgba(249, 211, 113, 0.6);
}

.dock-btn:active .dock-icon-box {
  transform: scale(0.96);
}

/* 往左侧弹出的文字标签：纯透明无底无边，无方框裁切 */
.dock-text {
  max-width: 0;
  opacity: 0;
  transform: translateX(-12px) scale(0.95);
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0;
  margin-left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: max-width 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.22s ease,
              transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              margin-left 0.3s ease;
  z-index: 1;
}

/* 鼠标移入（PC）或触碰激活（手机）时，文字向右平滑弹出 */
.dock-btn:hover .dock-text,
.dock-btn.is-expanded .dock-text,
.dock-btn:focus-visible .dock-text {
  max-width: 140px;
  opacity: 1;
  transform: translateX(0) scale(1);
  margin-left: 10px;
  pointer-events: auto;
  overflow: visible !important;
}

/* 弹出的文字胶囊样式：渐变黑色底纹 + 金色细边，彻底去除黑色方形底与模糊裁剪瑕疵 */
.dock-title {
  display: inline-block;
  background: var(--red-gradient) !important;
  border: 1.5px solid var(--gold-light) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 10px rgba(200, 22, 29, 0.4) !important;
  white-space: nowrap !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
  outline: none !important;
  vertical-align: middle;
  line-height: normal;
}

/* Pulse 呼吸动画：仅在圆形图标上脉动，无黑色方底 */
.dock-btn.pulse-attract .dock-icon-box {
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(249, 211, 113, 0.6); }
  70% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 12px rgba(249, 211, 113, 0); }
  100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(249, 211, 113, 0); }
}


/* ========================================= */
/* MODAL SYSTEM (通用弹窗)                   */
/* ========================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 8, 14, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-dialog {
  background: linear-gradient(165deg, #24252e 0%, #171820 35%, #0f1015 70%, #090a0d 100%);
  border: 1.5px solid rgba(249, 211, 113, 0.4);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(249, 211, 113, 0.15);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 92%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.15);
  position: relative;
}

.modal-overlay.active .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(249, 211, 113, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(249, 211, 113, 0.09) 0%, rgba(255, 255, 255, 0.03) 40%, transparent 100%);
  border-bottom: 1px solid rgba(249, 211, 113, 0.18);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red-gradient);
  border: 1px solid var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #fff;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.modal-subtitle {
  font-size: 12px;
  color: #f9d371;
  margin-left: 8px;
  font-weight: normal;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ddd;
  font-size: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

.modal-close-btn:hover {
  background: var(--primary-red);
  color: #fff;
  border-color: var(--gold-light);
  transform: rotate(90deg);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* Custom Scrollbar */
.modal-body::-webkit-scrollbar {
  width: 6px;
}
.modal-body::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
}
.modal-body::-webkit-scrollbar-thumb {
  background: rgba(249, 211, 113, 0.3);
  border-radius: 3px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ========================================= */
/* 1. 虚拟打卡 MODAL STYLES (1.png 复刻)      */
/* ========================================= */
.checkin-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 860px) {
  .checkin-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.checkin-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.upload-card-box {
  background: rgba(200, 22, 29, 0.15);
  border: 2px dashed rgba(249, 211, 113, 0.45);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.upload-card-box:hover {
  background: rgba(200, 22, 29, 0.25);
  border-color: #f9d371;
  box-shadow: 0 0 20px rgba(200, 22, 29, 0.3);
}

.upload-icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--red-gradient);
  border: 1.5px solid var(--gold-light);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.upload-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.upload-desc {
  font-size: 13px;
  color: #f9d371;
}

.preset-photos-title {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.preset-photos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.preset-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f0f0f0;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.preset-chip:hover, .preset-chip.active {
  background: var(--primary-red);
  border-color: var(--gold);
  color: #fff;
}

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

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #f9d371;
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.theme-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(249, 211, 113, 0.25);
  border-radius: 10px;
  padding: 8px 10px;
  color: #fff;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12.5px;
}

.theme-btn .theme-name {
  font-weight: 700;
  display: block;
  font-size: 12px;
}

.theme-btn .theme-sub {
  font-size: 10.5px;
  color: #ddd;
  margin-top: 2px;
  display: block;
}

.theme-btn.active, .theme-btn:hover {
  background: rgba(200, 22, 29, 0.4);
  border-color: var(--gold-light);
  box-shadow: 0 0 12px rgba(200, 22, 29, 0.4);
}

.theme-btn .theme-name {
  font-weight: 700;
  display: block;
}

.theme-btn .theme-sub {
  font-size: 11px;
  color: #ddd;
  margin-top: 2px;
  display: block;
}

.form-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(249, 211, 113, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.form-input:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 10px rgba(249, 211, 113, 0.3);
}

.checkin-preview-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.poster-canvas-wrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 12px;
  padding: 0;
  width: 100%;
  max-width: 350px;
  aspect-ratio: 600 / 900;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

#poster-canvas {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: block;
  object-fit: contain;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 20px rgba(249, 211, 113, 0.25);
  border: 1.5px solid rgba(249, 211, 113, 0.45);
}

.action-btns-row {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

.btn-primary {
  background: var(--red-gradient);
  border: 1px solid var(--gold-light);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(200, 22, 29, 0.4);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 22, 29, 0.6), 0 0 15px rgba(249, 211, 113, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(249, 211, 113, 0.4);
  color: #fff;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: rgba(249, 211, 113, 0.2);
  border-color: #f9d371;
  color: #f9d371;
}

/* ========================================= */
/* 2. 线上问答 MODAL STYLES (2.png 复刻)      */
/* ========================================= */
.quiz-container {
  max-width: 720px;
  margin: 0 auto;
}

.quiz-welcome-screen {
  text-align: center;
  padding: 30px 16px;
}

.quiz-badge-hero {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--red-gradient);
  border: 2px solid var(--gold-light);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  box-shadow: 0 0 30px rgba(249, 211, 113, 0.5);
  animation: floatBounce 3s ease-in-out infinite;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.quiz-hero-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.quiz-hero-desc {
  font-size: 14px;
  color: #f0d5c0;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 24px;
}

.quiz-rule-card {
  background: rgba(200, 22, 29, 0.15);
  border: 1px solid rgba(249, 211, 113, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: left;
  margin-bottom: 28px;
  font-size: 13px;
  color: #fff;
  line-height: 1.8;
}

.quiz-rule-card strong {
  color: #f9d371;
}

/* Active Quiz Question Screen */
.quiz-header-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 13px;
}

.quiz-progress-text {
  color: #f9d371;
  font-weight: 700;
}

.quiz-score-badge {
  background: rgba(200, 22, 29, 0.35);
  border: 1px solid var(--gold);
  padding: 3px 12px;
  border-radius: 12px;
  color: #fff;
  font-size: 12px;
}

.progress-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  margin-bottom: 24px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gold-gradient);
  width: 10%;
  transition: width 0.3s ease;
}

.question-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(249, 211, 113, 0.25);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 20px;
}

.question-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 20px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #f0f0f0;
  font-size: 14px;
  text-align: left;
  outline: none;
}

.option-btn:hover:not(:disabled) {
  background: rgba(200, 22, 29, 0.3);
  border-color: var(--gold-light);
  transform: translateX(4px);
}

.option-tag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #f9d371;
  font-size: 13px;
  flex-shrink: 0;
}

.option-btn.correct {
  background: rgba(46, 125, 79, 0.4) !important;
  border-color: #4ade80 !important;
  color: #fff !important;
}

.option-btn.correct .option-tag {
  background: #2e7d4f;
  color: #fff;
}

.option-btn.wrong {
  background: rgba(200, 22, 29, 0.5) !important;
  border-color: #ef4444 !important;
  color: #fff !important;
}

.option-btn.wrong .option-tag {
  background: #b91c1c;
  color: #fff;
}

/* Explanation banner */
.explanation-card {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-left: 4px solid var(--gold);
  border-top: 1px solid rgba(249, 211, 113, 0.15);
  border-right: 1px solid rgba(249, 211, 113, 0.15);
  border-bottom: 1px solid rgba(249, 211, 113, 0.15);
  font-size: 13px;
  line-height: 1.6;
  color: #f0d5c0;
  display: none;
}

.explanation-card.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.explanation-header {
  font-weight: 700;
  color: #f9d371;
  margin-bottom: 4px;
}

.quiz-footer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

/* Quiz Result & Certificate Screen */
.quiz-result-screen {
  text-align: center;
  padding: 16px 8px;
}

.result-congrats {
  font-size: 24px;
  font-weight: 800;
  color: #f9d371;
  margin-bottom: 6px;
}

.result-score-large {
  font-size: 42px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 14px;
  text-shadow: 0 0 20px rgba(249, 211, 113, 0.5);
}

.certificate-box-preview {
  background: #fff;
  color: #333;
  border-radius: 12px;
  padding: 24px;
  max-width: 520px;
  margin: 0 auto 20px;
  border: 6px double #c8161d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  text-align: center;
}

.cert-header-seal {
  font-size: 18px;
  font-weight: 800;
  color: #c8161d;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.cert-body-text {
  font-size: 14px;
  line-height: 1.8;
  color: #241f1c;
  margin-bottom: 16px;
}

.cert-stamp {
  position: absolute;
  right: 32px;
  bottom: 24px;
  width: 74px;
  height: 74px;
  border: 2px solid #c8161d;
  border-radius: 50%;
  color: #c8161d;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  transform: rotate(-15deg);
  opacity: 0.85;
  line-height: 1.2;
}

.prize-code-card {
  background: rgba(200, 22, 29, 0.2);
  border: 1px dashed #f9d371;
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 520px;
  margin: 0 auto 20px;
}

.prize-code-val {
  font-size: 18px;
  font-weight: 800;
  color: #f9d371;
  letter-spacing: 1px;
}

/* ========================================= */
/* 3. 留言墙 MODAL STYLES (3.png 复刻)        */
/* ========================================= */
.guestbook-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 18px;
}

/* Top Section: Messages only, no user names */
.message-list-section {
  flex: 1;
  min-height: 280px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.message-category-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.msg-filter-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ddd;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.msg-filter-btn.active, .msg-filter-btn:hover {
  background: var(--primary-red);
  border-color: var(--gold);
  color: #fff;
}

.message-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(249, 211, 113, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  position: relative;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.message-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(249, 211, 113, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.message-quote-icon {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 26px;
  color: rgba(249, 211, 113, 0.15);
  font-family: serif;
}

/* Strict requirement: ONLY message content, NO names */
.message-content-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: #ffffff;
  margin-bottom: 10px;
  word-break: break-word;
}

.message-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
}

.message-meta-tag {
  background: rgba(200, 22, 29, 0.3);
  border: 1px solid rgba(249, 211, 113, 0.3);
  color: #f9d371;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
}

.message-like-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #eee;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.message-like-btn:hover {
  border-color: #f9d371;
  color: #f9d371;
}

.empty-message-hint {
  text-align: center;
  padding: 40px 10px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Bottom Input Section */
.message-input-section {
  border-top: 1px solid rgba(249, 211, 113, 0.2);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audit-notice-banner {
  background: rgba(200, 22, 29, 0.25);
  border: 1px solid rgba(249, 211, 113, 0.4);
  padding: 8px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #f9d371;
  font-weight: 500;
}

.message-textarea {
  width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(249, 211, 113, 0.3);
  border-radius: 10px;
  padding: 12px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.message-textarea:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 12px rgba(249, 211, 113, 0.3);
}

.message-form-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.char-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* WeChat Share Modal */
.share-modal-content {
  text-align: center;
  padding: 20px;
}

.share-qr-box {
  width: 180px;
  height: 180px;
  background: #fff;
  border-radius: 12px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.share-qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: rgba(20, 20, 28, 0.95);
  border: 1.5px solid var(--gold);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .action-dock {
    left: 12px;
    right: auto;
    gap: 14px;
    align-items: flex-start;
  }
  .dock-btn {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }
  .dock-icon-box {
    width: 36px;
    height: 36px;
  }
  .dock-icon-box svg {
    width: 20px;
    height: 20px;
  }
  .dock-title {
    font-size: 12px;
    padding: 5px 11px;
  }
  .dock-btn:hover .dock-text,
  .dock-btn.is-expanded .dock-text,
  .dock-btn:active .dock-text {
    max-width: 110px;
    margin-left: 8px;
    overflow: visible !important;
  }
  .top-header {
    height: 52px;
    padding: 0 12px;
  }
  .brand-text h1 {
    font-size: 15px;
  }
  .brand-badge {
    display: none;
  }
}


/* Guestbook Nickname Input & Synchronized Tag */
.guestbook-nickname-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.nickname-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #f9d371;
  font-weight: 600;
  white-space: nowrap;
}

.nickname-input {
  flex: 1;
  max-width: 220px;
  padding: 6px 12px;
  font-size: 13px;
  border: 1.5px solid rgba(249, 211, 113, 0.4);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #fff;
}

.nickname-input:focus {
  border-color: #f9d371;
  box-shadow: 0 0 10px rgba(249, 211, 113, 0.35);
}

.nickname-sync-hint {
  font-size: 11.5px;
  color: #a3958d;
  white-space: nowrap;
}

/* Visitor Nickname Badge & Date on the Same Row */
.message-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}

/* Compact Red Badge for Visitor Name */
.message-author-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(200, 22, 29, 0.45);
  border: 1px solid rgba(249, 211, 113, 0.45);
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
  color: #f9d371;
  font-weight: 600;
  margin-bottom: 0;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.4;
}

.message-author-tag .author-icon {
  font-size: 10.5px;
  line-height: 1;
}

.message-author-tag .author-name {
  color: #fff9e6;
  letter-spacing: 0.2px;
}

.message-date-text {
  font-size: 11px;
  color: #a3958d;
  white-space: nowrap;
  flex-shrink: 0;
}


/* Check-in Modal Width Optimization for PC & Mobile */
#modal-checkin .modal-dialog {
  max-width: 980px;
}

@media (max-width: 860px) {
  #modal-checkin .modal-dialog {
    max-width: 92%;
  }
  .poster-canvas-wrapper {
    max-width: 280px;
  }
}
