*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,"Segoe UI","Noto Sans TC",sans-serif;background:#f6f7f9;color:#202124}.wrap{max-width:1100px;margin:auto;padding:18px}.top{background:#17324d;color:#fff}.nav{display:flex;justify-content:space-between;align-items:center;gap:20px}.brand-wrap{display:flex;align-items:center;gap:10px}.brand-logo{width:48px;height:48px;border-radius:50%;object-fit:cover;border:2px solid #fff;background:#fff}.brand{font-weight:800;color:#fff;text-decoration:none;font-size:20px}.nav nav{display:flex;flex-wrap:wrap;gap:14px}.nav nav a{color:#fff;text-decoration:none}.card{background:#fff;border:1px solid #e1e4e8;border-radius:14px;padding:20px;margin:16px 0;box-shadow:0 1px 4px #0000000d}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.stat{font-size:28px;font-weight:800}.muted{color:#667085}.btn{display:inline-block;border:0;border-radius:8px;padding:10px 15px;background:#1f6feb;color:#fff;text-decoration:none;cursor:pointer;font-size:15px}.btn.secondary{background:#5f6b7a}.btn.danger{background:#b42318}.btn.light{background:#eef2f6;color:#17324d}.btn.success{background:#177245}.actions{display:flex;flex-wrap:wrap;gap:8px}.form-row{margin-bottom:14px}label{display:block;font-weight:650;margin-bottom:6px}input,select,textarea{width:100%;padding:10px 12px;border:1px solid #cfd6df;border-radius:8px;font:inherit}input[type=radio],input[type=checkbox]{width:auto}.table{width:100%;border-collapse:collapse;background:#fff}.table th,.table td{border-bottom:1px solid #e7e9ec;padding:10px;text-align:left;vertical-align:top}.table th{background:#f1f4f7}.alert{padding:12px 14px;border-radius:9px;margin:12px 0}.success{background:#e9f7ef;color:#176b3a}.error{background:#fdecec;color:#9f1d1d}.badge{display:inline-block;padding:4px 8px;border-radius:999px;background:#eef2f6;font-size:13px}.hero{padding:42px 20px;text-align:center}.hero h1{font-size:34px;margin:0 0 12px}.plans .price{font-size:30px;font-weight:900}.question{font-size:20px;line-height:1.65}.option{display:block;padding:12px;border:1px solid #d6dbe1;border-radius:9px;margin:8px 0;cursor:pointer}.option:hover{background:#f5f8fb}.qnav{display:flex;flex-wrap:wrap;gap:6px}.qnav a{width:38px;height:38px;display:grid;place-items:center;background:#eef2f6;text-decoration:none;border-radius:7px;color:#222}.qnav a.answered{background:#d9f2e5}.qnav a.current{outline:3px solid #1f6feb}.category-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.timer{font-size:26px;font-weight:900;color:#b42318;position:sticky;top:8px;background:#fff;padding:8px 12px;border-radius:8px;border:1px solid #ddd;display:inline-block}.correct{border-left:5px solid #198754}.wrong{border-left:5px solid #dc3545}.footer{text-align:center;color:#777;padding:30px}.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}@media(max-width:720px){.nav{display:block}.nav nav{margin-top:12px}.two{grid-template-columns:1fr}.hero h1{font-size:27px}.table{font-size:14px}.brand-logo{width:42px;height:42px}}
.free-trial-home{border:2px solid #dbe8f7}.free-trial-title{display:flex;justify-content:space-between;align-items:center;gap:16px}.free-trial-title h2{font-size:28px;margin:8px 0}.trial-choice-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:18px}.trial-choice{display:flex;flex-direction:column;gap:7px;padding:18px;border:1px solid #d9e0e8;border-radius:12px;text-decoration:none;color:#202124;background:#fbfcfe;transition:.15s ease}.trial-choice:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000012;border-color:#9fbfe8}.trial-choice strong{font-size:19px;color:#17324d}.trial-choice span{color:#667085;min-height:42px}.trial-choice em{font-style:normal;color:#1f6feb;font-weight:700}.trial-head h1{margin-top:0}.trial-tabs .btn small{opacity:.8;margin-left:4px}.trial-result{text-align:center;background:#f8fbff}.trial-explanation{margin-top:16px;padding:12px 14px;border-radius:9px;background:#f6f8fa}.trial-submit{display:flex;align-items:center;gap:14px;flex-wrap:wrap;position:sticky;bottom:8px;z-index:10}.trial-form .option input{margin-right:8px}@media(max-width:850px){.trial-choice-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:520px){.trial-choice-grid{grid-template-columns:1fr}.trial-tabs .btn{width:100%;text-align:center}}

/* v3: 免費體驗操作提示、hover 與題組本文 */
.btn{transition:background-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease,border-color .18s ease}
.btn:hover{background:#1558b0;color:#fff;box-shadow:0 4px 10px #00000022;transform:translateY(-1px)}
.btn.light:hover{background:#d9e6f5;color:#0f2f50;box-shadow:0 4px 10px #00000018}
.btn.success,.trial-submit .btn.success{background:#177245;color:#fff;font-weight:750}
.btn.success:hover,.trial-submit .btn.success:hover{background:#0f5c36;color:#fff}
.video-btn:hover{background:#d9e6f5;color:#0f2f50}
.question-group-passage{border-left:5px solid #1f6feb;background:#fbfdff}
.group-heading{display:flex;align-items:center;gap:10px;margin-bottom:12px}.group-heading strong{font-size:18px;color:#17324d}
.passage-text{font-size:18px;line-height:1.85;white-space:normal;color:#202124;padding:14px 16px;background:#f4f8fc;border:1px solid #dce6f1;border-radius:10px}
.passage-source{margin-top:10px;color:#667085;font-size:14px;text-align:right}
.trial-submit-btn{min-width:190px;text-align:center}


/* v7: 克漏字／閱讀測驗題組本文浮動固定顯示 */
.floating-passage{
    position:sticky;
    top:8px;
    z-index:30;
    max-height:48vh;
    overflow-y:auto;
    overscroll-behavior:contain;
    background:#fff;
    box-shadow:0 8px 24px #00000020;
}
.floating-passage .group-heading{
    position:sticky;
    top:0;
    z-index:2;
    background:#fff;
    padding:2px 0 8px;
    margin-bottom:6px;
}
.passage-sticky-hint{
    margin-left:auto;
    font-size:13px;
    color:#1f6feb;
    font-weight:700;
    white-space:nowrap;
}
.floating-passage .passage-text{
    font-size:18px;
    line-height:1.75;
}
.trial-form .card{
    scroll-margin-top:50vh;
}
@media(max-width:720px){
    .floating-passage{
        top:4px;
        max-height:42vh;
        border-radius:10px;
    }
    .floating-passage .passage-text{
        font-size:16px;
        line-height:1.65;
    }
    .passage-sticky-hint{font-size:12px}
    .trial-form .card{scroll-margin-top:44vh}
}

/* v8: 題組影片按鍵 hover */
.video-btn,.group-video-btn{background:#0969da!important;color:#fff!important;box-shadow:0 4px 12px #0969da55;font-weight:800;transition:background-color .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.video-btn:hover,.group-video-btn:hover{background:#0757b8!important;color:#fff!important;box-shadow:0 6px 16px #0969da66;transform:translateY(-2px);text-decoration:none}
.video-btn:focus-visible,.group-video-btn:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}

/* v18.13: 有效會員於本站展開觀看 YouTube 影片 */
.video-embed-details{margin-top:10px;max-width:760px}
.video-embed-details>summary{display:inline-block;list-style:none;cursor:pointer}
.video-embed-details>summary::-webkit-details-marker{display:none}
.video-embed-frame{width:min(760px,90vw);aspect-ratio:16/9;margin-top:12px;background:#000;border-radius:10px;overflow:hidden}
.video-embed-frame iframe{display:block;width:100%;height:100%;border:0}
.result-video-actions .video-embed-details{margin-top:0}

/* v18: 首頁最新上架試卷 */
.latest-exams-wrap{margin:18px auto 0;max-width:850px;overflow-x:auto;text-align:left}
.latest-exams-table{margin:0;box-shadow:none}
.latest-exams-table th:first-child{width:auto}
.latest-exams-table th:nth-child(2),.latest-exams-table td:nth-child(2){width:150px}
.latest-exams-table th:nth-child(3),.latest-exams-table td:nth-child(3){width:130px;white-space:nowrap}
.latest-exams-table th:last-child,.latest-exams-table td:last-child{width:110px;white-space:nowrap}
.latest-exams-table tbody tr:last-child td{border-bottom:0}

/* v18.2: 依附圖調整頁首商標與導覽連結 */
.nav{align-items:flex-end}
.brand-wrap{align-items:flex-end}
.brand-logo{width:216px;height:216px;border-width:1px}
.brand{font-size:60px}
.nav nav{align-items:flex-end}
.nav nav a{font-size:32px;line-height:1;text-decoration:underline;text-underline-offset:5px}
@media(max-width:720px){.brand-logo{width:144px;height:144px}.brand{font-size:40px}.nav nav a{font-size:24px}}

/* v9: english_exam_importer 試卷上架／下架管理 */
.admin-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}
.admin-page-head h2{margin-bottom:4px}.admin-page-head p{margin-top:0}
.importer-new-exam-btn{font-weight:800;transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease}
.importer-new-exam-btn:hover{transform:translateY(-2px);box-shadow:0 7px 16px #17724535;background:#0f5c36}
.exam-manage-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}
.exam-status-card{margin-top:8px}.exam-status-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.exam-status-title h3{margin:0;color:#17324d}
.exam-manage-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid #edf0f3}.exam-manage-row:last-child{border-bottom:0}
.exam-name-wrap{min-width:0;display:flex;flex-direction:column;gap:4px}.exam-short-name{font-size:18px;color:#17324d;letter-spacing:.02em}.exam-meta{font-size:13px;color:#667085}
.inline-form{margin:0;flex:0 0 auto}.status-action-btn{min-width:84px;font-weight:800}.status-action-btn:hover{transform:translateY(-2px);box-shadow:0 6px 15px #00000025}
.current-published-box{border-left:5px solid #1f6feb}.published-chip-list{display:flex;flex-wrap:wrap;gap:10px}.published-exam-chip{display:inline-block;padding:8px 12px;border-radius:999px;background:#eaf2ff;color:#174a82;font-weight:750;border:1px solid #bdd4f3;cursor:help}
@media(max-width:760px){.exam-manage-columns{grid-template-columns:1fr}.admin-page-head .btn{width:100%;text-align:center}.exam-manage-row{align-items:flex-start}.exam-meta{font-size:12px}}

/* v10: 同名試卷分組、年度排序、狀態超連結切換 */
.exam-groups-list{display:grid;gap:14px}.exam-group-card{margin:0}.exam-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.exam-group-head h3{margin:0;color:#17324d;font-size:20px}.exam-group-table-wrap{overflow-x:auto}.exam-group-table{margin:0}.exam-group-table th:nth-child(1){width:110px}.exam-group-table th:nth-child(2){width:160px}.exam-group-table th:nth-child(3){width:100px}.exam-group-table th:nth-child(4){width:130px}.status-toggle-form{display:inline}.status-toggle-link{appearance:none;border:0;background:none;padding:2px 0;font:inherit;font-weight:800;text-decoration:underline;text-underline-offset:4px;cursor:pointer;transition:color .15s ease,transform .15s ease,text-shadow .15s ease}.status-toggle-link:hover{transform:translateY(-1px);text-shadow:0 2px 8px #0000001f}.status-toggle-link.is-published{color:#177245}.status-toggle-link.is-published:hover{color:#0f5c36}.status-toggle-link.is-unpublished{color:#b42318}.status-toggle-link.is-unpublished:hover{color:#8f1d14}.status-toggle-link:focus-visible{outline:3px solid #93c5fd;outline-offset:3px;border-radius:3px}@media(max-width:620px){.exam-group-table{min-width:560px}.exam-group-head{align-items:flex-start}.exam-group-head h3{font-size:18px}}

/* v11: 資料庫備份 / 回復管理 */
.db-backup-grid{grid-template-columns:repeat(2,minmax(260px,1fr))}.db-admin-card{position:relative;overflow:hidden}.db-admin-card h3{margin:0 0 4px;color:#17324d}.db-name{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.db-icon{float:right;width:46px;height:46px;border-radius:12px;display:grid;place-items:center;background:#eaf2ff;color:#174a82;font-weight:900;border:1px solid #bdd4f3}.db-section-head{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.db-section-head h3{margin:0 0 5px}.db-section-head p{margin:0}.db-warning{background:#fff4e5;color:#8a4b08;border:1px solid #ffd8a8}.restore-note{margin:14px 0 0}.db-restore-card input[type=file]{background:#fff}.db-restore-card .btn.danger{font-weight:800}.db-restore-card .btn.danger:hover{background:#8f1d14;box-shadow:0 5px 14px #b4231835;transform:translateY(-1px)}@media(max-width:720px){.db-backup-grid{grid-template-columns:1fr}.db-section-head .btn{width:100%;text-align:center}}

/* v12: 會員管理、繳費與問題處理完整歷程 */
.member-filter-grid{display:grid;grid-template-columns:2fr 1fr auto;gap:14px;align-items:end}.member-filter-grid label{margin-bottom:5px}.filter-submit{display:flex;gap:8px}.table-scroll{overflow-x:auto}.small-text{font-size:12px}.badge-ok{background:#e9f7ef;color:#176b3a}.badge-off{background:#fdecec;color:#9f1d1d}.badge-warn{background:#fff4e5;color:#8a4b08}.stat-small{font-size:22px}.member-summary-grid{grid-template-columns:repeat(4,minmax(180px,1fr))}.member-info-grid{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:14px}.member-info-grid>div{padding:12px;border:1px solid #e6eaf0;border-radius:10px;background:#fafbfc}.member-info-grid span,.member-info-grid strong{display:block}.member-info-grid strong{margin-top:5px;word-break:break-word}.case-create-form{padding:14px;border:1px dashed #b8c4d3;border-radius:12px;background:#fbfcfe;margin-bottom:18px}.member-case{border:1px solid #dfe5ec;border-radius:12px;padding:16px;margin:16px 0;background:#fff}.member-case-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:10px;border-bottom:1px solid #edf0f3}.case-issue{background:#f8fafc;border-radius:9px;padding:12px;margin:12px 0;line-height:1.7}.case-timeline{border-left:3px solid #dbe7f5;margin:14px 0 14px 8px;padding-left:16px}.case-action{display:grid;grid-template-columns:150px 1fr;gap:12px;padding:10px 0;border-bottom:1px dashed #e3e7ec}.case-action:last-child{border-bottom:0}.case-action-time{color:#667085;font-size:13px}.case-action-form{background:#f8fbff;border-radius:10px;padding:12px}.priority-urgent{background:#fdecec;color:#9f1d1d}.priority-high{background:#fff0e5;color:#a34700}.priority-normal{background:#eef2f6;color:#344054}.priority-low{background:#edf7ed;color:#286a2e}.case-status-open{background:#fff4e5;color:#8a4b08}.case-status-processing{background:#eaf2ff;color:#174a82}.case-status-resolved{background:#e9f7ef;color:#176b3a}.case-status-closed{background:#eef2f6;color:#475467}@media(max-width:900px){.member-summary-grid{grid-template-columns:repeat(2,1fr)}.member-info-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:720px){.member-filter-grid{grid-template-columns:1fr}.filter-submit .btn{flex:1;text-align:center}.member-summary-grid,.member-info-grid{grid-template-columns:1fr}.member-case-head{display:block}.case-action{grid-template-columns:1fr;gap:3px}}

/* v13: 會員中心 - 資格跟催、繳費/考試歷史、類組強弱與問題反應 */
.member-center-summary{grid-template-columns:repeat(4,minmax(180px,1fr))}
.member-expiry{margin-top:5px;font-size:14px;font-weight:700}.member-expiry.ok{color:#177245}.member-expiry.warn{color:#a15c00}.member-expiry.danger{color:#b42318}
.member-center-actions{margin:14px 0 20px}.membership-followup{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.membership-followup a{font-weight:800}
.category-analysis-grid{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:14px;margin-top:14px}.category-analysis-item{padding:16px;border:1px solid #dfe5ec;border-radius:12px;background:#fbfcfe}.category-analysis-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.analysis-score{font-size:28px;font-weight:800;color:#17324d;margin:10px 0 7px}.progress{height:10px;border-radius:999px;background:#e8edf3;overflow:hidden;margin-bottom:8px}.progress span{display:block;height:100%;background:#1f6feb;border-radius:999px}.level-strong{background:#e9f7ef;color:#176b3a}.level-mid{background:#eaf2ff;color:#174a82}.level-weak{background:#fdecec;color:#9f1d1d}.level-none{background:#eef2f6;color:#667085}
.payment-paid{background:#e9f7ef;color:#176b3a}.payment-pending{background:#fff4e5;color:#8a4b08}.payment-failed,.payment-cancelled{background:#fdecec;color:#9f1d1d}.payment-refunded{background:#eef2f6;color:#475467}
.member-issue-form{padding:14px;border:1px dashed #b8c4d3;border-radius:12px;background:#fbfcfe;margin:12px 0 20px}.member-side-case{background:#fcfdff}.member-reply-form{margin-top:12px}.alert.warning{background:#fff4e5;border:1px solid #ffd8a8;color:#8a4b08;padding:12px 14px;border-radius:10px}
@media(max-width:980px){.member-center-summary,.category-analysis-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.member-center-summary,.category-analysis-grid{grid-template-columns:1fr}.member-center-actions .btn{width:100%;text-align:center}}

/* v16.4/v16.9: 會員方案精簡管理 */
.plan-create-card{border-left:5px solid #177245;padding:14px 18px}.plan-create-card h3{margin:0 0 10px;color:#17324d}.plan-create-row{display:grid;grid-template-columns:1fr 1.35fr .7fr .8fr 1.05fr auto;gap:10px;align-items:end}.plan-create-row label{margin-bottom:4px}.plan-create-action{padding-bottom:1px}.plan-list-title{margin:18px 0 6px}.plan-list-card{padding:0;overflow:hidden}.plan-table{min-width:940px;table-layout:fixed}.plan-table th,.plan-table td{padding:7px 8px}.plan-table input,.plan-table select{padding:7px 8px}.plan-table th:nth-child(1){width:105px}.plan-table th:nth-child(3){width:95px}.plan-table th:nth-child(4){width:115px}.plan-table th:nth-child(5){width:160px}.plan-table th:nth-child(6){width:150px}.plan-row-actions{display:flex;flex-wrap:nowrap;align-items:center;gap:5px;white-space:nowrap}.plan-row-actions .btn{padding:8px 10px;white-space:nowrap}
@media(max-width:900px){.plan-create-row{grid-template-columns:repeat(2,1fr)}.plan-create-action .btn{width:100%}}

/* v16.5: 會員問題與管理者回覆同列顯示 */
.qa-table-wrap{margin:12px 0}.qa-table{table-layout:fixed}.qa-table th:nth-child(1),.qa-table th:nth-child(3){width:170px;white-space:nowrap}.qa-table th:nth-child(2),.qa-table th:nth-child(4){width:auto}.qa-table td{line-height:1.55;word-break:break-word}.qa-table td:nth-child(1),.qa-table td:nth-child(3){color:#667085;font-size:13px;white-space:nowrap}.member-side-case .member-case-head,.admin-side-case .member-case-head{padding-bottom:8px}.member-side-case .case-action-form,.admin-side-case .case-action-form{margin-top:10px}
@media(max-width:760px){.qa-table{min-width:760px}.qa-table th:nth-child(1),.qa-table th:nth-child(3){width:155px}}

/* v16.6: 會員問題維持單一繼續發問入口 */
.member-reply-form label{color:#17324d}.member-reply-form .btn{min-width:92px}

/* v16.7: 所有會員問答合併為單一表格 */
#member-issue .qa-table-wrap{margin-bottom:12px}#member-issue .member-reply-form{margin-top:0}

/* v16.8: 管理者問答合併表格與按需展開回覆 */
.admin-qa-table{min-width:980px}.admin-qa-table th:nth-child(1){width:125px}.admin-qa-table th:nth-child(2),.admin-qa-table th:nth-child(4){width:160px}.admin-inline-reply summary{list-style:none;width:max-content}.admin-inline-reply summary::-webkit-details-marker{display:none}.admin-inline-reply form{margin-top:8px}.admin-inline-reply textarea{min-width:260px;margin-bottom:8px;resize:vertical}

/* v18.14: 會員列表狀態管理與 Email 欄位精簡 */
.member-list-table{min-width:1280px;table-layout:fixed}
.member-list-table th:nth-child(1){width:145px}.member-list-table th:nth-child(2){width:220px}.member-list-table th:nth-child(3){width:125px}.member-list-table th:nth-child(4){width:135px}.member-list-table th:nth-child(5){width:105px}.member-list-table th:nth-child(6){width:120px}.member-list-table th:nth-child(7){width:95px}.member-list-table th:nth-child(8){width:90px}.member-list-table th:nth-child(9){width:170px}
.member-email-cell{font-size:10px;line-height:1.35;word-break:break-all;color:#475467}
.member-status-control{display:flex;align-items:center;gap:5px;margin-top:8px}.member-status-control select{min-width:118px;padding:6px;font-size:12px}.member-status-control .btn{padding:6px 9px;font-size:12px;white-space:nowrap}

/* v18.17: 電腦版／手機版 RWD 介面 */
.mobile-nav-toggle{display:none;border:1px solid #ffffff66;border-radius:8px;background:#ffffff18;color:#fff;padding:9px 12px;font:inherit;font-weight:800;cursor:pointer}
@media(max-width:720px){
    body{font-size:16px;overflow-x:hidden}
    .wrap{width:100%;max-width:100%;padding:12px}
    .top .nav{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:9px 12px}
    .brand-wrap{min-width:0;flex:1;align-items:center;gap:8px}
    .brand-logo{width:48px;height:48px;flex:0 0 48px;border-width:1px}
    .brand{min-width:0;font-size:20px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .mobile-nav-toggle{display:inline-flex;align-items:center;gap:6px;min-height:44px}
    .nav nav{display:none;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:4px;padding-top:10px;border-top:1px solid #ffffff33}
    .nav nav.is-open{display:grid}
    .nav nav a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 8px;border-radius:8px;background:#ffffff18;color:#fff;font-size:16px;line-height:1.25;text-align:center;text-decoration:none}
    .card{padding:15px;margin:12px 0;border-radius:12px}
    .hero{padding:24px 14px}
    .hero h1{font-size:28px;line-height:1.3}
    .hero p{line-height:1.65}
    .grid,.two{grid-template-columns:1fr}
    .actions{display:grid;grid-template-columns:1fr}
    .actions .btn,.free-trial-title>.btn{width:100%;min-height:44px;text-align:center}
    .free-trial-title{display:block}
    .free-trial-title h2{font-size:25px}
    .trial-choice-grid{grid-template-columns:1fr}
    input,select,textarea,.btn,button{min-height:44px}
    .question{font-size:18px;line-height:1.7}
    .option{padding:14px 12px;line-height:1.55}
    .table-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
    .table-scroll>.table:not(.responsive-card-table){min-width:680px}
    .responsive-card-wrap,.latest-exams-wrap{max-width:100%;overflow:visible}
    .responsive-card-table,.responsive-card-table tbody,.responsive-card-table tr,.responsive-card-table td{display:block;width:100%!important}
    .responsive-card-table{background:transparent;white-space:normal;overflow:visible}
    .responsive-card-table thead{display:none}
    .responsive-card-table tbody{display:grid;gap:12px}
    .responsive-card-table tbody tr{padding:13px;border:1px solid #dfe5ec;border-radius:12px;background:#fff;box-shadow:0 1px 4px #0000000d}
    .responsive-card-table tbody td{display:grid;grid-template-columns:92px minmax(0,1fr);gap:10px;padding:8px 0;border:0;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
    .responsive-card-table tbody td::before{content:attr(data-label);color:#667085;font-weight:800}
    .responsive-card-table tbody td[colspan]{display:block;text-align:center}
    .responsive-card-table tbody td[colspan]::before{display:none}
    .responsive-card-table tbody td a{overflow-wrap:normal;word-break:keep-all}
    .responsive-card-table tbody td:nth-last-child(-n+2) a{display:block;width:100%;min-height:44px;padding:10px 12px;border-radius:8px;background:#1f6feb;color:#fff;text-align:center;text-decoration:none;font-weight:800}
    .latest-exams-table th:nth-child(2),.latest-exams-table td:nth-child(2),.latest-exams-table th:nth-child(3),.latest-exams-table td:nth-child(3),.latest-exams-table th:last-child,.latest-exams-table td:last-child{width:100%;white-space:normal}
    .footer{padding:22px 12px}
}

/* v18.18: 試卷內容中英文字體（電腦版與手機版共用） */
.question,
.option,
.passage-text,
.result-question-head + p,
.result-option,
.key-option{
    font-family:"Times New Roman","DFKai-SB","BiauKai","標楷體","KaiTi",serif;
}

/* v18.19: 手機考試頁單頁作答與顯示設定 */
.exam-timer-wrap{text-align:right}
.exam-display-settings{margin:8px 0;border:1px solid #d7dde5;border-radius:10px;background:#fff}
.exam-display-settings>summary{padding:9px 12px;color:#17324d;font-weight:800;cursor:pointer}
.exam-setting-grid{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:10px;padding:10px 12px 4px}
.exam-setting-grid label{font-size:13px;margin:0}.exam-setting-grid select{margin-top:4px;padding:7px 8px}
.exam-setting-hint{margin:5px 12px 10px;color:#667085;font-size:13px}
.exam-answer-card{--exam-question-size:20px;--exam-option-size:18px;--exam-option-align:flex-start;--exam-option-text-align:left;--exam-option-padding:4px 6px;--exam-option-height:32px}
.exam-answer-card .question{font-size:var(--exam-question-size);font-weight:400}
.exam-answer-card .option{display:flex;align-items:center;justify-content:var(--exam-option-align);gap:7px;min-height:var(--exam-option-height);padding:var(--exam-option-padding);font-size:var(--exam-option-size);text-align:var(--exam-option-text-align)}
.exam-answer-card .option,.exam-answer-card .option b,.exam-answer-card .option strong{font-weight:400}
.exam-answer-card .option input{flex:0 0 auto}.exam-answer-card .option span{min-width:0}
.exam-mark-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.exam-mark-row label{margin:0}
@media(max-width:720px){
    body.exam-taking-page{height:100dvh;overflow:hidden;background:#f6f7f9}
    body.exam-taking-page>.top,body.exam-taking-page>.footer{display:none}
    body.exam-taking-page>main.wrap{height:100dvh;display:flex;flex-direction:column;overflow:hidden;padding:5px 8px}
    .exam-taking-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin:0}
    .exam-taking-head h2{margin:0;font-size:15px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .exam-taking-head .timer{position:static;padding:4px 7px;font-size:17px;line-height:1.1}
    .exam-taking-page .category-tabs{display:flex;flex-wrap:nowrap;gap:5px;margin:4px 0;overflow-x:auto;scrollbar-width:none}
    .exam-taking-page .category-tabs::-webkit-scrollbar{display:none}
    .exam-taking-page .category-tabs .btn{flex:0 0 auto;min-height:32px;padding:5px 9px;font-size:13px}
    .exam-taking-page .exam-display-settings{flex:0 0 auto;margin:2px 0 4px}
    .exam-taking-page .exam-display-settings>summary{padding:6px 9px;font-size:13px}
    .exam-taking-page .exam-setting-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:7px 8px 2px}
    .exam-taking-page .exam-setting-grid label{font-size:12px}
    .exam-taking-page .exam-setting-grid select{min-height:36px;padding:5px;font-size:12px}
    .exam-taking-page .exam-setting-hint{margin:4px 8px 7px;font-size:11px}
    .exam-taking-page .exam-passage{flex:0 0 auto;max-height:20dvh;margin:3px 0;padding:8px;overflow:auto}
    .exam-taking-page .exam-answer-card{flex:1 1 auto;min-height:0;margin:0;padding:8px;display:flex;flex-direction:column;overflow:hidden}
    .exam-taking-page .exam-question-meta{flex:0 0 auto;font-size:12px;line-height:1.2}
    .exam-taking-page .exam-answer-card .question{flex:0 1 auto;margin:4px 0 5px;line-height:1.32}
    .exam-taking-page #options{flex:1 1 auto;min-height:0;display:grid;grid-template-rows:repeat(4,minmax(0,1fr));gap:2px}
    .exam-taking-page .exam-answer-card .option{min-height:0;height:auto;margin:0;border-radius:8px;line-height:1.25}
    .exam-taking-page .exam-answer-card .option input{width:22px;height:22px;min-height:0}
    .exam-taking-page .exam-mark-row{flex:0 0 auto;margin-top:5px;font-size:12px;line-height:1.2}
    .exam-taking-page .exam-mark-row input{width:22px;height:22px;min-height:0}
    .exam-taking-page .exam-nav-actions{flex:0 0 auto;display:flex;gap:5px;margin-top:5px}
    .exam-taking-page .exam-nav-actions .btn{flex:1 1 0;width:auto;min-height:38px;padding:7px 5px;font-size:14px;display:flex;align-items:center;justify-content:center}
    .exam-taking-page .exam-answer-sheet{display:none}
}

/* V19.1: latest explanation videos on the homepage */
.home-latest-videos{margin:26px 0;text-align:left}
.home-latest-videos>h2{text-align:center;font-size:24px}
.home-video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.home-video-card{min-width:0;border:1px solid #e1e4e8;border-radius:10px;overflow:hidden;padding-bottom:12px}
.home-video-frame{position:relative;aspect-ratio:16/9;background:#111;color:#fff}
.home-video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.home-video-locked{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:12px}
.home-video-card h3{margin:14px 14px 8px;font-size:18px;overflow-wrap:anywhere}
.hero .home-video-card p{margin:6px 14px;font-size:14px}
@media(max-width:720px){.home-video-grid{grid-template-columns:1fr}}
