/* ===== starry.css — 星空背景样式（提取自V1.0学生查分页） ===== */

/* 星空动画背景 */
body.starry-body{
    overflow-x:hidden;
    min-height:100vh;
    position:relative;
    background:linear-gradient(160deg,#0C2D5E,#143C78,#1A4F8A,#2563A0,#4A8BC2,#7AB4DA);
    background-size:300% 300%;
    animation:bgShift 20s ease-in-out infinite;
}
@keyframes bgShift{
    0%{background-position:0% 0%}
    25%{background-position:100% 30%}
    50%{background-position:50% 100%}
    75%{background-position:0% 70%}
    100%{background-position:0% 0%}
}

/* 星星 */
.star{
    position:fixed;
    border-radius:50%;
    pointer-events:none;
    background:radial-gradient(circle,rgba(255,240,190,0.95) 0%,rgba(255,215,100,0.4) 35%,transparent 70%);
    animation:twinkle ease-in-out infinite;
    z-index:0;
}
@keyframes twinkle{
    0%,100%{opacity:0.15;transform:scale(0.8)}
    50%{opacity:0.85;transform:scale(1.3)}
}

/* 星空背景容器 */
.starry-bg{
    position:relative;
    z-index:1;
    min-height:100vh;
}

/* ===== 登录/注册页 ===== */
.login-container{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:100vh;
    position:relative;
    z-index:2;
    padding:20px;
}
.login-badge{
    background:rgba(255,255,255,0.18);
    border-radius:30px;
    padding:6px 22px;
    font-size:14px;
    color:rgba(255,255,255,0.9);
    margin-bottom:28px;
    border:0.5px solid rgba(255,255,255,0.2);
}
.login-card{
    background:rgba(255,255,255,0.94);
    border-radius:24px;
    padding:48px 40px;
    width:100%;
    max-width:480px;
    box-shadow:0 8px 48px rgba(0,0,0,0.15);
    text-align:center;
}
.login-title{
    font-size:26px;
    font-weight:700;
    color:#0A1F3C;
    line-height:1.3;
    margin-bottom:6px;
}
.login-sub{
    font-size:14px;
    color:#3D5A80;
    margin-bottom:32px;
}

/* Tab 切换 */
.login-tabs{
    display:flex;
    gap:0;
    margin-bottom:24px;
    background:rgba(37,99,160,0.06);
    border-radius:12px;
    padding:4px;
}
.login-tab{
    flex:1;
    padding:10px;
    border:none;
    border-radius:8px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    background:transparent;
    color:#3D5A80;
    transition:all 0.2s;
}
.login-tab.active{
    background:#fff;
    color:#2563A0;
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
}

/* 角色切换 */
.role-tabs{
    display:flex;
    gap:8px;
    margin-bottom:20px;
    justify-content:center;
}
.role-tab{
    padding:8px 20px;
    border-radius:20px;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    border:1.5px solid rgba(37,99,160,0.2);
    background:#fff;
    color:#3D5A80;
    transition:all 0.2s;
}
.role-tab.active{
    background:#2563A0;
    color:#fff;
    border-color:#2563A0;
}

/* 登录表单字段 */
.login-field{
    margin-bottom:18px;
    text-align:left;
}
/* V4.0.1 注册开关提示条（开关关闭时显示） */
.reg-closed-banner{
    margin:-12px 0 18px;
    padding:10px 16px;
    border-radius:10px;
    background:rgba(255,150,60,0.12);
    border:1px solid rgba(230,140,40,0.45);
    color:#B25E00;
    font-size:13px;
    font-weight:600;
    text-align:center;
}
.reg-closed-banner.hidden{display:none}
/* V4.0.1 学生注册学号字段下方提示 */
.login-field-hint{
    margin-top:5px;
    font-size:11px;
    color:#5A7A9A;
    line-height:1.5;
}
.login-field label{
    display:block;
    font-size:13px;
    color:#2C4A6E;
    margin-bottom:6px;
    font-weight:600;
}
.login-field input,.login-field select{
    width:100%;
    padding:12px 16px;
    font-size:15px;
    border:1.5px solid rgba(37,99,160,0.2);
    border-radius:12px;
    color:#0F2440;
    font-weight:500;
    background:#fff;
}
.login-field input:focus,.login-field select:focus{
    border-color:#2563A0;
    outline:none;
    box-shadow:0 0 0 3px rgba(37,99,160,0.1);
}

/* 登录按钮 */
.login-btn{
    width:100%;
    padding:14px;
    font-size:16px;
    font-weight:700;
    margin-top:10px;
    cursor:pointer;
    border:none;
    border-radius:12px;
    background:linear-gradient(135deg,#2563A0,#143C78);
    color:#fff;
    letter-spacing:0.5px;
    transition:transform 0.15s,box-shadow 0.2s;
}
.login-btn:hover{
    transform:translateY(-1px);
    box-shadow:0 6px 24px rgba(37,99,160,0.3);
}
.login-btn:active{transform:scale(0.98)}

.login-hint{
    font-size:12px;
    color:#5A7A9A;
    margin-top:18px;
    line-height:1.6;
}

/* Flash 消息 */
.flash-msg{
    padding:10px 16px;
    border-radius:8px;
    font-size:13px;
    margin-bottom:16px;
    text-align:left;
}
.flash-error{background:rgba(163,45,45,0.08);color:#A32D2D;border:1px solid rgba(163,45,45,0.2)}
.flash-success{background:rgba(29,158,117,0.08);color:#1D9E75;border:1px solid rgba(29,158,117,0.2)}
.flash-info{background:rgba(55,138,221,0.08);color:#378ADD;border:1px solid rgba(55,138,221,0.2)}

/* ===== 学生查分页专属样式（V1.0提取） ===== */
.result-wrap{
    position:relative;
    z-index:1;
    padding:24px 5vw 40px;
    animation:fadeIn 0.6s ease;
}
@keyframes fadeIn{
    0%{opacity:0;transform:translateY(24px)}
    100%{opacity:1;transform:translateY(0)}
}
.header-row{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:20px;
    padding:0 2px;
    flex-wrap:wrap;
}
.header-name{font-size:20px;font-weight:600;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,0.3)}
.header-info{font-size:15px;color:rgba(255,255,255,0.92)}

.hero-section{margin-bottom:18px}
.hero-card{
    background:rgba(255,255,255,0.95);
    border-radius:20px;
    padding:clamp(28px,4vw,48px) clamp(24px,3.5vw,56px);
    text-align:center;
    width:92%;
    max-width:1200px;
    margin:0 auto;
    box-shadow:0 4px 32px rgba(0,0,0,0.06);
}
.score-big{
    font-size:clamp(56px,8vw,96px);
    font-weight:600;
    line-height:1.1;
    color:#0F2440;
}
.score-outof{font-size:clamp(18px,2vw,26px);color:#3D5A80;font-weight:400}

.badge-row{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin-top:10px;
    flex-wrap:wrap;
}
.badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 20px;
    border-radius:20px;
    font-size:clamp(14px,1.2vw,17px);
    font-weight:600;
    color:#fff;
}
.badge-A{background:linear-gradient(135deg,#5DCAA5,#1D9E75)}
.badge-B{background:linear-gradient(135deg,#FFD580,#DA8A20)}
.badge-C{background:linear-gradient(135deg,#85B7EB,#378ADD)}
.badge-D{background:linear-gradient(135deg,#F5C4B3,#D85A30)}
.badge-E{background:linear-gradient(135deg,#F7C1C1,#A32D2D)}

.prog-bar{
    height:10px;
    background:rgba(37,99,160,0.12);
    border-radius:6px;
    margin-top:18px;
    overflow:hidden;
    max-width:600px;
    margin-left:auto;
    margin-right:auto;
}
.prog-fill{
    height:100%;
    border-radius:6px;
    transition:width 1.4s cubic-bezier(0.22,1,0.36,1);
    background:linear-gradient(90deg,#1D9E75,#5DCAA5);
}
.enc-msg{
    display:inline-block;
    font-size:clamp(15px,1.2vw,18px);
    font-weight:500;
    padding:10px 28px;
    border-radius:12px;
    margin-top:14px;
    background:#D6E8F7;
    color:#0C447C;
}
.veto-alert{
    padding:12px 20px;
    background:#F5D8D8;
    border-radius:12px;
    font-size:15px;
    color:#8B1A1A;
    font-weight:500;
    margin-top:16px;
    display:none;
    max-width:600px;
    margin-left:auto;
    margin-right:auto;
}

.grid-section{margin-bottom:18px}
.mod-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(clamp(150px,14vw,220px),1fr));
    gap:clamp(10px,1.2vw,18px);
    width:92%;
    max-width:1200px;
    margin:0 auto;
}
.mod-card{
    border-radius:14px;
    padding:clamp(18px,2vw,28px) clamp(14px,1.5vw,22px);
    text-align:center;
    position:relative;
    overflow:hidden;
    border:0.5px solid rgba(0,0,0,0.04);
}
.mod-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,0,0,0.06)}
.mod-card::before{content:"";position:absolute;top:0;left:0;right:0;height:4px}
.mod-g{background:rgba(210,240,228,0.92)}.mod-g::before{background:#1D9E75}
.mod-b{background:rgba(215,232,248,0.92)}.mod-b::before{background:#378ADD}
.mod-p{background:rgba(230,228,248,0.92)}.mod-p::before{background:#7F77DD}
.mod-c{background:rgba(248,225,218,0.92)}.mod-c::before{background:#D85A30}
.mod-pk{background:rgba(248,225,233,0.92)}.mod-pk::before{background:#D4537E}
.mod-gray{background:rgba(235,233,228,0.88)}.mod-gray::before{background:#888780}
.mod-name{font-size:clamp(13px,1vw,15px);color:#2C4A6E;margin-bottom:8px;font-weight:600}
.mod-score{font-size:clamp(26px,3vw,38px);font-weight:600;color:#0F2440;line-height:1.2}
.mod-full{font-size:clamp(12px,0.9vw,14px);color:#5A7A9A}
.mod-tag{display:inline-block;font-size:11px;padding:3px 12px;border-radius:12px;margin-top:8px;font-weight:500}
.tag-ok{background:rgba(29,158,117,0.18);color:#085A3E}
.tag-warn{background:rgba(186,117,23,0.18);color:#7A4A0C}
.tag-bad{background:rgba(163,45,45,0.14);color:#8B1A1A}

.detail-section{
    margin-bottom:18px;
    width:92%;
    max-width:1200px;
    margin-left:auto;
    margin-right:auto;
}
.detail-section summary{
    font-size:16px;
    font-weight:500;
    color:#fff;
    cursor:pointer;
    padding:12px 0;
    list-style:none;
    display:flex;
    align-items:center;
    gap:8px;
}
.detail-section summary::-webkit-details-marker{display:none}
.detail-section summary::after{content:"\25BE";font-size:14px;transition:transform 0.3s}
.detail-section[open] summary::after{transform:rotate(180deg)}
.detail-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 16px;
    font-size:14px;
    color:rgba(255,255,255,0.95);
    border-bottom:0.5px solid rgba(255,255,255,0.08);
    background:rgba(255,255,255,0.06);
    border-radius:4px;
    margin-bottom:2px;
}
.detail-item:last-child{border-bottom:none}
.detail-right{font-weight:600;color:#FFE090;font-size:15px}

.encourage-section{margin-bottom:18px}
.encourage-block{
    padding:clamp(20px,2.5vw,32px) clamp(20px,3vw,48px);
    border-radius:16px;
    text-align:center;
    background:rgba(210,240,228,0.92);
    width:92%;
    max-width:1200px;
    margin:0 auto;
}
.encourage-block .title{font-size:clamp(17px,1.4vw,20px);font-weight:600;color:#085041;margin-bottom:8px}
.encourage-block .desc{font-size:clamp(14px,1vw,16px);color:#0F4A32;line-height:1.8}

.score-footer{
    text-align:center;
    font-size:13px;
    color:rgba(255,255,255,0.8);
    padding-top:10px;
    width:92%;
    max-width:1200px;
    margin:0 auto;
}

/* ===== 学生仪表盘专属样式 ===== */
.stu-wrap{
    position:relative;z-index:1;
    padding:20px 5vw 40px;
    animation:fadeIn 0.6s ease;
}

/* ===== V4.0.1 课代表任务卡片 ===== */
.rep-task-banner{
    max-width:1200px;
    margin:0 auto 20px;
    display:flex;
    flex-direction:column;
    gap:12px;
}
.rep-task-card{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    flex-wrap:wrap;
    /* V4.0.3：加浅色半透明底，深色星空上保持卡片与文字可读 */
    background:linear-gradient(135deg,rgba(55,138,221,0.92),rgba(37,99,160,0.92));
    border:1px solid rgba(255,255,255,0.25);
    border-radius:16px;
    padding:16px 20px;
    box-shadow:0 6px 24px rgba(0,0,0,0.18);
}
.rep-task-title{font-size:17px;font-weight:700;color:#fff;margin-bottom:4px}
.rep-task-desc{font-size:13px;color:rgba(255,255,255,0.92)}
.rep-task-btns{display:flex;gap:10px;flex-wrap:wrap}
.rep-task-btn{
    display:inline-block;
    /* V4.0.3：暖橙实心渐变 + 白字加粗，深色背景上一眼可见（缓存了旧样式的浏览器强制升级靠 ?v=20260924） */
    padding:10px 22px;
    border-radius:10px;
    background:linear-gradient(135deg,#ff9f43,#f0a24a);
    color:#fff;
    font-size:14px;
    font-weight:700;
    text-decoration:none;
    letter-spacing:1px;
    box-shadow:0 3px 12px rgba(255,159,67,0.35);
    transition:transform 0.15s,box-shadow 0.2s,filter 0.2s;
}
.rep-task-btn:hover{transform:translateY(-1px);filter:brightness(0.94);box-shadow:0 5px 18px rgba(255,159,67,0.5)}
.stu-header{text-align:center;margin-bottom:28px}
.stu-title{font-size:24px;font-weight:600;color:#fff;margin-bottom:6px;text-shadow:0 2px 8px rgba(0,0,0,0.3)}
.stu-sub{font-size:14px;color:rgba(255,255,255,0.85)}

.stu-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
    gap:16px;
    max-width:1200px;
    margin:0 auto;
}
.stu-card{
    background:rgba(255,255,255,0.95);
    border-radius:16px;
    padding:20px 24px;
    text-decoration:none;
    display:flex;
    flex-direction:column;
    gap:14px;
    transition:transform 0.2s,box-shadow 0.2s;
    border-left:4px solid #378ADD;
}
.stu-card:hover{transform:translateY(-3px);box-shadow:0 8px 32px rgba(0,0,0,0.12)}
.stu-card-top{flex:1}
.stu-course{font-size:18px;font-weight:700;color:#0A1F3C;margin-bottom:4px}
.stu-class{font-size:13px;color:#3D5A80;margin-bottom:2px}
.stu-teacher{font-size:12px;color:#5A7A9A}
.stu-card-bottom{
    display:flex;align-items:center;justify-content:space-between;
    padding-top:12px;border-top:1px solid rgba(0,0,0,0.06);
}
.stu-score{font-size:36px;font-weight:700;line-height:1;color:#0F2440}
.stu-score-none{color:#8AA0B8;font-size:28px}
.stu-grade-info{display:flex;align-items:center;gap:8px}
.stu-badge{
    display:inline-flex;align-items:center;justify-content:center;
    padding:4px 14px;border-radius:16px;font-size:13px;font-weight:600;color:#fff;
    min-width:28px;
}
.stu-badge.badge-none{background:rgba(138,160,184,0.3);color:#5A7A9A}
.stu-grade-label{font-size:13px;color:#3D5A80;font-weight:500}

.stu-empty{
    text-align:center;padding:60px 20px;
    max-width:500px;margin:0 auto;
}
.stu-empty-icon{font-size:56px;margin-bottom:16px}
.stu-empty-title{font-size:18px;font-weight:600;color:#fff;margin-bottom:8px}
.stu-empty-desc{font-size:14px;color:rgba(255,255,255,0.8);line-height:1.6}

/* ===== 学生看板模块明细 ===== */
.stu-mods{
    display:flex;
    flex-direction:column;
    gap:6px;
    padding:10px 0;
    border-top:1px solid rgba(0,0,0,0.06);
    border-bottom:1px solid rgba(0,0,0,0.06);
}
.stu-mod-item{
    display:flex;
    align-items:center;
    gap:8px;
}
.stu-mod-label{
    font-size:11px;
    color:#3D5A80;
    font-weight:600;
    width:28px;
    flex-shrink:0;
}
.stu-mod-bar{
    flex:1;
    height:6px;
    background:rgba(37,99,160,0.1);
    border-radius:3px;
    overflow:hidden;
}
.stu-mod-fill{
    height:100%;
    border-radius:3px;
    background:linear-gradient(90deg,#378ADD,#5DA4E8);
    transition:width 0.6s ease;
}
.stu-mod-val{
    font-size:11px;
    color:#5A7A9A;
    font-weight:500;
    min-width:42px;
    text-align:right;
    flex-shrink:0;
}

/* ===== 教师控制台专属样式 ===== */
.console-wrap{
    position:relative;
    z-index:1;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:40px 5vw;
    box-sizing:border-box;
    animation:fadeIn 0.6s ease;
}
.console-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    max-width:1200px;
    width:92%;
    margin:0 auto 24px;
    flex-wrap:wrap;
    gap:12px;
}
.console-title{
    font-size:clamp(24px,3.5vw,36px);
    font-weight:700;
    color:#fff;
    text-shadow:0 2px 12px rgba(0,0,0,0.3);
    margin-bottom:4px;
}
.console-subtitle{
    font-size:clamp(14px,1.5vw,17px);
    color:rgba(255,255,255,0.85);
}
.console-logout{
    font-size:14px;
    color:rgba(255,255,255,0.85);
    text-decoration:none;
    padding:8px 18px;
    border-radius:20px;
    border:1px solid rgba(255,255,255,0.25);
    background:rgba(255,255,255,0.08);
    transition:all 0.2s;
}
.console-logout:hover{
    background:rgba(255,255,255,0.18);
    color:#fff;
}
.fb-gold{
    color:#FFD966;
    border:1px solid #F0C24B;
    background:rgba(240,194,75,0.14);
    font-weight:500;
}
.fb-gold:hover{
    background:rgba(240,194,75,0.30);
    color:#FFE9A8;
    border-color:#FFE9A8;
}

.console-panel{
    background:rgba(255,255,255,0.95);
    border-radius:24px;
    padding:clamp(24px,3vw,40px);
    max-width:1200px;
    width:92%;
    margin:0 auto;
    box-shadow:0 8px 48px rgba(0,0,0,0.12);
}
.console-panel-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:24px;
    flex-wrap:wrap;
    gap:12px;
}
.console-panel-title{
    font-size:clamp(20px,2.5vw,26px);
    font-weight:700;
    color:#0A1F3C;
    margin:0;
}

@media(max-width:768px){
    .console-wrap{padding:24px 4vw;justify-content:flex-start}
    .console-header{margin-bottom:16px}
    .console-title{font-size:22px}
    .console-subtitle{font-size:13px}
    .console-panel{padding:20px}
    .console-panel-head{margin-bottom:16px}
    .result-wrap{padding:16px 3vw 30px}
    .hero-card{width:96%;padding:24px 16px;border-radius:16px}
    .score-big{font-size:48px}
    .mod-grid{width:96%;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}
    .mod-card{padding:14px 10px}
    .mod-score{font-size:22px}
    .detail-section{width:96%}
    .encourage-block{width:96%;padding:16px}
    .login-card{padding:32px 20px;max-width:94%}
    .score-footer{width:96%}
    .stu-grid{grid-template-columns:1fr}
    .stu-wrap{padding:16px 3vw 30px}
}
