/* ===== 全局样式 - 微信小程序风格 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #f5f5f5; color: #333; font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
/* merged below */

/* 页面切换 */
#app { max-width: 480px; margin: 0 auto; position: relative; min-height: 100vh; background: #f5f5f5; }
.page {
  min-height: 100vh;
  padding-bottom: 60px;
}
.page.active {
  /* JS handles visibility - these are fallback */
  display: block;
  position: relative;
  opacity: 1;
}

/* 导航栏 */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 48px; padding: 0 16px;
  background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
  color: #fff; font-size: 17px; font-weight: 600;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s ease;
}
.navbar.nav-hidden {
  transform: translateY(-100%);
}
.navbar.nav-revealed {
  box-shadow: 0 4px 20px rgba(26,35,126,0.35);
}
.navbar-left { cursor: pointer; font-size: 15px; min-width: 60px; }
.navbar-title { text-align: center; flex: 1; }
.navbar-title img {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease;
  vertical-align: middle;
}
.navbar.nav-hidden .navbar-title img {
  transform: translateY(-10px) scale(0.85);
  opacity: 0;
}
.navbar.nav-revealed .navbar-title img {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.navbar-right { min-width: 60px; text-align: right; cursor: pointer; font-size: 18px; }

/* 搜索栏 */
.search-bar { margin: 0; }

/* 数据概览 */
.stats-card {
  display: flex; margin: 0 16px 12px; padding: 16px;
  background: linear-gradient(135deg, #1a237e 0%, #303f9f 100%);
  border-radius: 12px; color: #fff;
}
.stats-card .stat-num { color: #fff !important; }
.stats-card .stat-label { color: rgba(255,255,255,0.85); }
.stat-item { flex: 1; text-align: center; }
.stat-num { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.stat-label { font-size: 12px; opacity: 0.8; }

/* 快捷功能 */
.quick-actions {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 0 16px 16px; padding: 16px; background: #fff; border-radius: 12px;
}
.action-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }

/* 服务网格 */
.service-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  padding: 16px; background: #fff;
}
.service-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  cursor: pointer; padding: 8px 4px;
}
.service-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 8px;
}
.service-item:nth-child(1) .service-icon { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.service-item:nth-child(2) .service-icon { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.service-item:nth-child(3) .service-icon { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.service-item:nth-child(4) .service-icon { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.service-name { font-size: 13px; font-weight: 500; color: #333; margin-bottom: 2px; }
.service-desc { font-size: 11px; color: #999; }

/* 校友动态 */
.news-list { background: #fff; padding: 0 16px 12px; }
.news-item {
  display: flex; align-items: flex-start; padding: 12px 0;
  border-bottom: 1px solid #f5f5f5; cursor: pointer;
}
.news-item:last-child { border-bottom: none; }
.news-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #1a237e; margin-right: 12px; margin-top: 6px; flex-shrink: 0;
}
.news-content { flex: 1; }
.news-title { font-size: 14px; color: #333; line-height: 1.5; margin-bottom: 4px; }
.news-time { font-size: 12px; color: #999; }
.action-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.action-item span { font-size: 12px; color: #666; }

/* 板块 */
.section { margin: 0 16px 16px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.section-title { font-size: 16px; font-weight: 600; color: #333; }
.section-more { font-size: 13px; color: #1a237e; cursor: pointer; }

/* 活动卡片 */
.activity-list .activity-card,
.activity-full-list .activity-card {
  background: #fff; border-radius: 10px; padding: 14px; margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04); cursor: pointer; transition: transform 0.1s;
}
.activity-card:active { transform: scale(0.98); }
.activity-card .act-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: #1a1a1a; }
.activity-card .act-info { font-size: 12px; color: #888; line-height: 1.8; }
.activity-card .act-info span { margin-right: 12px; }
.activity-card .act-tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; margin-right: 6px;
}
.tag-offline { background: #e8f5e9; color: #2e7d32; }
.tag-online { background: #e3f2fd; color: #1565c0; }
.tag-forum { background: #fff3e0; color: #e65100; }
.tag-training { background: #f3e5f5; color: #7b1fa2; }
.tag-social { background: #fce4ec; color: #c62828; }
.activity-card .act-progress { margin-top: 8px; }
.progress-bar { height: 4px; background: #e0e0e0; border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #1a237e, #3f51b5); border-radius: 2px; }
.progress-text { font-size: 11px; color: #999; margin-top: 4px; }

/* 校友列表 - 简版 */
.alumni-mini-list .alumni-mini-item {
  display: flex; align-items: center; padding: 10px 0;
  border-bottom: 1px solid #f0f0f0; cursor: pointer;
}
.alumni-mini-item:last-child { border-bottom: none; }
.alumni-mini-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #e8eaf6, #c5cae9);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-right: 12px; flex-shrink: 0;
}
.alumni-mini-info { flex: 1; }
.alumni-mini-name { font-size: 15px; font-weight: 500; color: #333; }
.alumni-mini-desc { font-size: 12px; color: #999; margin-top: 2px; }

/* 校友列表 - 完整版 */
.alumni-list { padding: 0 16px; }
.alumni-card {
  display: flex; align-items: center; padding: 14px; margin-bottom: 8px;
  background: #fff; border-radius: 10px; cursor: pointer; transition: transform 0.1s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.alumni-card:active { transform: scale(0.98); }
.alumni-avatar {
  width: 50px; height: 50px; border-radius: 50%; margin-right: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, #e8eaf6, #c5cae9);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.alumni-info { flex: 1; }
.alumni-name { font-size: 16px; font-weight: 600; color: #1a1a1a; }
.alumni-company { font-size: 13px; color: #666; margin-top: 2px; }
.alumni-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.alumni-tag {
  padding: 2px 8px; border-radius: 4px; font-size: 11px;
  background: #f5f5f5; color: #666;
}

/* Skill capability tags */
.alumni-skill-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.alumni-skill-tag {
  padding: 1px 7px; border-radius: 10px; font-size: 10px;
  background: linear-gradient(135deg,#e8eaf6,#f3e5f5); color: #5c6bc0;
  cursor: pointer; border: 0.5px solid #d1c4e9;
  transition: background 0.2s;
}
.alumni-skill-tag:active { background: #c5cae9; }
body.dark-mode .alumni-skill-tag { background: linear-gradient(135deg,#2a2a4a,#3a2a4a); color: #b39ddb; border-color: #4a3a5a; }

/* AI match reasons */
.alumni-match-reason { margin-top: 4px; display: flex; flex-direction: column; gap: 1px; }
.match-reason-line {
  font-size: 10px; color: #5c6bc0; font-style: italic;
  display: block; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ai-result { border-left: 3px solid #667eea; }
body.dark-mode .match-reason-line { color: #b39ddb; }
body.dark-mode .ai-result { border-left-color: #7c6faa; }
.alumni-tag.school { background: #e8eaf6; color: #283593; }
.alumni-arrow { color: #ccc; font-size: 16px; }

/* 筛选栏 */
.filter-bar {
  display: flex; gap: 8px; padding: 0 16px; margin-bottom: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
}
.filter-item { flex-shrink: 0; white-space: nowrap; }
.filter-item {
  padding: 6px 14px; background: #fff; border-radius: 16px; font-size: 13px;
  color: #666; cursor: pointer; border: 1px solid #e0e0e0;
}
.filter-item.active { background: #e8eaf6; color: #1a237e; border-color: #1a237e; }

/* 详情页 */
.detail-content { padding: 16px; }
.detail-header {
  text-align: center; padding: 24px 16px; background: #fff; border-radius: 12px; margin-bottom: 12px;
}
.detail-avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px;
  background: linear-gradient(135deg, #e8eaf6, #c5cae9);
  display: flex; align-items: center; justify-content: center; font-size: 32px;
}
.detail-name { font-size: 20px; font-weight: 700; color: #1a1a1a; }
.detail-subtitle { font-size: 14px; color: #888; margin-top: 4px; }
.detail-section { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.detail-section-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; color: #333; padding-bottom: 8px; border-bottom: 1px solid #f0f0f0; }
.detail-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.detail-row .label { color: #999; }
.detail-row .value { color: #333; font-weight: 500; text-align: right; max-width: 60%; }
.company-intro { text-align: left !important; max-width: 100% !important; color: #666 !important; font-weight: 400 !important; font-size: 13px !important; line-height: 1.6; white-space: pre-wrap; word-break: break-all; }

/* 活动详情 */
.activity-detail-header { background: linear-gradient(135deg, #1a237e, #303f9f); color: #fff; padding: 24px 16px; border-radius: 12px; margin-bottom: 12px; }
.activity-detail-header .act-d-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.activity-detail-header .act-d-info { font-size: 13px; line-height: 2; opacity: 0.9; }
.btn-join {
  width: 100%; padding: 14px; background: linear-gradient(135deg, #1a237e, #303f9f);
  color: #fff; border: none; border-radius: 10px; font-size: 16px; font-weight: 600;
  cursor: pointer; margin-top: 16px;
}
.btn-join:active { opacity: 0.9; }

/* 个人中心 */
.profile-content { padding: 16px; }
.profile-header {
  display: flex; align-items: center; padding: 24px 16px;
  background: linear-gradient(135deg, #1a237e, #303f9f);
  border-radius: 12px; color: #fff; margin-bottom: 16px;
}
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%; margin-right: 16px;
  background: rgba(255,255,255,0.2); display: flex; align-items: center;
  justify-content: center; font-size: 28px;
}
.profile-name { font-size: 20px; font-weight: 700; }
.profile-role { font-size: 13px; opacity: 0.8; margin-top: 4px; }
.profile-menu { background: #fff; border-radius: 12px; overflow: hidden; }
.profile-menu-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid #f5f5f5; cursor: pointer;
}
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item .pm-left { display: flex; align-items: center; gap: 10px; }
.profile-menu-item .pm-icon { font-size: 18px; }
.profile-menu-item .pm-label { font-size: 15px; }
.profile-menu-item .pm-arrow { color: #ccc; }
.profile-menu-item .badge {
  background: #e53935; color: #fff; font-size: 11px;
  padding: 2px 6px; border-radius: 10px; margin-left: 6px;
}
.btn-logout {
  width: 100%; padding: 14px; margin-top: 20px;
  background: #fff; border: 1px solid #e53935; color: #e53935;
  border-radius: 10px; font-size: 16px; cursor: pointer;
}

/* 登录页 */
#page-login { background: linear-gradient(180deg, #1a237e 0%, #283593 40%, #f5f5f5 40%); }
#page-register { background: linear-gradient(180deg, #1a237e 0%, #283593 40%, #f5f5f5 40%); }
.login-header { text-align: center; padding: 60px 0 40px; color: #fff; }
.login-logo { font-size: 64px; margin-bottom: 16px; }
.login-header h1 { font-size: 24px; margin-bottom: 8px; }
.login-header p { font-size: 14px; opacity: 0.8; }
.login-form { padding: 0 24px; }
.form-item {
  display: flex; align-items: center; background: #fff; border-radius: 10px;
  padding: 0 14px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.form-icon { font-size: 18px; margin-right: 10px; }
.form-item input { border: none; outline: none; padding: 14px 0; flex: 1; font-size: 15px; }
.form-item select { border: none; outline: none; padding: 14px 0; flex: 1; font-size: 15px; background: #fff; }
.form-item textarea { border: none; outline: none; padding: 14px 0; flex: 1; font-size: 15px; resize: none; font-family: inherit; }
.form-section-title { font-size: 14px; font-weight: 600; color: #1a237e; padding: 8px 0 4px; margin-bottom: 4px; }
.form-label { width: 80px; flex-shrink: 0; font-size: 14px; color: #555; }
.btn-primary {
  width: 100%; padding: 14px; background: linear-gradient(135deg, #1a237e, #303f9f);
  color: #fff; border: none; border-radius: 10px; font-size: 16px; font-weight: 600;
  cursor: pointer; margin-top: 8px;
}
.btn-primary:active { opacity: 0.9; }
.login-tip { text-align: center; margin-top: 16px; font-size: 13px; color: #999; }

/* 底部Tab */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  display: flex; background: #fff; border-top: 1px solid #eee;
  padding: 6px 0 env(safe-area-inset-bottom); z-index: 100;
}
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 2px; cursor: pointer; padding: 4px 0;
}
.tab-item .tab-icon { font-size: 20px; }
.tab-item span { font-size: 11px; color: #999; }
.tab-item.active span { color: #1a237e; font-weight: 600; }

/* 弹出菜单 */
.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 200; background: rgba(0,0,0,0.3); }
.modal.show { display: block; }
.menu-content {
  position: absolute; top: 50px; right: 16px;
  background: #fff; border-radius: 10px; padding: 8px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15); min-width: 160px;
}
.menu-item { padding: 12px 20px; font-size: 15px; cursor: pointer; }
.menu-item:active { background: #f5f5f5; }
.menu-danger { color: #e53935; }

/* Toast */
.toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.75); color: #fff; padding: 10px 24px;
  border-radius: 8px; font-size: 14px; z-index: 3000;
  display: none; pointer-events: none;
}
.toast.show { display: block; animation: toastIn 0.2s ease; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* 空状态 */
.empty-state { text-align: center; padding: 60px 20px; color: #999; }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state .empty-text { font-size: 14px; }

/* 滚动条隐藏 */
::-webkit-scrollbar { display: none; }
body { -ms-overflow-style: none; scrollbar-width: none; }

/* ===== 新增页面样式 ===== */

/* 通讯录 */
.directory-content { padding: 16px; }
.dir-card {
  background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.dir-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.dir-desc { font-size: 13px; color: #666; margin-bottom: 12px; }
.dir-meta { display: flex; gap: 16px; font-size: 12px; color: #999; }
.dir-btn {
  margin-top: 12px; padding: 8px 16px; background: #1a237e; color: #fff;
  border: none; border-radius: 6px; font-size: 13px; cursor: pointer;
}

/* 资源对接 */
.resource-tabs {
  display: flex; background: #fff; padding: 0 16px; border-bottom: 1px solid #eee;
}
.res-tab {
  flex: 1; text-align: center; padding: 14px 0; font-size: 14px;
  color: #666; cursor: pointer; position: relative;
}
.res-tab.active { color: #1a237e; font-weight: 600; }
.res-tab.active::after {
  content: ''; position: absolute; bottom: 0; left: 25%; right: 25%;
  height: 2px; background: #1a237e;
}
.resource-list { padding: 16px; }
.res-card {
  background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px;
}
.res-type {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; margin-bottom: 8px;
}
.res-type.supply { background: #e8f5e9; color: #2e7d32; }
.res-type.demand { background: #e3f2fd; color: #1565c0; }
.res-type.coop { background: #fff3e0; color: #e65100; }
.res-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.res-desc { font-size: 13px; color: #666; margin-bottom: 12px; line-height: 1.5; }
.res-footer { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #999; }
.res-contact { color: #1a237e; cursor: pointer; }

/* 学术资源 */
.academic-categories { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  display: flex; background: #fff; padding: 12px 16px; gap: 12px;
}
.acad-cat { flex-shrink: 0; white-space: nowrap; 
  padding: 6px 16px; border-radius: 16px; font-size: 13px;
  background: #f5f5f5; color: #666; cursor: pointer;
}
.acad-cat.active { background: #1a237e; color: #fff; }
.academic-content { padding: 16px; }
.paper-card {
  background: #fff; border-radius: 10px; padding: 16px; margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04); cursor: pointer; transition: transform 0.1s;
}
.paper-card:active { transform: scale(0.98); }
.paper-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: #1a237e; }
.paper-authors { font-size: 13px; color: #666; margin-bottom: 8px; }
.paper-journal { font-size: 12px; color: #999; margin-bottom: 12px; }
.paper-abstract { font-size: 13px; color: #333; line-height: 1.6; }

/* 创业孵化 */
.startup-banner {
  background: linear-gradient(135deg, #1a237e, #303f9f);
  padding: 24px 16px; color: #fff; text-align: center;
}
.startup-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.startup-desc { font-size: 14px; opacity: 0.9; }
.startup-services {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding: 16px; background: #fff; margin: 12px 16px; border-radius: 12px;
}
.st-service { text-align: center; cursor: pointer; }
.st-icon { font-size: 28px; margin-bottom: 6px; }
.st-name { font-size: 12px; color: #333; }
.startup-projects { padding: 0 16px 16px; }
.project-card {
  background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px;
}
.project-name { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.project-tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; background: #e3f2fd; color: #1565c0; margin-bottom: 8px;
}
.project-desc { font-size: 13px; color: #666; line-height: 1.5; margin-bottom: 12px; }
.project-founder { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #333; }
.project-avatar { width: 24px; height: 24px; border-radius: 50%; background: #1a237e; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }

/* 学术资源 */
#academic-content .activity-card { border-bottom: 1px solid #f0f0f0; border-radius: 0; box-shadow: none; margin-bottom: 0 !important; padding: 16px; }
#academic-content .activity-card:last-child { border-bottom: none; }
#academic-content .activity-card:active { background: #fafafa; }
.global-map { padding: 16px; }
.region-card {
  background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px;
  cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.region-name { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.region-info { font-size: 13px; color: #666; margin-bottom: 8px; }
.region-count { font-size: 13px; color: #1a237e; font-weight: 500; }

/* 终身学习 */
.learning-tabs {
  display: flex; background: #fff; padding: 0 16px; border-bottom: 1px solid #eee;
}
.learn-tab {
  flex: 1; text-align: center; padding: 14px 0; font-size: 14px;
  color: #666; cursor: pointer; position: relative;
}
.learn-tab.active { color: #1a237e; font-weight: 600; }
.learn-tab.active::after {
  content: ''; position: absolute; bottom: 0; left: 25%; right: 25%;
  height: 2px; background: #1a237e;
}
.learning-content { padding: 16px; }
.course-card {
  background: #fff; border-radius: 10px; overflow: hidden; margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04); cursor: pointer; transition: transform 0.1s;
}
.course-card:active { transform: scale(0.98); }
.course-cover {
  height: 120px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 48px;
}
.course-info { padding: 12px; }
.course-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.course-meta { font-size: 12px; color: #999; margin-bottom: 8px; }
.course-price { font-size: 16px; color: #e53935; font-weight: 600; }
.course-btn {
  float: right; padding: 6px 16px; background: #1a237e; color: #fff;
  border: none; border-radius: 6px; font-size: 13px; cursor: pointer;
}

/* 校友动态详情 */
.news-detail-content { padding: 16px; }
.news-detail-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; line-height: 1.4; }
.news-detail-meta { font-size: 13px; color: #999; margin-bottom: 16px; }
.news-detail-body { font-size: 15px; line-height: 1.8; color: #333; }
.news-detail-body p { margin-bottom: 12px; }
/* ===== 响应式适配 - PC / iPad ===== */

/* ---- iPad 横/竖屏（768px - 1023px）---- */
@media screen and (min-width: 768px) {
  #app {
    max-width: 720px;
    margin: 0 auto;
  }

  /* 主页内容区加大留白 */
  .section { margin: 0 24px 20px; }
  .search-bar { margin: 14px 24px; }

  /* 数据概览 — 保持横向排列，拉开间距 */
  .stats-card {
    margin: 0 24px 16px;
    padding: 20px 16px;
    border-radius: 16px;
  }
  .stat-num { font-size: 30px; color: #fff; }
  .stat-label { font-size: 13px; }

  /* 快捷功能 — 保持 4 列但撑开 */
  .quick-actions {
    margin: 0 24px 20px;
    padding: 20px;
    gap: 12px;
    border-radius: 16px;
  }
  .action-icon { width: 52px; height: 52px; font-size: 24px; }

  /* 服务网格 — 4 列但间距更大 */
  .service-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 20px 24px;
    border-radius: 16px;
  }
  .service-icon { width: 52px; height: 52px; font-size: 26px; }

  /* 校友列表 — 改为双栏 grid */
  .alumni-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 24px 16px;
  }
  .alumni-card {
    margin-bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
  .alumni-avatar { width: 44px; height: 44px; font-size: 20px; margin-bottom: 10px; }
  .alumni-tags { margin-top: 8px; }

  /* 校友列表-简版 — 双栏 */
  .alumni-mini-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 16px;
    padding: 0;
  }

  /* 活动列表 — 双栏 */
  .activity-full-list,
  .activity-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 24px 16px;
  }
  .activity-full-list .activity-card,
  .activity-list .activity-card { margin-bottom: 0; }

  /* 登录页 — 整体居中，表单更宽 */
  .login-form { padding: 0 40px; }
  #page-login { background: linear-gradient(180deg, #1a237e 0%, #283593 35%, #f5f5f5 35%); }
  #page-register { background: linear-gradient(180deg, #1a237e 0%, #283593 35%, #f5f5f5 35%); }
  .login-header { padding: 80px 0 50px; }
  .login-logo { font-size: 72px; }
  .login-header h1 { font-size: 28px; }

  /* 底部 Tab — 加宽 */
  .tabbar { max-width: 720px; }

  /* 筛选栏 */
  .filter-bar { padding: 0 24px; }

  /* 通讯录 */
  .directory-content { padding: 16px 24px; }
  .dir-card { padding: 20px; }

  /* 资源对接 */
  .resource-list { padding: 16px 24px; }
  .resource-tabs { padding: 0 24px; }

  /* 学术资源 */
  .academic-categories { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; } padding: 12px 24px; }
  .academic-content { padding: 16px 24px; }
  .paper-card { padding: 20px; }

  /* 创业孵化 */
  .startup-banner { padding: 32px 24px; }
  .startup-services { margin: 12px 24px; }
  .startup-projects { padding: 0 24px 16px; }

  /* 学术资源 — 双栏 */
  .global-map { padding: 16px 24px; }
  .global-map .region-card { padding: 20px; }

  /* 终身学习 */
  .learning-tabs { padding: 0 24px; }
  .learning-content { padding: 16px 24px; }

  /* 详情页 */
  .detail-content { padding: 20px 24px; }

  /* 个人中心 */
  .profile-content { padding: 16px 24px; }
  .profile-header { padding: 28px 20px; }
}

/* ---- PC 大屏（1024px+）---- */
@media screen and (min-width: 1024px) {
  #app {
    max-width: 960px;
    margin: 0 auto;
  }

  /* 主页 — 增加两侧留白 */
  .section { margin: 0 32px 24px; }
  .search-bar { margin: 16px 32px; }

  /* 数据概览 — 更舒展 */
  .stats-card {
    margin: 0 32px 20px;
    padding: 24px 20px;
    border-radius: 20px;
  }
  .stat-num { font-size: 36px; }
  .stat-label { font-size: 14px; }
  .stat-item { flex: 1; }

  /* 快捷功能 */
  .quick-actions {
    margin: 0 32px 24px;
    padding: 24px;
    gap: 16px;
    border-radius: 16px;
  }
  .action-icon { width: 60px; height: 60px; font-size: 28px; border-radius: 16px; }
  .action-item span { font-size: 13px; }

  /* 服务网格 */
  .service-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 24px 32px;
  }
  .service-icon { width: 60px; height: 60px; font-size: 30px; border-radius: 16px; }
  .service-name { font-size: 14px; }
  .service-desc { font-size: 12px; }

  /* 校友列表 — 三栏 */
  .alumni-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0 32px 20px;
  }
  .alumni-card { padding: 18px; }
  .alumni-avatar { width: 48px; height: 48px; }

  /* 校友列表-简版 — 三栏 */
  .alumni-mini-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0;
  }

  /* 活动列表 — 三栏 */
  .activity-full-list,
  .activity-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0 32px 20px;
  }
  .activity-full-list .activity-card,
  .activity-list .activity-card { margin-bottom: 0; padding: 18px; }

  /* 登录页 */
  .login-form { padding: 0 60px; }
  #page-login { background: linear-gradient(180deg, #1a237e 0%, #283593 30%, #f5f5f5 30%); }
  #page-register { background: linear-gradient(180deg, #1a237e 0%, #283593 30%, #f5f5f5 30%); }
  .login-header { padding: 100px 0 60px; }
  .login-logo { font-size: 80px; }
  .login-header h1 { font-size: 32px; }
  .login-header p { font-size: 15px; }
  .form-item { border-radius: 12px; padding: 0 16px; }
  .form-item input { font-size: 16px; padding: 16px 0; }
  .form-item select { font-size: 16px; padding: 16px 0; }
  .form-item textarea { font-size: 16px; padding: 16px 0; }
  .btn-primary { padding: 16px; font-size: 17px; border-radius: 12px; }
  .login-tip { font-size: 14px; }

  /* 底部 Tab — 最大宽度跟随 app */
  .tabbar { max-width: 960px; }
  .tab-icon { font-size: 22px; }
  .tab-item span { font-size: 12px; }

  /* 筛选栏 */
  .filter-bar { padding: 0 32px; margin-bottom: 16px; }
  .filter-item { padding: 8px 18px; font-size: 14px; }

  /* 通讯录 */
  .directory-content { padding: 20px 32px; }
  .dir-card { padding: 24px; }

  /* 资源对接 — 双栏 grid */
  .resource-list { padding: 20px 32px; }
  .resource-tabs { padding: 0 32px; }
  .res-card { padding: 20px; }

  /* 学术资源 */
  .academic-categories { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; } padding: 14px 32px; }
  .academic-content { padding: 20px 32px; }
  .paper-card { padding: 24px; }
  .paper-card { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .paper-card .paper-abstract { grid-column: 1 / -1; }

  /* 创业孵化 */
  .startup-banner { padding: 40px 32px; }
  .startup-title { font-size: 24px; }
  .startup-services { margin: 16px 32px; padding: 24px; gap: 16px; }
  .startup-services .st-icon { font-size: 36px; }
  .startup-projects { padding: 0 32px 20px; }
  .project-card { padding: 20px; }

  /* 学术资源 — 四栏 */
  .global-map {
    padding: 20px 32px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .global-map .region-card { margin-bottom: 0; }

  /* 终身学习 — 双栏 */
  .learning-tabs { padding: 0 32px; }
  .learning-content { padding: 20px 32px; }
  .course-card { display: flex; }
  .course-cover { width: 200px; flex-shrink: 0; height: auto; min-height: 140px; }
  .course-info { flex: 1; }

  /* 详情页 */
  .detail-content { padding: 24px 32px; }
  .detail-header { padding: 32px 20px; }
  .detail-avatar { width: 80px; height: 80px; font-size: 36px; }
  .detail-name { font-size: 22px; }
  .detail-section { padding: 20px; border-radius: 16px; }

  /* 个人中心 */
  .profile-content { padding: 20px 32px; }
  .profile-header { padding: 32px 24px; border-radius: 16px; }
  .profile-avatar { width: 72px; height: 72px; font-size: 32px; }
  .profile-name { font-size: 22px; }
  .profile-menu { border-radius: 16px; overflow: hidden; }
  .profile-menu-item { padding: 16px 20px; }
  .profile-menu-item .pm-label { font-size: 16px; }
}

/* ---- 大屏 PC（1280px+）---- */
@media screen and (min-width: 1280px) {
  #app {
    max-width: 1100px;
    margin: 0 auto;
  }

  /* 校友列表 — 四栏 */
  .alumni-list {
    grid-template-columns: repeat(4, 1fr);
  }

  /* 活动列表 — 四栏 */
  .activity-full-list,
  .activity-list {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Tab bar max width */
  .tabbar { max-width: 1100px; }
  .global-map { grid-template-columns: repeat(2, 1fr); }
}

/* ---- 兼容 iPad 横屏（1024px 横屏特殊）---- */
@media screen and (min-width: 1024px) and (max-height: 768px) {
  .login-header { padding: 40px 0 30px; }
  .login-logo { font-size: 64px; }
}

/* ---- 修复：PC 上页面底部留白（tabbar fixed 占用空间）---- */
@media screen and (min-width: 768px) {
  .page { padding-bottom: 80px; }
}

/* ---- 修复：PC 上 modal 弹出层宽度 ---- */
@media screen and (min-width: 768px) {
  .menu-content {
    right: calc(50% - 360px);
  }
}
@media screen and (min-width: 1024px) {
  .menu-content {
    right: calc(50% - 480px);
  }
}
@media screen and (min-width: 1280px) {
  .menu-content {
    right: calc(50% - 550px);
  }
}

/* ---- 修复：iPad 横屏登录页背景 ---- */
@media screen and (min-width: 768px) and (orientation: landscape) {
  #page-login {
    background: linear-gradient(180deg, #1a237e 0%, #283593 28%, #f5f5f5 28%);
  }
  .login-header { padding: 40px 0 30px; }
}

/* ---- 导航栏在宽屏下更舒适 ---- */
@media screen and (min-width: 768px) {
  .navbar {
    height: 56px;
    padding: 0 24px;
    font-size: 18px;
  }
  .navbar-title { font-size: 18px; }
}

/* SUSTech Logo Styling */
.sustech-logo-login {
  height: 60px;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

.sustech-logo-nav {
  height: 24px;
  vertical-align: middle;
  margin-right: 6px;
}

.login-header .motto {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 2px;
  margin: 4px 0 8px;
  font-style: italic;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .sustech-logo-login {
    height: 48px;
  }
  .sustech-logo-nav {
    height: 20px;
  }
}

/* 注册页 placeholder 文字颜色 */
.form-item input::placeholder { color: #aaa; }

/* ===== 管理面板 ===== */
#page-admin { padding: 0; }
.admin-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white; padding: 20px; border-bottom: 2px solid #0f3460;
}
.admin-title { font-size: 24px; font-weight: bold; margin-bottom: 15px; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.tab-btn {
  padding: 8px 16px; border: none; border-radius: 6px; cursor: pointer;
  background: rgba(255,255,255,0.15); color: white; font-size: 14px; transition: 0.2s;
}
.tab-btn.active { background: #e94560; font-weight: bold; }
.tab-btn:hover { background: rgba(255,255,255,0.3); }
.btn-back {
  background: rgba(255,255,255,0.2); border: none; color: white;
  padding: 6px 16px; border-radius: 6px; cursor: pointer; margin-top: 5px;
}
.admin-section { padding: 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; margin-bottom: 20px; }
.stat-card {
  background: white; border-radius: 12px; padding: 20px; text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); border: 1px solid #eee;
}
.stat-card.stat-warn .stat-num { color: #e94560; }
.stat-card.stat-ok .stat-num { color: #27ae60; }
.stat-num { font-size: 36px; font-weight: bold; color: #fff; }
.dist-section { background: white; border-radius: 12px; padding: 20px; }
.section-desc { color: #666; margin-bottom: 15px; font-size: 14px; }
.filter-row { margin-bottom: 15px; }
.filter-row select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.admin-item {
  background: white; border-radius: 10px; padding: 15px; margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06); border: 1px solid #f0f0f0;
}
.admin-item-info { flex: 1; }
.admin-item-info h4 { margin: 0 0 4px 0; font-size: 16px; }
.admin-item-info p { margin: 0; color: #888; font-size: 13px; }
.admin-item-actions { display: flex; gap: 8px; }
.btn-approve {
  background: #27ae60; color: white; border: none; padding: 6px 14px;
  border-radius: 6px; cursor: pointer; font-size: 13px;
}
.btn-reject {
  background: #e74c3c; color: white; border: none; padding: 6px 14px;
  border-radius: 6px; cursor: pointer; font-size: 13px;
}
.btn-delete {
  background: #7f8c8d; color: white; border: none; padding: 6px 14px;
  border-radius: 6px; cursor: pointer; font-size: 13px;
}
.btn-edit-ann {
  background: #3498db; color: white; border: none; padding: 6px 14px;
  border-radius: 6px; cursor: pointer; font-size: 13px;
}
.form-section {
  background: white; border-radius: 12px; padding: 20px; margin: 15px 0;
  border: 1px solid #e0e0e0;
}
.form-section input, .form-section select, .form-section textarea {
  width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px;
  font-size: 14px; margin-bottom: 10px; box-sizing: border-box; font-family: inherit;
}
.form-btns { display: flex; gap: 10px; margin-top: 10px; }
.btn-primary {
  background: #e94560; color: white; border: none; padding: 10px 24px;
  border-radius: 6px; cursor: pointer; font-size: 14px;
}
.btn-secondary {
  background: #95a5a6; color: white; border: none; padding: 10px 24px;
  border-radius: 6px; cursor: pointer; font-size: 14px;
}
.admin-alumni-row {
  display: flex; justify-content: space-between; align-items: center;
  background: white; padding: 12px 15px; border-radius: 8px; margin-bottom: 8px;
  border: 1px solid #f0f0f0; font-size: 14px;
}
.admin-alumni-row .name { font-weight: bold; color: #1a1a2e; }
.admin-alumni-row .meta { color: #888; font-size: 12px; }
.status-badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px;
}
.status-active { background: #d4edda; color: #155724; }
.status-pending { background: #fff3cd; color: #856404; }
.status-inactive { background: #e2e3e5; color: #383d41; }
.status-rejected { background: #f8d7da; color: #721c24; }

/* ===== 深色模式 ===== */
body.dark-mode,
body.dark-mode .page,
body.dark-mode .modal-page {
  background: #1a1a2e !important;
  color: #e0e0e0;
}
body.dark-mode .navbar { background: #16213e; color: #e0e0e0; border-bottom-color: #2a2a4a; }
body.dark-mode .navbar-title { color: #e0e0e0; }
body.dark-mode .navbar-left { color: #90caf9; }
body.dark-mode .profile-menu { background: #16213e; border-color: #2a2a4a; }
body.dark-mode .profile-menu-item { border-bottom-color: #2a2a4a; }
body.dark-mode .pm-label { color: #e0e0e0; }
body.dark-mode .pm-arrow { color: #666; }
body.dark-mode .profile-header { background: #16213e; }
body.dark-mode .profile-name { color: #e0e0e0; }
body.dark-mode .profile-role { color: #90caf9; }
body.dark-mode .alumni-card { background: #16213e; border-color: #2a2a4a; }
body.dark-mode .alumni-name { color: #e0e0e0; }
body.dark-mode .alumni-company { color: #aaa; }
body.dark-mode .alumni-tag { background: #2a2a4a; color: #90caf9; }
body.dark-mode .detail-header { background: #16213e; }
body.dark-mode .detail-name { color: #e0e0e0; }
body.dark-mode .detail-section { background: #16213e; border-color: #2a2a4a; }
body.dark-mode .detail-section-title { color: #90caf9; }
body.dark-mode .activity-card { background: #16213e; border-color: #2a2a4a; }
body.dark-mode .act-title { color: #e0e0e0; }
body.dark-mode .filter-item { background: #2a2a4a; color: #aaa; border-color: #3a3a5a; }
body.dark-mode .filter-item.active { background: #1a237e; color: #e8eaf6; border-color: #5c6bc0; }
body.dark-mode .btn-logout { background: #4a1a1a; color: #ef9a9a; }
body.dark-mode .search-input-wrapper input { background: #16213e; color: #e0e0e0; border-color: #2a2a4a; }
body.dark-mode .search-input-wrapper input::placeholder { color: #6a6a8a; opacity: 1; }
body.dark-mode .search-ai-badge { opacity: 0.9; }
body.dark-mode .search-clear-btn { color: #777; }
body.dark-mode .ai-search-btn { opacity: 0.9; }
body.dark-mode .home-search-row { background: #16213e; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
body.dark-mode .home-search-row .search-input-wrapper input { background: transparent; color: #e0e0e0; }
body.dark-mode .home-search-row .search-input-wrapper input::placeholder { color: #6a6a8a; opacity: 1; }

/* 页脚 - 技术支持 */
/* JIMAX底部栏 - 上拉露出 */
.jimax-bottom-bar {
  position: fixed;
  bottom: 50px;
  bottom: calc(50px + env(safe-area-inset-bottom, 0px));
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px 16px 0 16px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0,0,0,0.06);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.jimax-bottom-bar.jimax-bar-visible {
  transform: translateY(0);
}
.jimax-bar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #999;
  padding: 4px 0 6px 0;
}
.jimax-bar-text { color: #aaa; font-size: 11px; }

/* 筛选弹窗滚动修复 */
.filter-dialog-scroll {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  min-height: 0;
}

/* 加载更多按钮 */
.load-more-btn {
  text-align: center;
  padding: 12px;
  margin: 8px 16px;
  background: #fff;
  border-radius: 8px;
  color: #1a73e8;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.load-more-btn:active { background: #f0f0f0; }

.site-footer {
  text-align: center;
  padding: 1px 16px 0px;
  font-size: 10px;
  color: #bbb;
  letter-spacing: 0.5px;
}
.site-footer a {
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: #666;
}

/* 页脚 logo */
.footer-logo {
  height: 12px;
  vertical-align: middle;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.footer-logo:hover {
  opacity: 0.8;
}
.footer-logo-link {
  display: inline-block;
  vertical-align: middle;
}

.site-link { color: #2563eb; text-decoration: none; word-break: break-all; }
.site-link:hover { text-decoration: underline; }



/* 加载更多按钮 */
.load-more-btn {
  text-align: center;
  padding: 12px;
  margin: 8px 16px;
  background: #fff;
  border-radius: 8px;
  color: #1a73e8;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.load-more-btn:active { background: #f0f0f0; }


/* === AI Search Bar === */
.search-row { display: flex; gap: 8px; align-items: center; margin: 12px 16px; }
.search-input-wrapper { flex: 1; position: relative; display: flex; align-items: center; }
.search-ai-badge {
  position: absolute; left: 10px; z-index: 2;
  background: linear-gradient(135deg,#667eea,#764ba2); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 6px;
  border-radius: 4px; letter-spacing: 0.5px;
}
.search-input-wrapper input {
  width: 100%; padding: 10px 36px 10px 42px;
  border: 1.5px solid #e0e0e0; border-radius: 8px;
  font-size: 14px; transition: border-color 0.2s;
}
.search-input-wrapper input:focus { border-color: #667eea; outline: none; }
.search-input-wrapper input::placeholder { color: #999; opacity: 1; }
.search-clear-btn {
  position: absolute; right: 8px; background: none; border: none;
  font-size: 16px; color: #999; cursor: pointer; padding: 4px;
}
.ai-search-btn {
  flex-shrink: 0; padding: 10px 16px;
  background: linear-gradient(135deg,#667eea,#764ba2); color: #fff;
  border: none; border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: opacity 0.2s;
}
.ai-search-btn:active { opacity: 0.8; }


/* Home search row — white bg to match page */
.home-search-row {
  background: #fff; border-radius: 8px; padding: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.home-search-row .search-input-wrapper input { border: none; background: transparent; }
.home-search-row .search-input-wrapper input:focus { border: none; box-shadow: none; }


/* === 校友连接器 === */
.connector-bar { display: flex; gap: 8px; align-items: center; margin: 0 16px 8px; }
.connector-select { flex: 1; padding: 9px 12px; border: 1.5px solid #e0e0e0; border-radius: 8px; font-size: 13px; color: #333; background: #fff; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23999'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
.connector-select:focus { border-color: #667eea; outline: none; }
.connector-btn { flex-shrink: 0; padding: 9px 16px; background: linear-gradient(135deg,#43a047,#66bb6a); color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: opacity 0.2s; }
.connector-btn:disabled { background: #ccc; cursor: not-allowed; }
.connector-btn:not(:disabled):active { opacity: 0.8; }
#connector-results { margin: 0 16px; }
.connector-header { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 10px; padding-top: 4px; }
#connector-list { display: flex; flex-direction: column; gap: 8px; }
.connector-card { background: #fff; border-radius: 10px; padding: 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); border-left: 4px solid #43a047; cursor: pointer; transition: box-shadow 0.2s; }
.connector-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.connector-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.connector-card-name { font-size: 15px; font-weight: 600; color: #1a237e; }
.connector-card-score { font-size: 11px; background: linear-gradient(135deg,#e8f5e9,#c8e6c9); color: #2e7d32; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.connector-card-sub { font-size: 12px; color: #666; margin-bottom: 8px; }
.connector-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.connector-card-tag { font-size: 10px; background: #f0f0f0; color: #666; padding: 2px 8px; border-radius: 10px; }
.connector-card-tag.offer { background: #e8f5e9; color: #2e7d32; }
.connector-card-tag.seek { background: #fff3e0; color: #e65100; }
.connector-reasons { border-top: 1px solid #f0f0f0; padding-top: 8px; }
.connector-reason { font-size: 11px; color: #5c6bc0; padding: 2px 0; display: flex; align-items: flex-start; gap: 4px; }
.connector-reason::before { content: '✓'; color: #43a047; font-weight: 700; flex-shrink: 0; }
.connector-actions { margin: 12px 0; text-align: center; }
.btn-connector-back { background: none; border: 1px solid #ddd; border-radius: 8px; padding: 8px 20px; font-size: 13px; color: #666; cursor: pointer; }
.btn-connector-back:active { background: #f5f5f5; }
body.dark-mode .connector-select { background: #16213e; color: #e0e0e0; border-color: #2a2a4a; }
body.dark-mode .connector-card { background: #1a1a2e; border-left-color: #66bb6a; }
body.dark-mode .connector-card-name { color: #90caf9; }
body.dark-mode .connector-card-sub { color: #aaa; }
body.dark-mode .connector-card-tag { background: #2a2a4a; color: #aaa; }
body.dark-mode .connector-card-tag.offer { background: #1a3a1a; color: #66bb6a; }
body.dark-mode .connector-card-tag.seek { background: #3a2a1a; color: #ffb74d; }
body.dark-mode .connector-reason { color: #7986cb; }
body.dark-mode .btn-connector-back { border-color: #3a3a5a; color: #aaa; background: transparent; }
body.dark-mode .connector-btn:disabled { background: #444; }
body.dark-mode .search-row { background: transparent; }
body.dark-mode .connector-header { color: #e0e0e0; }

/* 首页搜索结果显示 */
.home-search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  margin-bottom: 8px;
}
.home-search-back {
  color: #1565c0;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
}
.home-search-count {
  color: #999;
  font-size: 13px;
}


/* ====== Activity Hero Card ====== */
.hero-activity-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 240px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-activity-card:active {
  transform: scale(0.98);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.1) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 100px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  box-sizing: border-box;
}
.hero-badge {
  display: inline-block;
  background: #4caf50;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  align-self: flex-start;
  margin-bottom: 8px;
}
.hero-title {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}
.hero-meta span {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hero-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.hero-attendees {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
}
.hero-attendees b {
  color: #ffd54f;
  font-weight: 700;
}
.hero-urgency {
  color: #ff8a65;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0,0,0,0.3);
  padding: 3px 8px;
  border-radius: 8px;
}
.hero-urgency b {
  color: #ffab91;
}
.hero-join-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #43a047, #66bb6a);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(76,175,80,0.4);
  transition: background 0.2s, transform 0.1s;
}
.hero-join-btn:active {
  transform: scale(0.97);
  background: linear-gradient(135deg, #388e3c, #43a047);
}

/* ====== Notification Badge ====== */
.notif-bell {
  position: relative;
  cursor: pointer;
  font-size: 20px;
}
.notif-dot {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  background: #f44336;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-sizing: border-box;
}

/* ====== Directory Cards ====== */
.directory-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.directory-card:active { background: #f5f5f5; }
.directory-info { flex: 1; }
.directory-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.directory-desc { font-size: 12px; color: #888; }
.directory-count {
  font-size: 12px;
  color: #1a73e8;
  background: #e8f0fe;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
}
.directory-join-btn {
  padding: 8px 16px;
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 12px;
  white-space: nowrap;
}

/* ====== Mentor Cards ====== */
.mentor-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  cursor: pointer;
}
.mentor-card:active { background: #f5f5f5; }
.mentor-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.mentor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.mentor-name { font-weight: 600; font-size: 15px; }
.mentor-title { font-size: 12px; color: #888; }
.mentor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.mentor-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
  background: #f0f4ff;
  color: #3f51b5;
}
.mentor-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #888;
}
.mentor-request-btn {
  width: 100%;
  padding: 10px;
  background: #fff;
  color: #1a73e8;
  border: 1px solid #1a73e8;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}
.mentor-request-btn:active { background: #e8f0fe; }

/* ====== Leaderboard ====== */
.lb-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 8px;
}
.lb-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.lb-rank-1 { background: #ffd700; color: #5d4037; }
.lb-rank-2 { background: #c0c0c0; color: #424242; }
.lb-rank-3 { background: #cd7f32; color: #fff; }
.lb-rank-normal { background: #f0f0f0; color: #888; }
.lb-name { font-weight: 600; font-size: 14px; flex: 1; }
.lb-points { font-weight: 700; font-size: 14px; color: #1a73e8; }
.lb-level {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 600;
}
.lb-level-bronze { background: #fbe9e7; color: #bf360c; }
.lb-level-silver { background: #eceff1; color: #546e7a; }
.lb-level-gold { background: #fff8e1; color: #f57f17; }
.lb-level-platinum { background: #e8eaf6; color: #283593; }

/* ====== Chapter Cards (Phase 3) ====== */
.chapter-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chapter-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.chapter-info { flex: 1; }
.chapter-name { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.chapter-meta { font-size: 12px; color: #888; }
