/* consult.css —— 心理咨询模块样式（莫兰迪配色） */

.consult{ max-width:1200px; margin:0 auto; }

/* 模块标题 + 工具栏 */
.consult-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:16px;
  gap:12px;
  flex-wrap:wrap;
}
.consult-header h2{ font-size:18px; font-weight:600; color:var(--ink); }
.arc-toolbar{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.arc-toolbar select{ width:auto; min-width:130px; }

/* 预约列表 */
.con-list{ display:grid; gap:12px; }
.con-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:14px 16px;
  box-shadow:var(--shadow);
}
.con-when{ font-size:14px; color:var(--ink); }
.con-dow{ color:var(--muted); font-size:12px; margin-left:4px; }
.con-meta{ display:flex; flex-wrap:wrap; gap:8px 16px; margin-top:8px; font-size:13px; color:var(--ink); }
.con-slot{ background:var(--brand-soft); color:var(--brand-deep); padding:1px 8px; border-radius:8px; font-size:12px; }
.con-type{ color:var(--muted); }
.con-note{ margin-top:8px; color:var(--muted); font-size:13px; }
.con-actions{ display:flex; gap:8px; margin-top:12px; }
.con-actions .btn{ padding:5px 12px; border-radius:6px; font-size:12px; border:1px solid var(--line); background:#fff; }
.con-actions .btn:hover{ background:var(--brand-soft); }
.con-actions .btn.danger{ color:var(--alert-3); border-color:#ecd6d0; background:#f7efed; }

/* 可预约星期提示 / 日期校验 */
.con-allowed{ font-size:12px; color:var(--brand-deep); }
.con-err{ font-size:12px; margin-top:4px; }

/* 学生搜索框 + 下拉 */
.stu-search{ position:relative; }
.stu-search .filter-input{ width:100%; }
.stu-dropdown{
  position:absolute;
  top:calc(100% + 4px);
  left:0;
  right:0;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:10px;
  box-shadow:var(--shadow);
  max-height:248px;
  overflow:auto;
  z-index:30;
  display:none;
}
.stu-dropdown.open{ display:block; }
.stu-opt{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px 12px;
  cursor:pointer;
  border-bottom:1px solid var(--line);
}
.stu-opt:last-child{ border-bottom:none; }
.stu-opt:hover{ background:var(--brand-soft); }
.stu-name{ font-weight:500; color:var(--ink); }
.stu-sub{ color:var(--muted); font-size:12px; }
.stu-empty{ padding:10px 12px; color:var(--muted); font-size:12px; }
.stu-picked{ margin-top:8px; }
.stu-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:var(--brand-soft);
  color:var(--ink);
  padding:4px 10px;
  border-radius:14px;
  font-size:13px;
}
.stu-chip-x{ cursor:pointer; color:var(--muted); font-weight:700; padding:0 2px; }
.stu-chip-x:hover{ color:var(--alert-3); }

.empty{ color:var(--muted); padding:24px; text-align:center; }

/* ===== 顶部统计卡片 ===== */
.con-stats{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:14px;
  margin-bottom:16px;
}
.stat-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px 18px;
  box-shadow:var(--shadow);
}
.stat-label{
  color:var(--muted);
  font-size:13px;
  margin-bottom:6px;
}
.stat-num{
  font-size:26px;
  font-weight:700;
  color:var(--brand-deep);
  line-height:1;
}
.stat-unit{
  font-size:12px;
  color:var(--muted);
  font-weight:400;
  margin-left:4px;
}

/* ===== 视图切换标签 ===== */
.con-tabs{
  display:flex;
  gap:8px;
  margin-bottom:12px;
}
.con-tabs .tab{
  padding:7px 18px;
  border-radius:18px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--muted);
  font-size:14px;
  cursor:pointer;
}
.con-tabs .tab.active{
  background:var(--brand);
  color:#fff;
  border-color:var(--brand);
}

/* ===== 周课表导航 ===== */
.con-week-nav{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.con-week-range{
  font-size:15px;
  font-weight:600;
  color:var(--ink);
  min-width:110px;
  text-align:center;
}
.con-week-nav .arrow{
  width:32px; height:32px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:18px; padding:0;
}
.con-week-nav .today-link{
  color:var(--brand-deep);
  font-size:13px;
  margin-left:6px;
}

/* ===== 周课表网格 ===== */
.con-week-grid{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
}
.con-grid-header,
.con-grid-row{
  display:grid;
  grid-template-columns:90px repeat(5, 1fr);
}
.con-grid-header{
  background:#ebe7ef;
  border-bottom:1px solid var(--line);
}
.con-grid-header .con-grid-time,
.con-grid-row .con-grid-time{
  padding:12px 10px;
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:#f6f4f8;
}
.con-grid-time .con-slot-name{
  font-size:13px;
  font-weight:600;
  color:var(--ink);
}
.con-grid-time .con-slot-time{
  font-size:11px;
  color:var(--muted);
  margin-top:3px;
}
.con-grid-header .con-grid-day{
  padding:10px;
  text-align:center;
  font-weight:600;
  color:var(--ink);
  border-right:1px solid var(--line);
}
.con-grid-header .con-grid-day:last-child,
.con-grid-row .con-grid-cell:last-child{
  border-right:none;
}
.con-grid-date{
  font-size:12px;
  color:var(--muted);
  font-weight:400;
  margin-top:2px;
}
.con-grid-body{
  max-height:520px;
  overflow:auto;
}
.con-grid-row{
  border-bottom:1px solid var(--line);
  min-height:88px;
}
.con-grid-row:last-child{ border-bottom:none; }
.con-grid-cell{
  min-height:88px;
  padding:8px;
  border-right:1px solid var(--line);
  background:#fff;
  cursor:pointer;
  transition:background .15s;
}
.con-grid-cell:hover{ background:#f8f6fa; }
.con-grid-cell:empty::before{
  content:'+';
  display:flex;
  align-items:center;
  justify-content:center;
  height:100%;
  color:var(--line);
  font-size:18px;
}

/* 单元格内的预约卡片 */
.con-grid-card{
  background:var(--brand-soft);
  border:1px solid #ddd7e6;
  border-radius:8px;
  padding:8px;
  margin-bottom:6px;
  font-size:12px;
  cursor:default;
  position:relative;
}
.con-grid-card:last-child{ margin-bottom:0; }
.con-card-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight:600;
  color:var(--ink);
  margin-bottom:2px;
}
.con-card-title span{
  font-size:11px;
  color:var(--muted);
  font-weight:400;
}
.con-card-meta{
  color:var(--brand-deep);
  font-size:11px;
  margin-bottom:3px;
}
.con-card-ht{
  color:var(--ink);
  font-size:11px;
  margin-bottom:3px;
}
.con-card-ht::before{
  content:"";
}
.con-card-note{
  color:var(--muted);
  font-size:11px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  margin-bottom:6px;
}
.con-card-actions{
  display:flex;
  gap:6px;
}
.con-card-actions .btn{
  padding:3px 8px;
  font-size:11px;
  border-radius:5px;
  border:1px solid var(--line);
  background:#fff;
}

/* ===== 列表视图 ===== */
.con-list{ display:grid; gap:12px; }
.con-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:14px 16px;
  box-shadow:var(--shadow);
}
.con-dur{
  background:var(--brand-soft);
  color:var(--brand-deep);
  padding:1px 8px;
  border-radius:8px;
  font-size:12px;
}

/* ===== 移动端 ===== */
@media (max-width: 860px){
  .con-stats{ grid-template-columns:repeat(2, 1fr); }
  .con-grid-header,
  .con-grid-row{ grid-template-columns:70px repeat(5, 1fr); }
  .con-grid-time{ padding:8px 4px; }
  .con-grid-cell{ padding:5px; }
}
@media (max-width: 560px){
  .con-grid-header,
  .con-grid-row{ grid-template-columns:60px repeat(5, 1fr); font-size:11px; }
  .con-slot-time{ display:none; }
  .con-grid-day{ padding:6px 2px; }
}

/* ===== 重复预约 ===== */
.con-repeat-toggle{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:var(--ink);
  cursor:pointer;
}
.con-repeat-toggle input{ width:auto; }
.con-repeat-box{
  background:var(--brand-soft);
  border:1px dashed #d8d0e2;
  border-radius:10px;
  padding:12px 14px;
}
.con-repeat-row{ display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.con-repeat-row:last-of-type{ margin-bottom:0; }
.con-repeat-row label{ min-width:64px; color:var(--muted); font-size:13px; }
.con-repeat-row select{ min-width:210px; }
.con-repeat-preview{
  font-size:13px;
  color:var(--brand-deep);
  line-height:1.7;
  margin-top:4px;
}
.con-repeat-preview b{ color:var(--brand-deep); }
.con-repeat-preview .muted{ color:var(--muted); }

/* 重复徽标 */
.con-repeat-badge{
  display:inline-block;
  font-style:normal;
  font-size:10px;
  line-height:1;
  background:var(--brand);
  color:#fff;
  border-radius:8px;
  padding:2px 6px;
  margin-left:6px;
  vertical-align:middle;
}

/* 删除重复系列选择 */
.con-del-tip{ font-size:13px; color:var(--ink); line-height:1.6; margin-bottom:12px; }
.con-del-opts{ display:flex; flex-direction:column; gap:10px; }
.con-del-opts .btn{ width:100%; padding:9px 12px; border-radius:8px; font-size:13px; }
