/* profile.css — 个人中心组件样式（profile.js 驱动）
 * profile.html 与 profile-dashboard.html 共同加载
 */
.profile-login { min-height: 630px; display: grid; grid-template-columns: 1fr 420px; gap: 110px; align-items: center; }
.profile-login-copy h1 { margin-bottom: 30px; font-size: clamp(54px, 6vw, 84px); line-height: .97; }
.profile-login-note { max-width: 520px; margin-top: 34px; padding-top: 16px; display: grid; grid-template-columns: 44px 1fr; border-top: 1px solid var(--line); }
.profile-login-note span { font: 700 11px Consolas, monospace; }
.profile-login-note p { margin: 0; color: #40403a; font-size: 12px; line-height: 1.55; }
.profile-panel { display: none; padding: 32px; background: white; border: 1px solid #d8d8d1; border-radius: var(--radius); }
.profile-panel-lead { max-width: 650px; margin-bottom: 30px; color: var(--muted); font-size: 13px; }
.notice-item { padding: 20px 0; display: grid; grid-template-columns: 38px 1fr; gap: 13px; border-bottom: 1px solid var(--line); }
.notice-marker { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--yellow); font-weight: 900; font-size: 12px; }
.notice-item.is-read .notice-marker { color: var(--green); background: #d9f2e8; }
.notice-item h3 { margin: 9px 0 7px; font-size: 16px; }
.notice-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.notice-item.is-read h3 { color: #55554f; }
.notice-item p { white-space: pre-wrap; }
/* 通知正文：纯文本走 <p>，超文本（format=html）用 .rich-text 渲染，间距交给公共规则。 */
.notice-item .notice-body { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
/* 参与确认（录取结果通知）：首页弹窗只弹一次，通知中心保留补回复入口。 */
.notice-reply-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.notice-reply-actions .outline-button { min-height: 34px; padding: 0 14px; font-size: 11px; }
.notice-reply-done { margin-top: 12px; display: inline-block; padding: 7px 12px; color: #07583e; background: #d9f2e8; border-radius: 4px; font-size: 11px; font-weight: 700; }

@media (max-width: 960px) {
  .profile-login { grid-template-columns: 1fr; gap: 48px; }
  .profile-login-copy h1 { font-size: 62px; }
}

@media (max-width: 620px) {
  .profile-login { min-height: 0; gap: 38px; }
  .profile-login-copy h1 { font-size: 52px; }
  .profile-panel { padding: 22px 17px; }
}

.profile-basic-readonly h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile-basic-readonly h3::after { content: "仅可查看"; padding: 5px 8px; color: var(--muted); background: #ecece5; border: 1px solid #d3d3c9; border-radius: 999px; font: 800 10px Consolas, monospace; letter-spacing: .04em; }
.profile-basic-readonly input[readonly], .profile-basic-readonly select:disabled { color: var(--muted); background: #f0f0ea; border-color: #d0d0c6; cursor: not-allowed; }
.profile-basic-readonly input[readonly]:focus { border-color: #d0d0c6; box-shadow: none; }
.profile-intended-teammates { margin-bottom: 18px; padding: 22px; background: linear-gradient(120deg, #fff4c2 0%, #fffbe8 76%); border: 1px solid #d7b839; border-left: 4px solid var(--coral); border-radius: var(--radius); box-shadow: 6px 6px 0 rgba(17, 17, 17, .06); }
.profile-intended-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.profile-intended-head h3 { margin: 0 0 7px; font-size: 21px; }
.profile-intended-meta { min-width: 78px; padding: 9px 12px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; color: var(--ink); background: rgba(255, 255, 255, .5); border: 1px solid #d7b839; }
.profile-intended-meta span, .profile-intended-subhead span { color: var(--coral); font: 800 9px Consolas, monospace; letter-spacing: .06em; }
.profile-intended-meta strong { font: 900 17px Consolas, monospace; }
.profile-intended-captain-card { margin-top: 18px; padding: 13px 15px; display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; background: rgba(255, 255, 255, .78); border: 1px solid #eadb91; border-radius: 4px; }
.profile-intended-role { padding: 5px 7px; color: white; background: var(--ink); font: 800 9px Consolas, monospace; letter-spacing: .05em; }
.profile-intended-captain-card div, .profile-intended-list li div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.profile-intended-captain-card strong, .profile-intended-list li strong { color: var(--ink); font-size: 13px; }
.profile-intended-captain-card span:not(.profile-intended-role), .profile-intended-list li div span { color: var(--muted); font: 10px Consolas, monospace; overflow-wrap: anywhere; }
.profile-intended-captain-card em, .profile-intended-list li em { padding: 5px 7px; color: var(--green); background: #e2f2ea; border-radius: 999px; font: 700 9px Consolas, monospace; font-style: normal; white-space: nowrap; }
.profile-intended-subhead { margin-top: 20px; padding-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid #e2ce72; }
.profile-intended-subhead small { color: #5e5a3d; font-size: 10px; }
.profile-intended-list { margin: 9px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; }
.profile-intended-list li { min-width: 0; padding: 11px 12px; display: grid; grid-template-columns: 25px 1fr auto; gap: 10px; align-items: center; background: rgba(255, 255, 255, .7); border: 1px solid #eadb91; border-radius: 4px; }
.profile-intended-index { color: #9b8b37; font: 800 10px Consolas, monospace; }
.profile-success { min-height: 19px; margin: 10px 0 0; color: var(--green); font-size: 11px; }

@media(max-width:600px) {
  .profile-intended-teammates { padding: 18px; }
  .profile-intended-head { flex-direction: column; gap: 16px; }
  .profile-intended-meta { align-items: flex-start; }
  .profile-intended-captain-card { grid-template-columns: auto 1fr; }
  .profile-intended-captain-card em { grid-column: 2; justify-self: start; }
  .profile-intended-list { grid-template-columns: 1fr; }
}

/* Roadshow participant summary on the personal page */
.roadshow-summary { margin-bottom: 20px; padding: 24px; background: linear-gradient(120deg, #e4f6fa 0%, #f8fdfe 74%); border: 1px solid #a9d6de; border-left: 4px solid var(--cyan); border-radius: var(--radius); box-shadow: 6px 6px 0 rgba(17, 17, 17, .06); }
.roadshow-summary h3 { margin: 0 0 8px; font-size: 21px; }
.roadshow-summary > p strong { padding: 4px 8px; color: var(--ink); background: var(--yellow); font: 900 13px Consolas, monospace; letter-spacing: .05em; }
.roadshow-summary dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.roadshow-summary dl > div { min-width: 0; padding: 11px 13px; display: flex; flex-direction: column; gap: 6px; background: rgba(255, 255, 255, .82); border: 1px solid #cbe4ea; border-radius: 4px; }
.roadshow-summary dt { color: var(--muted); font: 800 9px Consolas, monospace; letter-spacing: .06em; }
.roadshow-summary dd { margin: 0; color: var(--ink); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .roadshow-summary { padding: 18px; }
  .roadshow-summary dl { grid-template-columns: 1fr; }
}
