:root { color-scheme: light; font-family: system-ui, "Microsoft YaHei", sans-serif; color: #193047; background: #f3f6fa; }
.member-page { max-width: 1080px; margin: 0 auto; }
.member-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.member-heading h1 { margin: 8px 0; font-size: clamp(25px, 4vw, 34px); }
.member-link { font-weight: 600; white-space: nowrap; }
.member-page .card { padding: 28px; border-radius: 20px; }
.membership-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px; margin-bottom: 24px; border-radius: 24px; background: linear-gradient(115deg, #153655, #245da1); color: #fff; }
.membership-card h2 { font-size: 26px; margin: 12px 0; }
.member-kicker { color: #c5dcf8; letter-spacing: .12em; }
.member-small { font-size: 14px; color: #d6e7fd; }
.member-upgrade { padding: 14px 22px; border-radius: 12px; background: #fff; color: #1e4f89; font-weight: 700; white-space: nowrap; }
.member-grid, .member-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 24px 0; }
.member-details { display: grid; grid-template-columns: 110px 1fr; gap: 20px 12px; margin: 26px 0; }
.member-details dt { color: #53677d; }
.member-details dd { margin: 0; overflow-wrap: anywhere; }
.member-plan { text-align: center; }
.member-plan h2 { font-size: 24px; }
.member-plan .member-price { color: #1d508e; font-size: 38px; font-weight: 700; margin: 22px 0 6px; }
.member-price small { font-size: 20px; margin-right: 6px; }
.member-page button { border: 1px solid #c7d7eb; border-radius: 10px; background: #fff; color: #245ec1; padding: 10px 18px; }
.member-page button.primary { background: #245ec1; color: #fff; border-color: #245ec1; min-height: 46px; }
.member-page button:disabled { cursor: default; background: #eef2f7; border-color: #e1e7ee; color: #78899d; }
.member-notice { padding: 14px 18px; background: #edf3ff; color: #2b5281; border-radius: 12px; line-height: 1.7; }
.member-orders, .payment-checkout { margin-top: 24px; }
.member-page .list-heading { margin-top: 0; }
.member-order-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid #edf1f6; }
.member-order-row:last-child { border-bottom: 0; }
.member-order-row > div { display: grid; gap: 8px; overflow-wrap: anywhere; }
.member-order-row .muted { font-size: 14px; }
.payment-checkout { text-align: center; }
.payment-checkout .primary { max-width: 360px; margin: 18px auto; }
.payment-qr { margin: 24px auto; padding: 18px; max-width: 280px; border: 1px solid #dfe6ef; border-radius: 18px; }
.payment-qr canvas { max-width: 100%; height: auto; }
.payment-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 20px 0 4px; }
.member-page [hidden] { display: none !important; }
.payment-dialog { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; border: 1px solid #dce6f3; border-radius: 22px; padding: 32px 28px 22px; text-align: center; color: #193047; background: #fff; box-shadow: 0 24px 80px #17344f40; }
.payment-dialog::backdrop { background: #12283b85; backdrop-filter: blur(3px); }
body:has(.payment-dialog[open]) { overflow: hidden; }
.member-page .payment-close { position: absolute; right: 12px; top: 10px; border: 0; padding: 4px 10px; font-size: 26px; color: #70849b; background: transparent; }
.payment-dialog-label { color: #667d99; font-size: 13px; margin: 6px 0 12px; }
.payment-dialog h2 { font-size: 24px; margin: 10px 0 18px; }
.payment-dialog #quote-summary { font-size: 20px; font-weight: 600; }
.payment-dialog #payment-order-number { font-size: 12px; overflow-wrap: anywhere; }
.payment-dialog .payment-dialog-footnote { font-size: 12px; margin: 20px 0 0; }
.payment-dialog #quote-note, .payment-dialog #checkout-message { font-size: 14px; line-height: 1.7; }
.payment-dialog .payment-qr { margin: 16px auto; }
@media (max-width: 640px) {
  .member-heading, .membership-card { align-items: flex-start; flex-direction: column; }
  .member-grid, .member-plan-grid { grid-template-columns: 1fr; gap: 16px; }
  .member-page .card, .membership-card { padding: 22px; }
  .member-order-row { flex-wrap: wrap; }
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #245ec1; text-decoration: none; }
a:hover { text-decoration: underline; }
.header { min-height: 76px; padding: 20px max(24px, calc((100vw - 1060px) / 2)); background: #fff; border-bottom: 1px solid #dfe6ef; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand { font-size: 22px; font-weight: 700; color: #193047; }
nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
nav form { margin: 0; }
main { max-width: 1108px; margin: 52px auto; padding: 0 24px; }
.card { background: #fff; padding: clamp(24px, 5vw, 48px); border: 1px solid #dfe6ef; border-radius: 16px; }
.login { max-width: 440px; margin: 0 auto; }
.eyebrow { color: #245ec1; font-size: 14px; font-weight: 600; }
h1 { font-size: 28px; margin: 16px 0; }
h2 { font-size: 18px; }
.muted, article p { color: #53677d; line-height: 1.8; }
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; margin-top: 32px; }
article { background: #f6f8fc; border-radius: 10px; padding: 16px 20px; }
label { display: block; margin: 22px 0 8px; }
input:not([type="hidden"]) { width: 100%; min-height: 44px; border: 1px solid #9aacc2; border-radius: 7px; padding: 10px 12px; font: inherit; }
button { cursor: pointer; font: inherit; }
.primary { width: 100%; margin-top: 28px; padding: 12px; color: #fff; background: #245ec1; border: 0; border-radius: 7px; }
.text-button { color: #245ec1; border: 0; background: none; padding: 0; }
:focus-visible { outline: 3px solid #82b4fa; outline-offset: 3px; }
.error { color: #a32121; background: #fff1f1; padding: 12px; border-radius: 7px; }
.platform { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.platform button, .course-search button { padding: 9px 14px; border: 1px solid #b7c8df; border-radius: 6px; color: #193047; background: #fff; }
.course-search { margin: 32px 0; }
.course-search input { max-width: 700px; margin-right: 12px; margin-bottom: 12px; }
.course-row { display: flex; gap: 12px; align-items: center; padding: 12px; border-bottom: 1px solid #dfe6ef; margin: 0; }
.course-row input[type="checkbox"] { width: 20px; min-height: 20px; flex-shrink: 0; }
.learning-directory { margin-top: 28px; }
.learning-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 1100px); display: flex; gap: 6px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #dfe6ef; box-shadow: 0 -4px 20px #19304710; z-index: 10; }
.learning-nav button { flex: 1; padding: 13px; background: #f6f8fc; color: #193047; border: 1px solid transparent; border-radius: 8px; font-size: 16px; }
.learning-nav button[aria-selected="true"] { color: #245ec1; border-color: #245ec1; background: #edf3ff; font-weight: 700; }
body:has(.learning-nav) { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
[role="tabpanel"][hidden] { display: none; }
.directory-card { padding: 16px 10px; border-bottom: 1px solid #dfe6ef; overflow-wrap: anywhere; }
.directory-card h3 { margin: 0; font-size: 17px; }
.directory-card p { margin: 10px 0; }
[id$="-more"] { margin-top: 12px; padding: 9px 14px; border: 1px solid #b7c8df; border-radius: 6px; background: #fff; color: #193047; }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.list-heading button, #classes-more { padding: 9px 14px; border: 1px solid #b7c8df; border-radius: 6px; background: #fff; color: #193047; }
.scroll-list { max-height: 460px; overflow-y: auto; overscroll-behavior: auto; border: 1px solid #dfe6ef; border-radius: 8px; padding: 8px; }
.class-list { max-height: 280px; display: grid; gap: 8px; }
.class-list:empty { display: none; }
.class-choice { width: 100%; padding: 14px; border: 1px solid #dfe6ef; border-radius: 6px; text-align: left; background: #f6f8fc; color: #193047; line-height: 1.7; }
.class-choice.selected { border-color: #245ec1; background: #edf3ff; }
.course-row span { overflow-wrap: anywhere; }
#classes-more { margin-top: 10px; }
#qr-panel { margin-top: 16px; }
#qr { max-width: 100%; }
button:disabled { cursor: default; opacity: .5; }
.login-wide { max-width: 900px; }
.auth-card [hidden] { display: none !important; }
body:has(.auth-card) { background: #f0f5fb; }
body:has(.auth-card) .header { display: none; }
body:has(.auth-card) main { margin: 0 auto; padding: 36px 20px; }
.auth-card { max-width: 460px; margin: 0 auto; padding: 30px 32px; border-radius: 24px; box-shadow: 0 12px 40px #19304708; }
.auth-mark { width: 48px; height: 48px; margin: 0 auto 18px; border-radius: 15px; background: #2864e8; color: white; display: grid; place-items: center; font-size: 26px; font-weight: 700; }
.auth-card h1 { text-align: center; font-size: 24px; margin: 0 0 8px; }
.auth-intro { text-align: center; font-size: 14px; margin: 0 0 24px; }
.auth-modes { display: flex; gap: 4px; padding: 4px; background: #f1f5fa; border-radius: 12px; }
.auth-modes button { flex: 1; padding: 10px; border: 0; border-radius: 9px; color: #63758d; background: transparent; }
.auth-modes button[aria-pressed="true"] { color: #245ec1; background: white; box-shadow: 0 2px 6px #1930470c; font-weight: 600; }
.auth-card label { font-size: 14px; margin: 16px 0 7px; }
.auth-card input:not([type="hidden"]) { min-height: 44px; font-size: 14px; border-color: #d2deed; border-radius: 10px; }
.auth-card .primary { margin-top: 20px; border-radius: 10px; min-height: 44px; }
.auth-qr-box { text-align: center; padding: 8px 16px 16px; }
.auth-qr-box .muted { font-size: 14px; margin: 10px 0; }
.auth-qr-box .primary { margin-top: 8px; }
.auth-card .auth-footnote { font-size: 12px; margin: 16px 0 0; line-height: 1.7; }
.auth-card #profile-form { border: 0; margin-top: 16px; }
.auth-identity { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 12px; background: #eef8f4; color: #14735a; overflow-wrap: anywhere; }
.auth-identity span { font-size: 12px; }
.auth-identity strong { font-size: 20px; }
.auth-rescan { display: block; margin: 16px auto 0; font-size: 13px; }
#login-qr-message { font-size: 13px; line-height: 1.7; margin: 14px 0; overflow-wrap: anywhere; }
#login-qr-message:empty { display: none; }
@media (max-width: 520px) {
  body:has(.auth-card) main { padding: 20px 12px; }
  .auth-card { padding: 24px 20px; border-radius: 18px; }
}
.login-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
#login-qr { max-width: 100%; }
#profile-form { border-top: 1px solid #dfe6ef; margin-top: 20px; }
@media (max-width: 700px) { .login-columns { grid-template-columns: 1fr; } }

/* 学习工作台：沿用京铁主页的蓝白状态栏、整行列表与底部导航。 */
body:has(.workspace) { background: #f0f5fb; color: #1e293b; font-size: 14px; }
body:has(.workspace) .header { min-height: 60px; padding: 14px max(24px, calc((100% - 1152px) / 2)); gap: 12px; }
body:has(.workspace) .header .brand { font-size: 20px; color: #173e5c; }
body:has(.workspace) .header nav { gap: 18px; font-size: 13px; }
body:has(.workspace) main { max-width: 1200px; margin: 22px auto 24px; padding: 0 24px; }
.workspace-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; margin-bottom: 16px; background: #fff; border: 1px solid #dbe7f3; border-radius: 24px; box-shadow: 0 4px 18px #173e5c06; }
.intro-title { display: flex; align-items: center; gap: 13px; }
.app-symbol { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; color: white; background: #2563eb; border-radius: 14px; font-size: 23px; font-weight: 700; }
.workspace-intro h1 { color: #173e5c; font-size: 24px; margin: 0 0 4px; }
.workspace-intro p { margin: 0; font-size: 13px; }
.connection-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.connection-badge { background: #eef2f8; color: #53677d; padding: 7px 12px; border-radius: 30px; font-size: 12px; }
.connection-badge[data-connected="true"] { color: #157554; background: #ecf8f2; }
.connection-badge::before { content: ''; display: inline-block; width: 7px; height: 7px; background: currentColor; border-radius: 50%; margin-right: 7px; }
.workspace button { transition: background .15s, border-color .15s; }
.quiet-button, .workspace .list-heading button { background: #fff; color: #31516e; border: 1px solid #cdddec; border-radius: 30px; padding: 8px 14px; white-space: nowrap; font-size: 13px; }
.workspace button:hover:not(:disabled) { border-color: #3b82f6; background: #edf4ff; }
.task-banner { border: 1px solid #dbe7f3; background: #fff; border-radius: 20px; padding: 17px 22px; margin-bottom: 16px; }
.task-topline { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.task-title { display: flex; align-items: center; gap: 12px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #3b82f6; box-shadow: 0 0 0 5px #edf4ff; margin: 0 4px; }
.workspace .eyebrow { font-size: 12px; color: #6c8095; margin: 0 0 4px; }
.task-topline h2 { margin: 2px 0 0; font-size: 18px; color: #173e5c; }
.task-count { margin: 0; padding: 7px 14px; border-radius: 8px; background: #f3f7fc; color: #31516e; font-variant-numeric: tabular-nums; }
.task-actions { margin-left: auto; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.task-actions .muted { font-size: 12px; }
.task-current { margin: 14px 0 8px; font-weight: 600; overflow-wrap: anywhere; }
#task-progress-block p { font-size: 12px; color: #61768b; margin: 12px 0 5px; }
.task-banner details { margin-top: 10px; font-size: 12px; line-height: 1.7; }
.task-banner summary { color: #526b84; cursor: pointer; }
.task-banner details p { margin: 8px 0; overflow-wrap: anywhere; }
#course-review:empty, #message:empty, #qr-message:empty { display: none; }
#course-review, .task-notice { background: #fff8eb; color: #81551a; padding: 9px 12px; border-radius: 8px; font-size: 12px; line-height: 1.6; }
.task-notice { margin: 10px 0 0; }
#message:not(:empty) { padding: 10px 14px; border-radius: 10px; background: #eaf2ff; color: #245ec1; }
#message.error { background: #fff1f1; color: #a32121; }
#qr-panel { text-align: center; padding: 20px; background: white; border-radius: 18px; }
.class-workspace { display: flex; flex-direction: column; gap: 16px; }
.workspace .learning-directory, .class-courses, #panel-course, #panel-exam { width: 100%; background: white; border: 1px solid #dbe7f3; border-radius: 20px; padding: 20px 22px; margin: 0; min-width: 0; }
.workspace .list-heading { margin: 0; gap: 14px; }
.workspace .list-heading h2 { margin: 0; font-size: 18px; color: #173e5c; line-height: 1.6; overflow-wrap: anywhere; }
.workspace .learning-directory h2 { font-size: 16px; }
#classes-message, #catalog-summary { color: #62788d; font-size: 12px; margin: 8px 0 12px; line-height: 1.7; }
.workspace .class-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 10px; max-height: 230px; border: 0; padding: 0; }
.class-choice { position: relative; padding: 14px 38px 14px 16px; border-radius: 12px; font-size: 14px; background: #f8fafd; }
.class-choice strong { display: block; line-height: 1.6; }
.class-choice .class-meta { display: block; font-size: 12px; margin-top: 5px; color: #62788d; }
.class-choice.selected { border-color: #8bb4f6; background: #eff5ff; color: #1f4f93; }
.class-choice.selected::after { content: '查看中'; position: absolute; right: 12px; top: 6px; color: #2563eb; font-size: 11px; }
.class-pick { border: 1px solid #dfe6ef; border-radius: 12px; background: #f8fafd; overflow: hidden; }
.class-pick .class-choice { border: 0; border-radius: 0; }
.class-pick-label { display: flex; gap: 8px; align-items: center; padding: 8px 16px 12px; margin: 0; font-size: 13px; color: #31516e; cursor: pointer; }
.class-pick-label input { width: 18px; height: 18px; margin: 0; }
.course-toolbar { display: flex; gap: 10px; align-items: center; margin: 14px 0 0; }
.course-toolbar input { flex: 1; min-width: 80px; min-height: 40px; max-width: 520px; border-color: #d7e3ef; font-size: 13px; background: #f8fafd; border-radius: 10px; }
.course-toolbar button { font-size: 12px; }
.selection-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; color: #31516e; font-size: 13px; }
.selection-hint { margin-left: 14px; color: #718399; font-size: 12px; }
.selection-bar .primary { width: auto; margin: 0; padding: 10px 24px; background: #1e3f5f; border: 1px solid #1e3f5f; border-radius: 30px; font-size: 13px; font-weight: 600; }
.selection-bar .primary:hover:not(:disabled) { background: #14344e; color: #fff; }
.workspace #course-list { max-height: 570px; border: 1px solid #e2eaf3; border-radius: 12px; padding: 0; scrollbar-width: thin; }
.workspace .course-row { padding: 15px 18px; margin: 0; background: white; align-items: center; gap: 16px; border-bottom: 1px solid #e8eef5; }
.workspace .course-row:last-child { border-bottom: 0; }
.workspace .course-row:hover { background: #f7faff; }
.workspace .course-row:has(input:checked) { background: #edf4ff; }
.workspace .course-row:has(input:disabled) { background: #fafbfd; }
.workspace .course-row input { accent-color: #2563eb; width: 18px; height: 18px; min-height: 18px; margin: 0; }
.course-content { display: grid; grid-template-columns: minmax(0, 1fr) 230px; column-gap: 24px; row-gap: 7px; flex: 1; min-width: 0; align-items: center; }
.course-content strong { grid-row: span 2; font-size: 15px; line-height: 1.65; font-weight: 600; color: #294760; }
.course-meta { font-size: 12px; color: #61768b; }
.workspace progress { width: 100%; height: 5px; border: 0; border-radius: 5px; overflow: hidden; appearance: none; }
.workspace progress::-webkit-progress-bar { background: #e8eef6; border-radius: 5px; }
.workspace progress::-webkit-progress-value { background: #4d88e8; border-radius: 5px; }
.workspace progress::-moz-progress-bar { background: #4d88e8; }
.empty-courses { padding: 28px 18px; text-align: center; font-size: 13px; }
.workspace .directory-card { background: #fff; border: 1px solid #e0e9f3; border-radius: 14px; padding: 18px 20px; margin-bottom: 12px; }
.workspace .directory-card h3 { font-size: 16px; color: #173e5c; line-height: 1.6; }
.workspace .directory-card p { font-size: 13px; }
.workspace .directory-card a { display: inline-block; padding: 7px 14px; border-radius: 30px; background: #edf4ff; color: #245ec1; font-size: 12px; }
.workspace #personal-course-list, .workspace #personal-exam-list { border: 0; padding: 0; max-height: 580px; }
.workspace-footnote { color: #718399; font-size: 12px; text-align: center; margin: 18px 0; line-height: 1.8; }
body:has(.workspace) .learning-nav { width: 100%; max-width: none; border-top: 1px solid #dce6f1; border-radius: 0; padding: 7px max(16px, calc((100% - 900px) / 2)) calc(7px + env(safe-area-inset-bottom)); box-shadow: 0 -3px 18px #173e5c08; gap: 8px; flex-wrap: nowrap; }
body:has(.workspace) .learning-nav button { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 14px; background: transparent; border: 0; border-radius: 12px; padding: 12px 8px; color: #63788e; }
body:has(.workspace) .learning-nav button[aria-selected="true"] { background: #edf4ff; color: #2563eb; }
.learning-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.workspace [hidden] { display: none !important; }
@media (max-width: 760px) {
  body:has(.workspace) main { padding: 0 14px; margin-top: 14px; }
  body:has(.workspace) .header { padding: 12px 16px; }
  .workspace-intro { flex-wrap: wrap; padding: 16px; gap: 14px; border-radius: 20px; }
  .workspace-intro h1 { font-size: 22px; }
  .connection-tools { width: 100%; justify-content: space-between; gap: 8px; }
  .task-banner { padding: 16px; }
  .task-topline { gap: 12px; justify-content: space-between; }
  .task-count { font-size: 12px; padding: 7px 10px; }
  .task-actions { width: 100%; justify-content: space-between; }
  .workspace .learning-directory, .class-courses, #panel-course, #panel-exam { padding: 16px; }
  .workspace .list-heading h2 { font-size: 16px; }
  .workspace .list-heading button { padding: 7px 10px; font-size: 12px; }
  .course-content { grid-template-columns: 1fr; gap: 7px; }
  .course-content strong { grid-row: auto; font-size: 14px; }
  .course-toolbar { flex-wrap: wrap; }
  .course-toolbar input { flex-basis: 100%; max-width: none; }
  .selection-hint { display: block; margin: 4px 0 0; font-size: 11px; }
  .selection-bar .primary { padding: 10px 16px; }
  .workspace .course-row { padding: 14px 12px; gap: 12px; }
  .workspace #course-list { max-height: 60vh; }
  body:has(.workspace) .learning-nav button { flex-direction: column; gap: 4px; padding: 6px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .workspace button { transition: none; } }
.speed-control { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; }
.speed-control label { margin: 0; }
.speed-control select { border: 1px solid #cdddec; border-radius: 8px; padding: 7px 10px; background: white; font: inherit; color: #31516e; }
.speed-control span { color: #718399; font-size: 12px; }
.assessment-link { font-size: 12px; grid-column: 1 / -1; }
#assessment-links a { display: block; padding: 8px 0; }

.workspace .directory-card select { width: auto; min-width: 100px; margin-right: 10px; }
.workspace .directory-card button { margin-right: 12px; }

.selection-bar { flex-wrap: wrap; }
.selection-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; margin-left: auto; }
.start-speed { display: flex; align-items: center; gap: 10px; margin: 0; white-space: nowrap; font-weight: 600; }
.start-speed select { width: auto; min-width: 110px; margin: 0; padding: 9px 12px; border: 1px solid #8bb4f6; border-radius: 10px; background: #eff5ff; color: #1f4f93; font: inherit; }
@media (max-width: 600px) {
  .selection-actions { width: 100%; justify-content: space-between; gap: 10px; }
  .start-speed { gap: 6px; }
  .start-speed select { min-width: 90px; }
}
