:root { --navy:#092f5a; --blue:#2872ad; --sky:#eaf3f8; --gold:#c79861; --ink:#1f3852; --muted:#6d8194; --line:#d8e4eb; --paper:#f7fafc; --card:#fff; --danger:#bd4d55; --success:#2f8a62; --shadow:0 18px 48px rgba(13,54,88,.10); }
* { box-sizing:border-box; } html { scroll-behavior:smooth; } body { margin:0; min-width:320px; color:var(--ink); background:var(--paper); font-family:"Avenir Next","SF Pro Text","PingFang SC","Microsoft YaHei",sans-serif; } button,input,textarea,select { font:inherit; } button { cursor:pointer; } a { color:inherit; text-decoration:none; } .shell { width:min(1140px,calc(100% - 40px)); margin-inline:auto; } .skip-link { position:fixed; top:-100px; left:18px; z-index:99; padding:10px 15px; border-radius:9px; color:white; background:var(--navy); }.skip-link:focus { top:18px; }
.portal-header { height:92px; display:flex; align-items:center; justify-content:space-between; gap:20px; }.brand { display:flex; align-items:center; gap:12px; }.brand img { width:54px; height:54px; border-radius:50%; object-fit:cover; box-shadow:0 8px 21px rgba(9,47,90,.16); }.brand span { display:grid; gap:3px; }.brand b { color:var(--navy); letter-spacing:.07em; }.brand small { color:#7890a4; font-size:.67rem; letter-spacing:.14em; }.header-link { color:#60788e; font-size:.84rem; }.header-link:hover { color:var(--blue); }
.home { min-height:calc(100vh - 174px); padding:58px 0 84px; display:grid; place-items:center; background:radial-gradient(circle at 84% 20%,rgba(74,145,194,.17),transparent 26%),radial-gradient(circle at 18% 93%,rgba(201,152,97,.12),transparent 25%),linear-gradient(135deg,#f9fcfd,#eff6f9); border-block:1px solid #e4edf1; }.home-grid { display:grid; grid-template-columns:1.08fr .92fr; align-items:center; gap:72px; }.eyebrow { margin:0 0 18px; color:#66839e; font-size:.72rem; font-weight:700; letter-spacing:.18em; }.eyebrow span { color:var(--gold); }.home h1 { margin:0; color:var(--navy); font-size:clamp(3.1rem,6.2vw,5.8rem); line-height:1.05; letter-spacing:-.065em; }.home h1 em { color:var(--gold); font-style:normal; }.group-intro { max-width:500px; margin:28px 0 0; color:#587087; font-size:1rem; line-height:1.9; }.entry-grid { display:grid; gap:15px; }.entry-card { min-height:168px; padding:24px 25px; position:relative; overflow:hidden; display:grid; grid-template-columns:1fr auto; align-items:center; border:1px solid #d7e4eb; border-radius:21px; background:rgba(255,255,255,.88); box-shadow:0 12px 32px rgba(15,60,91,.06); transition:transform .2s ease,box-shadow .2s ease; }.entry-card:hover { transform:translateY(-4px); box-shadow:var(--shadow); }.entry-card::after { content:""; position:absolute; width:190px; height:190px; right:-80px; top:-92px; border:1px solid rgba(40,114,173,.14); border-radius:50%; box-shadow:0 0 0 24px rgba(40,114,173,.04); }.entry-card > * { position:relative; z-index:1; }.entry-card h2 { margin:6px 0; color:var(--navy); font-size:1.55rem; }.entry-card p { margin:0; color:var(--muted); font-size:.83rem; }.entry-card .go { width:43px; height:43px; display:grid; place-items:center; border-radius:50%; color:white; background:var(--blue); font-size:1.2rem; }.student-entry { background:linear-gradient(135deg,#f8fcfd,#ecf6f4); }.student-entry .go { background:#2f8968; }.admin-entry { margin-top:2px; color:#8192a1; font-size:.74rem; }.admin-entry:hover { color:var(--blue); }
.site-footer { min-height:82px; padding:20px 0; display:flex; align-items:center; justify-content:space-between; gap:20px; color:#788b9b; font-size:.75rem; }.site-footer b { color:#587188; }.site-footer p { margin:0; text-align:right; }
.auth-page { min-height:100vh; display:grid; grid-template-columns:minmax(0,1.02fr) minmax(370px,.98fr); background:linear-gradient(135deg,#eef6fa,#f9fcfd 50%,#f8f4ef); }.auth-aside { padding:54px clamp(32px,7vw,105px); display:flex; flex-direction:column; justify-content:space-between; background:radial-gradient(circle at 64% 33%,rgba(49,124,180,.18),transparent 30%),linear-gradient(145deg,#f7fbfd,#e9f3f7); }.auth-aside h1 { max-width:570px; margin:0; color:var(--navy); font-size:clamp(2.8rem,5vw,5rem); line-height:1.08; letter-spacing:-.06em; }.auth-aside h1 em { color:var(--gold); font-style:normal; }.auth-aside p:last-child { color:#70859a; font-size:.84rem; }.auth-box { padding:46px clamp(28px,7vw,90px); display:grid; align-content:center; background:white; }.auth-box-inner { width:min(100%,430px); }.auth-box h2 { margin:0; color:var(--navy); font-size:2rem; }.auth-box > div > p { margin:11px 0 28px; color:var(--muted); font-size:.88rem; }.form-stack { display:grid; gap:16px; }.field { display:grid; gap:7px; color:#466078; font-size:.82rem; font-weight:600; }.field input,.field textarea,.field select { min-height:48px; padding:10px 12px; border:1px solid #d6e2e9; border-radius:10px; outline:0; color:var(--ink); background:#fbfdfe; }.field textarea { min-height:82px; resize:vertical; }.field input:focus,.field textarea:focus,.field select:focus { border-color:#5196c8; box-shadow:0 0 0 3px rgba(52,130,185,.12); }.form-message { min-height:20px; margin:0; color:var(--danger); font-size:.8rem; }.button { min-height:46px; padding:0 17px; display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid transparent; border-radius:10px; font-weight:700; font-size:.86rem; }.button-primary { color:white; background:linear-gradient(115deg,var(--navy),var(--blue)); box-shadow:0 10px 23px rgba(22,88,143,.18); }.button-primary:hover { filter:brightness(1.06); }.button-secondary { color:var(--blue); border-color:#cbdde8; background:white; }.button-danger { color:white; background:var(--danger); }.button:disabled { cursor:not-allowed; opacity:.55; }.auth-return { margin-top:19px; color:#75899b; font-size:.8rem; }.auth-return a { color:var(--blue); }
.app-header { min-height:78px; border-bottom:1px solid #dde8ed; background:rgba(255,255,255,.92); }.app-header .shell { min-height:78px; display:flex; align-items:center; justify-content:space-between; gap:20px; }.app-header .brand img { width:43px; height:43px; }.app-header .brand b { font-size:.93rem; }.app-header .brand small { font-size:.61rem; }.account-bar { display:flex; align-items:center; gap:13px; color:#5d7388; font-size:.8rem; }.account-bar strong { color:var(--navy); }.text-button { padding:0; border:0; color:var(--blue); background:transparent; font-size:.8rem; }.app-main { padding:42px 0 78px; }.dashboard-head { display:flex; align-items:end; justify-content:space-between; gap:25px; margin-bottom:26px; }.dashboard-head h1 { margin:0; color:var(--navy); font-size:clamp(2rem,4vw,3.3rem); letter-spacing:-.05em; }.dashboard-head p { margin:0 0 8px; color:#6d8499; font-size:.73rem; letter-spacing:.15em; }.dashboard-actions { display:flex; gap:9px; flex-wrap:wrap; }.course-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:17px; }.course-card { min-height:224px; padding:22px; display:flex; flex-direction:column; border:1px solid #d9e5eb; border-radius:18px; background:white; box-shadow:0 10px 27px rgba(14,58,91,.05); }.course-card .course-meta { color:#7c91a2; font-size:.73rem; }.course-card h2 { margin:18px 0 9px; color:var(--navy); font-size:1.32rem; line-height:1.35; }.course-card p { margin:0; color:#6b8094; font-size:.82rem; line-height:1.7; }.course-card footer { margin-top:auto; padding-top:18px; display:flex; align-items:center; justify-content:space-between; gap:10px; }.publish-state { padding:5px 8px; border-radius:99px; color:#6d8294; background:#eef3f6; font-size:.69rem; }.publish-state.live { color:#287954; background:#e9f7ef; }.empty-card { min-height:180px; grid-column:1/-1; display:grid; place-items:center; border:1px dashed #ccdbe4; border-radius:18px; color:#7990a2; background:rgba(255,255,255,.55); font-size:.9rem; }
.panel { margin-top:24px; padding:24px; border:1px solid #dce7ed; border-radius:19px; background:white; box-shadow:0 9px 24px rgba(14,58,91,.04); }.panel h2 { margin:0; color:var(--navy); font-size:1.2rem; }.panel > p { margin:8px 0 18px; color:#73879a; font-size:.82rem; }.two-col { display:grid; grid-template-columns:1fr 1fr; gap:20px; }.table-wrap { overflow-x:auto; }.simple-table { width:100%; border-collapse:collapse; font-size:.8rem; }.simple-table th,.simple-table td { padding:12px 9px; text-align:left; border-bottom:1px solid #e7eef2; white-space:nowrap; }.simple-table th { color:#71869a; font-size:.69rem; letter-spacing:.07em; }.simple-table td { color:#466078; }.tabs { display:flex; gap:8px; margin:19px 0; }.tab { min-height:34px; padding:0 11px; border:1px solid #d8e4ea; border-radius:8px; color:#698196; background:white; font-size:.75rem; }.tab.active { color:white; border-color:var(--navy); background:var(--navy); }
.modal { width:min(650px,calc(100% - 30px)); padding:0; border:0; border-radius:18px; box-shadow:0 30px 80px rgba(4,37,66,.28); }.modal::backdrop { background:rgba(6,33,57,.38); }.modal form,.modal .modal-body { padding:25px; }.modal-head { padding:22px 25px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #e4edf1; }.modal-head h2 { margin:0; color:var(--navy); font-size:1.3rem; }.icon-button { width:31px; height:31px; border:0; border-radius:50%; color:#72889a; background:#eef4f7; font-size:1.2rem; }.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }.wide { grid-column:1/-1; }.modal-actions { margin-top:22px; display:flex; justify-content:flex-end; gap:9px; }.class-list { min-height:48px; padding:9px; border:1px solid #d6e2e9; border-radius:10px; color:#587087; font-size:.78rem; }.class-list input { width:100%; border:0; outline:0; }.toast { position:fixed; z-index:20; right:20px; bottom:20px; max-width:340px; padding:13px 16px; border-radius:11px; color:white; background:#263f58; box-shadow:var(--shadow); font-size:.82rem; }.toast.error { background:var(--danger); }
.course-page-head { padding:36px 0 27px; color:white; background:linear-gradient(120deg,#092f5a,#286fa7); }.course-page-head .shell { display:flex; align-items:end; justify-content:space-between; gap:25px; }.course-page-head p { margin:0 0 8px; color:rgba(255,255,255,.64); font-size:.75rem; letter-spacing:.13em; }.course-page-head h1 { margin:0; font-size:clamp(2rem,4vw,3.25rem); letter-spacing:-.045em; }.back { color:rgba(255,255,255,.82); font-size:.8rem; }.resource-layout { display:grid; grid-template-columns:minmax(0,1fr) 275px; gap:22px; }.resource-list { display:grid; gap:13px; }.resource-card { min-height:78px; padding:14px; display:grid; grid-template-columns:42px 1fr auto; gap:12px; align-items:center; border:1px solid #dbe6ec; border-radius:14px; background:white; }.resource-icon { width:39px; height:39px; display:grid; place-items:center; border-radius:10px; color:var(--blue); background:#eaf3f9; font-size:.72rem; font-weight:800; }.resource-card h2 { margin:0; color:#28445d; font-size:.98rem; }.resource-card p { margin:5px 0 0; color:#8193a2; font-size:.72rem; }.resource-card .button { min-height:37px; font-size:.75rem; }.resource-card.done { border-color:#cde6d8; }.resource-card.done .resource-icon { color:#287a54; background:#eaf7ef; }.resource-viewer { min-height:530px; margin-top:20px; overflow:hidden; border:1px solid #dbe6ec; border-radius:16px; background:white; }.resource-viewer iframe { width:100%; height:530px; border:0; }.resource-viewer audio { width:calc(100% - 40px); margin:30px 20px; }.resource-viewer .viewer-empty { min-height:240px; display:grid; place-items:center; color:#7c91a2; font-size:.88rem; }.lesson-note { padding:19px; border:1px solid #dce7ed; border-radius:16px; background:white; }.lesson-note h2 { margin:0 0 10px; color:var(--navy); font-size:1.05rem; }.lesson-note p { margin:0; color:#70869a; font-size:.79rem; line-height:1.75; }.must-change { position:fixed; z-index:30; inset:0; padding:20px; display:grid; place-items:center; background:rgba(7,31,53,.48); }.must-change > div { width:min(430px,100%); padding:28px; border-radius:18px; background:white; box-shadow:0 30px 80px rgba(4,37,66,.3); }.must-change h2 { margin:0; color:var(--navy); }.must-change p { color:#6f8396; font-size:.83rem; line-height:1.7; }
@media (max-width:820px) { .home-grid,.auth-page { grid-template-columns:1fr; }.home { min-height:auto; padding:52px 0 66px; }.home-grid { gap:39px; }.auth-aside { min-height:280px; padding:42px 28px; }.auth-box { min-height:calc(100vh - 280px); padding:46px 28px; }.course-grid { grid-template-columns:1fr 1fr; }.resource-layout { grid-template-columns:1fr; }.lesson-note { display:none; } }
@media (max-width:560px) { .shell { width:min(100% - 28px,1140px); }.portal-header { height:76px; }.brand img { width:43px; height:43px; }.brand b { font-size:.88rem; }.brand small { display:none; }.home h1 { font-size:3.1rem; }.entry-card { min-height:139px; }.site-footer { align-items:start; flex-direction:column; }.site-footer p { text-align:left; }.app-header .shell { min-height:70px; }.account-bar span { display:none; }.app-main { padding-top:28px; }.dashboard-head { align-items:start; flex-direction:column; }.course-grid,.two-col,.form-grid { grid-template-columns:1fr; }.wide { grid-column:auto; }.course-card { min-height:200px; }.resource-card { grid-template-columns:38px 1fr; }.resource-card .button { grid-column:2; width:max-content; }.course-page-head .shell { align-items:start; flex-direction:column; }.modal-actions { flex-wrap:wrap; }.modal-actions .button { flex:1; }.resource-viewer { min-height:310px; }.resource-viewer iframe { height:410px; } }
