/* ========================================
   我的记者故事 — 公共样式
   叙事留白 / Narrative Breathing
   湖南省第十三届专栏
   ======================================== */

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: #1A1A23;
  background: #F2EFE9;
  line-height: 1.75;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* --- Colors --- */
:root {
  --red: #B4383A;
  --red-dark: #8B2528;
  --red-light: #FDF2F2;
  --blue: #2C5282;
  --blue-dark: #1A365D;
  --blue-light: #EBF4FA;
  --navy: #0C1A2D;
  --navy-light: #15273F;
  --text: #1A1A23;
  --text-secondary: #78716C;
  --text-light: #A8A29E;
  --bg: #F2EFE9;
  --white: #FDFBF7;
  --border: #E7E0D5;
  --border-light: #F5F0E8;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 3px 16px rgba(0,0,0,0.08);
  --radius: 10px;
  --radius-lg: 14px;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Page Wrapper --- */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Header / Banner --- */
.banner {
  background: linear-gradient(160deg, #0C1A2D 0%, #132A45 40%, #1A3A5C 100%);
  color: var(--white);
  padding: 24px 20px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -50px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.banner::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  border-radius: 50%;
}

.banner-inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px;
}

.banner-subtitle {
  font-size: 0.85rem;
  opacity: 0.72;
  margin-bottom: 10px;
  letter-spacing: 4px;
  color: rgba(253, 251, 247, 0.8);
  font-weight: 400;
}

.banner-title {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 12px;
  color: #FDFBF7;
  text-shadow:
    0 2px 0 #1A3A5C,
    0 6px 16px rgba(0,0,0,0.2);
  line-height: 1.35;
}

.banner-desc {
  font-size: 0.85rem;
  opacity: 0.6;
  line-height: 1.6;
  color: rgba(253, 251, 247, 0.75);
  letter-spacing: 1px;
}

.banner-rule {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 22px;
  border: 1px solid rgba(253, 251, 247, 0.25);
  border-radius: 24px;
  font-size: 0.78rem;
  color: rgba(253, 251, 247, 0.85);
  background: rgba(253, 251, 247, 0.06);
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.banner-rule:hover {
  background: rgba(253, 251, 247, 0.12);
  border-color: rgba(253, 251, 247, 0.45);
}

/* Banner Illustrations */
.banner-illustration {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.banner-camera,
.banner-reporter {
  position: absolute;
  bottom: 14%;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12));
}

.banner-camera {
  opacity: 0.7;
  left: 3%;
  width: 90px;
  height: auto;
}

.banner-reporter {
  right: 2%;
  width: 150px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25)) drop-shadow(0 0 6px rgba(255,255,255,0.25));
}

.banner-decor {
  position: absolute;
  background: rgba(253, 251, 247, 0.08);
  border-radius: 50%;
}

.banner-decor-1 {
  width: 6px; height: 6px; top: 18%; left: 25%;
}
.banner-decor-2 {
  width: 10px; height: 10px; top: 26%; right: 22%;
}
.banner-decor-3 {
  width: 5px; height: 5px; bottom: 28%; left: 40%;
}

.banner-star {
  position: absolute;
  color: rgba(253, 251, 247, 0.4);
  font-size: 0.9rem;
}
.banner-star-1 { top: 16%; left: 55%; transform: rotate(15deg); }
.banner-star-2 { top: 34%; right: 36%; transform: rotate(-10deg); font-size: 0.7rem; }

/* --- Compact Banner (apply page) --- */
.banner-compact {
  padding: 18px 20px 20px;
  min-height: auto;
}
.banner-compact::before,
.banner-compact::after {
  content: none;
}
.banner-compact .banner-title {
  font-size: 1.4rem;
  margin-bottom: 0;
  letter-spacing: 2px;
}

/* --- Top Bar --- */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 50px;
}

.topbar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.5px;
}

.topbar-back {
  position: absolute;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  font-size: 0.88rem;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.topbar-back::before {
  content: '\2039';
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 300;
}

/* --- Search --- */
.search-section {
  padding: 20px 20px 0;
}

.search-box {
  display: flex;
  gap: 10px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 4px;
  box-shadow: var(--shadow-sm);
}

.search-box input {
  flex: 1;
  border: none;
  padding: 12px 16px;
  outline: none;
  font-size: 0.9rem;
  background: transparent;
  color: var(--text);
}

.search-box input::placeholder {
  color: var(--text-light);
}

.search-box button {
  padding: 12px 24px;
  background: var(--blue);
  color: #FDFBF7;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.25s;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.search-box button:hover {
  background: var(--blue-dark);
}

/* --- Stats Bar --- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 14px 20px 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

/* --- Content Section --- */
.content-section {
  padding: 20px;
  flex: 1;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.card-grid > .card {
  display: block;
  width: 100%;
}

/* --- Card --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--border-light);
}

.card-image-bg {
  position: absolute;
  inset: -10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(18px);
  z-index: 0;
}

.card-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-image .placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #EDF0F5, #E3DFD8);
  color: var(--blue);
  font-size: 0.85rem;
}

.card-number {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(12, 26, 45, 0.6);
  color: #FDFBF7;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.card-body {
  padding: 14px 16px 16px;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

.card-unit {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--text-light);
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-light);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* --- Load More --- */
.load-more {
  text-align: center;
  padding: 32px 24px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.85rem;
  user-select: none;
}

.load-more:hover {
  color: var(--red);
}

.load-more-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--text-light);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.no-more {
  text-align: center;
  padding: 32px 24px 48px;
  color: var(--text-light);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* --- Floating Button --- */
.float-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--red), var(--red-dark));
  color: #FDFBF7;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(180, 56, 58, 0.32);
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s;
  letter-spacing: 1px;
  text-align: center;
  line-height: 1.3;
}

.float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(180, 56, 58, 0.4);
}

/* --- Detail Page --- */
.detail-content {
  padding: 0 0 32px;
}

.detail-media {
  background: var(--navy);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 24px;
}

.detail-info { padding: 28px 0 0; }

.detail-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 1px;
  color: var(--navy);
  line-height: 1.4;
}

.detail-meta {
  display: flex;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-wrap: wrap;
  letter-spacing: 0.3px;
}

.detail-bio {
  font-size: 0.94rem;
  line-height: 2;
  color: var(--text);
  white-space: pre-wrap;
  letter-spacing: 0.2px;
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.gallery-item {
  width: 100%;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  transition: opacity 0.25s;
}

.gallery-item img:hover { opacity: 0.88; }

.placeholder-video {
  position: relative;
  width: 100%;
  min-height: 260px;
  background: linear-gradient(160deg, #0a1a33 0%, #15273F 60%, #1A3A5C 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(253, 251, 247, 0.8);
}

.play-button {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(253, 251, 247, 0.1);
  border: 2px solid rgba(253, 251, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  padding-left: 4px;
  margin-bottom: 14px;
  transition: all 0.3s;
}

.placeholder-video-label {
  font-size: 0.85rem;
  opacity: 0.6;
  letter-spacing: 1px;
}

.gallery-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  background: linear-gradient(135deg, #EDF0F5, #E3DFD8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.5rem;
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(12, 26, 45, 0.92);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 90vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: -44px; right: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(253, 251, 247, 0.12);
  color: #FDFBF7;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(253, 251, 247, 0.2); }

/* --- Apply Form --- */
.form-section {
  padding: 20px 20px 40px;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.form-label .required {
  color: var(--red);
  margin-left: 2px;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
  letter-spacing: 0.3px;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.form-input.error, .form-select.error, .form-textarea.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(180, 56, 58, 0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.75;
}

.char-count {
  text-align: right;
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 4px;
}

.char-count.warn { color: var(--red); }

/* --- File Upload --- */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  background: var(--border-light);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}

.upload-area:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}

.upload-area.drag-over {
  border-color: var(--blue);
  background: var(--blue-light);
  border-style: solid;
}

.upload-area.has-files {
  border-style: solid;
  border-color: var(--border);
}

.upload-icon {
  font-size: 2rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.upload-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.upload-text strong { color: var(--blue); }

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.preview-item {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--border-light);
}

.preview-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.preview-item .remove-btn {
  position: absolute;
  top: 4px; right: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(12, 26, 45, 0.6);
  color: #FDFBF7;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.preview-item .remove-btn:hover { background: rgba(12, 26, 45, 0.85); }

.preview-item .add-more {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border);
  border-radius: 8px;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  background: var(--border-light);
  transition: border-color 0.25s, color 0.25s;
}

.preview-item .add-more:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.video-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  background: var(--border-light);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}

.video-upload-area:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}

.video-upload-area.drag-over {
  border-color: var(--blue);
  background: var(--blue-light);
  border-style: solid;
}

.video-upload-area.has-file {
  border-style: solid;
  border-color: #5C9A78;
  background: #F2F8F4;
  padding: 16px 20px;
}

.video-preview {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 10px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.video-preview video {
  width: 100%;
  display: block;
  max-height: 280px;
}

.video-preview-info {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.video-preview-info .filename {
  font-weight: 600;
  color: var(--text-primary, #1A1A23);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-info {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.video-info .remove-video {
  color: var(--red);
  cursor: pointer;
  font-size: 0.75rem;
  background: none;
  border: none;
}

/* --- 滑块验证（弹窗拼图） --- */
.captcha-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 26, 45, 0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.captcha-modal {
  background: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  overflow: hidden;
  position: relative;
  animation: fadeIn 0.25s ease-out;
}

.captcha-close {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  line-height: 1;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.captcha-close:hover {
  background: rgba(0,0,0,0.15);
}

.captcha-image-area {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
}

/* 云朵装饰 */
.captcha-image-area::before {
  content: '';
  position: absolute;
  width: 80px;
  height: 40px;
  background: rgba(255,255,255,0.85);
  border-radius: 40px;
  top: 35px;
  left: 25px;
  box-shadow: 55px 8px 0 rgba(255,255,255,0.7), 110px -3px 0 rgba(255,255,255,0.6);
}
.captcha-image-area::after {
  content: '';
  position: absolute;
  width: 70px;
  height: 35px;
  background: rgba(255,255,255,0.8);
  border-radius: 35px;
  bottom: 45px;
  right: 35px;
  box-shadow: -35px 5px 0 rgba(255,255,255,0.6);
}

/* 缺口（目标位置） */
.captcha-hole {
  width: 50px;
  height: 50px;
  background: rgba(0,0,0,0.25);
  border: 2px solid rgba(255,255,255,0.5);
  position: absolute;
  top: 60px;
  left: 120px;
  border-radius: 4px;
  z-index: 2;
}
.captcha-hole::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,0.25);
  border: 2px solid rgba(255,255,255,0.5);
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-left: none;
}

/* 移动拼图块 */
.captcha-piece {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.85);
  border: 2px solid #4CAF50;
  position: absolute;
  top: 60px;
  left: 0;
  border-radius: 4px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.captcha-piece::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: 2px solid #4CAF50;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-left: none;
  box-shadow: inset -2px 0 2px rgba(0,0,0,0.05);
}

.captcha-status {
  height: 0;
  overflow: hidden;
  transition: height 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #fff;
}
.captcha-status.show {
  height: 36px;
}
.captcha-status.fail {
  background: #E54D42;
}
.captcha-status.success {
  background: #4CAF50;
}

.captcha-slider-area {
  padding: 16px 20px 10px;
  background: #fff;
}

.captcha-track {
  position: relative;
  width: 100%;
  height: 40px;
  background: #E8E8E8;
  border-radius: 20px;
  overflow: hidden;
}

.captcha-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: #D4EDDA;
  border-radius: 20px 0 0 20px;
  pointer-events: none;
}

.captcha-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 44px;
  height: 36px;
  background: #fff;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #4CAF50;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: grab;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  transition: box-shadow 0.15s, background 0.2s, color 0.2s;
  z-index: 2;
  user-select: none;
}
.captcha-thumb:active, .captcha-thumb.dragging {
  cursor: grabbing;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.captcha-tip {
  text-align: center;
  font-size: 0.75rem;
  color: #999;
  margin-top: 8px;
  letter-spacing: 0.3px;
}

.captcha-bottom-actions {
  display: flex;
  gap: 10px;
  padding: 0 20px 12px;
  justify-content: flex-start;
}

.captcha-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #E0E0E0;
  background: #fff;
  color: #999;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
}
.captcha-action-btn:hover {
  background: #F5F5F5;
  color: #666;
  border-color: #ccc;
}

.btn-send-sms {
  flex-shrink: 0;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: #fff;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
  width: 100%;
}
.btn-send-sms:hover:not(:disabled) {
  background: var(--blue-light);
}
.btn-send-sms:disabled {
  border-color: var(--border);
  color: var(--text-secondary);
  background: var(--border-light);
  cursor: not-allowed;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(145deg, var(--red), var(--red-dark));
  color: #FDFBF7;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: opacity 0.25s, transform 0.15s;
  letter-spacing: 1.5px;
}

.btn-submit:hover { opacity: 0.92; }
.btn-submit:active { transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.45; cursor: not-allowed; }

/* --- Toast --- */
.toast {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
  z-index: 200;
  min-width: 280px;
}

.toast-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 26, 45, 0.35);
  z-index: 199;
}

.toast-icon { font-size: 3rem; margin-bottom: 14px; }
.toast-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; letter-spacing: 0.5px; }
.toast-text { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.6; }

.toast-btn {
  padding: 10px 32px;
  background: var(--blue);
  color: #FDFBF7;
  border-radius: 22px;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.25s;
}

.toast-btn:hover { background: var(--blue-dark); }

/* --- Admin Styles --- */
.admin-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.5;
  letter-spacing: 0.3px;
  flex: 1;
}

.admin-nav { display: flex; gap: 4px; }
.admin-nav a {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all 0.2s;
  text-decoration: none;
}
.admin-nav a:hover, .admin-nav a.active {
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 600;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.admin-user-info .logout-btn {
  padding: 5px 12px;
  background: var(--border-light);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 0.72rem;
  cursor: pointer;
}
.admin-user-info .logout-btn:hover { background: var(--red-light); color: var(--red); }

.admin-stats {
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}
.admin-stats strong { color: var(--red); }

.admin-list { padding: 14px 20px; }

.admin-item {
  background: var(--white);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.admin-item-info { flex: 1; min-width: 0; }
.admin-item-name { font-size: 0.92rem; font-weight: 600; letter-spacing: 0.3px; }
.admin-item-unit { font-size: 0.75rem; color: var(--text-secondary); margin-top: 3px; }
.admin-item-time { font-size: 0.7rem; color: var(--text-light); margin-top: 3px; }
.admin-item-bio {
  font-size: 0.78rem; color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.6;
}

.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.badge-pending { background: #FDF6E3; color: #8A6D25; }
.badge-approved { background: #EDF7F0; color: #3D6B53; }
.badge-rejected { background: #FDF2F2; color: #8B3A3C; }

.admin-actions { display: flex; gap: 8px; justify-content: flex-end; }

.btn-approve, .btn-reject {
  padding: 7px 18px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.25s;
  letter-spacing: 0.3px;
}

.btn-approve { background: #5C9A78; color: #FDFBF7; }
.btn-approve:hover { opacity: 0.85; }
.btn-reject { background: var(--border-light); color: var(--text-secondary); }
.btn-reject:hover { background: #FDF2F2; color: var(--red); }

.btn-detail {
  padding: 7px 18px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--blue);
  background: var(--white);
  color: var(--blue);
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.3px;
}

.btn-detail:hover { background: var(--blue); color: #FDFBF7; }

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 26, 45, 0.4);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title { font-size: 1rem; font-weight: 600; letter-spacing: 0.5px; }
.modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }

.modal-body { padding: 24px; font-size: 0.88rem; line-height: 1.9; color: var(--text); letter-spacing: 0.2px; }
.modal-body h3 { font-size: 0.94rem; margin: 16px 0 8px; color: var(--navy); letter-spacing: 0.5px; }
.modal-body p { margin-bottom: 10px; }

.modal-detail { max-width: 660px; max-height: 85vh; }
.modal-body-scroll { padding: 16px 24px; overflow-y: auto; max-height: 60vh; }

.detail-modal-section { margin-bottom: 16px; }
.detail-modal-label { font-size: 0.75rem; color: var(--text-light); margin-bottom: 4px; letter-spacing: 0.3px; }
.detail-modal-value { font-size: 0.9rem; color: var(--text); line-height: 1.7; letter-spacing: 0.2px; }
.detail-modal-value.name { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.detail-modal-value.bio { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.8; }
.detail-modal-gallery { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.detail-modal-img { width: 100%; border-radius: 10px; cursor: pointer; transition: transform 0.25s; object-fit: contain; background: #fff; max-height: 380px; }
.detail-modal-img.zoomed { transform: scale(1.05); box-shadow: var(--shadow-md); }

/* Edit Form */
.edit-form .form-group { margin-bottom: 20px; }
.edit-img-item { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--border-light); margin-bottom: 10px; }
.edit-img-item img { width: 100%; height: 100%; object-fit: cover; }
.edit-img-item .remove-btn { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(12, 26, 45, 0.6); color: #FDFBF7; font-size: 0.7rem; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; transition: background 0.2s; }
.edit-img-item .remove-btn:hover { background: rgba(12, 26, 45, 0.85); }
.edit-video-info { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #F2F8F4; border-radius: 8px; font-size: 0.85rem; color: #3D6B53; }

/* Login Page */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(160deg, #0C1A2D 0%, #132A45 50%, #1A3A5C 100%); }
.login-card { background: var(--white); border-radius: var(--radius-lg); padding: 40px 36px; width: 100%; max-width: 400px; box-shadow: 0 12px 48px rgba(0,0,0,0.15); }
.login-card h2 { text-align: center; font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; letter-spacing: 2px; }
.login-card .login-subtitle { text-align: center; font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 32px; }
.login-card .form-group { margin-bottom: 20px; }
.login-card .form-input { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.9rem; }
.login-card .login-submit { width: 100%; padding: 13px; background: linear-gradient(145deg, var(--blue), var(--blue-dark)); color: #FDFBF7; border-radius: 8px; font-size: 0.95rem; font-weight: 600; border: none; cursor: pointer; letter-spacing: 1px; }
.login-card .login-error { color: var(--red); font-size: 0.78rem; text-align: center; margin-top: 12px; display: none; }

/* Dashboard */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; padding: 20px; }
.dash-card { background: var(--white); border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow-sm); }
.dash-card .dash-num { font-size: 1.8rem; font-weight: 700; color: var(--navy); }
.dash-card .dash-label { font-size: 0.75rem; color: var(--text-secondary); margin-top: 4px; }
.dash-card.warn .dash-num { color: var(--red); }
.dash-card.ok .dash-num { color: #3D6B53; }

/* Users table */
.users-table-wrap { padding: 20px; overflow-x: auto; }
.users-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.users-table th, .users-table td { padding: 12px 16px; text-align: left; font-size: 0.82rem; border-bottom: 1px solid var(--border-light); }
.users-table th { background: var(--border-light); font-weight: 600; color: var(--text); }
.users-table tr:hover { background: var(--blue-light); }
.users-table .btn-sm { padding: 4px 10px; border-radius: 4px; font-size: 0.7rem; border: 1px solid var(--border); background: var(--white); cursor: pointer; margin: 0 2px; }
.users-table .btn-sm.danger { color: var(--red); border-color: var(--red); }
.users-table .btn-sm.danger:hover { background: var(--red-light); }
.add-user-btn { margin: 0 20px 20px; padding: 10px 20px; background: var(--blue); color: #fff; border-radius: 8px; font-size: 0.85rem; border: none; cursor: pointer; }

/* Loading */
.loading { text-align: center; padding: 60px; color: var(--text-light); font-size: 0.9rem; }
.loading::before { content: ''; display: inline-block; width: 24px; height: 24px; border: 2px solid var(--border); border-top-color: var(--blue); border-radius: 50%; animation: spin 0.8s linear infinite; margin-right: 10px; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ========================================
   Responsive
   ======================================== */
@media (min-width: 768px) {
  .container { max-width: 960px; padding: 0 28px; }
  .banner { padding: 32px 28px 36px; min-height: 220px; }
  .banner-compact { padding: 22px 28px 24px; min-height: auto; }
  .banner-title { font-size: 2.8rem; letter-spacing: 6px; }
  .banner-compact .banner-title { font-size: 1.6rem; letter-spacing: 3px; }
  .banner-subtitle { font-size: 0.95rem; letter-spacing: 6px; }
  .banner-desc { font-size: 0.92rem; }
  .banner-camera { width: 130px; left: 5%; }
  .banner-reporter { width: 210px; right: 4%; }
  .search-section { padding: 24px 28px 0; }
  .content-section { padding: 24px 28px; }
  .card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; column-count: auto; }
  .card-grid > .card { margin-bottom: 0; }
  .card-body { padding: 16px 18px 18px; }
  .form-section { max-width: 640px; padding: 32px 0 56px; }
  .detail-content { max-width: 800px; margin: 0 auto; }
  .detail-info { padding: 32px 0 0; }
  .detail-name { font-size: 1.8rem; }
  .admin-list { max-width: 800px; margin: 0 auto; }
  .admin-header { padding: 16px 28px; }
  .float-btn { width: 78px; height: 78px; font-size: 1.05rem; bottom: 36px; right: 36px; }
  .preview-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .container { max-width: 1140px; }
  .banner { min-height: 240px; }
  .banner-compact { min-height: auto; }
  .banner-title { font-size: 3.2rem; }
  .banner-compact .banner-title { font-size: 1.8rem; }
  .banner-camera { width: 160px; left: 7%; }
  .banner-reporter { width: 250px; right: 6%; }
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (max-width: 359px) {
  .banner-camera, .banner-reporter { display: none; }
  .banner-title { font-size: 1.75rem; }
  .banner { padding: 20px 16px 22px; min-height: 140px; }
  .banner-compact { padding: 14px 16px 16px; min-height: auto; }
  .banner-compact .banner-title { font-size: 1.2rem; }
}

@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
  }
  .admin-title {
    font-size: 0.92rem;
    line-height: 1.5;
    flex: none;
  }
  .admin-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  .admin-nav a {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
  .admin-user-info {
    font-size: 0.72rem;
  }
}

/* --- 手机端表单组同行显示 --- */
@media (max-width: 640px) {
  .form-group-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 8px;
  }

  .form-group-row .form-label {
    flex-shrink: 0;
    width: auto;
    min-width: 4.5em;
    padding-top: 0;
    margin-bottom: 0;
    text-align: left;
  }

  .form-group-row .form-input,
  .form-group-row .form-select {
    flex: 1;
    min-width: 0;
  }

  .form-group-row .char-count {
    flex-basis: 100%;
    margin-left: 0;
    width: 100%;
    text-align: right;
  }
}

/* --- SMS 手机端两行布局 --- */
@media (max-width: 480px) {
  .sms-row {
    flex-wrap: wrap;
  }
  .sms-code {
    width: 100%;
  }
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.35s ease-out; }
