/* 天生有蔡 · 前台补充样式 */

/* 顶栏用户区 */
.topbar{display:flex;align-items:center;justify-content:space-between}
.topbar-user{display:flex;align-items:center;gap:12px;font-size:13px}
.topbar-user .topbar-name{font-weight:600;color:#5b3a6c}
.topbar-link{color:#7a5b8c;text-decoration:none}
.topbar-link:hover{color:#573465;text-decoration:underline}
.credit-chip{display:inline-block;padding:4px 12px;border-radius:20px;background:linear-gradient(110deg,#8860aa,#b279b1);color:#fff;text-decoration:none;font-size:12px}
.credit-chip:hover{filter:brightness(1.05)}

/* 提示条 */
.flash{padding:12px 16px;border-radius:10px;font-size:14px;margin-bottom:18px;border:1px solid}
.flash-success{background:#eef7ee;border-color:#bcd9bd;color:#316b36}
.flash-error{background:#fdeeee;border-color:#eec0c0;color:#8a2f2f}

/* 登录注册 */
.auth-body{min-height:100vh;display:grid;place-items:center;padding:40px 20px}
.auth-box{width:100%;max-width:420px;background:#fffdfef5;border:1px solid #e6d8ee;border-radius:22px;padding:38px 34px;box-shadow:0 20px 60px #69457a14}
.auth-box h1{font-size:26px;text-align:center;margin:0 0 6px;color:#4c305d}
.auth-logo{display:block;margin:0 auto 18px;width:190px}
.auth-logo img{width:100%;height:auto;mix-blend-mode:multiply}
.auth-slogan{text-align:center;color:#7d6289;font-size:14px;margin:0 0 24px}
.auth-label{display:block;font-size:14px;font-weight:600;margin:16px 0 7px;color:#5b3a6c}
.auth-box input{width:100%;border:1px solid #e0cfe9;border-radius:10px;padding:12px 14px;font-size:15px;background:#fff}
.auth-box input:focus{outline:2px solid #cfa5e2;border-color:transparent}
.auth-submit{width:100%;margin-top:22px;border:0;border-radius:10px;padding:13px;background:linear-gradient(110deg,#8860aa,#b279b1);color:#fff;font-size:16px;font-weight:600}
.auth-submit:hover{filter:brightness(1.05)}
.auth-foot{display:flex;justify-content:space-between;margin-top:18px;font-size:14px}
.auth-foot a{color:#75509b;text-decoration:none}
.auth-tip{margin-top:14px;text-align:center;font-size:12px;color:#8a7894}

/* 首页 */
.home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:22px}
.home-card{background:#ffffffeb;border:1px solid #e8dcef;border-radius:16px;padding:22px 24px}
.home-card h2{font-size:17px;margin:0 0 14px;color:#5b3a6c}
.home-stats{display:flex;gap:14px;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.home-stats li{flex:1 1 90px;text-align:center;background:#f8f1fb;border-radius:12px;padding:14px 8px}
.home-stats b{display:block;font-size:22px;color:#67417c}
.home-stats span{font-size:12px;color:#87718f}
.notice-mini,.notice-list,.quick-links{list-style:none;margin:0;padding:0}
.notice-mini li,.notice-list li{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px dashed #eee2f3;font-size:14px}
.notice-mini a,.notice-list a{color:#5b3a6c;text-decoration:none}
.notice-mini a:hover,.notice-list a:hover{color:#8a56a5;text-decoration:underline}
.notice-mini span,.notice-list span{color:#8a7894;font-size:12px;white-space:nowrap}
.quick-links li{padding:8px 0;border-bottom:1px dashed #eee2f3}
.quick-links a{color:#5b3a6c;text-decoration:none;font-size:14px}
.quick-links a:hover{color:#8a56a5}
.home-empty{color:#8a7894;font-size:14px}
.home-more{margin:14px 0 0;font-size:13px}
.home-more a{color:#75509b;text-decoration:none}

/* 对话工具条 */
.chat-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.conv-select{max-width:280px;border:1px solid #ddcae6;border-radius:10px;padding:9px 12px;background:#fff;font-size:14px;color:#5b3a6c}
.tool-btn{border:1px solid #d9c6e5;border-radius:10px;background:#fff;padding:9px 16px;font-size:14px;color:#68417d}
.tool-btn:hover{background:#f6eefb}
.tool-btn:disabled{opacity:.5;cursor:not-allowed}
.tool-primary{background:linear-gradient(110deg,#8860aa,#b279b1);color:#fff;border-color:transparent}
.tool-model{font-size:12px;color:#87718f;margin-left:auto}
.chat-head-note{font-size:12px;color:#87718f}

/* 回复气泡 */
.chat-reply{align-self:flex-start;max-width:88%;background:#fff;border:1px solid #e9dbf0;border-radius:16px 16px 16px 4px;padding:16px 20px;font-size:15px;line-height:1.9;color:#543366}
.chat-reply .reply-body{white-space:normal;overflow-wrap:anywhere}
.chat-reply .reply-body h1,.chat-reply .reply-body h2,.chat-reply .reply-body h3{font-size:17px;margin:14px 0 8px;color:#4c305d}
.chat-reply .reply-body h4,.chat-reply .reply-body h5{font-size:15px;margin:12px 0 6px}
.chat-reply .reply-body strong{color:#4c305d}
.chat-reply .reply-body ul{margin:8px 0;padding-left:20px}
.chat-reply .reply-body blockquote{margin:8px 0;padding:8px 14px;border-left:3px solid #cba6dd;background:#f8f1fb;color:#6b4c7c}
.chat-reply .reply-body code{background:#f4ecf8;padding:2px 6px;border-radius:5px;font-size:13px}
.chat-reply .reply-body hr{border:0;border-top:1px solid #eee2f3;margin:14px 0}
.chat-reply .typing{color:#9b86a8}
.reply-error{color:#a13b3b}
.reply-meta{display:flex;align-items:center;gap:12px;margin-top:12px;padding-top:10px;border-top:1px dashed #efe4f4;font-size:12px;color:#8a7894}
.reply-copy{border:1px solid #dec4eb;border-radius:8px;background:#fff;padding:4px 12px;font-size:12px;color:#68417d}
.bubble-file{display:inline-block;margin-bottom:6px;color:#573465;font-size:13px}

/* 面板 / 表单 */
.panel-box{background:#ffffffeb;border:1px solid #e8dcef;border-radius:16px;padding:24px 26px}
.panel-box h3{font-size:18px;margin:0 0 16px;color:#4c305d}
.form-grid{display:flex;flex-direction:column;gap:14px}
.field-row{display:flex;flex-direction:column;gap:7px}
.field-row.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.field-row label{font-size:14px;font-weight:600;color:#5b3a6c}
.field-row input,.field-row select,.field-row textarea{border:1px solid #e0cfe9;border-radius:10px;padding:11px 13px;font-size:14px;background:#fff;color:#543366}
.field-row textarea{min-height:110px}
.field-row input:focus,.field-row select:focus,.field-row textarea:focus{outline:2px solid #cfa5e2;border-color:transparent}

/* 表格 */
.data-table{width:100%;border-collapse:collapse;font-size:14px}
.data-table th,.data-table td{padding:11px 12px;border-bottom:1px solid #eee2f3;text-align:left;color:#543366}
.data-table th{color:#7a5b8c;font-weight:600;background:#faf5fc}
.table-empty{text-align:center;color:#8a7894;padding:26px 0 !important}
.cell-clip{max-width:340px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.link-btn{border:0;background:none;color:#75509b;font-size:13px;text-decoration:none;padding:0 6px}
.link-btn.danger{color:#a8445f}
.ok{color:#2f7a45}
.wait{color:#a1733a}

/* 支付 */
.pay-types{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}
.pay-btn{border:1px solid #d9c6e5;border-radius:10px;background:#fff;padding:10px 18px;font-size:14px;color:#68417d}
.pay-btn.active{background:linear-gradient(110deg,#8860aa,#b279b1);color:#fff;border-color:transparent}
.switch-inline{display:inline-flex;align-items:center;gap:6px;font-size:13px}

/* 公告详情 */
.notice-meta{font-size:12px;color:#8a7894}
.notice-content{font-size:15px;line-height:2;color:#543366;white-space:pre-wrap}

/* 技能面板 */
.skill-panel{margin-bottom:20px}
.modal-actions{display:flex;gap:12px;align-items:center;margin-top:16px;flex-wrap:wrap}
.modal-actions .primary{margin-top:0}

/* 轻提示 */
.js-toast{position:fixed;left:50%;bottom:36px;transform:translateX(-50%);background:#4c305d;color:#fff;padding:12px 22px;border-radius:12px;font-size:14px;z-index:9999;box-shadow:0 10px 30px #4c305d40}
.js-toast.error{background:#8a2f2f}

@media(max-width:760px){
  .home-grid{grid-template-columns:1fr}
  .field-row.two{grid-template-columns:1fr}
  .tool-model{margin-left:0}
  .chat-reply{max-width:96%}
}
