/* ===== Clovers' 动漫协会 官网样式 ===== */
:root {
  --primary: #2d8f4e;
  --primary-dark: #1f6b3a;
  --primary-light: #4caf6e;
  --accent: #ff6b9d;
  --accent-soft: #ffb3c9;
  --bg: #f0f7f2;
  --bg-card: #ffffff;
  --text: #1a2e22;
  --text-muted: #5a7260;
  --border: #c8e0d0;
  --shadow: 0 8px 30px rgba(45, 143, 78, 0.12);
  --radius: 16px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 导航 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-dark);
}

.logo-icon {
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(45, 143, 78, 0.12);
  color: var(--primary-dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 100px 20px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(76, 175, 110, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 107, 157, 0.15) 0%, transparent 50%),
    linear-gradient(160deg, #e8f5e9 0%, #f0f7f2 40%, #fff5f8 100%);
  z-index: 0;
}

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

.clover-float {
  font-size: 3.5rem;
  animation: float 3s ease-in-out infinite;
  margin-bottom: 12px;
}

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

.hero-title {
  margin-bottom: 12px;
}

.title-line {
  display: block;
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.title-main {
  display: block;
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-desc {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 16px rgba(45, 143, 78, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(45, 143, 78, 0.45);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-outline:hover {
  background: rgba(45, 143, 78, 0.1);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.section-title {
  text-align: center;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.title-icon {
  font-size: 1.4rem;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== 部门 ===== */
.departments {
  background: #fff;
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.dept-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px 22px;
  border: 1px solid var(--border);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.dept-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s;
}

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

.dept-card:hover::before {
  opacity: 1;
}

.dept-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.dept-card h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.dept-tag {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.dept-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.dept-list {
  list-style: none;
  font-size: 0.88rem;
  color: var(--text);
}

.dept-list li {
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.dept-list li::before {
  content: "🍀";
  position: absolute;
  left: 0;
  font-size: 0.7rem;
  top: 6px;
}

/* ===== 小游戏 ===== */
.game-section {
  background: linear-gradient(180deg, #e8f5e9 0%, var(--bg) 100%);
}

.game-wrapper {
  max-width: 520px;
  margin: 0 auto;
}

.game-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.game-info > div {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  border: 1px solid var(--border);
}

.game-info span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.game-info strong {
  font-size: 1.4rem;
  color: var(--primary-dark);
}

.game-area {
  position: relative;
  height: 360px;
  background: linear-gradient(180deg, #c8e6c9 0%, #a5d6a7 100%);
  border-radius: var(--radius);
  border: 3px solid var(--primary);
  overflow: hidden;
  cursor: crosshair;
}

.game-start-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
}

.game-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.game-item {
  position: absolute;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  transition: transform 0.1s;
  z-index: 5;
  animation: popIn 0.25s ease;
}

.game-item:hover {
  transform: scale(1.15);
}

.game-item.bad {
  filter: grayscale(0.3);
}

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.game-tip {
  text-align: center;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== 留言板 ===== */
.board-section {
  background: #fff;
}

.board-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 768px) {
  .board-layout {
    grid-template-columns: 1fr;
  }
}

.message-form,
.auth-box {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 143, 78, 0.15);
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.code-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.code-row input {
  flex: 1;
}

.code-row .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.code-row .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 480px;
  overflow-y: auto;
}

.message-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  animation: fadeIn 0.3s ease;
}

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

.msg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.msg-name {
  font-weight: 700;
  color: var(--primary-dark);
}

.msg-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.msg-content {
  font-size: 0.95rem;
  color: var(--text);
  word-break: break-word;
}

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

/* ===== 评分榜 ===== */
.ranking-section {
  background: linear-gradient(180deg, var(--bg) 0%, #e8f5e9 100%);
}

.ranking-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.rank-tab {
  padding: 10px 24px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.rank-tab.active,
.rank-tab:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.rank-panel {
  display: none;
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  max-width: 640px;
  margin: 0 auto;
}

.rank-panel.active {
  display: block;
}

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

.rank-table th,
.rank-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.rank-table th {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.rank-table tr:last-child td {
  border-bottom: none;
}

.rank-table .rank-num {
  font-weight: 800;
  color: var(--primary);
  width: 50px;
}

.rank-table .rank-num.gold { color: #f5a623; }
.rank-table .rank-num.silver { color: #9e9e9e; }
.rank-table .rank-num.bronze { color: #cd7f32; }

.rank-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 30px;
  display: none;
}

.rate-form-box {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.rate-form-box h4 {
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.star-rate {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 2rem;
  cursor: pointer;
}

.star-rate span {
  color: #ddd;
  transition: color 0.15s, transform 0.15s;
}

.star-rate span:hover,
.star-rate span.active {
  color: #f5a623;
  transform: scale(1.15);
}

.rate-form-box input {
  width: 100%;
  max-width: 320px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.rate-summary {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.avg-score {
  text-align: center;
  min-width: 100px;
}

.avg-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.avg-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.rate-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
}

.rate-item {
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
}

.rate-item .stars {
  color: #f5a623;
  margin-right: 8px;
}

/* ===== 登录注册 ===== */
.auth-section {
  background: #fff;
}

.auth-box {
  max-width: 420px;
  margin: 0 auto;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.auth-tab.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.user-panel {
  text-align: center;
  padding: 20px 0;
}

.user-avatar {
  font-size: 3.5rem;
  margin-bottom: 8px;
}

.user-panel h3 {
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.user-email {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* ===== 页脚 ===== */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.9);
  padding: 48px 0 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand .logo-icon {
  font-size: 1.8rem;
}

.footer-brand strong {
  font-size: 1.15rem;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-links p {
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.copyright {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary-dark);
  color: #fff;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  z-index: 9999;
  opacity: 0;
  transition: all 0.35s;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    display: block;
    padding: 12px 16px;
  }

  .hero-stats {
    gap: 24px;
  }

  .section {
    padding: 60px 0;
  }
}

/* ===== 部门主页 ===== */
.dept-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.dept-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  transition: gap 0.2s, color 0.2s;
}

.dept-more::after {
  content: "→";
  transition: transform 0.2s;
}

.dept-card:hover .dept-more {
  color: var(--accent);
}

.dept-card:hover .dept-more::after {
  transform: translateX(4px);
}

.dept-hero {
  position: relative;
  padding: 122px 0 58px;
  text-align: center;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(76, 175, 110, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(255, 107, 157, 0.13) 0%, transparent 55%),
    linear-gradient(160deg, #e8f5e9 0%, #f0f7f2 55%, #fff5f8 100%);
  border-bottom: 1px solid var(--border);
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--primary-dark);
}

.dept-hero-icon {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 10px;
  animation: float 3.2s ease-in-out infinite;
}

.dept-hero h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
}

.dept-hero-tag {
  margin-top: 8px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}

.dept-hero-slogan {
  max-width: 640px;
  margin: 16px auto 0;
  color: var(--text-muted);
  font-size: 1.04rem;
}

.dept-hero-meta {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.dept-section {
  padding: 66px 0;
}

.dept-section-alt {
  background: #fff;
}

.dept-lead {
  max-width: 780px;
  margin: 0 auto 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.dept-activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.dept-activity {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.dept-activity:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.dept-section-alt .dept-activity,
.dept-section-alt .dept-panel {
  background: var(--bg);
}

.dept-activity .ico {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 6px;
}

.dept-activity h3 {
  font-size: 1.02rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.dept-activity p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.dept-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.dept-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px;
}

.dept-panel h3 {
  color: var(--primary-dark);
  font-size: 1.08rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dept-panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.dept-panel li {
  position: relative;
  padding-left: 20px;
  font-size: 0.93rem;
  color: var(--text);
}

.dept-panel li::before {
  content: "🍀";
  position: absolute;
  left: 0;
  top: 3px;
  font-size: 0.72rem;
}

.dept-timeline {
  list-style: none;
  max-width: 760px;
  margin: 0 auto;
  border-left: 3px solid var(--border);
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dept-timeline li {
  position: relative;
}

.dept-timeline li::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary);
}

.dept-timeline h4 {
  color: var(--primary-dark);
  font-size: 1rem;
  margin-bottom: 4px;
}

.dept-timeline p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.join-cta {
  margin-top: 30px;
  padding: 32px 24px;
  border-radius: 18px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  box-shadow: 0 12px 30px rgba(45, 143, 78, 0.28);
}

.join-cta h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.join-cta p {
  font-size: 0.95rem;
  opacity: 0.92;
  margin-bottom: 18px;
}

.join-cta .btn {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: none;
}

.join-cta .btn:hover {
  transform: translateY(-2px);
}

.dept-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.dept-nav-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  transition: all 0.25s;
}

.dept-nav-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.dept-nav-card.current {
  border-color: var(--primary);
  background: rgba(45, 143, 78, 0.08);
}

.dept-nav-card .ico {
  font-size: 1.6rem;
  line-height: 1;
}

.dept-nav-card strong {
  display: block;
  color: var(--primary-dark);
  font-size: 0.98rem;
}

.dept-nav-card span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .dept-split {
    grid-template-columns: 1fr;
  }

  .dept-hero {
    padding: 104px 0 46px;
  }

  .dept-hero-meta {
    gap: 22px;
  }
}

/* ===== 部门二维码 ===== */
.dept-qr {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 28px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  flex-wrap: wrap;
}

.dept-qr .qr-img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  object-position: center 37%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  flex-shrink: 0;
}

.qr-info h3 {
  color: var(--primary-dark);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.qr-group {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 4px;
}

.qr-tip {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .dept-qr {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== 首页：交易所入口 ===== */
.exchange-promo {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 26px;
  align-items: center;
  background: linear-gradient(135deg, #10241a 0%, #163a26 55%, #1d4a30 100%);
  border-radius: 20px;
  padding: 34px;
  color: #e6f4ec;
  box-shadow: 0 18px 40px rgba(16, 36, 26, 0.25);
}

.promo-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: #8fd3a8;
  margin-bottom: 10px;
}

.exchange-promo h3 {
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  line-height: 1.35;
  margin-bottom: 10px;
  color: #f0fbf4;
}

.exchange-promo-main > p:not(.promo-kicker) {
  color: #a8c9b7;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.exchange-promo-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.exchange-promo-stats > div {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.exchange-promo-stats span {
  display: block;
  font-size: 0.72rem;
  color: #8fb3a1;
}

.exchange-promo-stats strong {
  display: block;
  font-size: 1.3rem;
  color: #b8f5cf;
  margin: 2px 0;
}

.exchange-promo-stats em {
  font-style: normal;
  font-size: 0.7rem;
  color: #7fa48f;
}

.exchange-promo-games {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.exchange-promo-games .promo-kicker {
  margin-bottom: 10px;
}

.exchange-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.exchange-game {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: #e6f4ec;
  transition: 0.2s;
}

.exchange-game:hover {
  background: rgba(143, 211, 168, 0.14);
  border-color: rgba(143, 211, 168, 0.55);
  transform: translateY(-2px);
}

.exchange-game .eg-ico {
  font-size: 1.5rem;
}

.exchange-game strong {
  color: #f0fbf4;
  font-size: 0.92rem;
}

.exchange-game span {
  color: #a8c9b7;
  font-size: 0.75rem;
  line-height: 1.6;
}

.exchange-game em {
  font-style: normal;
  color: #b8f5cf;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: auto;
}

@media (max-width: 768px) {
  .exchange-game-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== 全站动态 / 小头像 ===== */
.avatar-sm {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  background: var(--bg);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.avatar-fallback {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
}

.rank-user,
.msg-user {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.home-feed-section {
  background: #fff;
}

.home-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-feed .feed-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 9px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.82rem;
}

.home-feed .feed-type {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: rgba(45, 143, 78, 0.12);
  border-radius: 999px;
  padding: 2px 7px;
  flex-shrink: 0;
}

.home-feed .feed-text {
  flex: 1;
  min-width: 160px;
  color: var(--text);
  line-height: 1.6;
}

.home-feed .feed-text a {
  color: var(--primary-dark);
  font-weight: 600;
}

.home-feed .feed-amount {
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
  font-weight: 700;
}

.home-feed .feed-amount.up {
  color: var(--primary);
}

.home-feed .feed-amount.down {
  color: #d05a6e;
}

.home-feed .feed-time {
  color: var(--text-muted);
  font-size: 0.68rem;
  flex-shrink: 0;
}

.home-feed .feed-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .home-feed .feed-text {
    flex-basis: calc(100% - 36px);
    min-width: 0;
  }

  .home-feed .feed-time {
    margin-left: auto;
  }
}

.user-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.user-heat {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.user-heat strong {
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.msg-del {
  border: 0;
  background: none;
  color: #c62828;
  font-size: 0.76rem;
  cursor: pointer;
  margin-left: auto;
  padding: 2px 4px;
}

.msg-del:hover {
  text-decoration: underline;
}

.up {
  color: #1f8f4d;
}

.down {
  color: #c62828;
}

@media (max-width: 768px) {
  .exchange-promo {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .exchange-promo-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== 首页公告栏 ===== */
.notice-section {
  background: #fff;
}

.notice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.notice-head .section-title {
  margin-bottom: 0;
  justify-content: flex-start;
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notice-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.notice-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.notice-item-head strong {
  color: var(--primary-dark);
  font-size: 0.98rem;
}

.notice-item p {
  font-size: 0.9rem;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.notice-form {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notice-form input,
.notice-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 11px;
  font-family: inherit;
  font-size: 0.9rem;
  background: #fff;
}

.notice-form input:focus,
.notice-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.notice-form .btn {
  align-self: flex-end;
}

/* ===== 社团标志 / 海报 / 小游戏入口 ===== */
.navbar .logo-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  font-size: 0;
  background: url("../images/社团标志.jpg") center / contain no-repeat;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.exchange-body .navbar .logo-icon {
  background-color: #fff;
  mix-blend-mode: normal;
}

.poster-section {
  background: linear-gradient(180deg, #f0f7f2 0%, #e8f2ec 100%);
}

.poster-layout {
  display: grid;
  grid-template-columns: minmax(220px, 330px) 1fr;
  gap: 38px;
  align-items: center;
}

.poster-img {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(22, 58, 38, 0.25);
  transform: rotate(-1.5deg);
  transition: transform 0.3s;
}

.poster-img:hover {
  transform: rotate(0) translateY(-4px);
}

.poster-img img {
  display: block;
  width: 100%;
  height: auto;
}

.poster-copy .promo-kicker {
  color: var(--primary);
}

.poster-copy h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.poster-copy p {
  color: var(--text-muted);
  margin-bottom: 8px;
}

.poster-copy .poster-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.mini-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.mini-card .ico {
  font-size: 2rem;
}

.mini-card strong {
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.mini-card span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.mini-card em {
  font-style: normal;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: auto;
}

@media (max-width: 768px) {
  .poster-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .poster-img {
    max-width: 280px;
    margin: 0 auto;
  }

  .poster-copy .poster-btns {
    justify-content: center;
  }
}
