/* ============================================================
   扬桃 - 样式表 v3.0
   主题：活力橙 + 薄荷青 + 暖阳渐变
   ============================================================ */

/* --- CSS 变量 --- */
:root {
  --primary: #FF6B35;
  --primary-light: #FF9A6B;
  --primary-dark: #D94A16;
  --primary-bg: #FFF3EC;
  --sakura-1: #FFEDE3;
  --sakura-2: #FFDDCC;
  --sakura-3: #FFC7AD;
  --accent1: #00C9A7;
  --accent2: #FFD93D;
  --accent3: #4A90E2;
  --accent4: #22C55E;
  --bg: #FFF9F5;
  --bg-card: #FFFFFF;
  --text: #2B2D42;
  --text-light: #5C616E;
  --text-muted: #A0A6B1;
  --border: #F3E4DA;
  --shadow: 0 2px 12px rgba(255, 107, 53, 0.08);
  --shadow-lg: 0 8px 32px rgba(255, 107, 53, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
  --max-width: 1400px;
}

/* --- 全局重置 --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background-color: #7EC8F7;
  background-image:
    radial-gradient(circle at 82% 14%, rgba(255, 252, 220, 0.95) 0 4%, rgba(255, 244, 180, 0.55) 10%, rgba(255, 255, 255, 0) 24%),
    linear-gradient(180deg, #3D9BE9 0%, #77C7F4 40%, #C9EEFF 72%, #F6FDFF 100%);
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 背景已切换为本地 XP 动态壁纸视频 */

/* ==================== 视频背景 ==================== */
.video-bg {
  display: block;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 1;
  pointer-events: none;
}
/* 视频背景之上的半透明遮罩层，让内容更易读 */
.video-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.30);
  z-index: -1;
  pointer-events: none;
}
a { color: var(--primary); text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, select, textarea { font-family: inherit; font-size: 0.95rem; outline: none; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; }

/* ==================== 樱花飘落动画 ==================== */
.sakura-container {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 9999; overflow: hidden;
}
.sakura-petal {
  position: absolute; top: -60px;
  animation: sakuraFall linear forwards;
  opacity: 0.8;
  user-select: none;
}
@keyframes sakuraFall {
  0% { transform: translateY(-60px) rotate(0deg) translateX(0px); opacity: 0.9; }
  25% { transform: translateY(25vh) rotate(90deg) translateX(30px); }
  50% { transform: translateY(50vh) rotate(180deg) translateX(-20px); opacity: 0.7; }
  75% { transform: translateY(75vh) rotate(270deg) translateX(15px); }
  100% { transform: translateY(105vh) rotate(360deg) translateX(-30px); opacity: 0; }
}
@keyframes sway {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(20px); }
}

/* ==================== 按钮 ==================== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600;
  transition: all var(--transition);
}
.btn-primary { background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: #fff; box-shadow: 0 2px 8px rgba(255,107,53,0.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,107,53,0.45); }
.btn-outline { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-bg); }
.btn-outline-light { background: rgba(255,255,255,0.2); color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: rgba(255,255,255,0.35); }
.btn-danger { background: linear-gradient(135deg, #e74c3c, #c0392b); color: #fff; }
.btn-danger:hover { background: #c0392b; }
.btn-text { background: none; color: var(--primary); font-size: 0.85rem; padding: 4px 8px; }
.btn-text:hover { text-decoration: underline; }
.btn-block { width: 100%; justify-content: center; padding: 12px; font-size: 1rem; }
.btn-sm { padding: 5px 12px; font-size: 0.8rem; }
.btn-xs { padding: 3px 10px; font-size: 0.75rem; border-radius: 6px; }
.btn-lg { padding: 12px 28px; font-size: 1rem; border-radius: 24px; }
.btn-icon {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  background: transparent; color: var(--text-light); font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.btn-icon:hover { background: var(--primary-bg); color: var(--primary); }
.select-sm {
  padding: 7px 12px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); font-size: 0.85rem; cursor: pointer;
}
.badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--primary); color: #fff; font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
}

/* ==================== 顶部导航栏 ==================== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,249,245,0.94); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(255,107,53,0.06);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 12px;
  display: flex; align-items: center; height: 56px; gap: 8px;
}
.logo { display: flex; align-items: center; gap: 6px; flex-shrink: 0; cursor: pointer; }
.logo-icon {
  font-size: 1.4rem; color: var(--primary);
  animation: heartbeat 1.5s ease infinite;
}
.logo-text { font-size: 1.05rem; font-weight: 700; background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; white-space: nowrap; }
@keyframes heartbeat {
  0%,100% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  56% { transform: scale(1); }
}

.nav-tabs { display: flex; gap: 1px; flex: 1; justify-content: center; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tab {
  padding: 5px 10px; border-radius: 16px;
  background: transparent; color: var(--text-light); font-size: 0.81rem; font-weight: 500;
  transition: all var(--transition); white-space: nowrap; flex-shrink: 0;
}
.nav-tab:hover { background: var(--sakura-1); color: var(--primary); }
.nav-tab.active { background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.search-box { position: relative; }
.search-box input {
  width: 200px; padding: 8px 14px 8px 36px;
  border: 2px solid var(--border); border-radius: 20px;
  background: var(--bg); font-size: 0.85rem;
  transition: all var(--transition);
}
.search-box input:focus { border-color: var(--primary-light); background: #fff; width: 260px; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.9rem; }
.search-results { display: none; position: absolute; top: 44px; left: 0; right: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 360px; overflow-y: auto; z-index: 200; border: 1px solid var(--border); }
.search-results.show { display: block; }
.search-item { padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background var(--transition); }
.search-item:hover { background: var(--primary-bg); }
.search-item .si-title { font-weight: 600; font-size: 0.9rem; }
.search-item .si-meta { font-size: 0.78rem; color: var(--text-light); }

.btn-user {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 5px; border-radius: 24px;
  background: var(--bg); color: var(--text); font-size: 0.85rem;
  transition: all var(--transition);
}
.btn-user:hover { background: var(--primary-bg); }
.avatar-sm {
  width: 32px; height: 32px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}
.avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; flex-shrink: 0;
}
.avatar-lg img { width: 100%; height: 100%; object-fit: cover; }

.dropdown-panel {
  display: none; position: absolute; top: 52px; right: 0;
  width: 340px; max-height: 440px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); z-index: 150; overflow: hidden;
}
.dropdown-panel.show { display: flex; flex-direction: column; }
.dropdown-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.dropdown-header h3 { font-size: 1rem; }
.dropdown-body { flex: 1; overflow-y: auto; padding: 8px; }
.empty-hint { text-align: center; color: var(--text-muted); padding: 24px; font-size: 0.9rem; }

/* ==================== 公告滚动条 ==================== */
.announcement-bar {
  background: linear-gradient(90deg, #FFF3CD, #FFEAA7, #FFF3CD);
  border-bottom: 1px solid #F0D060; overflow: hidden;
  transition: all 0.3s ease;
}
.announcement-bar.collapsed { max-height: 0; border-bottom: none; }
.announce-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 6px 20px;
  display: flex; align-items: center; gap: 10px;
}
.announce-icon { color: #F39C12; font-size: 1rem; flex-shrink: 0; }
.announce-scroll { flex: 1; overflow: hidden; white-space: nowrap; position: relative; }
.announce-scroll-inner { display: inline-block; animation: scrollAnnounce 30s linear infinite; }
.announce-item { margin-right: 80px; font-size: 0.85rem; color: #7D6608; font-weight: 500; }
.announce-item.warning { color: #E74C3C; }
.announce-item.maintain { color: #8E44AD; }
@keyframes scrollAnnounce { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.announce-close { background: none; color: #B7950B; font-size: 0.8rem; padding: 2px 6px; }
.announce-close:hover { color: #7D6608; }

/* ==================== 首页 ==================== */
.home-hero {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(circle at 84% 10%, rgba(0,201,167,0.45) 0%, rgba(0,201,167,0) 36%), radial-gradient(circle at 10% 92%, rgba(255,217,61,0.35) 0%, rgba(255,217,61,0) 34%), linear-gradient(135deg, #FFC48A 0%, var(--primary-light) 30%, var(--primary) 65%, var(--primary-dark) 100%);
  min-height: 160px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%23ffffff' fill-opacity='0.16' transform='translate(80 80)'%3E%3Cpath d='M0-22C9-22 15-14 13-4C12 5 5 11 0 17C-5 11-12 5-13-4C-15-14-9-22 0-22Z'/%3E%3Cpath d='M0-22C9-22 15-14 13-4C12 5 5 11 0 17C-5 11-12 5-13-4C-15-14-9-22 0-22Z' transform='rotate(72)'/%3E%3Cpath d='M0-22C9-22 15-14 13-4C12 5 5 11 0 17C-5 11-12 5-13-4C-15-14-9-22 0-22Z' transform='rotate(144)'/%3E%3Cpath d='M0-22C9-22 15-14 13-4C12 5 5 11 0 17C-5 11-12 5-13-4C-15-14-9-22 0-22Z' transform='rotate(216)'/%3E%3Cpath d='M0-22C9-22 15-14 13-4C12 5 5 11 0 17C-5 11-12 5-13-4C-15-14-9-22 0-22Z' transform='rotate(288)'/%3E%3C/g%3E%3Ccircle cx='80' cy='80' r='3' fill='%23FFD93D' fill-opacity='0.22'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: 0.9;
}
.hero-bg-btn {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.18); color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
  backdrop-filter: blur(6px); font-size: 0.72rem;
  opacity: 0.85; transition: all var(--transition);
}
.hero-bg-btn:hover { background: rgba(255,255,255,0.32); opacity: 1; transform: scale(1.08) rotate(-6deg); }
.hero-bg-btn:active { transform: scale(0.96); }
.hero-content { position: relative; z-index: 1; text-align: center; color: #fff; padding: 18px 20px; }
.hero-title { font-size: 2rem; line-height: 1.2; font-weight: 800; margin-bottom: 4px; text-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.hero-subtitle { font-size: 0.95rem; opacity: 0.9; margin-bottom: 12px; }
.hero-buttons { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.hero-btn { padding: 8px 18px; font-size: 0.88rem; border-radius: 20px; backdrop-filter: blur(4px); }
.hero-sakura-tree { position: absolute; right: 7%; bottom: -8px; font-size: 5rem; opacity: 0.2; animation: treeSway 3s ease-in-out infinite; pointer-events: none; }
@keyframes treeSway { 0%,100% { transform: rotate(-1deg); } 50% { transform: rotate(1deg); } }

/* ==================== 校园生活轮播 ==================== */
.notice-carousel {
  position: relative;
  width: 100%;
  height: 288px;
  margin: 0 0 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #2B2D42, var(--primary));
  box-shadow: 0 10px 36px rgba(43, 45, 66, 0.18);
}
.notice-carousel-track { position: relative; width: 100%; height: 100%; }
.notice-slide {
  position: absolute; inset: 0;
  display: block;
  opacity: 0; transform: scale(1.015);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  text-decoration: none;
}
.notice-slide.active { opacity: 1; transform: scale(1); pointer-events: auto; }
.notice-slide-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.notice-slide-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 32%, rgba(0,0,0,0.72) 100%);
}
.notice-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0 28px 24px;
  text-align: center;
}
.notice-slide-title {
  color: #fff; font-size: 1.28rem; font-weight: 700;
  line-height: 1.4; max-width: 900px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}

.home-section { margin-bottom: 24px; }
.section-title { font-size: 1.15rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }

.announce-list { display: flex; flex-direction: column; gap: 8px; }
.announce-card {
  background: var(--bg-card); border-radius: var(--radius-sm); padding: 14px 18px;
  border-left: 4px solid var(--accent2); box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.announce-card:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); border-left-width: 6px; }
.announce-card.maintain { border-left-color: #8E44AD; }
.announce-card.warning { border-left-color: #E74C3C; }
.announce-card .ac-title { font-weight: 700; font-size: 0.92rem; }
.announce-card .ac-body { font-size: 0.85rem; color: var(--text-light); margin-top: 3px; max-height: 60px; overflow: hidden; transition: max-height 0.3s ease; }
.announce-card .ac-time { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* 公告详情弹窗 */
.announce-detail-overlay {
  position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.announce-detail-card {
  background: #fff; border-radius: var(--radius-lg); padding: 30px;
  max-width: 600px; width: 90vw; max-height: 80vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalIn 0.25s ease;
}

/* 禁言/封禁条目可点击 */
.ban-item { cursor: pointer; transition: all 0.2s ease; }
.ban-item:hover { transform: scale(1.02); background: #FDE8E8; box-shadow: 0 2px 8px rgba(231,76,60,0.1); }

.rules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.rule-card {
  background: var(--bg-card); border-radius: var(--radius-sm); padding: 16px;
  box-shadow: var(--shadow); display: flex; gap: 10px; align-items: flex-start;
}
.rule-card .rc-icon { font-size: 1.5rem; flex-shrink: 0; }
.rule-card .rc-title { font-weight: 700; font-size: 0.9rem; }
.rule-card .rc-desc { font-size: 0.82rem; color: var(--text-light); margin-top: 2px; }

.ban-list { display: flex; flex-direction: column; gap: 8px; }
.ban-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: #FFF5F5; border-radius: var(--radius-sm); border: 1px solid #FADBD8;
  font-size: 0.88rem;
}
.ban-item .ban-reason { color: #E74C3C; font-weight: 600; }

.quick-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.quick-link {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px; border-radius: var(--radius); background: var(--bg-card);
  box-shadow: var(--shadow); cursor: pointer; transition: all var(--transition);
  border: 1px solid transparent;
}
.quick-link:hover { border-color: var(--primary-light); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.quick-link i { font-size: 2rem; color: var(--primary); }
.quick-link span { font-weight: 600; font-size: 0.9rem; }

/* ==================== 分页导航 ==================== */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  margin-top: 24px; flex-wrap: wrap;
}
.pagination button {
  min-width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); font-size: 0.85rem; font-weight: 500;
  transition: all var(--transition); display: flex; align-items: center; justify-content: center;
}
.pagination button:hover { border-color: var(--primary-light); color: var(--primary); background: var(--primary-bg); }
.pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination .page-info { font-size: 0.82rem; color: var(--text-muted); padding: 0 4px; }
.pagination .page-jump { display: flex; align-items: center; gap: 4px; }
.pagination .page-jump input {
  width: 48px; padding: 4px 6px; text-align: center; border: 1px solid var(--border); border-radius: 6px; font-size: 0.85rem;
}
.pagination .page-jump button { font-size: 0.78rem; padding: 4px 8px; }

/* ==================== 移动端 ==================== */
.mobile-nav { display: none; }
@media (max-width: 768px) {
  .nav-tabs { display: none; }
  .search-box input { width: 120px; }
  .search-box input:focus { width: 140px; }
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 0.9rem; margin-bottom: 10px; }
  .hero-btn { padding: 7px 14px; font-size: 0.82rem; }
  .hero-sakura-tree { font-size: 3.5rem; right: 2%; }
  .notice-carousel { height: 228px; }
  .notice-slide-caption { padding: 0 16px 16px; }
  .notice-slide-title { font-size: 1rem; }
  .mobile-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,249,245,0.95); backdrop-filter: blur(12px);
    border-top: 1px solid var(--border); justify-content: space-around;
    padding: 4px 0 env(safe-area-inset-bottom, 6px);
  }
  .mnav-tab {
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    padding: 4px 6px; background: none; color: var(--text-muted); font-size: 0.65rem;
    transition: color var(--transition);
  }
  .mnav-tab i { font-size: 1.1rem; }
  .mnav-tab.active { color: var(--primary); }
  .main-content { padding-bottom: 72px; }
  .panel-header { flex-direction: column; gap: 10px; align-items: flex-start !important; }
  .panel-actions { flex-wrap: wrap; }
  .market-grid, .activities-grid { grid-template-columns: 1fr !important; }
  .posts-grid { grid-template-columns: 1fr !important; }
  .freshman-layout { grid-template-columns: 1fr !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .modal-xl, .modal-lg { width: 95vw !important; max-height: 85vh !important; }
  .form-row { flex-direction: column !important; }
  .form-row.cols-2, .form-row.cols-3 { grid-template-columns: 1fr !important; }
  .rules-grid { grid-template-columns: 1fr; }
}

/* ==================== 主内容区 ==================== */
.main-content { max-width: var(--max-width); margin: 0 auto; padding: 20px 20px 40px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.panel-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
}
.panel-header h2 { font-size: 1.5rem; display: flex; align-items: center; gap: 8px; }
.panel-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ==================== 帖子卡片 ==================== */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.post-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition); cursor: pointer;
  position: relative;
}
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--primary-light); }
.post-card.pinned { border-left: 4px solid var(--accent2); }
.post-card.essence { border-left: 4px solid var(--accent3); }
.post-card .pc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.post-card .pc-category {
  font-size: 0.75rem; padding: 2px 10px; border-radius: 12px;
  background: var(--sakura-1); color: var(--primary); font-weight: 600;
}
.post-card .pc-badges { display: flex; gap: 4px; }
.post-card .pc-badge { font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.pc-badge.pin { background: #FFF3CD; color: #856404; }
.pc-badge.essence-tag { background: #E3F0FF; color: #1D6FBF; }
.post-card .pc-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.post-card .pc-content { font-size: 0.9rem; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; line-height: 1.6; }
.post-card .pc-images { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; }
.post-card .pc-images img { width: 80px; height: 60px; object-fit: cover; border-radius: 6px; }
.post-card .pc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.post-card .pc-tag { font-size: 0.75rem; padding: 2px 8px; border-radius: 10px; background: #EAF3FF; color: var(--accent3); }
.post-card .pc-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--text-muted); }
.post-card .pc-author { display: flex; align-items: center; gap: 6px; }
.post-card .pc-actions-row { display: flex; gap: 14px; }
.post-card .pc-action {
  display: flex; align-items: center; gap: 3px; color: var(--text-muted);
  transition: color var(--transition); background: none; font-size: 0.8rem;
}
.post-card .pc-action:hover { color: var(--primary); }
.post-card .pc-action.liked { color: var(--primary); }
.post-card .pc-report-btn {
  background: none; color: var(--text-muted); font-size: 0.75rem;
  padding: 2px 6px; border-radius: 4px; transition: all var(--transition);
}
.post-card .pc-report-btn:hover { color: #E74C3C; background: #FADBD8; }

/* ==================== 二手市场 ==================== */
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.market-card {
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: all var(--transition); cursor: pointer;
}
.market-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.market-card .mc-img {
  height: 180px; background: linear-gradient(135deg, #FFF1E8, #FFDCCB);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: #ddd; position: relative; overflow: hidden;
}
.market-card .mc-img img { width: 100%; height: 100%; object-fit: cover; }
.market-card .mc-body { padding: 14px; }
.market-card .mc-title { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.market-card .mc-price { font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.market-card .mc-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; justify-content: space-between; margin-top: 6px; }

/* 商品详情 */
.market-detail-img { width: 100%; max-height: 300px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 16px; }
.market-detail-title { font-size: 1.3rem; font-weight: 700; }
.market-detail-price { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin: 8px 0; }
.market-detail-info { font-size: 0.9rem; color: var(--text-light); }
.market-detail-contacts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 12px; background: var(--bg); border-radius: var(--radius-sm); }
.market-detail-contacts span { font-size: 0.85rem; color: var(--text-light); }
.market-detail-contacts i { color: var(--primary); margin-right: 4px; }

/* ==================== 社团活动 ==================== */
.activities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.activity-card {
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: all var(--transition); cursor: pointer;
}
.activity-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.activity-card .ac-img {
  height: 160px; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,0.6); position: relative; overflow: hidden;
  background-size: cover; background-position: center;
}
.activity-card .ac-img img { width: 100%; height: 100%; object-fit: cover; }
.activity-card .ac-body { padding: 16px; }
.activity-card .ac-club { font-size: 0.8rem; color: var(--accent3); font-weight: 600; }
.activity-card .ac-title { font-size: 1.05rem; font-weight: 700; margin: 4px 0; }
.activity-card .ac-info { font-size: 0.82rem; color: var(--text-light); display: flex; flex-direction: column; gap: 2px; }
.activity-card .ac-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }

/* 活动详情 */
.activity-detail-img { width: 100%; max-height: 280px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 16px; }
.activity-detail-title { font-size: 1.3rem; font-weight: 700; }
.activity-detail-club { font-size: 0.9rem; color: var(--accent3); font-weight: 600; margin: 4px 0; }
.activity-detail-info { font-size: 0.9rem; color: var(--text-light); display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.activity-detail-leader { padding: 10px; background: var(--bg); border-radius: var(--radius-sm); font-size: 0.88rem; }

/* ==================== 树洞（星空主题） ==================== */
.treehole-bg {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 500px;
  background: linear-gradient(180deg, #0a0a1a 0%, #0d1b2a 20%, #1b2838 50%, #162447 100%);
}
#starCanvas {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.treehole-content { position: relative; z-index: 1; padding: 30px; }
.treehole-header h2, .treehole-header i { color: #a8e6cf !important; }
.treehole-subtitle { color: #7fa8c9; font-size: 0.9rem; margin-top: 4px; }
.treehole-moods { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.mood-btn {
  padding: 8px 18px; border-radius: 20px;
  background: rgba(255,255,255,0.08); color: #ccc; font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.12); transition: all var(--transition);
}
.mood-btn:hover, .mood-btn.active { background: rgba(168,230,207,0.2); border-color: rgba(168,230,207,0.4); color: #a8e6cf; }
.treehole-compose { margin: 16px 0; }
.treehole-compose textarea {
  width: 100%; padding: 14px; border-radius: var(--radius);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: #ddd; font-size: 0.95rem; resize: vertical; min-height: 80px;
}
.treehole-compose textarea::placeholder { color: #556; }
.treehole-compose-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.char-count { font-size: 0.8rem; color: #667; }
.treehole-list { display: flex; flex-direction: column; gap: 12px; }
.treehole-card {
  background: rgba(255,255,255,0.04); border-radius: var(--radius);
  padding: 16px; border: 1px solid rgba(255,255,255,0.06);
}
.treehole-card .th-mood { font-size: 1.5rem; margin-right: 8px; }
.treehole-card .th-content { font-size: 0.95rem; color: #ccc; line-height: 1.7; }
.treehole-card .th-footer { display: flex; justify-content: space-between; margin-top: 10px; font-size: 0.8rem; color: #667; }
.treehole-card .th-actions { display: flex; gap: 10px; }
.treehole-card .th-hug-btn, .treehole-card .th-reply-btn {
  background: rgba(255,255,255,0.08); color: #aaa; padding: 4px 12px;
  border-radius: 16px; font-size: 0.8rem; transition: all var(--transition);
}
.treehole-card .th-hug-btn:hover { background: rgba(255,107,53,0.3); color: #FF9A6B; }
.treehole-card .th-reply-btn:hover { background: rgba(168,230,207,0.2); color: #a8e6cf; }
.treehole-card .th-replies { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.06); }
.treehole-card .th-reply { font-size: 0.85rem; color: #9ab; padding: 4px 0; }

/* 流星动画 */
.shooting-star {
  position: absolute; width: 2px; height: 2px;
  background: #fff; border-radius: 50%;
  animation: shoot linear forwards; pointer-events: none; z-index: 0;
}
.shooting-star::after {
  content: ''; position: absolute; top: 0; left: 0;
  width: 80px; height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.8), transparent);
  transform: rotate(-35deg); transform-origin: left center;
}
@keyframes shoot {
  0% { transform: translate(0, 0); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(-400px, 300px); opacity: 0; }
}

/* ==================== 新生专区 ==================== */
.freshman-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border);
  margin-bottom: 16px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.badge-tag { font-size: 0.78rem; padding: 3px 10px; border-radius: 12px; background: #D5F5E3; color: #1E8449; font-weight: 600; }
.faq-search { margin-bottom: 10px; }
.faq-search input { width: 100%; padding: 8px 12px; border: 2px solid var(--border); border-radius: 20px; font-size: 0.88rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; padding: 12px 0; background: none; text-align: left;
  font-weight: 600; font-size: 0.92rem; color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
}
.faq-q:hover { color: var(--primary); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; font-size: 0.88rem; color: var(--text-light); padding: 0 0; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 12px; line-height: 1.7; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.guide-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 6px; border-radius: var(--radius-sm); background: var(--bg);
  cursor: pointer; transition: all var(--transition); font-size: 0.82rem;
  text-align: center;
}
.guide-item img { width: 100%; height: 80px; object-fit: cover; border-radius: 6px; }
.guide-item:hover { background: var(--primary-bg); color: var(--primary); }
.guide-item i { font-size: 1.5rem; }
.guide-detail { margin-top: 12px; padding: 14px; background: var(--bg); border-radius: var(--radius-sm); font-size: 0.88rem; color: var(--text-light); display: none; line-height: 1.7; }
.guide-detail.show { display: block; }
.guide-detail img { max-width: 100%; border-radius: 8px; margin: 8px 0; }

/* AI 聊天 */
.ai-chat-box {
  height: 300px; overflow-y: auto; padding: 8px;
  background: var(--bg); border-radius: var(--radius-sm);
  display: flex; flex-direction: column; gap: 10px;
}
.ai-msg { display: flex; gap: 8px; }
.ai-msg.user { flex-direction: row-reverse; }
.ai-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.ai-msg.bot .ai-avatar { background: #D5F5E3; }
.ai-msg.user .ai-avatar { background: var(--primary-bg); }
.ai-bubble {
  max-width: 80%; padding: 10px 14px; border-radius: 16px; font-size: 0.88rem; line-height: 1.6;
}
.ai-msg.bot .ai-bubble { background: #fff; border: 1px solid var(--border); border-top-left-radius: 4px; }
.ai-msg.user .ai-bubble { background: var(--primary); color: #fff; border-top-right-radius: 4px; }
.ai-input-row { display: flex; gap: 8px; margin-top: 10px; }
.ai-input-row input { flex: 1; padding: 10px 14px; border: 2px solid var(--border); border-radius: 20px; font-size: 0.9rem; }
.ai-input-row input:focus { border-color: var(--primary-light); }

/* ==================== 模态框 ==================== */
.modal-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: rgba(0,0,0,0.5); align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.show { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  width: 440px; max-width: 92vw; max-height: 85vh; overflow-y: auto;
  animation: modalIn 0.25s ease; position: relative;
}
.modal-lg { width: 600px; }
.modal-xl { width: 860px; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(-20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-close {
  position: absolute; top: 10px; right: 14px; z-index: 10; background: none;
  font-size: 1.5rem; color: var(--text-muted); padding: 4px 8px; border-radius: 4px;
}
.modal-close:hover { color: var(--text); background: var(--bg); }
.modal-body { padding: 24px; position: relative; }
.modal-body h3 { font-size: 1.2rem; margin-bottom: 16px; }

/* 认证 */
.auth-tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 2px solid var(--border); }
.auth-tab {
  flex: 1; padding: 10px; background: none; font-size: 1rem; font-weight: 600;
  color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all var(--transition);
}
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-hint { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; }

/* 表单 */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 4px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.9rem; transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary-light); }
.form-row { display: flex; gap: 12px; }
.form-row.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row.cols-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

.switch { position: relative; display: inline-block; width: 48px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #ddd; border-radius: 26px; transition: var(--transition); }
.slider::before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: var(--transition); }
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::before { transform: translateX(22px); }

/* 设置头像行 */
.settings-avatar-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.settings-avatar-row > div:last-child { flex: 1; }

/* ==================== 管理后台 ==================== */
.admin-tabs { display: flex; gap: 2px; margin-bottom: 20px; border-bottom: 2px solid var(--border); flex-wrap: wrap; }
.admin-tab {
  padding: 8px 14px; background: none; font-size: 0.85rem; font-weight: 600;
  color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px;
  white-space: nowrap;
}
.admin-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card {
  text-align: center; padding: 20px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border);
}
.stat-num { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }
.admin-actions-row { display: flex; gap: 10px; margin-top: 10px; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { background: var(--bg); font-weight: 600; }
.admin-table .action-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.status-badge { font-size: 0.75rem; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.status-badge.approved { background: #D5F5E3; color: #1E8449; }
.status-badge.pending { background: #FCF3CF; color: #7D6608; }
.status-badge.rejected { background: #FADBD8; color: #922B21; }

.maintain-settings { padding: 16px; background: var(--bg); border-radius: var(--radius); }
.maintain-settings h4 { margin-bottom: 12px; }

/* ==================== 帖子详情 ==================== */
.detail-post { padding: 8px 0; }
.detail-post .dp-images { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; }
.detail-post .dp-images img { max-height: 240px; border-radius: 8px; object-fit: cover; }
.detail-post .dp-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.detail-post .dp-meta { font-size: 0.85rem; color: var(--text-light); margin-bottom: 16px; display: flex; gap: 16px; flex-wrap: wrap; }
.detail-post .dp-content { font-size: 1rem; line-height: 1.8; margin-bottom: 20px; white-space: pre-wrap; }
.detail-post .dp-tags { display: flex; gap: 6px; margin-bottom: 20px; }
.detail-post .dp-actions { display: flex; gap: 12px; margin-bottom: 16px; }
.detail-comments { border-top: 1px solid var(--border); padding-top: 16px; }
.detail-comments h4 { margin-bottom: 12px; }
.comment-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.comment-item .cm-author { font-weight: 600; font-size: 0.85rem; }
.comment-item .cm-content { font-size: 0.9rem; margin: 4px 0; }
.comment-item .cm-time { font-size: 0.75rem; color: var(--text-muted); }
.comment-compose { display: flex; gap: 8px; margin-top: 14px; }
.comment-compose input { flex: 1; padding: 10px 14px; border: 2px solid var(--border); border-radius: 20px; font-size: 0.88rem; }
.comment-compose input:focus { border-color: var(--primary-light); }

/* ==================== 维护页面 ==================== */
.maintain-overlay {
  display: none; position: fixed; inset: 0; z-index: 10000;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  align-items: center; justify-content: center;
}
.maintain-overlay.show { display: flex; }
.maintain-page { text-align: center; color: #fff; padding: 40px; }
.maintain-icon { font-size: 5rem; margin-bottom: 16px; }
.maintain-page h1 { font-size: 2rem; margin-bottom: 12px; }
.maintain-page p { color: #aaa; font-size: 1rem; margin-bottom: 20px; }
.maintain-spinner {
  width: 48px; height: 48px; border: 4px solid rgba(255,255,255,0.2);
  border-top-color: var(--primary-light); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== Toast ==================== */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 12px 20px; border-radius: var(--radius-sm); color: #fff; font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2); animation: slideIn 0.3s ease;
  max-width: 360px;
}
.toast.success { background: #27AE60; }
.toast.error { background: #E74C3C; }
.toast.info { background: #3498DB; }
@keyframes slideIn { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }

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

/* ==================== 时钟页面 ==================== */
.clock-page {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 200px);
}
.clock-container {
  text-align: center;
  padding: 48px 64px;
  background: rgba(20, 33, 61, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.clock-time {
  font-size: 6rem;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 8px;
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', 'Cascadia Code', 'Consolas', 'Monaco', monospace;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.3);
  line-height: 1;
}
.clock-date {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 12px;
  letter-spacing: 2px;
  font-weight: 300;
}
.clock-week {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 6px;
  letter-spacing: 4px;
  font-weight: 300;
}
/* 时钟页面背景：柔和的渐变色 */
#panel-clock {
  min-height: calc(100vh - 140px);
  border-radius: var(--radius-lg);
  margin: -10px;
  padding: 10px;
}

/* 文件上传输入框样式 */
input[type="file"] {
  padding: 8px !important;
  font-size: 0.85rem !important;
  cursor: pointer;
}
input[type="file"]::file-selector-button {
  background: var(--primary-bg);
  border: 1px solid var(--primary-light);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--primary);
  margin-right: 10px;
  transition: all var(--transition);
}
input[type="file"]::file-selector-button:hover {
  background: var(--primary);
  color: #fff;
}

/* ==================== 资料分享 ==================== */
.files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.file-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: all var(--transition); cursor: pointer;
  display: flex; gap: 14px; align-items: flex-start;
}
.file-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--primary-light); }
.file-card .fc-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.file-card .fc-icon.pdf { background: #FADBD8; color: #E74C3C; }
.file-card .fc-icon.doc { background: #D6EAF8; color: #2980B9; }
.file-card .fc-icon.ppt { background: #FCF3CF; color: #F39C12; }
.file-card .fc-icon.zip { background: #E8DAEF; color: #8E44AD; }
.file-card .fc-icon.img { background: #D5F5E3; color: #27AE60; }
.file-card .fc-icon.other { background: #F0F0F0; color: #666; }
.file-card .fc-info { flex: 1; min-width: 0; }
.file-card .fc-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-card .fc-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px; }
.file-card .fc-meta span { background: var(--bg); padding: 1px 8px; border-radius: 10px; }
.file-card .fc-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--text-muted); }
.file-card .fc-dl-btn {
  background: var(--primary); color: #fff; padding: 4px 12px;
  border-radius: 14px; font-size: 0.78rem; transition: all var(--transition);
}
.file-card .fc-dl-btn:hover { background: var(--primary-dark); }

/* ==================== 校园兼职 ==================== */
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.job-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  border-left: 4px solid #F39C12;
  transition: all var(--transition);
}
.job-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.job-card .jc-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.job-card .jc-intro { font-size: 0.88rem; color: var(--text-light); margin-bottom: 10px; }
.job-card .jc-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-light); margin-bottom: 8px; }
.job-card .jc-meta i { color: var(--primary); width: 16px; }
.job-card .jc-salary { font-size: 1.15rem; font-weight: 700; color: #E74C3C; }
.job-card .jc-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 0.78rem; color: var(--text-muted); }

/* ==================== 私信聊天 ==================== */
.chat-messages { display: flex; flex-direction: column; gap: 8px; }
.chat-bubble {
  max-width: 75%; padding: 10px 14px; border-radius: 16px;
  font-size: 0.9rem; line-height: 1.5; word-break: break-word;
}
.chat-bubble.sent { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble.received { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-bubble img { max-width: 200px; border-radius: 8px; margin-top: 4px; cursor: pointer; }
.chat-bubble .cb-time { font-size: 0.7rem; opacity: 0.7; margin-top: 2px; }

.msg-conv-item {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  border-radius: var(--radius-sm); cursor: pointer; transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}
.msg-conv-item:hover { background: var(--bg); }
.msg-conv-item .mci-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.msg-conv-item .mci-info { flex: 1; min-width: 0; }
.msg-conv-item .mci-name { font-weight: 600; font-size: 0.9rem; }
.msg-conv-item .mci-preview { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-conv-item .mci-badge { font-size: 0.7rem; background: var(--primary); color: #fff; padding: 1px 7px; border-radius: 10px; }

/* 通知列表 */
.notif-item {
  display: flex; gap: 10px; padding: 10px 8px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background var(--transition); border-bottom: 1px solid var(--border);
}
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: var(--primary-bg); }
.notif-item .ni-icon { font-size: 1.1rem; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-item .ni-icon.reply { background: #D5F5E3; color: #27AE60; }
.notif-item .ni-icon.like { background: #FADBD8; color: #E74C3C; }
.notif-item .ni-icon.system { background: #D6EAF8; color: #2980B9; }
.notif-item .ni-icon.report { background: #FADBD8; color: #E74C3C; }
.notif-item .ni-content { flex: 1; font-size: 0.85rem; }
.notif-item .ni-time { font-size: 0.75rem; color: var(--text-muted); }

/* 用户菜单 */
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
  background: none; font-size: 0.9rem; color: var(--text); border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.menu-item:hover { background: var(--bg); }
.menu-item i { width: 20px; text-align: center; color: var(--text-light); }

/* 树洞回复列表 */
.treehole-replies-list { max-height: 250px; overflow-y: auto; }
.treehole-reply-item { padding: 8px 0; border-bottom: 1px solid #eee; font-size: 0.88rem; }
.treehole-reply-item .tr-time { font-size: 0.75rem; color: var(--text-muted); }

/* ==================== 新人引导动画 ==================== */
.tutorial-overlay {
  display: none; position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,0.45);
}
.tutorial-overlay.active { display: block; }
.tutorial-spotlight {
  position: absolute; border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.45), 0 0 0 5px var(--primary), 0 0 60px rgba(255,154,107,0.7), 0 0 120px rgba(255,107,53,0.35);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); pointer-events: none;
  background: rgba(255,255,255,0.12);
  animation: spotlightPulse 2s ease-in-out infinite;
}
@keyframes spotlightPulse {
  0%, 100% { box-shadow: 0 0 0 9999px rgba(0,0,0,0.45), 0 0 0 5px var(--primary), 0 0 60px rgba(255,154,107,0.7), 0 0 120px rgba(255,107,53,0.35); }
  50% { box-shadow: 0 0 0 9999px rgba(0,0,0,0.45), 0 0 0 5px var(--accent2), 0 0 80px rgba(255,200,100,0.8), 0 0 150px rgba(255,150,80,0.45); }
}
.tutorial-arrow {
  position: absolute; width: 0; height: 0; z-index: 9999;
  border: 12px solid transparent; pointer-events: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: arrowBounce 0.8s ease-in-out infinite;
}
.tutorial-arrow.down  { border-top-color: #fff; border-bottom: none; }
.tutorial-arrow.up    { border-bottom-color: #fff; border-top: none; }
.tutorial-arrow.left  { border-right-color: #fff; border-left: none; }
.tutorial-arrow.right { border-left-color: #fff; border-right: none; }
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
.tutorial-tooltip {
  position: absolute; z-index: 9999; background: #fff; border-radius: 16px;
  padding: 20px 24px; max-width: 340px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: tooltipIn 0.4s ease;
}
@keyframes tooltipIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.tutorial-step-num { font-size:0.75rem; color:var(--primary); font-weight:700; margin-bottom:4px; }
.tutorial-tooltip h3 { font-size:1rem; margin-bottom:6px; }
.tutorial-tooltip p { font-size:0.85rem; color:var(--text-light); line-height:1.5; margin-bottom:12px; }
.tutorial-actions { display:flex; gap:8px; justify-content:flex-end; }
.tutorial-highlight {
  position: relative; z-index: 9999 !important;
  outline: 4px dashed var(--primary) !important;
  outline-offset: 6px;
  animation: highlightPulse 1s ease-in-out infinite;
  filter: brightness(1.15);
}
@keyframes highlightPulse {
  0%, 100% { outline-color: var(--primary); box-shadow: 0 0 20px rgba(255,107,53,0.3); }
  50% { outline-color: var(--accent2); box-shadow: 0 0 35px rgba(255,200,50,0.5); }
}

/* ==================== 全页面设置 & 管理后台 ==================== */
.settings-fullpage, .admin-fullpage {
  max-width: 800px; margin: 40px auto; padding: 40px;
  background: var(--bg-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.settings-fullpage h2, .admin-fullpage h2 {
  font-size: 1.5rem; margin-bottom: 24px; display: flex; align-items: center; gap: 10px;
}
.settings-fullpage .back-link, .admin-fullpage .back-link {
  display: inline-block; margin-bottom: 20px; color: var(--primary);
  cursor: pointer; font-size: 0.9rem;
}
.settings-fullpage .back-link:hover, .admin-fullpage .back-link:hover { text-decoration: underline; }

/* ==================== 校园农场 ==================== */
.farm-fullpage { max-width:960px; margin:20px auto; padding:20px; }
.farm-header { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:12px; background:var(--bg-card); border-radius:var(--radius); padding:12px 16px; box-shadow:var(--shadow); }
.farm-layout { display:grid; grid-template-columns:200px 1fr 200px; gap:14px; margin-bottom:16px; }
@media (max-width:860px) { .farm-layout { grid-template-columns:1fr; } .farm-left, .farm-right { order:2; } .farm-center { order:1; } }
.farm-left, .farm-right { font-size:0.82rem; }
.farm-dex { background:var(--bg-card); border-radius:var(--radius); padding:12px; box-shadow:var(--shadow); }
.farm-dex h4 { font-size:0.88rem; margin-bottom:8px; }
.farm-dex-item { display:flex; align-items:center; gap:8px; padding:6px 0; border-bottom:1px solid #f0f0f0; }
.farm-dex-item.locked { opacity:0.4; }
.farm-dex-item small { color:var(--text-muted); font-size:0.7rem; }
.farm-right-panel { background:var(--bg-card); border-radius:var(--radius); padding:12px; box-shadow:var(--shadow); }
.farm-right-panel h5 { font-size:0.82rem; margin-bottom:4px; }
.farm-center { min-width:0; }
.farm-plot-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.farm-plot {
  aspect-ratio:1; border-radius:var(--radius); border:2px dashed #ccc;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  cursor:pointer; transition:all 0.3s; position:relative; background:#f9f9f0;
  font-size:0.78rem; text-align:center; overflow:hidden;
}
.farm-plot:hover { border-color:var(--accent4); box-shadow:0 4px 16px rgba(34,197,94,0.15); }
.farm-plot.empty { background:#f5f5e8; }
.farm-plot.growing { background:linear-gradient(180deg,#e8f5e9,#c8e6c9); border-color:#81C784; }
.farm-plot.ready { background:linear-gradient(180deg,#fff9c4,#fff176); border-color:#FDD835; animation:plotGlow 1.5s ease-in-out infinite; }
.farm-plot .fp-crop { font-size:2.2rem; }
.farm-plot .fp-name { font-weight:700; margin-top:1px; }
.farm-plot .fp-time { font-size:0.68rem; color:var(--text-muted); }
.farm-plot .fp-watered { position:absolute; top:3px; right:5px; font-size:0.65rem; color:#2196F3; }
.farm-plot .fp-ready-badge { position:absolute; top:3px; left:5px; font-size:0.65rem; background:#FDD835; color:#333; padding:1px 5px; border-radius:6px; animation:pulse 1s infinite; }
@keyframes plotGlow { 0%,100%{box-shadow:0 0 8px rgba(253,216,53,0.4)} 50%{box-shadow:0 0 20px rgba(253,216,53,0.8)} }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
.farm-actions-bar { display:flex; gap:12px; align-items:center; justify-content:center; flex-wrap:wrap; padding:14px 0; }
.farm-action-btn { padding:10px 24px; font-size:0.9rem; border-radius:24px; font-weight:600; box-shadow:0 2px 8px rgba(0,0,0,0.1); transition:all 0.2s; }
.farm-action-btn:hover { transform:translateY(-2px); box-shadow:0 4px 16px rgba(0,0,0,0.18); }
.farm-water-info { font-size:0.82rem; color:var(--text-muted); background:var(--bg); padding:6px 14px; border-radius:16px; }

/* 响应式 */
@media (max-width: 480px) {
  .header-inner { padding: 0 10px; gap: 6px; }
  .logo-text { font-size: 0.95rem; }
  .search-box input { width: 90px; }
  .search-box input:focus { width: 110px; }
  .btn-user span { display: none; }
  .dropdown-panel { width: 280px; right: -40px; }
  .posts-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .treehole-content { padding: 12px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .hero-title { font-size: 1.6rem; }
  .notice-carousel { height: 204px; }
  .notice-slide-title { font-size: 0.92rem; }
  .quick-links { grid-template-columns: repeat(3, 1fr); }
}
