/* ============================================================
   凤凰机器人学生作品展示系统 - 主样式
   大气 · 科技 · 上档次
   ============================================================ */

/* ========== 全局变量 (默认风格) ========== */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.85);
  --bg-card-hover: rgba(30, 41, 59, 0.95);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #e63946;
  --accent-glow: rgba(230, 57, 70, 0.4);
  --accent-secondary: #f77f00;
  --gradient-primary: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
  --gradient-hero: linear-gradient(135deg, #0a0e1a 0%, #1a1f3a 50%, #0a0e1a 100%);
  --border-color: rgba(148, 163, 184, 0.15);
  --border-hover: rgba(230, 57, 70, 0.4);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(230, 57, 70, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }

/* ========== 顶部导航 ========== */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.nav-title {
  font-size: 18px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 15px;
  color: var(--text-secondary);
  transition: all 0.3s;
  position: relative;
}

.nav-link:hover { color: var(--text-primary); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

.nav-admin {
  color: var(--accent-secondary);
  font-weight: 600;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.nav-avatar-text {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.nav-nick {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.nav-logout {
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}
.nav-logout:hover { color: var(--accent); border-color: var(--accent); }

.btn-login {
  padding: 8px 24px;
  border-radius: 8px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 6px 24px var(--accent-glow); }

/* ========== 主容器 ========== */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 68px 32px 0;
}

/* ========== Hero 区域 ========== */
.hero-section {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(230, 57, 70, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 57, 70, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  filter: blur(60px);
  animation: heroGlow 6s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  100% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 20px;
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid var(--accent-glow);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  letter-spacing: 1px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 42px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--border-color);
}

/* ========== 通用 Section ========== */
.section {
  padding: 60px 0;
}

.section-header {
  margin-bottom: 36px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.section-icon {
  font-size: 28px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
}

.section-badge {
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-left: 40px;
}

/* ========== 优秀作品 ========== */
.excellent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.excellent-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.excellent-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.excellent-cover {
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
}

.excellent-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.excellent-card:hover .excellent-cover img { transform: scale(1.08); }

.excellent-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.8) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.excellent-card:hover .excellent-overlay { opacity: 1; }

.excellent-play {
  padding: 10px 28px;
  border-radius: 24px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.excellent-tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f77f00, #e63946);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
}

.excellent-info {
  padding: 16px 20px;
}

.excellent-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.excellent-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.mini-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.mini-avatar-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.excellent-meta {
  margin-left: auto;
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.detail-link {
  display: block;
  padding: 10px 20px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--accent);
  text-align: center;
  transition: background 0.3s;
}
.detail-link:hover { background: rgba(230, 57, 70, 0.08); }

/* ========== 学生创作者 ========== */
.students-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.student-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.student-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.student-cover-bg {
  width: 100%;
  height: 100px;
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  opacity: 0.4;
}

.student-avatar-wrap {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.student-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-secondary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.student-avatar-text {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.student-info {
  padding: 48px 20px 20px;
  text-align: center;
}

.student-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.student-school {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.student-work-count {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(230, 57, 70, 0.1);
}

.count-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}

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

/* ========== 空状态 ========== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-logo {
  width: 80px;
  margin: 0 auto 20px;
  opacity: 0.3;
}

/* ========== 学生详情页头部 ========== */
.student-header-section {
  position: relative;
  padding: 40px 0 30px;
  overflow: hidden;
}

.student-header-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  opacity: 0.5;
}

.student-header-content {
  position: relative;
  z-index: 1;
}

.back-link {
  display: inline-block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  transition: color 0.3s;
}
.back-link:hover { color: var(--accent); }

.student-profile {
  display: flex;
  align-items: center;
  gap: 32px;
}

.profile-avatar-wrap { flex-shrink: 0; }

.profile-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.profile-avatar-text {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 48px;
  font-weight: 800;
}

.profile-name {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}

.profile-school {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.profile-stats {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--text-secondary);
}

.profile-stats strong {
  font-size: 24px;
  color: var(--accent);
  margin-right: 4px;
}

/* ========== 作品卡片网格 ========== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.work-cover {
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
  cursor: pointer;
}

.work-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.work-card:hover .work-cover img { transform: scale(1.08); }

.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.work-cover:hover .work-overlay { opacity: 1; }

.work-play-btn {
  padding: 12px 32px;
  border-radius: 28px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.work-excellent-tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f77f00, #e63946);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
}

.work-card-body {
  padding: 20px;
}

.work-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.work-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

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

.work-card-stats {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

.work-detail-btn {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(230, 57, 70, 0.1);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}
.work-detail-btn:hover { background: var(--gradient-primary); color: #fff; }

/* ========== 作品详情页 ========== */
.detail-header {
  position: relative;
  padding: 40px 0;
  overflow: hidden;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(40px);
  opacity: 0.2;
  transform: scale(1.2);
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 50%, var(--bg-primary) 100%);
}

.detail-content {
  position: relative;
  z-index: 1;
}

.detail-cover-wrap {
  position: relative;
  margin-bottom: 32px;
}

.detail-cover {
  width: 100%;
  max-height: 450px;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  background: var(--bg-secondary);
}

.detail-excellent-badge {
  position: absolute;
  top: 16px; left: 16px;
  padding: 8px 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f77f00, #e63946);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.detail-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.detail-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.detail-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.detail-avatar-text {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.detail-author-info {
  display: flex;
  flex-direction: column;
}

.detail-author-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s;
}
.detail-author-name:hover { color: var(--accent); }

.detail-author-school {
  font-size: 13px;
  color: var(--text-muted);
}

.detail-date {
  margin-left: auto;
  font-size: 14px;
  color: var(--text-muted);
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.btn-primary {
  padding: 14px 36px;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 4px 20px var(--accent-glow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--accent-glow); }
.btn-large { padding: 16px 44px; font-size: 17px; }

.btn-like {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-like:hover { border-color: var(--accent); }

.btn-like.liked {
  border-color: var(--accent);
  background: rgba(230, 57, 70, 0.1);
  color: var(--accent);
}

.like-icon { font-size: 18px; }
.like-count {
  padding: 2px 10px;
  border-radius: 10px;
  background: rgba(230, 57, 70, 0.15);
  font-size: 13px;
  font-weight: 700;
}

.detail-stats-row {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-secondary);
}
.detail-stats-row strong { color: var(--text-primary); font-size: 18px; }

/* ========== 作品说明 ========== */
.detail-desc-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
}

.detail-desc-text {
  font-size: 16px;
  line-height: 2;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.no-desc {
  text-align: center;
  color: var(--text-muted);
  padding: 20px;
}

/* ========== 评论区 ========== */
.comment-input-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}

.comment-input-row {
  display: flex;
  gap: 16px;
}

.comment-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--accent);
}

.comment-avatar-text {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.comment-input-wrap {
  flex: 1;
}

.comment-input-wrap textarea {
  width: 100%;
  min-height: 80px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.3s;
}

.comment-input-wrap textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.comment-input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

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

.btn-submit {
  padding: 10px 28px;
  border-radius: 8px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 16px var(--accent-glow); }
.btn-small { padding: 8px 20px; font-size: 13px; }

.comment-login-hint {
  text-align: center;
  padding: 20px;
}
.comment-login-hint p { color: var(--text-muted); margin-bottom: 12px; font-size: 14px; }

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-item {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  animation: fadeInUp 0.4s ease;
}

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

.comment-body { flex: 1; }

.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-nick {
  font-size: 15px;
  font-weight: 600;
}

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

.comment-delete {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s;
}
.comment-delete:hover { color: var(--accent); }

.comment-content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.loading-text {
  text-align: center;
  color: var(--text-muted);
  padding: 40px;
}

.no-comments {
  text-align: center;
  color: var(--text-muted);
  padding: 40px;
  font-size: 14px;
}

/* ========== 登录弹窗 ========== */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 36px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}
.modal-close:hover { color: var(--accent); }

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo {
  width: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.login-header h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.login-header p {
  font-size: 13px;
  color: var(--text-muted);
}

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

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.required { color: var(--accent); }

.login-msg, .form-msg {
  font-size: 13px;
  margin: 12px 0;
  min-height: 18px;
  text-align: center;
}
.form-msg.error, .login-msg.error { color: #ef4444; }
.form-msg.success { color: #22c55e; }

.login-form .btn-submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  margin-top: 8px;
}

/* ========== 后台管理 ========== */
.admin-page {
  padding: 40px 0 80px;
}

.admin-header {
  text-align: center;
  margin-bottom: 40px;
}

.admin-header h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-header p {
  color: var(--text-muted);
  font-size: 15px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  background: var(--bg-card);
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
}

.admin-tab {
  flex: 1;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.admin-tab:hover { color: var(--text-primary); }

.admin-tab.active {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.admin-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
}

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

.panel-header h2 {
  font-size: 22px;
  font-weight: 700;
}

.panel-count {
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--bg-secondary);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  padding: 14px 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 12px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: rgba(230, 57, 70, 0.03);
}

.admin-thumb {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}

.admin-work-title {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.admin-time {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.admin-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.btn-edit {
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-edit:hover { background: #3b82f6; color: #fff; }

.btn-delete {
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-delete:hover { background: #ef4444; color: #fff; }

/* 后台表单 */
.admin-form {
  max-width: 700px;
}

.student-selector {
  position: relative;
}

.student-search-results {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0 0 10px 10px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.student-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.student-result-item:hover { background: rgba(230, 57, 70, 0.08); }

.sr-nick { font-size: 14px; font-weight: 500; }
.sr-uid { font-size: 12px; color: var(--text-muted); margin-left: auto; }

.student-result-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.selected-student {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid var(--accent-glow);
  border-radius: 10px;
}

.selected-uid {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}

.btn-clear {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.btn-clear:hover { background: #ef4444; color: #fff; }

.form-preview {
  margin-top: 12px;
  width: 200px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.form-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-check-group {
  display: flex;
  align-items: center;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}

.check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-reset {
  padding: 12px 28px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-reset:hover { border-color: var(--text-muted); color: var(--text-primary); }

/* 编辑弹窗 */
.edit-box {
  max-width: 560px;
}
.edit-box h3 {
  font-size: 20px;
  margin-bottom: 24px;
}

/* ========== 皮肤设置 ========== */
.skin-tip-text {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.skin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.skin-card {
  position: relative;
  padding: 28px 16px;
  border-radius: var(--radius);
  border: 2px solid var(--border-color);
  background: var(--bg-secondary);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.skin-card:hover {
  transform: translateY(-4px);
  border-color: var(--text-muted);
}

.skin-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.skin-preview-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.skin-name {
  font-size: 14px;
  font-weight: 600;
}

.skin-current {
  position: absolute;
  top: 8px; right: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.skin-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.skin-selected-hint {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

/* ========== 皮肤提示条 ========== */
.skin-tip {
  position: fixed;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  padding: 8px 24px;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4);
  animation: tipSlide 0.5s ease;
}

@keyframes tipSlide {
  from { transform: translateX(-50%) translateY(-100%); }
  to { transform: translateX(-50%) translateY(0); }
}

/* ========== 圣诞节汉堡角色 ========== */
.xmas-burger {
  position: fixed;
  bottom: 20px;
  z-index: 998;
  animation: burgerWalk 15s linear infinite;
  pointer-events: none;
}

.burger-body {
  position: relative;
  font-size: 48px;
}

.burger-top {
  animation: burgerBounce 0.5s ease-in-out infinite alternate;
}

.santa-hat {
  position: absolute;
  top: -20px;
  left: 10px;
  font-size: 28px;
  transform: rotate(-15deg);
}

@keyframes burgerWalk {
  0% { left: -80px; }
  100% { left: calc(100% + 80px); }
}

@keyframes burgerBounce {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

/* ========== 页脚 ========== */
.site-footer {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.footer-logo {
  width: 48px;
  border-radius: 12px;
}

.footer-text p {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-sub {
  font-size: 12px !important;
  color: var(--text-muted) !important;
  font-weight: 400 !important;
  margin-top: 4px;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .nav-inner { padding: 0 16px; }
  .nav-title { display: none; }
  .main-container { padding: 68px 16px 0; }
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 14px; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 28px; }
  .section-title { font-size: 24px; }
  .student-profile { flex-direction: column; text-align: center; }
  .profile-stats { justify-content: center; }
  .detail-title { font-size: 24px; }
  .detail-actions { flex-direction: column; }
  .btn-primary, .btn-like { width: 100%; justify-content: center; }
  .admin-panel { padding: 20px; }
  .admin-tabs { flex-direction: column; }
}
