/* ============================================================
   AEAI Cyberpunk x Bridge 主题（共享版 v2 — 三端通用）
   学生端 / 教师端 / 管理端：霓虹紫青 × 大桥元素
   原则：氛围拉满，但正文高对比、不闪不炫、布局零改动
   ============================================================ */

/* ---------- 1. 调色板 ---------- */
:root{
  --blue:#9D6BFF; --blue-deep:#7A2BD6; --blue-bright:#33E0FF;
  --bg:#0A0514; --card:#150C28; --bar:#150C28;
  --green:#43E58C; --green-bg:rgba(67,229,140,.14); --green-bg2:rgba(67,229,140,.09);
  --red:#FF5C7A; --red-bg:rgba(255,92,122,.14); --red-bg2:rgba(255,92,122,.09);
  --text-dark:#EFEAFC; --text-mid:#B3A8D9; --text-light:#8A7DB8;
  --border:#34215C; --selected:#2A1E52;
  --cy:#33E0FF; --mg:#FF4FD8; --pu:#9D6BFF;
  --neon-line:linear-gradient(135deg,rgba(51,224,255,.6),rgba(122,43,214,.5) 45%,rgba(255,79,216,.55));
}

/* ---------- 2. 全局夜空底 + 地平线辉光 ---------- */
body{
  background:
    radial-gradient(1100px 540px at 88% -10%, rgba(255,79,216,.10), transparent 62%),
    radial-gradient(900px 500px at -12% 30%, rgba(51,224,255,.09), transparent 62%),
    radial-gradient(1400px 420px at 50% 118%, rgba(157,107,255,.12), transparent 70%),
    #0A0514 !important;
}
body::after{
  content:''; position:fixed; left:0; right:0; bottom:0; height:4px; z-index:9998; pointer-events:none;
  background:linear-gradient(90deg,#FF4FD8,#9D6BFF 50%,#33E0FF); opacity:.55;
}
::-webkit-scrollbar-thumb{background:#3B2A66 !important}
::-webkit-scrollbar-thumb:hover{background:#5B3FA8 !important}
a{color:#33E0FF}
a:hover{text-shadow:0 0 10px rgba(51,224,255,.55)}

/* ---------- 3. 霓虹渐变描边面板（三端卡片/面板统一样式） ---------- */
.team-card,.stat-card,.st,.stu-card,.stu-form,.add-form,.form-card,.class-card,
.chat-item,.config-panel,.data-table,.modal-box,.login-left,.login-right,
.team-row,.private,.assistant-banner,.model-sel,.media-sheet-box,.mention-picker,
.nav-brand,.nav-user,.reply-quote{
  border:1px solid transparent !important;
  background:linear-gradient(180deg,rgba(28,15,54,.97),rgba(17,9,34,.97)) padding-box,
             var(--neon-line) border-box !important;
}
.data-table th{background:#1D1236 !important;color:#B3A8D9 !important}
.data-table td{border-color:#2A1B4D !important}
.data-table tbody tr:hover{background:#241545 !important}
.data-table tbody tr:hover td{color:#EFEAFC !important}
.chat-item.active,.chat-item:active{
  background:linear-gradient(90deg,rgba(51,224,255,.14),rgba(255,79,216,.08)) padding-box,
             var(--neon-line) border-box !important;
}
.stu-form .field label,.add-form .field label,.modal-box .field label,.form-card .field label{color:#B3A8D9 !important}
.bar-track,.progress,.divider{background:#2A1B4D !important;border-color:#2A1B4D !important}
.class-card .progress,.progress{background:#2A1B4D !important}
.rec-bar,.rec-dot,.hold-btn,.spk-btn,.grabber,.recording,.p-tag,.student-tag,.stu-avatar,.avatar,.stu{background:#1D1236 !important;color:#EFEAFC !important;border-color:#3B2A66 !important}
.off{background:#2A1B4D !important;color:#8A7DB8 !important}

/* ---------- 4. 输入框：深底霓虹描边 ---------- */
input,select,textarea,
.filter-bar input,.filter-bar select,.form-card .field input,.form-card .field select,
.form-card .field textarea,.config-panel input[type=text],.config-panel input[type=password],
.config-panel input[type=number],.config-panel select,.config-panel textarea,
.stu-form .field input,.stu-form .field select,.add-form .field input,.add-form .field select,
.modal-box .field input,.modal-box .field select,.modal-box .field textarea,
.chat-search input,.chat-input textarea,.ai-input input,.login-body input,.login-form input{
  background:#0D0720 !important;color:#EFEAFC !important;border-color:#3B2A66 !important;
}
input:focus,select:focus,textarea:focus{
  border-color:#33E0FF !important;box-shadow:0 0 0 1px rgba(51,224,255,.4),0 0 14px rgba(51,224,255,.18) !important;outline:none !important;
}
input::placeholder,textarea::placeholder{color:#6E639A !important}

/* ---------- 5. 按钮：霓虹描边 / 渐变发光主按钮 ---------- */
.btn-primary,.btns .btn-blue,.login-body button,.login-form button{
  background:linear-gradient(90deg,#0FA3C9,#7A2BD6 55%,#C924B8) !important;color:#fff !important;
  border:none !important;font-weight:700 !important;
  box-shadow:0 0 16px rgba(122,43,214,.45),0 0 4px rgba(51,224,255,.35) !important;
}
.btn-primary:hover,.btns .btn-blue:hover,.login-body button:hover,.login-form button:hover{filter:brightness(1.15)}
.btn-ghost,.btn-outline,.btns .btn-outline,.btn-edit,.btn-chat,.ai-quick button{
  background:rgba(51,224,255,.06) !important;color:#4FF3FF !important;
  border:1px solid rgba(51,224,255,.5) !important;
}
.btn-ghost:hover,.btn-outline:hover,.btn-edit:hover,.btn-chat:hover{box-shadow:0 0 12px rgba(51,224,255,.3) !important}
.btn-del{background:rgba(255,79,216,.10) !important;color:#FF6BE0 !important;border:1px solid rgba(255,79,216,.45) !important}
.btn-stop{background:rgba(255,92,122,.12) !important;color:#FF5C7A !important;border-color:rgba(255,92,122,.45) !important}

/* ---------- 6. 导航：渐变标题 + 霓虹高亮 ---------- */
.nav-brand b,.nav-user b{color:#EFEAFC !important}
.nav-brand span,.nav-user span{color:#8A7DB8 !important}
.page-head .title,.login-slogan,.login-head h1,.login-head h2,.login-body h2,.login-brand b{
  background:linear-gradient(90deg,#4FF3FF,#B26BFF 55%,#FF6BE0);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
}
.nav-menu .tab-btn{color:#B3A8D9}
.nav-menu .tab-btn.active{
  background:linear-gradient(90deg,rgba(51,224,255,.16),rgba(255,79,216,.10)) !important;
  color:#4FF3FF !important;text-shadow:0 0 14px rgba(51,224,255,.6);
  box-shadow:inset 3px 0 0 #33E0FF,0 0 18px rgba(51,224,255,.14) !important;
}
.side-nav .tab.active,.bottom-nav .tab.active{color:#4FF3FF !important;text-shadow:0 0 12px rgba(51,224,255,.5)}
.tabs .tab.active{color:#4FF3FF !important;border-bottom-color:#33E0FF !important}
.assistant-tabs .agent-tab.active{background:rgba(51,224,255,.12) !important;color:#4FF3FF !important}
.side-nav{position:relative}

/* ---------- 7. 消息气泡 ---------- */
/* 只给气泡本体（.bubble / .msg-bubble）上色加框——不要选中 .msg-row 行容器，
   否则行和气泡各有一层边框，消息看起来像两个框拼接（学生端曾出现此问题） */
.msg-row .bubble,.msg-other .bubble{background:#1D1236 !important;color:#EFEAFC !important;border:1px solid #2A1B4D !important}
.msg-me .bubble{background:linear-gradient(135deg,#31175E,#54175E) !important;color:#F5EFFF !important;border:1px solid #4B2F86 !important}
.msg-agent .bubble{background:rgba(51,224,255,.09) !important;color:#EFEAFC !important;border:1px solid rgba(51,224,255,.4) !important;border-left:2px solid #33E0FF !important}
.ai-row.ai .ai-bubble{background:#1D1236 !important;color:#EFEAFC !important;border:1px solid #2A1B4D !important}
.ai-row.own .ai-bubble{background:#2A1E52 !important;color:#EFEAFC !important;border:1px solid #4B2F86 !important}
.ai-sender .nm{color:#4FF3FF !important}
.reply-quote{border-left-color:#FF4FD8 !important;background:#241545 !important;color:#CFC6EC !important}
#replyBanner,.replyBanner,.quoteBanner{background:#1D1236 !important;color:#EFEAFC !important;border:1px solid #4B2F86 !important}
.msg-system{background:#241545 !important;color:#B3A8D9 !important;border:1px solid #34215C !important}
.toast{background:#1D1236 !important;color:#EFEAFC !important;border:1px solid #4B2F86 !important;box-shadow:0 0 18px rgba(122,43,214,.4) !important}

/* ---------- 8. 登录页：夜空 + 霓虹大桥 + 合成波网格（主视觉） ---------- */
.login-head,.login-left,.login-wrap{
  background:
    radial-gradient(700px 300px at 78% 8%, rgba(255,79,216,.16), transparent 65%),
    radial-gradient(560px 280px at 15% 20%, rgba(51,224,255,.13), transparent 62%),
    linear-gradient(168deg,#170A36 0%,#2A1058 52%,#461479 100%) !important;
  position:relative; overflow:hidden;
}
.login-head::before,.login-left::before{
  content:''; position:absolute; left:0; right:0; bottom:0; height:34%; pointer-events:none; opacity:.5;
  background:
    repeating-linear-gradient(90deg, rgba(122,43,214,.20) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(122,43,214,.16) 0 1px, transparent 1px 30px);
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 78%);
          mask-image:linear-gradient(180deg,transparent,#000 78%);
}
/* 手机端(整页容器)：网格铺底但垫在表单下方 */
.login-wrap::before{
  content:''; position:absolute; left:0; right:0; bottom:0; height:40%; pointer-events:none; opacity:.4; z-index:0;
  background:
    repeating-linear-gradient(90deg, rgba(122,43,214,.20) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(122,43,214,.16) 0 1px, transparent 1px 30px);
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 78%);
          mask-image:linear-gradient(180deg,transparent,#000 78%);
}
/* 表单保持在装饰层之上 */
.login-form,.login-right,.login-body,.login-head > *,.login-left > *{position:relative;z-index:2}
.login-head::after,.login-left::after{
  content:''; position:absolute; left:0; right:0; bottom:0; height:48%; pointer-events:none; opacity:.85; z-index:1;
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 42%);
          mask-image:linear-gradient(180deg,transparent,#000 42%);
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 300'%3E%3Cdefs%3E%3ClinearGradient id='d' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23FF4FD8'/%3E%3Cstop offset='.5' stop-color='%23C26BFF'/%3E%3Cstop offset='1' stop-color='%2333E0FF'/%3E%3C/linearGradient%3E%3Cfilter id='g' x='-40%25' y='-40%25' width='180%25' height='180%25'%3E%3CfeGaussianBlur stdDeviation='4' result='b'/%3E%3CfeMerge%3E%3CfeMergeNode in='b'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cg fill='%23150B2E'%3E%3Crect x='0' y='118' width='46' height='112'/%3E%3Crect x='52' y='88' width='34' height='142'/%3E%3Crect x='92' y='138' width='40' height='92'/%3E%3C/g%3E%3Cg fill='%2333E0FF' opacity='.6'%3E%3Crect x='8' y='128' width='3' height='4'/%3E%3Crect x='20' y='144' width='3' height='4'/%3E%3Crect x='33' y='132' width='3' height='4'/%3E%3Crect x='60' y='100' width='3' height='4'/%3E%3Crect x='72' y='120' width='3' height='4'/%3E%3Crect x='102' y='150' width='3' height='4'/%3E%3C/g%3E%3Cg fill='%23FF4FD8' opacity='.55'%3E%3Crect x='14' y='158' width='3' height='4'/%3E%3Crect x='66' y='138' width='3' height='4'/%3E%3Crect x='108' y='166' width='3' height='4'/%3E%3C/g%3E%3Cg fill='%23150B2E'%3E%3Crect x='700' y='128' width='44' height='102'/%3E%3Crect x='750' y='96' width='50' height='134'/%3E%3C/g%3E%3Cg fill='%2333E0FF' opacity='.6'%3E%3Crect x='710' y='140' width='3' height='4'/%3E%3Crect x='726' y='158' width='3' height='4'/%3E%3Crect x='760' y='108' width='3' height='4'/%3E%3Crect x='778' y='130' width='3' height='4'/%3E%3C/g%3E%3Cg fill='%23FF4FD8' opacity='.55'%3E%3Crect x='718' y='172' width='3' height='4'/%3E%3Crect x='768' y='150' width='3' height='4'/%3E%3C/g%3E%3Cpath d='M150,210 Q400,10 650,210' fill='none' stroke='%2333E0FF' stroke-width='10' stroke-opacity='.4' filter='url(%23g)'/%3E%3Cpath d='M150,210 Q400,10 650,210' fill='none' stroke='%237FF7FF' stroke-width='3' filter='url(%23g)'/%3E%3Cpath d='M185,190L220,155L255,158L290,124L325,132L360,108L395,124L430,105L465,130L500,120L535,150L570,145L615,185' fill='none' stroke='%23B9FBFF' stroke-width='2.4' stroke-opacity='.95' filter='url(%23g)'/%3E%3Cg stroke='%238F6BFF' stroke-width='2' stroke-opacity='.85'%3E%3Cline x1='205' y1='171' x2='205' y2='210'/%3E%3Cline x1='255' y1='144' x2='255' y2='210'/%3E%3Cline x1='305' y1='124' x2='305' y2='210'/%3E%3Cline x1='355' y1='113' x2='355' y2='210'/%3E%3Cline x1='405' y1='110' x2='405' y2='210'/%3E%3Cline x1='455' y1='115' x2='455' y2='210'/%3E%3Cline x1='505' y1='128' x2='505' y2='210'/%3E%3Cline x1='555' y1='148' x2='555' y2='210'/%3E%3C/g%3E%3Crect x='90' y='210' width='620' height='6' fill='url(%23d)' filter='url(%23g)'/%3E%3Crect x='90' y='216' width='620' height='4' fill='%232A1B4D'/%3E%3Crect x='130' y='220' width='16' height='34' fill='%231C1038'/%3E%3Crect x='654' y='220' width='16' height='34' fill='%231C1038'/%3E%3Cg stroke-opacity='.35' filter='url(%23g)'%3E%3Cline x1='150' y1='240' x2='330' y2='240' stroke='%23FF4FD8' stroke-width='2'/%3E%3Cline x1='420' y1='252' x2='640' y2='252' stroke='%2333E0FF' stroke-width='2'/%3E%3Cline x1='240' y1='266' x2='470' y2='266' stroke='%23B26BFF' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E") center bottom/110% auto no-repeat;
}
/* 手机端(整页容器)：桥放底部、低高度，不压表单 */
.login-wrap::after{
  content:''; position:absolute; left:0; right:0; bottom:0; height:42%; pointer-events:none; opacity:.8; z-index:1;
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 50%);
          mask-image:linear-gradient(180deg,transparent,#000 50%);
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 300'%3E%3Cpath d='M150,210 Q400,10 650,210' fill='none' stroke='%2333E0FF' stroke-width='10' stroke-opacity='.4'/%3E%3Cpath d='M150,210 Q400,10 650,210' fill='none' stroke='%237FF7FF' stroke-width='3'/%3E%3Cpath d='M185,190L220,155L255,158L290,124L325,132L360,108L395,124L430,105L465,130L500,120L535,150L570,145L615,185' fill='none' stroke='%23B9FBFF' stroke-width='2.4' stroke-opacity='.95'/%3E%3Cg stroke='%238F6BFF' stroke-width='2' stroke-opacity='.85'%3E%3Cline x1='205' y1='171' x2='205' y2='210'/%3E%3Cline x1='255' y1='144' x2='255' y2='210'/%3E%3Cline x1='305' y1='124' x2='305' y2='210'/%3E%3Cline x1='355' y1='113' x2='355' y2='210'/%3E%3Cline x1='405' y1='110' x2='405' y2='210'/%3E%3Cline x1='455' y1='115' x2='455' y2='210'/%3E%3Cline x1='505' y1='128' x2='505' y2='210'/%3E%3Cline x1='555' y1='148' x2='555' y2='210'/%3E%3C/g%3E%3Crect x='90' y='210' width='620' height='6' fill='%23C26BFF'/%3E%3Crect x='90' y='216' width='620' height='4' fill='%232A1B4D'/%3E%3C/svg%3E") center bottom/130% auto no-repeat;
}
/* 桌面端(双栏布局)：整页容器的桥与左栏的桥重叠，只保留左栏那一座 */
@media (min-width:769px){
  .login-wrap::after{display:none !important}
}
.login-head h1,.login-head h2,.login-body h2{color:#F7F3FF !important}
.login-head .login-kicker,.login-kicker{color:#4FF3FF !important;text-shadow:0 0 12px rgba(51,224,255,.6)}

/* ---------- 9. 侧栏：底部小桥剪影 ---------- */
.side-nav::after{
  content:''; position:absolute; left:10px; right:10px; bottom:104px; height:58px; pointer-events:none; opacity:.65;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 230'%3E%3Cpath d='M40,170 Q300,-10 560,170' fill='none' stroke='%2333E0FF' stroke-width='8' stroke-opacity='.35'/%3E%3Cpath d='M40,170 Q300,-10 560,170' fill='none' stroke='%237FF7FF' stroke-width='3' stroke-opacity='.9'/%3E%3Cpath d='M60,160L95,120L130,145L165,100L200,125L235,84L270,108L300,74L330,108L365,84L400,125L435,100L470,145L505,120L540,160' fill='none' stroke='%23B9FBFF' stroke-width='2.2' stroke-opacity='.9'/%3E%3Cg stroke='%238F6BFF' stroke-width='2' stroke-opacity='.8'%3E%3Cline x1='100' y1='136' x2='100' y2='170'/%3E%3Cline x1='150' y1='112' x2='150' y2='170'/%3E%3Cline x1='200' y1='96' x2='200' y2='170'/%3E%3Cline x1='250' y1='85' x2='250' y2='170'/%3E%3Cline x1='300' y1='80' x2='300' y2='170'/%3E%3Cline x1='350' y1='85' x2='350' y2='170'/%3E%3Cline x1='400' y1='96' x2='400' y2='170'/%3E%3Cline x1='450' y1='112' x2='450' y2='170'/%3E%3Cline x1='500' y1='136' x2='500' y2='170'/%3E%3C/g%3E%3Crect x='0' y='170' width='600' height='5' fill='%23C26BFF'/%3E%3Crect x='0' y='175' width='600' height='3' fill='%232A1B4D'/%3E%3C/svg%3E") center bottom/contain no-repeat;
}

/* ---------- 10. 细节 ---------- */
.stat-card b,.stat-card .num{color:#4FF3FF !important}
.config-panel{box-shadow:0 0 24px rgba(122,43,214,.25) !important}
.spk-btn svg{filter:drop-shadow(0 0 6px rgba(51,224,255,.5))}
