/* ============================================
   梦熊吉祥物征集 — "Precision Geek" 主题
   主色: #2AACA7 (青绿)  /  #D4AF37 (金色)
   ============================================ */

:root {
  --teal: #2AACA7;
  --teal-light: #E8F8F7;
  --teal-dark: #1F8A85;
  --gold: #D4AF37;
  --gold-light: #FDF6E3;
  --gold-dark: #B8941F;
  --bg: #F5F7FA;
  --bg-white: #FFFFFF;
  --text: #1a1a2e;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --shadow-teal: 0 4px 20px rgba(42,172,167,0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --font: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Consolas', 'Monaco', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* 极客网点背景 */
  background-image: radial-gradient(circle, rgba(42,172,167,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal-dark); }

/* ============================================
   Navigation — 浅色主题覆盖
   ============================================ */

#shared-navbar {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border) !important;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

#shared-navbar a,
#shared-navbar span {
  color: var(--text) !important;
}

#shared-navbar a[href="/"] {
  color: var(--teal) !important;
  font-weight: 700;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  margin-right: auto;
}

.nav-logo {
  display: block;
  width: clamp(132px, 15vw, 178px);
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

#shared-navbar a:hover,
#shared-navbar .nav-link:hover,
#shared-navbar .nav-action:hover {
  color: var(--teal) !important;
}

#shared-navbar .nav-link,
#shared-navbar .nav-user,
#shared-navbar .nav-action {
  display: inline-flex;
  align-items: center;
  height: 60px;
  padding: 0 14px;
  color: var(--text) !important;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s;
}

#shared-navbar .nav-user {
  color: var(--text-secondary) !important;
}

#shared-navbar .nav-auth-trigger {
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

#shared-navbar .nav-auth-trigger:hover {
  color: var(--teal) !important;
}

#shared-navbar .nav-action {
  color: var(--text-muted) !important;
  font-size: 13px;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 14px rgba(42,172,167,0.3);
}
.btn-primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 6px 20px rgba(42,172,167,0.4);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(212,175,55,0.3);
}
.btn-gold:hover {
  box-shadow: 0 6px 20px rgba(212,175,55,0.45);
  transform: translateY(-1px);
}

.btn-danger {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid rgba(220,38,38,0.25);
}
.btn-danger:hover {
  background: #FEE2E2;
  transform: translateY(-1px);
}

.btn-lg { padding: 14px 36px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 18px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================
   Cards
   ============================================ */

.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* ============================================
   Tags / Labels
   ============================================ */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: default;
}

.tag-default {
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.tag-teal {
  background: var(--teal-light);
  color: var(--teal-dark);
  border: 1px solid rgba(42,172,167,0.2);
}

.tag-gold {
  background: var(--gold-light);
  color: var(--gold-dark);
  border: 1px solid rgba(212,175,55,0.25);
}

.tag-selectable {
  cursor: pointer;
  user-select: none;
}
.tag-selectable:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.tag-selected {
  background: var(--teal) !important;
  color: #fff !important;
  border-color: var(--teal) !important;
}

/* ============================================
   Page container utilities
   ============================================ */

.page-header {
  padding: 20px 24px 0;
}
.page-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.page-header .back-link:hover { color: var(--teal); }
.page-header h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
}
.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* ============================================
   Page 1: Hero / 活动首页
   ============================================ */

.hero {
  position: relative;
  text-align: center;
  padding: 60px 24px 80px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--teal-light) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 50% 0%, rgba(42,172,167,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(212,175,55,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--gold-light);
  color: var(--gold-dark);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero-logo {
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.hero-logo .accent {
  color: var(--teal);
}

.hero-slogan {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-mascot-visual {
  display: block;
  width: min(72vw, 360px);
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto 18px;
  filter: drop-shadow(0 20px 36px rgba(42,172,167,0.18));
}

/* 动态奖金数字 */
.prize-display {
  margin-bottom: 28px;
}

.prize-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.prize-amount {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 800;
  background: linear-gradient(135deg, #D4AF37 0%, #F0D060 40%, #B8941F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 8px rgba(212,175,55,0.3));
  line-height: 1.2;
}

/* 倒计时 */
.countdown-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
}

.countdown-label {
  font-size: 14px;
  color: var(--text-muted);
}

.countdown-timer {
  display: flex;
  gap: 4px;
}

.countdown-block {
  background: var(--bg-white);
  border-radius: 8px;
  padding: 8px 6px;
  min-width: 48px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.countdown-block .num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}

.countdown-block .unit {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.countdown-sep {
  font-size: 20px;
  font-weight: 700;
  color: var(--teal);
  padding-top: 4px;
}

/* 入口按钮组 */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.hero-primary-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-secondary-actions {
  display: flex;
  justify-content: center;
}

.feature-closed-note {
  max-width: 420px;
  margin: 2px auto 0;
  padding: 10px 14px;
  border: 1px solid rgba(42, 172, 167, 0.16);
  border-radius: 8px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.hero-rule-link {
  border: 0;
  background: transparent;
  color: var(--teal);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 8px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-rule-link:hover {
  color: var(--teal-dark);
}

/* ============================================
   Rules section
   ============================================ */

.rules-section {
  max-width: 800px;
  margin: -20px auto 40px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.rules-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.rules-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rules-card h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--teal);
  border-radius: 2px;
}

.rule-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
}

.rule-item:last-child { border-bottom: none; }

.rule-item summary {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rule-item summary::-webkit-details-marker { display: none; }
.rule-item summary::after {
  content: '▾';
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.3s;
}
.rule-item[open] summary::after {
  transform: rotate(180deg);
}

.rule-content {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

.rule-dialog-list {
  max-height: 50vh;
  overflow: auto;
  margin-bottom: 18px;
}

.rule-dialog-list section {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.rule-dialog-list h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.rule-dialog-list p {
  margin: 4px 0;
  color: var(--text-secondary);
  font-size: 13px;
}

/* ============================================
   Page 2-3: Submit / 投稿页
   ============================================ */

.submit-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px;
}

/* 步骤进度条 */
.steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
  position: relative;
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg);
  color: var(--text-muted);
  border: 2px solid var(--border);
}
.step-circle.done {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.step-circle.active {
  background: #fff;
  color: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 0 6px var(--teal-light);
}

.step-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.step-label.done { color: var(--teal); }
.step-label.active { color: var(--teal); font-weight: 600; }

.step-line {
  width: 80px;
  height: 2px;
  background: var(--border);
  margin: 0 4px;
  margin-bottom: 24px;
  transition: background 0.35s;
}
.step-line.done {
  background: var(--teal);
}

/* 表单卡片 */
.form-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.submit-auth-gate {
  display: grid;
  justify-items: center;
  min-height: 280px;
  padding: 48px 32px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  background: var(--bg-white);
  box-shadow: var(--shadow);
  text-align: center;
}

.submit-auth-gate-placeholder {
  min-height: 180px;
  width: 100%;
}

.submit-auth-gate h2 {
  margin-bottom: 6px;
  font-size: 22px;
}

.submit-auth-gate p {
  max-width: 420px;
  color: var(--text-secondary);
}

.submit-auth-gate-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.oi-prize-card {
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--gold-light), var(--bg-white));
  transition: border-color 0.2s, box-shadow 0.2s;
}

.oi-prize-card.is-selected {
  border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.12);
}

.oi-prize-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.oi-prize-kicker {
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.oi-prize-heading h2 {
  margin-top: 2px;
  font-size: 18px;
  line-height: 1.4;
}

.oi-prize-amount {
  flex: 0 0 auto;
  color: var(--gold-dark);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
}

.oi-prize-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.oi-prize-toggle input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  accent-color: var(--teal);
}

.oi-prize-toggle span,
.oi-prize-toggle strong,
.oi-prize-toggle small {
  display: block;
}

.oi-prize-toggle strong {
  font-size: 15px;
}

.oi-prize-toggle small {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 12px;
}

.oi-proof-fields {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(212, 175, 55, 0.28);
}

.oi-proof-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -6px 0 14px;
  color: var(--text-muted);
  font-size: 12px;
}

.oi-proof-divider::before,
.oi-proof-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.oi-certificate-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.oi-certificate-picker:hover,
.oi-certificate-picker:focus-visible {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 3px var(--teal-light);
}

.oi-certificate-picker-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 22px;
  line-height: 1;
}

.oi-certificate-picker strong,
.oi-certificate-picker small {
  display: block;
}

.oi-certificate-picker strong {
  overflow: hidden;
  max-width: 480px;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oi-certificate-picker small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
}

.oi-certificate-preview {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 12px;
}

.oi-certificate-preview img {
  width: 112px;
  height: 80px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  object-fit: cover;
}

.oi-private-hint {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
}

.form-error {
  min-height: 20px;
  margin-top: 4px;
  color: #DC2626;
  font-size: 12px;
  line-height: 20px;
  visibility: hidden;
}

.form-error.visible {
  visibility: visible;
}

.oi-preview-private-note {
  width: fit-content;
  margin: 14px auto 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--gold-light);
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 600;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-label .required {
  color: #EF4444;
  margin-left: 2px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  transition: all 0.2s;
  outline: none;
  resize: vertical;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-light);
  background: #fff;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 100px;
}

.char-count {
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 上传区域 */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  background: var(--bg);
  position: relative;
}
.upload-zone:hover {
  border-color: var(--teal);
  background: var(--teal-light);
}

.upload-zone .upload-icon {
  font-size: 36px;
  color: var(--teal);
  margin-bottom: 8px;
}

.upload-zone .upload-text {
  font-size: 13px;
  color: var(--text-secondary);
}

.upload-zone .upload-limit {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.upload-preview-compact {
  margin: 0 0 10px;
}

.upload-preview-item {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-light);
}

.upload-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-preview-main {
  width: 200px;
  height: 200px;
}

.upload-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.upload-mini-slot {
  aspect-ratio: 1;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
  overflow: hidden;
}
.upload-mini-slot:hover {
  border-color: var(--teal);
  background: var(--teal-light);
}
.upload-mini-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-mini-slot .plus {
  font-size: 28px;
  color: var(--text-muted);
}

/* 矢量文件上传 */
.vector-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--gold-light);
  border: 1.5px dashed rgba(212,175,55,0.3);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}
.vector-upload:hover {
  background: #FEF9E7;
  border-color: var(--gold);
}

.vector-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}

.vector-info {
  flex: 1;
}

.vector-info .name {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.vector-info .hint {
  font-size: 11px;
  color: var(--text-muted);
}

/* 预览手机框 */
.preview-phone {
  width: 280px;
  margin: 0 auto;
  background: #1a1a2e;
  border-radius: 32px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

.preview-phone-screen {
  background: #fff;
  border-radius: 22px;
  padding: 20px 16px;
  min-height: 420px;
  overflow: hidden;
}

.preview-phone-screen .cover-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: var(--bg);
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.preview-phone-screen .work-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.preview-phone-screen .work-author {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.preview-phone-screen .work-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}

.preview-notice {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 16px;
  padding: 10px;
  background: var(--teal-light);
  border-radius: var(--radius);
}

/* 标签选择器 */
.tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-custom-action {
  appearance: none;
  border: 1px dashed rgba(42,172,167,0.5);
  background: #fff;
  color: var(--teal-dark);
  font-family: var(--font);
}

.tag-custom-action:hover {
  background: var(--teal-light);
}

.agreement-link {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}

.agreement-link-button {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.agreement-link:hover {
  text-decoration: underline;
}

.agreement-dialog {
  max-width: 560px;
}

.agreement-content {
  max-height: 56vh;
  overflow: auto;
  margin-bottom: 18px;
}

.agreement-content section {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.agreement-content section:last-child {
  border-bottom: none;
}

.agreement-content h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.agreement-content h4 {
  font-size: 14px;
  margin: 10px 0 4px;
}

.agreement-content p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.8;
}

.agreement-content p + p {
  margin-top: 6px;
}

.agreement-content ul {
  margin: 6px 0 0 18px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.8;
}

.agreement-content li + li {
  margin-top: 4px;
}

.agreement-content strong {
  color: var(--text);
}

/* ============================================
   Page 4: Gallery / 作品展示大厅
   ============================================ */

.gallery-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.gallery-reward-note {
  background: var(--gold-light);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--gold-dark);
  line-height: 1.7;
  word-break: break-all;
}

.gallery-reward-note a {
  color: var(--gold-dark);
  text-decoration: underline;
}

.search-box {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  background: var(--bg-white);
  outline: none;
  transition: all 0.2s;
}
.search-box input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-light);
}

.search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}

.sort-tabs {
  display: flex;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 3px;
  border: 1px solid var(--border);
}

.sort-tab {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: transparent;
  font-family: var(--font);
}
.sort-tab.active {
  background: var(--teal);
  color: #fff;
}

/* 瀑布流 / 自适应网格 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.work-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-teal);
  border-color: rgba(42,172,167,0.15);
}

.work-card-cover {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  background: var(--bg);
}

.work-card-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.work-card:hover .work-card-cover img {
  transform: scale(1.05);
}

.work-card-review {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(17,24,39,0.78);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.work-card-review span {
  display: block;
  margin-bottom: 2px;
  color: var(--gold);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
}

.work-card-review p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255,255,255,0.92);
  font-family: 'YouYuan', 'Microsoft YaHei UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.work-card-body {
  padding: 16px;
}

.work-card-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.work-card-author {
  font-size: 13px;
  color: var(--text-secondary);
}

.work-card-votes {
  font-weight: 700;
  color: var(--gold);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.work-card-uid {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.work-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.gallery-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.gallery-empty .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.gallery-pager {
  display: flex;
  justify-content: center;
  padding: 32px 0;
}

/* ============================================
   Page 5: Detail / 作品详情页
   ============================================ */

.detail-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
}

.detail-main {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.detail-image-area {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.detail-main-image {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  cursor: zoom-in;
  box-shadow: var(--shadow);
}

.detail-main-image img {
  width: 100%;
  display: block;
}

.detail-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.detail-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  opacity: 0.7;
}
.detail-thumb:hover,
.detail-thumb.active {
  border-color: var(--teal);
  opacity: 1;
}
.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info-area {
  flex: 1;
  min-width: 280px;
}

.detail-info-area h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.detail-uid {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
}

.detail-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* 投票悬浮栏 */
.vote-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin: 20px 0;
  border: 1px solid var(--border-light);
}

.vote-count-display {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  min-width: 80px;
  text-align: center;
}

.vote-count-display .label {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  font-family: var(--font);
}

.detail-vote-bar {
  align-items: stretch;
}

.detail-vote-bar .vote-count-display,
.detail-vote-bar .detail-vote-action {
  min-height: 64px;
}

.detail-vote-bar .vote-count-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.detail-vote-bar .detail-vote-action {
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 18px;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

.detail-vote-bar .detail-vote-share {
  flex-basis: 140px;
}

.detail-vote-bar .feature-closed-note {
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.detail-section {
  margin-top: 24px;
}

.detail-section h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-section h3::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--teal);
  border-radius: 2px;
}

.detail-section .content {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.detail-expert-review {
  padding: 18px;
  border: 1px solid rgba(212,175,55,0.28);
  border-radius: var(--radius-lg);
  background: var(--gold-light);
}

.detail-expert-review .content {
  color: var(--text);
  font-style: italic;
}

.detail-section .content.collapsed {
  max-height: 80px;
  overflow: hidden;
  position: relative;
}
.detail-section .content.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, #fff);
}

.expand-btn {
  color: var(--teal);
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
  margin-top: 4px;
  background: none;
  border: none;
  font-family: var(--font);
}

/* ============================================
   Comments section
   ============================================ */

.comment-section {
  max-width: 1000px;
  margin: 32px auto;
  padding: 24px;
  border-top: 1px solid var(--border);
}

.comment-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.comment-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.comment-input-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}
.comment-input-row input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-light);
}

.comment-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--teal);
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.comment-author-name {
  font-weight: 600;
  font-size: 13px;
}

.comment-time {
  font-size: 11px;
  color: var(--text-muted);
}

.comment-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

/* ============================================
   Page 7: My Works / 我的作品
   ============================================ */

.campaign-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
}

.author-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  font-size: 17px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}
.status-badge.approved {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.status-badge.oi-private-badge {
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: var(--gold-light);
  color: var(--gold-dark);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.stat-card .stat-value {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-card .stat-change {
  font-size: 12px;
  color: var(--teal);
  margin-top: 2px;
}

/* 趋势图 */
.chart-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.chart-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.chart-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 0 4px;
}

.chart-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar {
  width: 100%;
  max-width: 36px;
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-light) 100%);
  border-radius: 6px 6px 0 0;
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 4px;
}

.chart-bar-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 6px;
  font-family: var(--font-mono);
}

/* 点评区 */
.review-quote {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
  position: relative;
}

.review-quote::before {
  content: '"';
  position: absolute;
  top: 8px;
  left: 16px;
  font-size: 48px;
  color: var(--teal);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}

.review-quote h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.review-quote p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
}

/* 作品列表 */
.work-list-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  margin-bottom: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: all 0.2s;
}
.work-list-card:hover {
  box-shadow: var(--shadow-lg);
}

.work-list-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.work-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-list-info {
  flex: 1;
  min-width: 0;
}

.work-list-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.work-detail-link {
  display: inline-flex;
  margin-left: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.work-detail-link:hover {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.work-list-info .meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.work-list-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ============================================
   Page 8: Reward / 领券页
   ============================================ */

.reward-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px;
  text-align: center;
}

.reward-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 40px 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.reward-thanks {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.reward-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.coupon-card {
  background: linear-gradient(135deg, var(--gold-light) 0%, #FFF8E1 100%);
  border: 2px dashed var(--gold);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
}

.coupon-card::before,
.coupon-card::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--bg);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.coupon-card::before { left: -11px; }
.coupon-card::after { right: -11px; }

.coupon-amount {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 800;
  color: var(--gold-dark);
}

.coupon-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--gold-dark);
  margin-top: 4px;
}

.coupon-scope {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.reward-bonus {
  background: var(--teal-light);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--teal-dark);
  line-height: 1.6;
}

.reward-claim {
  margin-bottom: 24px;
}

.reward-claim-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  word-break: break-all;
}

.reward-guide {
  text-align: left;
  margin-bottom: 24px;
}

.reward-guide h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.guide-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-secondary);
}

.guide-item:last-child { border-bottom: none; }

.guide-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* ============================================
   Page 9: Result / 结果公示
   ============================================ */

.result-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.podium-item {
  text-align: center;
  width: 180px;
}

.podium-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: all 0.3s;
}

.podium-card.rank-1 {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(212,175,55,0.15);
  transform: scale(1.05);
}
.podium-card.rank-2 {
  border-color: #A0A0A0;
  box-shadow: 0 8px 32px rgba(160,160,160,0.12);
}
.podium-card.rank-3 {
  border-color: #CD7F32;
  box-shadow: 0 8px 32px rgba(205,127,50,0.12);
}

.podium-medal {
  font-size: 40px;
  margin-bottom: 8px;
}

.podium-card .cover {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  border: 3px solid var(--border-light);
}
.podium-card.rank-1 .cover { border-color: var(--gold); }
.podium-card.rank-2 .cover { border-color: #A0A0A0; }
.podium-card.rank-3 .cover { border-color: #CD7F32; }

.podium-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.podium-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.podium-card .author {
  font-size: 12px;
  color: var(--text-muted);
}

.podium-card .votes {
  font-weight: 700;
  color: var(--gold);
  font-size: 14px;
  margin-top: 4px;
}

.score-line {
  color: var(--teal-dark);
  font-size: 12px;
  margin-top: 4px;
  font-weight: 600;
}

.result-honor-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 28px;
}

.result-honor-card {
  background: #fff;
  border: 1px solid rgba(42,172,167,.16);
  border-radius: var(--radius-lg);
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.result-honor-card img {
  width: 100%;
  height: 118px;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--teal-light);
}

.result-honor-card strong {
  display: block;
  margin-top: 8px;
  font-size: 14px;
}

.result-official-note,
.bole-panel,
.tester-signup {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-top: 24px;
}

.result-official-note h2,
.bole-panel h2,
.tester-signup h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.result-official-note p,
.bole-panel p,
.tester-signup p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.bole-reward-note {
  margin-bottom: 14px;
  font-size: 13px;
  word-break: break-all;
}

.bole-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bole-list span {
  padding: 6px 12px;
  border: 1px solid rgba(42,172,167,.3);
  color: var(--teal-dark);
  border-radius: 999px;
  background: var(--teal-light);
  font-weight: 600;
}

.tester-signup {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: center;
}

.tester-signup img {
  width: 100%;
  border-radius: var(--radius);
  background: var(--teal-light);
}

.tester-form {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

/* 其余排名 */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.2s;
}
.ranking-item:hover {
  box-shadow: var(--shadow);
}

.ranking-num {
  width: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.ranking-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-info {
  flex: 1;
  min-width: 0;
}

.ranking-info .name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-info .author {
  font-size: 12px;
  color: var(--text-muted);
}

.ranking-votes {
  font-weight: 700;
  color: var(--gold);
  font-size: 14px;
  white-space: nowrap;
}

.score-line {
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
  margin-top: 6px;
}

.score-legend {
  padding: 10px 18px;
  background: rgba(42,172,167,.08);
  border-radius: 8px;
  display: inline-block;
}

/* ============================================
   Login / Register Modal
   ============================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-dialog {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-dialog h2 {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
}

.work-edit-dialog {
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.crop-dialog {
  max-width: 520px;
}

.crop-stage {
  width: 320px;
  height: 320px;
  max-width: 100%;
  margin: 0 auto 18px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--bg);
  border: 2px solid var(--teal);
  position: relative;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.crop-stage.is-dragging {
  cursor: grabbing;
}

.crop-stage::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(255,255,255,.86);
  border-radius: 12px;
  pointer-events: none;
}

.crop-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center;
  pointer-events: none;
  user-select: none;
}

.crop-control {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.crop-control input[type="range"] {
  accent-color: var(--teal);
}

.crop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
  border-radius: 999px;
  padding: 4px;
  margin: -8px 0 16px;
}

.auth-tabs button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-weight: 700;
  cursor: pointer;
}

.auth-tabs button.active {
  background: var(--teal);
  color: #fff;
}

.voter-dialog .form-input {
  background: #fff;
}

.voter-profile-tip {
  margin: 12px 0 8px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.voter-profile-filled {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.voter-profile-filled span {
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 10px;
}

.voter-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.voter-profile-grid .profile-stage-field {
  grid-column: 1 / -1;
}

.voter-dialog .form-input-readonly {
  background: #f3f6f8;
  color: var(--text-secondary);
  cursor: default;
}

.voter-profile-phone-hint {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  margin: 8px 0;
}

.auth-check input {
  accent-color: var(--teal);
}

.auth-check-agreement {
  flex-wrap: wrap;
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}
.modal-close:hover {
  background: #fee;
  color: #EF4444;
}

.image-preview-overlay {
  background: rgba(17, 24, 39, 0.86);
}

.image-preview-dialog {
  position: relative;
  width: min(94vw, 1100px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.image-preview-dialog img {
  max-width: 100%;
  max-height: calc(92vh - 72px);
  object-fit: contain;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.image-preview-close {
  top: -12px;
  right: -12px;
  background: #fff;
}

.image-preview-actions {
  display: flex;
  justify-content: center;
}

/* ============================================
   Element Plus 组件覆盖
   ============================================ */

/* 覆盖 Element Plus 主色 */
:root {
  --el-color-primary: var(--teal);
  --el-color-primary-light-3: var(--teal-dark);
  --el-color-primary-light-5: rgba(42,172,167,0.5);
  --el-color-primary-light-7: rgba(42,172,167,0.3);
  --el-color-primary-light-8: rgba(42,172,167,0.15);
  --el-color-primary-light-9: var(--teal-light);
}

.el-button--primary {
  --el-button-bg-color: var(--teal);
  --el-button-border-color: var(--teal);
  --el-button-hover-bg-color: var(--teal-dark);
  --el-button-hover-border-color: var(--teal-dark);
  --el-button-active-bg-color: var(--teal-dark);
}

.el-radio-button__orig-radio:checked + .el-radio-button__inner {
  background-color: var(--teal);
  border-color: var(--teal);
}

.el-pagination .el-pager li.is-active {
  background-color: var(--teal);
}

.el-steps .el-step__head.is-finish .el-step__icon {
  background-color: var(--teal);
  border-color: var(--teal);
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.site-footer a {
  color: var(--text-muted);
}
.site-footer a:hover {
  color: var(--teal);
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes countIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.anim-fade-up {
  animation: fadeInUp 0.5s ease both;
}
.anim-fade-up:nth-child(1) { animation-delay: 0s; }
.anim-fade-up:nth-child(2) { animation-delay: 0.1s; }
.anim-fade-up:nth-child(3) { animation-delay: 0.2s; }
.anim-fade-up:nth-child(4) { animation-delay: 0.3s; }

/* ============================================
   Responsive: Mobile < 768px
   ============================================ */

@media (max-width: 768px) {
  #shared-navbar {
    gap: 4px;
    padding: 0 12px;
    overflow: visible;
  }

  .nav-logo {
    width: 124px;
    height: 36px;
  }

  #shared-navbar .nav-link,
  #shared-navbar .nav-user,
  #shared-navbar .nav-action {
    padding: 0 8px;
    font-size: 13px;
  }

  .hero { padding: 40px 20px 60px; }
  .hero-logo { font-size: 32px; }
  .hero-mascot-visual { width: min(78vw, 300px); }
  .prize-amount { font-size: 40px; }
  .countdown-block { min-width: 40px; padding: 6px 4px; }
  .countdown-block .num { font-size: 20px; }

  .hero-actions { align-items: stretch; }
  .hero-primary-actions { flex-direction: column; align-items: stretch; }

  .rules-card { padding: 20px; }

  .form-card { padding: 20px 16px; }

  .detail-main { flex-direction: column; }
  .detail-image-area { max-width: 100%; }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .work-card-body { padding: 10px; }
  .work-card-body h3 { font-size: 14px; }
  .work-card-actions { gap: 6px; }
  .work-card-actions .btn { padding: 7px 10px; flex: 1; }

  .work-list-card { align-items: flex-start; }
  .work-list-actions { width: 100%; justify-content: flex-start; }

  .vote-bar {
    position: sticky;
    bottom: 10px;
    z-index: 50;
  }

  .detail-vote-bar {
    display: grid;
    grid-template-columns: minmax(72px, 0.7fr) repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    padding: 14px;
  }

  .detail-vote-bar .vote-count-display,
  .detail-vote-bar .detail-vote-action {
    width: 100%;
    min-width: 0;
    min-height: 72px;
    border-radius: var(--radius-lg);
  }

  .detail-vote-bar .vote-count-display {
    min-width: 0;
    padding: 8px 4px;
    background: rgba(212, 175, 55, 0.08);
  }

  .detail-vote-bar .detail-vote-action {
    padding: 8px 10px;
    font-size: 14px;
  }

  .podium { flex-direction: column; align-items: center; }
  .podium-item { width: 100%; max-width: 240px; }
  .podium-card.rank-1 { transform: none; }
  .result-honor-strip { grid-template-columns: 1fr; }
  .tester-signup { grid-template-columns: 1fr; }
  .tester-form { flex-direction: column; }

  .stats-row { grid-template-columns: 1fr 1fr; }

  .steps-bar { gap: 0; }
  .step-line { width: 40px; }
}

@media (max-width: 480px) {
  .submit-auth-gate { padding: 36px 18px; }
  .submit-auth-gate-actions { width: 100%; flex-direction: column; }
  .submit-auth-gate-actions .btn { width: 100%; }
  .oi-prize-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .oi-certificate-preview { align-items: stretch; flex-direction: column; }
  .oi-certificate-preview img { width: 100%; height: auto; max-height: 220px; object-fit: contain; }

  .stats-row { grid-template-columns: 1fr; }

  .preview-phone { width: 240px; }
  .modal-dialog { padding: 24px 18px; }
  .voter-profile-grid { grid-template-columns: 1fr; }
  .voter-profile-grid .profile-stage-field { grid-column: auto; }
}
