/* ============ 内容系统与校友中心页面样式 ============ */

/* 内页横幅 */
.page-hero { position: relative; color: #fff; padding: 72px 0 84px; overflow: hidden; background:
    radial-gradient(circle at 84% 22%, rgba(202,166,106,.32), transparent 26%),
    linear-gradient(115deg, rgba(24,48,89,.96), rgba(39,68,114,.8) 52%, rgba(19,44,70,.9)); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin: 0 0 10px; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: .04em; line-height: 1.2; }
.page-hero p { margin: 0; color: rgba(255,255,255,.82); max-width: 760px; }
.crumb { margin-top: 20px; font-size: 14px; color: rgba(255,255,255,.68); }
.crumb a { color: rgba(255,255,255,.92); }
.crumb a:hover { color: #fff; }

.page-section { padding: 62px 0; }
.page-section.soft { background: var(--soft); }

/* 工具栏与筛选 */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 18px; font-size: 14px; cursor: pointer; color: var(--muted); transition: all .18s ease; font-family: inherit; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--deep); border-color: var(--deep); color: #fff; }
.search-input { height: 44px; min-width: 240px; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; font: inherit; color: var(--ink); }
.search-input:focus { outline: 2px solid rgba(154,107,47,.18); border-color: var(--accent); }

/* 新闻卡片 */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card-cover { height: 170px; background-size: cover; background-position: center; background-color: #dfe7f1; }
.news-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card-body h3 { margin: 0; font-size: 19px; color: var(--deep); line-height: 1.45; }
.news-card-body p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.news-card-meta { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 13px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--deep); font-size: 12px; }

/* 新闻详情 */
.article { max-width: 860px; margin: 0 auto; }
.article-head { text-align: center; padding-bottom: 30px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.article-head h1 { font-size: clamp(26px, 3.6vw, 40px); color: var(--deep); line-height: 1.3; margin: 14px 0; }
.article-meta { color: var(--muted); font-size: 14px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; background-size: cover; background-position: center; height: 360px; background-color: #dfe7f1; }
.article-body { line-height: 1.95; color: #2b3648; font-size: 16px; }
.article-body p { margin: 0 0 18px; }
.article-body h2, .article-body h3 { color: var(--deep); margin: 28px 0 12px; }
.article-body img { border-radius: 12px; margin: 18px 0; max-width: 100%; height: auto; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 18px; }
.article-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; color: var(--accent); font-weight: 700; }

/* 活动列表 */
.event-list { display: grid; gap: 18px; }
.event-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 26px; transition: transform .2s ease, box-shadow .2s ease; }
.event-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event-detail-cover { height: 200px; border-radius: 14px; background-size: cover; background-position: center; margin-bottom: 14px; }
.event-detail-meta p { margin: 0; }
.event-detail-card h2 { font-size: 24px; }
.event-item:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(23,32,51,.08); }
.event-date { text-align: center; background: var(--deep); color: #fff; border-radius: 14px; padding: 12px 8px; line-height: 1.15; }
.event-date strong { display: block; font-size: 28px; }
.event-date span { font-size: 13px; color: rgba(255,255,255,.82); }
.event-main h3 { margin: 0 0 8px; font-size: 20px; color: var(--deep); }
.event-main p { margin: 0; color: var(--muted); }
.event-side { text-align: right; display: grid; gap: 10px; justify-items: end; }
.event-meta { color: var(--muted); font-size: 13px; }
.event-meta strong { color: var(--deep); }
.meta-row { display: flex; gap: 6px; align-items: center; }
.meta-row svg { flex: none; }

/* 校友名录 */
.directory-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.directory-table th, .directory-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.directory-table th { background: var(--soft); color: var(--deep); font-weight: 700; }
.directory-table tr:last-child td { border-bottom: 0; }
.directory-table tr:hover td { background: #fafbfd; }
.alumni-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.alumni-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.alumni-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(23,32,51,.08); }
.alumni-avatar { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: linear-gradient(135deg, var(--deep), var(--accent)); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.alumni-card h3 { margin: 0 0 6px; color: var(--deep); }
.alumni-card p { margin: 0; color: var(--muted); font-size: 14px; }
.alumni-card .alumni-tags { margin-top: 12px; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }

/* 通用空态与分页 */
.empty-state { text-align: center; color: var(--muted); padding: 64px 0; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pagination button { min-width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; font: inherit; }
.pagination button.active { background: var(--deep); color: #fff; border-color: var(--deep); }
.pagination button:disabled { opacity: .45; cursor: not-allowed; }

/* 状态徽标 */
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.badge.pending, .badge.need_more_info { background: #fef3c7; color: #92400e; }
.badge.approved, .badge.active, .badge.registered { background: #dcfce7; color: #166534; }
.badge.rejected, .badge.cancelled { background: #fee2e2; color: #b91c1c; }
.badge.checked_in { background: #dbeafe; color: #1e40af; }

/* 认证 / 账号表单 */
.auth-wrap { max-width: 620px; margin: 0 auto; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 38px; }
.auth-card h2 { margin: 0 0 8px; color: var(--deep); }
.auth-card > p { margin: 0 0 22px; color: var(--muted); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--soft); border-radius: 12px; padding: 6px; margin-bottom: 26px; }
.auth-tabs button { border: 0; background: transparent; padding: 12px; border-radius: 9px; font-weight: 700; color: var(--muted); cursor: pointer; font-family: inherit; font-size: 15px; }
.auth-tabs button.active { background: #fff; color: var(--deep); box-shadow: 0 6px 16px rgba(23,32,51,.08); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { color: var(--muted); font-size: 14px; }
.field input, .field select, .field textarea { height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: inherit; color: var(--ink); background: #fff; width: 100%; }
.three-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(154,107,47,.18); border-color: var(--accent); }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.form-tip { font-size: 13px; color: var(--muted); }
.consent-line { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.consent-line input { margin-top: 4px; }

/* 上传 */
.upload-box { border: 2px dashed var(--line); border-radius: 14px; padding: 26px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .2s ease, color .2s ease; background: var(--soft); }
.upload-box:hover, .upload-box.dragover { border-color: var(--accent); color: var(--accent); }
.upload-box strong { display: block; margin-bottom: 4px; color: var(--deep); }
.upload-preview { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.upload-preview figure { margin: 0; }
.upload-preview img { width: 100%; height: 104px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.upload-preview figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; text-align: center; }

/* 个人中心 */
.account-layout { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; }
.account-menu { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 6px; }
.account-menu a { padding: 12px 16px; border-radius: 10px; color: var(--muted); font-weight: 600; }
.account-menu a.active, .account-menu a:hover { background: var(--soft); color: var(--deep); }
.account-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; }
.account-panel h2 { margin: 0 0 18px; color: var(--deep); }
.profile-head { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.profile-head .alumni-avatar { margin: 0; width: 72px; height: 72px; font-size: 28px; }
.profile-head h3 { margin: 0; color: var(--deep); font-size: 22px; }
.profile-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.info-item { padding: 14px 16px; background: var(--soft); border-radius: 12px; }
.info-item small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.info-item strong { font-size: 15px; color: var(--deep); }

/* 关于 / 联系页面 */
.rich-text { max-width: 860px; margin: 0 auto; color: #2b3648; line-height: 1.9; }
.rich-text h2 { color: var(--deep); margin: 34px 0 14px; }
.rich-text h3 { color: var(--deep); margin: 26px 0 12px; }
.rich-text p { margin: 0 0 16px; }
.rich-text ul { padding-left: 22px; margin: 0 0 16px; }
.rich-text blockquote { border-left: 4px solid var(--accent); background: var(--soft); padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 0 0 16px; color: var(--muted); }
.rich-text img { max-width: 100%; border-radius: 12px; margin: 8px 0; }
.rich-text a { color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; text-align: center; }
.contact-card h3 { margin: 0 0 8px; color: var(--deep); }
.contact-card p { margin: 0; color: var(--muted); }

/* 提示条 */
.toast { position: fixed; left: 50%; bottom: 36px; transform: translate(-50%, 20px); background: #172033; color: #fff; padding: 12px 22px; border-radius: 999px; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 300; max-width: 90vw; box-shadow: 0 18px 40px rgba(23,32,51,.28); font-size: 14px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #b91c1c; }
.toast.info { background: #274472; }

@media (max-width: 980px) {
  .news-grid, .alumni-list, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .event-item { grid-template-columns: 84px 1fr; }
  .event-side { grid-column: 2; text-align: left; justify-items: start; }
  .account-layout { grid-template-columns: 1fr; }
  .account-menu { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .news-grid, .alumni-list, .contact-grid { grid-template-columns: 1fr; }
  .article-cover { height: 220px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-input { width: 100%; min-width: 0; }
  .event-item { grid-template-columns: 1fr; }
  .event-side { grid-column: 1; }
  .auth-card { padding: 26px; }
  .account-menu { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
}
/* 弹窗（活动报名） */
.modal-overlay { position: fixed; inset: 0; background: rgba(14,27,50,.55); display: none; align-items: center; justify-content: center; z-index: 260; padding: 20px; }
.modal-overlay.show { display: flex; }
.modal-overlay[hidden] { display: none !important; }
.modal, .modal-card { background: #fff; border-radius: 20px; max-width: 520px; width: 100%; padding: 30px; box-shadow: var(--shadow); max-height: 88vh; overflow: auto; }
.modal h3, .modal-card h3 { margin: 0 0 6px; color: var(--deep); }
.modal .modal-sub, .modal-card .modal-sub { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.modal-close { float: right; border: 0; background: transparent; font-size: 24px; cursor: pointer; color: var(--muted); line-height: 1; padding: 0; }
/* 微信登录 */
.divider-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 2px 0 14px; }
.divider-or::before, .divider-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-wechat { background: #07c160; color: #fff; width: 100%; }
.btn-wechat:hover { background: #06ad56; }
.auth-sub-tabs { display: flex; gap: 6px; background: var(--soft); padding: 4px; border-radius: 10px; margin-bottom: 14px; }
.auth-sub-tabs button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 8px; font-weight: 600; color: var(--muted); cursor: pointer; }
.auth-sub-tabs button.active { background: #fff; color: var(--deep); box-shadow: 0 4px 12px rgba(23,32,51,.08); }
.code-row { display: flex; gap: 8px; align-items: center; }
.code-row input { flex: 1; min-width: 0; }
.code-row .btn { white-space: nowrap; }
.form-link { font-size: 13px; color: var(--accent); text-decoration: none; margin-left: auto; }
.form-link:hover { text-decoration: underline; }
.auth-subtitle { margin: 0 0 6px; color: var(--deep); }
.auth-card .btn.ghost { color: var(--deep); border-color: var(--line); background: #fff; }
.auth-card .btn.ghost:hover { background: var(--soft); }
.notify-item { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.notify-item.unread { border-color: var(--accent); background: #f4f9ff; }
.notify-item strong { color: var(--deep); }
.notify-item p { margin: 6px 0; font-size: 14px; color: #444; }
.notify-item small { color: var(--muted); }
/* 论坛 */
.forum-post { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; cursor: pointer; transition: box-shadow .2s ease, transform .2s ease; }
.forum-post:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.forum-post h3 { margin: 0 0 8px; color: var(--deep); font-size: 17px; }
.forum-post-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; margin: 0; }
.forum-replies { margin-top: 10px; }
.forum-reply { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.forum-reply strong { color: var(--deep); margin-right: 10px; }
.forum-reply small { color: var(--muted); }
.forum-reply p { margin: 8px 0 0; white-space: pre-wrap; }

/* 招聘 */
.job-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; cursor: pointer; transition: box-shadow .2s ease, transform .2s ease; }
.job-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.job-card h3 { margin: 0 0 4px; color: var(--deep); font-size: 17px; }
.job-card-company { margin: 0 0 8px; color: var(--accent); font-weight: 700; }

/* 捐赠 */
.donate-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 26px; }
.donate-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.donate-item { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.donate-item strong { color: var(--deep); }
.donate-amount { color: var(--accent); font-weight: 800; }
.donate-item small { color: var(--muted); }
.donate-item p { grid-column: 1 / -1; margin: 4px 0 0; font-size: 14px; color: #444; }

/* 地图 */
.map-summary { margin-bottom: 22px; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.map-bar-row { display: grid; grid-template-columns: 120px 1fr 60px; gap: 10px; align-items: center; margin-bottom: 10px; }
.map-bar-name { color: var(--deep); font-weight: 600; font-size: 14px; }
.map-bar-track { background: var(--soft); border-radius: 999px; height: 14px; overflow: hidden; }
.map-bar-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #c9985f); border-radius: 999px; }
.map-bar-count { color: var(--muted); font-size: 13px; text-align: right; }
.map-city-item { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; font-size: 14px; color: var(--deep); }
.map-point-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.map-point-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.map-point-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.map-point-card .more-link { display: inline-block; margin-top: 8px; }

@media (max-width: 860px) {
  .donate-grid, .map-layout { grid-template-columns: 1fr; }
  .donate-stats { grid-template-columns: 1fr; }
  .map-bar-row { grid-template-columns: 90px 1fr 50px; }
}

/* 私信 */
.msg-app { display: grid; grid-template-columns: 300px 1fr; gap: 18px; min-height: 560px; align-items: stretch; }
.msg-side { background: #fff; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
.msg-side-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.msg-side-head strong { color: var(--deep); }
.msg-conv-list { flex: 1; overflow-y: auto; }
.msg-conv-item { padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.msg-conv-item:hover { background: var(--soft); }
.msg-conv-item.active { background: #f4f9ff; border-left: 3px solid var(--accent); }
.msg-conv-name { font-weight: 700; color: var(--deep); display: flex; align-items: center; gap: 8px; }
.msg-conv-last { font-size: 13px; color: var(--muted); margin: 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-conv-item small { color: var(--muted); font-size: 12px; }
.msg-chat { background: #fff; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
.msg-chat-head { padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--deep); }
.msg-chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; max-height: 460px; }
.msg-bubble { max-width: 72%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.6; }
.msg-bubble p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.msg-bubble small { display: block; margin-top: 4px; opacity: .7; font-size: 12px; }
.msg-bubble.mine { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg-bubble.theirs { align-self: flex-start; background: var(--soft); color: var(--ink); border-bottom-left-radius: 4px; }
.msg-composer { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); align-items: flex-end; }
.msg-composer textarea { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; resize: vertical; min-height: 52px; }

/* 企业黄页 */
.company-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.company-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.company-card-head { display: flex; align-items: center; gap: 12px; }
.company-card-head img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }
.company-logo-ph { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), #c9985f); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.company-card h3 { margin: 0; color: var(--deep); font-size: 17px; }
.company-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.company-intro { margin: 0; color: #555; font-size: 14px; line-height: 1.6; flex: 1; }
.company-foot { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.company-foot a { color: var(--accent); text-decoration: none; }

@media (max-width: 900px) {
  .msg-app { grid-template-columns: 1fr; }
  .company-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .company-grid { grid-template-columns: 1fr; }
}
