/* ===== 人大统计学院辩论队社区 - 全局样式 ===== */
:root {
  --ruc-red: #AE0B2A;
  --ruc-red-dark: #8B0922;
  --ruc-red-light: #FBEAEE;
  --ruc-gold: #C8A45C;
  --primary: #AE0B2A;
  --primary-dark: #8B0922;
  --primary-light: #FBEAEE;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --text: #1f2937;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --bg: #fdf6f7;
  --card-bg: #ffffff;
  --shadow: 0 4px 14px rgba(174,11,42,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 30px rgba(174,11,42,.15);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei",
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji",
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ===== 头部导航 ===== */
.site-header {
  background: linear-gradient(135deg, var(--ruc-red) 0%, var(--ruc-red-dark) 100%);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(174,11,42,.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: #fff; }
.logo:hover { text-decoration: none; }
.logo-img { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.2); overflow: hidden; }
.logo-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.logo-text { color: #fff; letter-spacing: 1px; }

.main-nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nav-link { padding: 7px 16px; border-radius: 20px; color: rgba(255,255,255,.85); font-weight: 500; font-size: .95rem; transition: all .2s; }
.nav-link:hover { background: rgba(255,255,255,.2); color: #fff; text-decoration: none; }
.user-menu { display: flex; align-items: center; gap: 10px; }
.user-name { font-size: .88rem; color: rgba(255,255,255,.9); }

/* ===== 按钮 ===== */
.btn { display: inline-block; padding: 9px 20px; border: none; border-radius: 10px; background: var(--border); color: var(--text); font-size: .9rem; cursor: pointer; font-weight: 500; transition: all .2s; text-align: center; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,.1); }
.btn-primary { background: linear-gradient(135deg, var(--ruc-red), var(--ruc-red-dark)); color: #fff; }
.btn-primary:hover { box-shadow: 0 4px 14px rgba(174,11,42,.4); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--ruc-gold), #b08d45); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--ruc-red); color: var(--ruc-red); }
.btn-outline:hover { background: var(--ruc-red); color: #fff; }
.btn-sm { padding: 5px 13px; font-size: .82rem; }
.btn-block { display: block; width: 100%; padding: 12px; font-size: 1rem; }

/* ===== 主内容 ===== */
.main-content { padding: 28px 20px 60px; min-height: calc(100vh - 200px); }
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 1.8rem; margin-bottom: 6px; color: var(--ruc-red); }
.page-header p { color: var(--text-light); }

/* ===== 卡片 ===== */
.card { background: var(--card-bg); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; box-shadow: var(--shadow); border: 1px solid rgba(174,11,42,.06); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card h2 { font-size: 1.25rem; color: var(--text); }

/* ===== Hero 横幅 ===== */
.hero {
  background: linear-gradient(135deg, var(--ruc-red) 0%, #c4123a 50%, var(--ruc-red-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: 38px; margin-bottom: 24px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero::before { content: ''; position: absolute; top: -40px; right: -40px; width: 200px; height: 200px; background: rgba(255,255,255,.08); border-radius: 50%; }
.hero::after { content: ''; position: absolute; bottom: -60px; left: 30%; width: 160px; height: 160px; background: rgba(200,164,92,.15); border-radius: 50%; }
.hero-content { position: relative; z-index: 1; display: flex; align-items: center; gap: 24px; }
.hero h1 { font-size: 1.9rem; margin-bottom: 8px; }
.hero p { opacity: .95; font-size: 1.05rem; }
.hero-badges { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.hero-badge { background: rgba(255,255,255,.2); padding: 5px 14px; border-radius: 20px; font-size: .85rem; backdrop-filter: blur(4px); }

/* ===== 图片轮播 ===== */
.carousel { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; box-shadow: var(--shadow-lg); height: 320px; background: #f3f4f6; }
.carousel-track { display: flex; height: 100%; transition: transform .6s ease; }
.carousel-slide { min-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #fbeaee, #fdf6f7); }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-slide .placeholder { text-align: center; color: var(--text-light); }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(174,11,42,.7); color: #fff; border: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; z-index: 2; transition: background .2s; }
.carousel-btn:hover { background: var(--ruc-red); }
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }
.carousel-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: all .2s; border: none; }
.carousel-dot.active { background: #fff; transform: scale(1.3); }

/* ===== 统计 ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); border-top: 3px solid var(--ruc-red); position: relative; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; top: -20px; right: -20px; width: 60px; height: 60px; background: var(--ruc-red-light); border-radius: 50%; }
.stat-num { font-size: 2rem; font-weight: 700; color: var(--ruc-red); position: relative; }
.stat-label { color: var(--text-light); font-size: .9rem; margin-top: 4px; position: relative; }

/* ===== 首页双栏 ===== */
.home-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }
@media (max-width: 800px) { .home-grid { grid-template-columns: 1fr; } }

/* ===== 分类卡片 ===== */
.category-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; padding-top: 8px; }
.category-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 24px; background: #fff;
  box-shadow: var(--shadow); font-size: .9rem; color: var(--text);
  border: 2px solid transparent; transition: all .2s; cursor: pointer;
}
.category-chip:hover { transform: translateY(-2px); text-decoration: none; }
.category-chip.active { border-color: var(--ruc-red); color: var(--ruc-red); }
.category-chip .count { background: var(--ruc-red-light); color: var(--ruc-red); padding: 1px 8px; border-radius: 10px; font-size: .78rem; font-weight: 600; }
.chip-wrap { position: relative; display: inline-flex; }
.chip-del { margin: 0; padding: 0; }
.chip-del-btn {
  position: absolute; top: -7px; right: -7px;
  width: 19px; height: 19px; padding: 0;
  border-radius: 50%; border: 1px solid var(--danger);
  background: #fff; color: var(--danger);
  font-size: .68rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  -webkit-appearance: none; appearance: none;
}
.chip-del-btn:active { background: var(--danger); color: #fff; }
.category-chip.chip-featured { background: #fbf6ea; border-color: var(--gold); font-weight: 600; }
.category-chip.chip-featured.active { background: var(--gold); color: #fff; border-color: var(--gold); }
.category-chip.chip-featured .count { background: rgba(201,169,97,.18); color: #9a7b2e; }
.category-chip.chip-featured.active .count { background: rgba(255,255,255,.25); color: #fff; }

.category-section { margin-bottom: 28px; }
.category-section-title {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--ruc-red-light);
}
.category-section-title h3 { font-size: 1.2rem; color: var(--ruc-red); }
.category-section-title .badge-count { background: var(--ruc-red); color: #fff; padding: 2px 10px; border-radius: 10px; font-size: .8rem; }

/* ===== 照片 ===== */
.tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tab { padding: 8px 18px; border-radius: 20px; background: #fff; color: var(--text-light); font-size: .9rem; box-shadow: var(--shadow); }
.tab:hover { text-decoration: none; color: var(--ruc-red); }
.tab.active { background: linear-gradient(135deg, var(--ruc-red), var(--ruc-red-dark)); color: #fff; }

.upload-card { border-left: 4px solid var(--ruc-red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.secondary-form { display: inline-flex; gap: 10px; align-items: flex-end; }
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .secondary-form { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .secondary-form .form-group { width: 100%; }
  .secondary-form .btn { width: 100%; }
}

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.photo-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: transform .2s; }
.photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.photo-media { background: #f3f4f6; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.photo-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photo-card:hover .photo-media img { transform: scale(1.05); }
.photo-media video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.file-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-light); }
.file-placeholder .file-icon { font-size: 2.5rem; }
.file-placeholder .file-ext { font-size: .85rem; font-weight: 600; background: var(--ruc-red-light); color: var(--ruc-red); padding: 2px 10px; border-radius: 4px; }
.photo-info { padding: 12px 14px; }
.photo-title { font-size: 1rem; margin-bottom: 4px; word-break: break-all; }
.photo-desc { font-size: .85rem; color: var(--text-light); margin-bottom: 8px; }
.photo-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: .78rem; color: var(--text-light); margin-bottom: 10px; }
.photo-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.move-select { padding: 5px 8px; font-size: .8rem; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; color: var(--text); cursor: pointer; max-width: 120px; }

.photo-grid-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.photo-item-mini { }
.photo-item-mini img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.file-thumb { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; background: #f3f4f6; border-radius: 8px; gap: 4px; font-size: 1.5rem; }
.file-thumb .file-name { font-size: .7rem; color: var(--text-light); text-align: center; padding: 0 4px; word-break: break-all; }
.photo-grid-mini .photo-meta { margin-top: 6px; flex-direction: column; gap: 2px; }
.photo-grid-mini .photo-title { font-size: .82rem; font-weight: 600; }
.photo-grid-mini .photo-user { font-size: .72rem; color: var(--text-light); }

/* ===== 表单 ===== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: .9rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: .95rem; font-family: inherit; background: #fff; transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--ruc-red); box-shadow: 0 0 0 3px rgba(174,11,42,.12); }
.file-input { padding: 8px; }

/* ===== 论坛 ===== */
.post-list { list-style: none; }
.post-item { padding: 14px 0; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; }
.post-item:hover { background: rgba(174,11,42,.03); }
.post-item:last-child { border-bottom: none; }
.post-title { font-size: 1.05rem; font-weight: 600; color: var(--text); }
.post-title:hover { color: var(--ruc-red); text-decoration: none; }
.post-meta { display: flex; gap: 16px; font-size: .82rem; color: var(--text-light); margin-top: 6px; flex-wrap: wrap; }
.post-list.full .post-item { padding: 16px 0; }

.post-detail .post-title-lg { font-size: 1.5rem; margin-bottom: 10px; color: var(--ruc-red); }
.post-content { margin-top: 14px; font-size: 1rem; }

.reply-list { margin-bottom: 20px; }
.reply-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.reply-item:last-child { border-bottom: none; }
.reply-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
.reply-user { font-weight: 600; font-size: .9rem; color: var(--ruc-red); }
.reply-time { font-size: .8rem; color: var(--text-light); }
.reply-content { font-size: .95rem; }
.reply-form { border-top: 1px solid var(--border); padding-top: 18px; }
.back-link { display: inline-block; margin-bottom: 16px; font-size: .9rem; }

/* ===== 捐赠 ===== */
.donation-hero {
  background: linear-gradient(135deg, #fff8e6, #fef3c7);
  border-radius: var(--radius); padding: 30px; margin-bottom: 24px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  border: 1px solid #fde68a;
}
.donation-hero .qr-placeholder {
  width: 140px; height: 140px; background: #fff; border: 2px dashed var(--ruc-gold);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: .82rem; text-align: center; padding: 10px;
  flex-shrink: 0;
}
.donation-hero .qr-real {
  width: 200px; flex-shrink: 0; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.12); border: 1px solid #fde68a;
}
.donation-hero .qr-real img { width: 100%; display: block; }
.donation-hero .donation-text h2 { color: #92400e; margin-bottom: 8px; }
.donation-hero .donation-text p { color: #92400e; opacity: .85; }

.donation-list { display: flex; flex-direction: column; gap: 12px; }
.donation-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow);
  border-left: 4px solid var(--ruc-gold);
}
.donation-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--ruc-gold), #b08d45);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.donation-info { flex: 1; }
.donation-name { font-weight: 600; }
.donation-msg { font-size: .85rem; color: var(--text-light); margin-top: 2px; }
.donation-amount { font-size: 1.2rem; font-weight: 700; color: var(--ruc-red); }
.anon-check { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 14px; font-size: .9rem; color: var(--text); cursor: pointer; }
.anon-check input { margin-top: 3px; }
.anon-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; font-size: .72rem; font-weight: 500; background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; vertical-align: middle; }
.manual-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; font-size: .72rem; font-weight: 500; background: #fbf6ea; color: #9a7b2e; border: 1px solid #e7d8b0; vertical-align: middle; }
.donation-time { font-size: .78rem; color: var(--text-light); text-align: right; }

/* ===== 表格 ===== */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: .9rem; }
.data-table th { background: #fdf6f7; font-weight: 600; color: var(--ruc-red); }
.data-table .actions { white-space: nowrap; display: flex; gap: 6px; flex-wrap: wrap; }

/* ===== 徽章 ===== */
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: .78rem; font-weight: 500; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-error { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }

/* ===== 个人中心 ===== */
.profile-info { display: flex; flex-direction: column; gap: 10px; }
.info-row { font-size: .98rem; }
.info-label { color: var(--text-light); display: inline-block; width: 100px; }

/* ===== 提示 ===== */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .92rem; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-info { background: #dbeafe; color: #1e40af; }
.alert-warning { background: #fef3c7; color: #92400e; }

.empty { color: var(--text-light); text-align: center; padding: 24px; }
.muted { color: var(--text-light); font-size: .85rem; }

/* ===== 认证页面 ===== */
.auth-body {
  background: linear-gradient(135deg, var(--ruc-red) 0%, var(--ruc-red-dark) 60%, #6b0719 100%);
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 28px 20px;
  position: relative; overflow-x: hidden;
}
.auth-body::before { content: ''; position: absolute; top: -100px; left: -100px; width: 400px; height: 400px; background: rgba(200,164,92,.12); border-radius: 50%; }
.auth-body::after { content: ''; position: absolute; bottom: -120px; right: -80px; width: 350px; height: 350px; background: rgba(255,255,255,.06); border-radius: 50%; }

.auth-container { width: 100%; max-width: 460px; position: relative; z-index: 1; }
.auth-card { background: #fff; border-radius: 18px; padding: 36px 32px; box-shadow: 0 25px 60px rgba(0,0,0,.25); position: relative; overflow: hidden; }
.auth-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--ruc-red), var(--ruc-gold), var(--ruc-red)); }
.text-center { text-align: center; }
.auth-logos { display: flex; justify-content: center; align-items: center; gap: 16px; margin-bottom: 18px; }
.auth-logo-img { width: 60px; height: 60px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 3px 10px rgba(174,11,42,.15); }
.auth-logo-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.auth-logo-text { font-size: .7rem; color: var(--text-light); text-align: center; }
.auth-logo h1 { font-size: 1.5rem; margin: 10px 0 4px; color: var(--ruc-red); }
.auth-subtitle { color: var(--text-light); font-size: .9rem; }
.auth-form { margin-bottom: 18px; }
.auth-footer { text-align: center; font-size: .9rem; color: var(--text-light); }
.auth-beian { text-align: center; margin: 14px 0 0; font-size: .78rem; }
.auth-beian a { color: rgba(255,255,255,.85); text-decoration: none; }
.auth-beian a:hover { color: #fff; text-decoration: underline; }
.auth-links { display: flex; justify-content: space-between; font-size: .85rem; margin: -8px 0 16px; }

/* ===== 底部 ===== */
.site-footer { background: linear-gradient(135deg, #1f2937, #111827); color: #9ca3af; padding: 22px 0; text-align: center; font-size: .85rem; }
.site-footer p { margin: 4px 0; }
.site-footer .beian a { color: #9ca3af; text-decoration: none; font-size: .8rem; }
.site-footer .beian a:hover { color: #d1d5db; text-decoration: underline; }
.site-footer .police-beian { margin-left: 14px; }

/* ===== 贴纸 / 装饰元素 ===== */
.sticker { position: absolute; pointer-events: none; opacity: .85; animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(5deg); } }
@keyframes pop { 0% { transform: scale(.8); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.pop-in { animation: pop .4s ease-out; }

.secondary-gate {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px dashed var(--ruc-gold); border-radius: var(--radius);
  padding: 24px; text-align: center; margin-bottom: 20px;
}
.secondary-gate h3 { color: #92400e; margin-bottom: 12px; }

.password-reveal { font-family: monospace; background: #f3f4f6; padding: 4px 10px; border-radius: 6px; color: var(--ruc-red); font-weight: 600; }

/* ===== 弹窗 Modal ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  display: none; align-items: center; justify-content: center; z-index: 1000;
  padding: 20px; backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3);
  animation: popIn .25s ease;
}
@keyframes popIn { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--ruc-red-light), #fff);
  border-radius: 16px 16px 0 0;
}
.modal-header h3 { color: var(--ruc-red); font-size: 1.15rem; }
.modal-close {
  background: none; border: none; font-size: 1.5rem; cursor: pointer;
  color: var(--text-light); width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.modal-close:hover { background: var(--ruc-red-light); color: var(--ruc-red); }
.modal-body { padding: 22px; }
.modal-footer { padding: 0 22px 22px; display: flex; gap: 10px; justify-content: flex-end; }

/* ===== 灯箱 Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center; z-index: 2000;
  padding: 30px;
}
.lightbox.active { display: flex; }
.lightbox-content { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
/* 灯箱：模糊缩略图打底，大图加载完淡入 */
.lightbox-stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  max-width: 92vw; max-height: 86vh; min-width: 260px; min-height: 180px;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  border-radius: 8px; overflow: hidden;
}
.lightbox-stage::before {
  content: ''; position: absolute; inset: 0; backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px); background: rgba(0,0,0,.15);
}
.lightbox-stage .lightbox-full {
  position: relative; opacity: 0; transition: opacity .35s ease; z-index: 2;
}
.lightbox-stage .lightbox-full.loaded { opacity: 1; }
.lightbox-spinner {
  position: absolute; z-index: 1; color: #fff; font-size: .9rem;
  background: rgba(0,0,0,.45); padding: 6px 14px; border-radius: 16px;
}
.lightbox video { max-width: 92vw; max-height: 86vh; }
.lightbox-close {
  position: absolute; top: 20px; right: 26px; background: rgba(255,255,255,.15);
  color: #fff; border: none; width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.6rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); color: #fff; border: none;
  width: 50px; height: 50px; border-radius: 50%; font-size: 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-info {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: #fff; text-align: center; background: rgba(0,0,0,.5); padding: 10px 20px;
  border-radius: 10px; max-width: 80%;
}
.lightbox-info .title { font-weight: 600; margin-bottom: 4px; }
.lightbox-info .meta { font-size: .82rem; opacity: .8; }

/* ===== 照片网格（可选 + 悬停操作）===== */
.photo-card { position: relative; }
.photo-select {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  width: 22px; height: 22px; cursor: pointer; accent-color: var(--ruc-red);
  opacity: 0; transition: opacity .2s;
}
.photo-card:hover .photo-select, .photo-select:checked { opacity: 1; }
.photo-card.selected { outline: 3px solid var(--ruc-red); outline-offset: -3px; }
.photo-card.selected .photo-select { opacity: 1; }
.photo-card .photo-media { cursor: pointer; position: relative; }
.photo-card .photo-media::after {
  content: '🔍'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 1.8rem; opacity: 0; transition: opacity .2s; pointer-events: none;
}
.photo-card .photo-media:hover::after { opacity: .9; }

/* ===== 工具栏 ===== */
.toolbar {
  display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; align-items: center;
  background: #fff; padding: 12px 16px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.toolbar .spacer { flex: 1; }
.selection-info { font-size: .88rem; color: var(--text-light); }
.selection-info strong { color: var(--ruc-red); }

/* ===== 响应式：平板与大屏手机 (≤768px) ===== */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch; }
  .main-nav::-webkit-scrollbar { display: none; }
  .user-name { display: none; }
  .hero { padding: 24px; }
  .hero h1 { font-size: 1.4rem; }
  .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .carousel { height: 220px; }
  .lightbox-nav { width: 44px; height: 44px; }
  .modal { max-width: 94vw; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .photo-grid-mini { grid-template-columns: repeat(3, 1fr); }
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .form-group input, .form-group textarea, .form-group select { font-size: 16px; min-height: 44px; }
  .main-content { padding-bottom: 80px; }
}

/* ===== 响应式：手机竖屏 (≤480px) ===== */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .hero { padding: 20px 16px; border-radius: 12px; }
  .hero h1 { font-size: 1.25rem; }
  .hero p { font-size: .95rem; }
  .hero-badges { gap: 6px; }
  .hero-badge { font-size: .78rem; padding: 4px 10px; }
  .page-header h1 { font-size: 1.4rem; }
  .card { padding: 16px; border-radius: 12px; }
  .card h2 { font-size: 1.1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 16px 10px; }
  .stat-num { font-size: 1.6rem; }
  .stat-label { font-size: .8rem; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .photo-info { padding: 8px 10px; }
  .photo-title { font-size: .88rem; }
  .photo-meta { font-size: .72rem; gap: 6px; }
  .modal-overlay { padding: 0; }
  .modal { max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; display: flex; flex-direction: column; }
  .modal-body { flex: 1; overflow-y: auto; padding: 16px; }
  .modal-header { border-radius: 0; padding: 14px 16px; }
  .modal-footer { padding: 12px 16px; }
  .toolbar { padding: 10px; gap: 8px; }
  .toolbar .btn { padding: 8px 12px; font-size: .85rem; }
  .category-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; padding-bottom: 4px; }
  .category-bar::-webkit-scrollbar { display: none; }
  .post-item { padding: 12px 0; }
  .post-title { font-size: 1rem; }
  .post-meta { gap: 10px; font-size: .78rem; }
  .auth-card { padding: 24px 18px; border-radius: 14px; }
  .auth-logo-img { width: 52px; height: 52px; }
  .auth-logo-img img { width: 100%; height: 100%; }
  .lightbox-content { max-width: 96vw; max-height: 80vh; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.2rem; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-info { max-width: 92%; padding: 8px 14px; }
  .donation-hero { flex-direction: column; text-align: center; padding: 20px; }
  .donation-item { padding: 12px; gap: 10px; }
  .donation-avatar { width: 38px; height: 38px; font-size: .95rem; }
  .donation-amount { font-size: 1.05rem; }
  .data-table th, .data-table td { padding: 8px 10px; font-size: .82rem; }
}

/* ===== 手机端底部固定导航栏 ===== */
.mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(0,0,0,.08);
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
}
.mobile-bottom-nav .nav-items { display: flex; justify-content: space-around; align-items: center; }
.mobile-bottom-nav .nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--text-light); font-size: .7rem; text-decoration: none;
  padding: 4px 8px; flex: 1;
}
.mobile-bottom-nav .nav-item .icon { font-size: 1.3rem; }
.mobile-bottom-nav .nav-item.active { color: var(--ruc-red); }
@media (max-width: 768px) {
  .mobile-bottom-nav { display: block; }
  .site-header .main-nav { display: none; }
}

/* ===== 首页捐赠留言竖向滚动 ===== */
.donation-scroll {
  background: linear-gradient(135deg, #fff5f5, #fef2f2);
  border: 1px solid #fecaca; border-radius: 12px;
  padding: 16px 20px; margin: 24px 0;
}
.scroll-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.scroll-header h2 { font-size: 1.1rem; color: var(--ruc-red); margin: 0; }
.scroll-viewport {
  height: 180px; overflow: hidden; position: relative;
}
.scroll-track {
  animation: scroll-up 30s linear infinite;
}
.scroll-item {
  display: flex; gap: 12px; align-items: baseline;
  padding: 8px 4px; border-bottom: 1px dashed #fecaca;
  font-size: .92rem;
}
.scroll-item:last-child { border-bottom: none; }
.scroll-name {
  flex-shrink: 0; font-weight: 600; color: var(--ruc-red);
  min-width: 70px;
}
.scroll-msg { color: var(--text); flex: 1; }
.donation-scroll:hover .scroll-track { animation-play-state: paused; }
@keyframes scroll-up {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@media (max-width: 480px) {
  .donation-scroll { padding: 12px 14px; margin: 16px 0; }
  .scroll-viewport { height: 150px; }
  .scroll-item { font-size: .85rem; padding: 7px 2px; }
  .scroll-name { min-width: 56px; }
  .scroll-track { animation-duration: 25s; }
}

/* ===== 统辩队员区：头像系统 ===== */
.member-avatar {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--ruc-red), var(--ruc-red-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.5rem; flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(174,11,42,.18);
}
.member-avatar.avatar-fallback { background: linear-gradient(135deg, var(--ruc-gold), #b08d45); }
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-avatar.sm { width: 40px; height: 40px; font-size: 1rem; box-shadow: none; }
.member-avatar.lg { width: 76px; height: 76px; font-size: 1.8rem; }
.member-avatar.xl { width: 104px; height: 104px; font-size: 2.4rem; }

/* 队员名录 */
.year-heading {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  padding-bottom: 10px; border-bottom: 2px solid var(--ruc-red-light);
}
.year-badge {
  background: linear-gradient(135deg, var(--ruc-red), var(--ruc-red-dark));
  color: #fff; font-weight: 700; font-size: 1.05rem;
  padding: 4px 16px; border-radius: 20px;
}
.year-count { color: var(--text-light); font-size: .85rem; }
.member-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 18px 12px;
}
.member-cell {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; padding: 12px 6px; border-radius: 12px;
  transition: background .18s ease, transform .18s ease;
}
.member-cell:hover { background: var(--ruc-red-light); transform: translateY(-3px); }
.member-cell .member-avatar { transition: box-shadow .18s ease; }
.member-cell:hover .member-avatar { box-shadow: 0 6px 16px rgba(174,11,42,.3); }
.member-name {
  font-size: .9rem; font-weight: 600; text-align: center;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 队员介绍弹窗 */
.member-modal-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.member-modal-name { font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.member-modal-year { color: var(--text-light); font-size: .88rem; margin-top: 2px; }
.member-intro {
  white-space: pre-wrap; word-break: break-word; line-height: 1.8;
  background: var(--ruc-red-light); border-radius: 10px; padding: 14px 16px;
  border-left: 4px solid var(--ruc-red);
}
.intro-form textarea, .form-group textarea {
  width: 100%; font-family: inherit; line-height: 1.7; resize: vertical;
}
.intro-form { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* 荣誉墙 */
.honor-list { display: flex; flex-direction: column; gap: 14px; }
.honor-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px; border-radius: 12px;
  background: linear-gradient(135deg, #fffdf5, #fef7e6);
  border: 1px solid #f0e0b8;
}
.honor-medal { font-size: 1.8rem; line-height: 1; }
.honor-title { font-weight: 700; font-size: 1.02rem; color: #7a5a17; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.honor-year {
  background: var(--ruc-gold); color: #fff; font-size: .75rem; font-weight: 600;
  padding: 1px 10px; border-radius: 10px;
}
.honor-desc { color: var(--text-light); font-size: .88rem; margin-top: 4px; }

/* ===== 捐赠区财务公示 ===== */
.finance-summary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 24px;
}
.finance-card {
  background: #fff; border-radius: var(--radius); padding: 22px 16px; text-align: center;
  box-shadow: var(--shadow); border-top: 4px solid var(--ruc-gold);
}
.finance-card.finance-clickable { cursor: pointer; border-top-color: var(--ruc-red); transition: transform .18s ease, box-shadow .18s ease; }
.finance-card.finance-clickable:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.finance-num { font-size: 1.7rem; font-weight: 800; margin-bottom: 6px; }
.finance-num.income { color: var(--success); }
.finance-num.expense { color: var(--ruc-red); }
.finance-num.balance { color: var(--ruc-gold); }
.finance-label { color: var(--text-light); font-size: .85rem; }

/* ===== 个人中心顶部 ===== */
.profile-top { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.profile-avatar-action h2 { margin: 0 0 4px; }
.avatar-form { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.avatar-form input[type="file"] { font-size: .85rem; max-width: 100%; }

@media (max-width: 768px) {
  .member-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 14px 8px; }
  .member-avatar { width: 56px; height: 56px; font-size: 1.3rem; }
  .member-avatar.xl { width: 88px; height: 88px; font-size: 2rem; }
  .finance-summary { gap: 10px; }
  .finance-card { padding: 16px 8px; }
  .finance-num { font-size: 1.25rem; }
  .finance-label { font-size: .72rem; }
  .profile-top { flex-direction: column; text-align: center; align-items: center; }
  .profile-avatar-action { display: flex; flex-direction: column; align-items: center; }
  .avatar-form { align-items: center; }
  /* 底部导航 7 项时更紧凑 */
  .mobile-bottom-nav .nav-item { padding: 4px 2px; font-size: .62rem; }
  .mobile-bottom-nav .nav-item .icon { font-size: 1.15rem; }
}
