/* ============================================================
   延庆教育宣传 AI 工作台 · 设计系统
   主色：青绿山水  点缀：暖金  底：暖白
   ============================================================ */

:root{
  /* 主色 */
  --brand:        #12695F;
  --brand-700:    #0C534B;
  --brand-600:    #0F6259;
  --brand-400:    #2E8C7F;
  --brand-300:    #6FB3A6;
  --brand-100:    #D7EBE5;
  --brand-50:     #EDF6F2;

  /* 暖金 */
  --gold:         #C08A33;
  --gold-600:     #A87525;
  --gold-100:     #F7EAD3;
  --gold-50:      #FCF6E9;

  /* 辅助色 */
  --jade:         #4E9F86;
  --sky:          #4A7E9E;
  --clay:         #C0704E;
  --plum:         #8A6C93;

  /* 中性 */
  --ink:          #17302D;
  --ink-2:        #3E5754;
  --ink-3:        #6E837F;
  --ink-4:        #98A8A4;
  --line:         #E3EAE5;
  --line-2:       #EDF1ED;
  --bg:           #F4F7F4;
  --bg-2:         #EDF2EE;
  --card:         #FFFFFF;

  /* 状态 */
  --ok:           #2E9C6B;
  --warn:         #D08A2C;
  --danger:       #C0503F;
  --info:         #4A7E9E;

  /* 圆角与阴影 */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-xs: 0 1px 2px rgba(20,58,52,.05);
  --shadow-sm: 0 2px 8px rgba(20,58,52,.06);
  --shadow-md: 0 10px 28px -12px rgba(20,58,52,.18), 0 2px 6px rgba(20,58,52,.04);
  --shadow-lg: 0 24px 60px -24px rgba(16,64,56,.28), 0 4px 12px rgba(20,58,52,.06);

  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
          "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --num: "SF Pro Display", "DIN Alternate", "Helvetica Neue", Arial, sans-serif;
}

*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; height:100%; }
body{
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; font-size: inherit; }
input, textarea, select{ font-family: inherit; font-size: inherit; color: inherit; }
ul, ol{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,h5,p{ margin:0; }
svg{ display:block; }
::selection{ background: var(--brand-100); }

/* 滚动条 */
::-webkit-scrollbar{ width: 9px; height: 9px; }
::-webkit-scrollbar-thumb{ background: #CDD8D2; border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover{ background: #B4C4BC; background-clip: content-box; }
::-webkit-scrollbar-track{ background: transparent; }

/* ---------- 通用元件 ---------- */
.icon{ width: 20px; height: 20px; flex: none; }
.icon-sm{ width: 16px; height: 16px; }
.icon-lg{ width: 24px; height: 24px; }

.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: .2px;
  border: 1px solid transparent;
  transition: .16s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: linear-gradient(135deg, #178274 0%, #0E6157 100%);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(14,97,87,.55), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover{ box-shadow: 0 10px 22px -8px rgba(14,97,87,.6), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-gold{
  background: linear-gradient(135deg, #D9A64F 0%, #B9822D 100%);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(160,110,30,.5), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-ghost{ background:#fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover{ border-color: var(--brand-300); color: var(--brand); background: var(--brand-50); }
.btn-soft{ background: var(--brand-50); color: var(--brand-700); }
.btn-soft:hover{ background: var(--brand-100); }
.btn-sm{ height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg{ height: 46px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-icon{ width: 38px; padding: 0; }
.btn[disabled]{ opacity: .45; pointer-events: none; }

.chip{
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 9px; border-radius: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .2px;
  background: var(--bg-2); color: var(--ink-3);
}
.chip-brand{ background: var(--brand-50); color: var(--brand-700); }
.chip-gold{ background: var(--gold-50); color: var(--gold-600); }
.chip-ok{ background: #E9F5EE; color: #23784F; }
.chip-warn{ background: #FBF0DE; color: #A96C17; }
.chip-danger{ background: #FBEAE7; color: #A6402F; }
.chip-sky{ background: #EAF2F7; color: #386A89; }

.dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}

.divider{ height: 1px; background: var(--line-2); border: 0; margin: 0; }

.section-head{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom: 14px; }
.section-title{ font-size: 17px; font-weight: 700; letter-spacing: .2px; display:flex; align-items:center; gap:9px; }
.section-title::before{
  content:""; width: 4px; height: 16px; border-radius: 3px;
  background: linear-gradient(180deg, var(--brand-400), var(--brand-700));
}
.section-sub{ font-size: 13px; color: var(--ink-3); font-weight: 400; }

.muted{ color: var(--ink-3); }
.num{ font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: -.5px; }

/* 搜索框 */
.search{
  position: relative; display: flex; align-items: center;
  height: 42px; padding: 0 12px 0 40px;
  background: #F2F6F3; border: 1px solid transparent; border-radius: 11px;
  transition: .18s;
}
.search:focus-within{ background:#fff; border-color: var(--brand-300); box-shadow: 0 0 0 4px rgba(46,140,127,.1); }
.search .icon{ position:absolute; left: 12px; color: var(--ink-4); }
.search input{ flex:1; border:0; outline:none; background:transparent; font-size:14px; }
.search input::placeholder{ color: var(--ink-4); }
.kbd{
  font-size: 11px; color: var(--ink-4); border:1px solid var(--line);
  border-radius: 5px; padding: 1px 6px; background:#fff; font-family: var(--num);
}

/* 表格 */
.tbl{ width:100%; border-collapse: collapse; }
.tbl th{
  text-align:left; font-size: 12.5px; font-weight: 600; color: var(--ink-3);
  padding: 10px 16px; background: #F8FAF8; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td{ padding: 12px 16px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.tbl tbody tr{ transition: background .12s; }
.tbl tbody tr:hover{ background: #FAFCFA; }
.tbl tbody tr:last-child td{ border-bottom: 0; }

/* 进度条 */
.bar{ height: 6px; border-radius: 6px; background: var(--bg-2); overflow:hidden; }
.bar > i{ display:block; height:100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand-400), var(--brand)); }

/* 头像 */
.avatar{
  width: 34px; height: 34px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  font-size: 13px; font-weight: 700; color:#fff;
  background: linear-gradient(135deg,#2E8C7F,#0F5E54);
  flex: none;
}
.avatar-sm{ width:26px; height:26px; font-size:11px; }
.avatar-gold{ background: linear-gradient(135deg,#D9A64F,#B07C28); }

/* 空/占位 */
.empty{ text-align:center; color: var(--ink-4); padding: 60px 20px; font-size: 14px; }

/* toast */
.toast-wrap{ position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 9999; display:flex; flex-direction:column; gap:8px; align-items:center; pointer-events:none; }
.toast{
  display:flex; align-items:center; gap:9px;
  background: rgba(23,48,45,.94); color:#fff; font-size: 13.5px; font-weight:500;
  padding: 11px 18px; border-radius: 12px; box-shadow: var(--shadow-lg);
  animation: toast-in .28s cubic-bezier(.2,.9,.3,1);
}
.toast .icon{ color:#7FDCC6; }
@keyframes toast-in{ from{ opacity:0; transform: translateY(12px) scale(.96);} to{opacity:1; transform:none;} }

/* 弹层 */
.mask{
  position: fixed; inset:0; background: rgba(18,42,38,.38);
  backdrop-filter: blur(3px); z-index: 900;
  animation: fade .2s ease;
}
@keyframes fade{ from{opacity:0} to{opacity:1} }

/* 通用过渡 */
.fade-up{ animation: fadeUp .38s cubic-bezier(.2,.8,.25,1) both; }
@keyframes fadeUp{ from{ opacity:0; transform: translateY(10px);} to{opacity:1; transform:none;} }

/* 标签页 */
.tabs{ display:flex; gap: 4px; padding: 3px; background: var(--bg-2); border-radius: 10px; }
.tabs button{
  height: 32px; padding: 0 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
  color: var(--ink-3); transition: .16s;
}
.tabs button.on{ background:#fff; color: var(--brand-700); box-shadow: var(--shadow-xs); }

/* 表单 */
.field{ display:flex; flex-direction:column; gap:7px; }
.field > label{ font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, .select{
  height: 40px; padding: 0 12px; border:1px solid var(--line); border-radius: 10px;
  background:#fff; outline:none; transition:.16s; font-size:14px; width:100%;
}
.input:focus, .select:focus{ border-color: var(--brand-300); box-shadow: 0 0 0 4px rgba(46,140,127,.1); }
.textarea{
  padding: 10px 12px; border:1px solid var(--line); border-radius: 10px; background:#fff;
  outline:none; resize: vertical; min-height: 90px; line-height:1.6; width:100%; font-size:14px;
}
.textarea:focus{ border-color: var(--brand-300); box-shadow: 0 0 0 4px rgba(46,140,127,.1); }

/* 骨架里的小图形 */
.mtn{ position:absolute; bottom:0; left:0; right:0; pointer-events:none; }

/* ---------- 两端共用组件 ---------- */
.up{ color: var(--ok); }
.down{ color: var(--danger); }

.notice{
  display:flex; align-items:center; gap: 11px; padding: 12px 16px; border-radius: 11px;
  background: linear-gradient(90deg,#FCF6E9,#FBF9F2); border:1px solid #F0E4CB; font-size: 12.5px; color: #8A6A2A;
  margin-bottom: 18px;
}
.notice .icon{ color: var(--gold); flex:none; }
.notice b{ font-weight:700; }

.timeline{ position:relative; padding-left: 18px; }
.timeline::before{ content:""; position:absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--brand-300), var(--brand-100)); border-radius:2px; }
.tl-item{ position:relative; padding: 0 0 16px 8px; }
.tl-item:last-child{ padding-bottom:0; }
.tl-item::before{ content:""; position:absolute; left:-18px; top: 6px; width: 9px; height: 9px; border-radius:50%; background:#fff; border:2px solid var(--brand-400); }
.tl-item b{ font-size: 13px; color: var(--brand-700); font-family: var(--num); }
.tl-item p{ font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }

.qa-item{ padding: 13px 0; border-bottom: 1px dashed var(--line-2); }
.qa-item:last-child{ border-bottom:0; }
.qa-q{ display:flex; gap:9px; font-size: 13.5px; font-weight:600; }
.qa-q i{ width:20px; height:20px; border-radius:6px; background: var(--brand-50); color: var(--brand); font-style:normal; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; flex:none; }
.qa-a{ display:flex; gap:9px; font-size: 13px; color: var(--ink-2); margin-top: 7px; line-height:1.7; }
.qa-a i{ width:20px; height:20px; border-radius:6px; background: var(--gold-50); color: var(--gold-600); font-style:normal; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; flex:none; }

.err-item{ display:flex; gap:10px; align-items:flex-start; padding: 11px 0; border-bottom:1px dashed var(--line-2); font-size:13px; }
.err-item:last-child{ border-bottom:0; }
.err-x{ color: var(--danger); flex:none; margin-top:2px; }

.case-num{ width: 46px; height: 46px; border-radius: 13px; flex:none; display:flex; align-items:center; justify-content:center; font-family: var(--num); font-size: 18px; font-weight: 700; background: linear-gradient(145deg,#E7F3EE,#D3E9E0); color: var(--brand-700); }
