/* ===== 全局样式 - 微信小程序风格 ===== */
* { 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;
}
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; background: #f5f5f5; }

/* 页面切换 */
.page { display: none; min-height: 100vh; padding-bottom: 60px; }
.page.active { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }

/* 导航栏 */
.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;
}
.navbar-left { cursor: pointer; font-size: 15px; min-width: 60px; }
.navbar-title { text-align: center; flex: 1; }
.navbar-right { min-width: 60px; text-align: right; cursor: pointer; font-size: 18px; }

/* 搜索栏 */
.search-bar {
  display: flex; align-items: center; margin: 12px 16px; padding: 8px 12px;
  background: #fff; border-radius: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.search-icon { margin-right: 8px; font-size: 14px; }
.search-bar input { border: none; outline: none; flex: 1; font-size: 14px; background: transparent; }

/* 数据概览 */
.stats-card {
  display: flex; margin: 0 16px 12px; padding: 16px;
  background: linear-gradient(135deg, #1a237e 0%, #303f9f 100%);
  border-radius: 12px; color: #fff;
}
.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;
}
.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;
}
.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%); }
.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; }
.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: 999;
  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 {
  display: flex; background: #fff; padding: 12px 16px; gap: 12px;
}
.acad-cat {
  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: 12px; padding: 16px; margin-bottom: 12px;
}
.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; }

/* 全球网络 */
.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: 12px; overflow: hidden; margin-bottom: 16px;
}
.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; }
  .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%); }
  .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 { 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%); }
  .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; }
  .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 { 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; }
}
