/* ============================================================
   智慧校园 / 会议预约 / 报修 / 失物招领 组件样式
   与 theme_v3.css 的校徽蓝体系保持一致
   ============================================================ */

/* ---------- 通用 ---------- */
.sc-section { padding: 54px 0; }
.sc-head { margin-bottom: 26px; }
.sc-head .eyebrow {
    display: inline-block; font-size: 12px; letter-spacing: 2px;
    color: var(--primary); background: var(--primary-soft);
    padding: 4px 10px; border-radius: 4px; margin-bottom: 10px;
}
.sc-head h2 { font-size: 26px; color: #16233a; margin: 0 0 8px; letter-spacing: .5px; }
.sc-head p { color: #6c7a8c; font-size: 14px; line-height: 1.8; margin: 0; }

/* ---------- 智慧校园：服务网格 ---------- */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.svc-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--border);
    border-radius: 14px; padding: 22px 20px;
    text-decoration: none; color: inherit; position: relative; overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.svc-card::after {
    content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 100%;
    background: var(--primary); opacity: 0; transition: opacity .25s ease;
}
.svc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(16, 38, 74, .12);
    border-color: rgba(26, 63, 122, .25);
}
.svc-card:hover::after { opacity: 1; }
.svc-icon {
    width: 44px; height: 44px; border-radius: 11px;
    background: var(--primary-soft); color: var(--primary);
    display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.svc-icon svg { width: 24px; height: 24px; }
.svc-card h3 { font-size: 16px; margin: 0 0 6px; color: #16233a; font-weight: 600; }
.svc-card p { font-size: 12.5px; line-height: 1.7; color: #78859a; margin: 0 0 14px; flex: 1; }
.svc-foot {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12.5px; color: var(--primary); font-weight: 600;
}
.svc-tag {
    font-size: 11px; font-weight: 500; padding: 2px 7px; border-radius: 3px;
    background: #f2f5fa; color: #8592a6;
}
.svc-tag.on { background: rgba(200, 162, 74, .14); color: #a9832e; }

/* ---------- 会议预约：工具栏 ---------- */
.mt-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap; margin-bottom: 18px;
}
.mt-dates { display: flex; gap: 8px; flex-wrap: wrap; }
.mt-date {
    min-width: 78px; text-align: center; text-decoration: none;
    border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px;
    background: #fff; color: #4a5768; transition: all .2s ease;
}
.mt-date small { display: block; font-size: 11px; color: #93a0b2; margin-bottom: 2px; }
.mt-date b { font-size: 14px; font-weight: 600; color: #2b3a4d; }
.mt-date:hover { border-color: rgba(26, 63, 122, .3); }
.mt-date.active {
    background: var(--primary); border-color: var(--primary); box-shadow: 0 8px 18px rgba(26, 63, 122, .22);
}
.mt-date.active small, .mt-date.active b { color: #fff; }
.mt-viewswitch { display: flex; gap: 6px; }
.mt-viewswitch a {
    font-size: 12.5px; padding: 7px 14px; border-radius: 8px; text-decoration: none;
    border: 1px solid var(--border); color: #5a6879; background: #fff;
}
.mt-viewswitch a.on { background: var(--primary); border-color: var(--primary); color: #fff; }

.mt-legend {
    display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: #6c7a8c;
    padding: 12px 16px; background: #f7f9fc; border: 1px solid var(--border);
    border-radius: 10px; margin-bottom: 16px;
}
.mt-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.mt-legend .lg-free { background: #fff; border: 1px solid #d8e0eb; }
.mt-legend .lg-pend { background: #fff3d9; border: 1px solid #e8c98a; }
.mt-legend .lg-ok { background: #dcefe2; border: 1px solid #a9d3ba; }

/* ---------- 会议预约：日视图表格 ---------- */
.mt-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.mt-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 1080px; }
.mt-table th, .mt-table td { border-bottom: 1px solid #eef1f6; border-right: 1px solid #eef1f6; }
.mt-table th:last-child, .mt-table td:last-child { border-right: 0; }
.mt-table tr:last-child td { border-bottom: 0; }
.mt-table thead th {
    background: #f7f9fc; font-size: 12px; font-weight: 600; color: #5f6d80;
    padding: 10px 6px; text-align: center; white-space: nowrap;
    position: sticky; top: 0; z-index: 2;
}
.mt-table td.room-col {
    width: 170px; min-width: 170px; padding: 12px 14px;
    position: sticky; left: 0; background: #fff; z-index: 1;
    box-shadow: 1px 0 0 #eef1f6;
}
.mt-table td.room-col b { display: block; font-size: 13.5px; color: #1f2d3f; margin-bottom: 3px; }
.mt-table td.room-col span { display: block; font-size: 11.5px; color: #8895a7; line-height: 1.6; }
.mt-table td.slot { padding: 4px; text-align: center; height: 46px; }
.mt-cell {
    display: flex; align-items: center; justify-content: center;
    height: 38px; border-radius: 6px; font-size: 11.5px; line-height: 1.2;
    text-decoration: none; color: #93a0b2; background: #fff;
    border: 1px dashed #e6ebf3; transition: all .15s ease;
    padding: 0 4px; overflow: hidden;
}
.mt-cell:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.mt-cell.busy {
    cursor: default; border-style: solid;
    border-color: #a9d3ba; background: #e5f3ea; color: #276b45;
    font-weight: 600; justify-content: flex-start; padding-left: 8px;
}
.mt-cell.pending {
    cursor: default; border-style: solid;
    border-color: #e8c98a; background: #fff5e2; color: #8a6216;
    font-weight: 600; justify-content: flex-start; padding-left: 8px;
}
.mt-cell span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 会议预约：周视图 ---------- */
.mt-week td.week-cell { text-align: center; padding: 10px 8px; }
.mt-week .wk-count {
    display: inline-block; font-size: 12.5px; font-weight: 600;
    padding: 3px 10px; border-radius: 20px; background: var(--primary-soft); color: var(--primary);
}
.mt-week .wk-count.zero { background: #f2f5fa; color: #9aa7b8; }

/* ---------- 会议预约：表单 ---------- */
.mt-panel {
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 26px 24px; margin-top: 24px;
}
.mt-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.mt-panel-head h3 { font-size: 18px; margin: 0 0 6px; color: #16233a; }
.mt-panel-head p { margin: 0; font-size: 12.5px; color: #7b8798; line-height: 1.7; }
.mt-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.mt-form .full { grid-column: 1 / -1; }
.mt-field label { display: block; font-size: 13px; font-weight: 600; color: #334255; margin-bottom: 6px; }
.mt-field label i { color: #c0392b; font-style: normal; margin-left: 2px; }
.mt-field input[type=text], .mt-field input[type=tel], .mt-field input[type=date],
.mt-field input[type=number], .mt-field select, .mt-field textarea {
    width: 100%; box-sizing: border-box; padding: 10px 12px;
    border: 1px solid #dde3ec; border-radius: 8px; font-size: 13.5px;
    color: #22303f; background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
    font-family: inherit;
}
.mt-field input:focus, .mt-field select:focus, .mt-field textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26, 63, 122, .08);
}
.mt-field textarea { min-height: 86px; resize: vertical; line-height: 1.7; }
.mt-checks { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 4px; }
.mt-checks label {
    display: flex; align-items: center; gap: 6px; font-size: 13px;
    font-weight: 500; color: #4a5768; margin: 0; cursor: pointer;
}
.mt-form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.mt-submit {
    background: var(--primary); color: #fff; border: 0; border-radius: 9px;
    padding: 11px 26px; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.mt-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }
.mt-hint { font-size: 12px; color: #8e9aac; }

/* ---------- 提示条 / 状态 ---------- */
.notice-bar {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 13px 16px; border-radius: 10px; font-size: 13px; line-height: 1.7;
    margin-bottom: 20px;
}
.notice-bar.ok { background: #e9f6ee; border: 1px solid #b6dcc7; color: #226943; }
.notice-bar.err { background: #fdeceb; border: 1px solid #f0c3bf; color: #a3352b; }
.notice-bar.info { background: var(--primary-soft); border: 1px solid rgba(26, 63, 122, .16); color: var(--primary-dark); }

.status-chip {
    display: inline-block; font-size: 11.5px; font-weight: 600;
    padding: 2px 9px; border-radius: 20px; line-height: 1.7;
}
.status-chip.s0 { background: #fff5e2; color: #8a6216; border: 1px solid #ecd6a9; }
.status-chip.s1 { background: #e5f3ea; color: #226943; border: 1px solid #b6dcc7; }
.status-chip.s2 { background: #f2f5fa; color: #7b8798; border: 1px solid #e0e6ef; }

/* ---------- 我的预约列表 ---------- */
.bk-list { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.bk-card {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 15px 18px; border: 1px solid var(--border); border-radius: 12px; background: #fff;
}
.bk-card .bk-main { min-width: 0; }
.bk-card h4 { margin: 0 0 5px; font-size: 14.5px; color: #1f2d3f; }
.bk-card p { margin: 0; font-size: 12.5px; color: #7b8798; line-height: 1.7; }
.bk-card .bk-act { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.bk-cancel {
    font-size: 12.5px; color: #a3352b; text-decoration: none; border: 1px solid #f0c3bf;
    background: #fdf3f2; padding: 6px 12px; border-radius: 7px; cursor: pointer;
}
.bk-cancel:hover { background: #fbe7e5; }
.empty-box {
    text-align: center; padding: 40px 20px; color: #93a0b2; font-size: 13.5px;
    border: 1px dashed #e2e8f1; border-radius: 12px; background: #fafbfd;
}

/* ---------- 智慧校园：概览条 ---------- */
.ov-band {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    margin-bottom: 34px;
}
.ov-item {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: 18px 20px;
}
.ov-item b { display: block; font-size: 26px; color: var(--primary); line-height: 1.2; }
.ov-item span { display: block; font-size: 12.5px; color: #78859a; margin-top: 6px; }

/* ---------- 办事指南（details 折叠） ---------- */
.guide-list { display: flex; flex-direction: column; gap: 10px; }
.guide-item {
    border: 1px solid var(--border); border-radius: 10px; background: #fff; overflow: hidden;
}
.guide-item summary {
    padding: 14px 18px; font-size: 14px; font-weight: 600; color: #22303f;
    cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px;
}
.guide-item summary::-webkit-details-marker { display: none; }
.guide-item summary::before {
    content: '+'; width: 20px; height: 20px; border-radius: 50%;
    background: var(--primary-soft); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; flex: 0 0 auto;
}
.guide-item[open] summary::before { content: '−'; }
.guide-item .guide-body { padding: 0 18px 18px 48px; font-size: 13px; color: #5a6879; line-height: 1.9; }
.guide-item .guide-body ul { margin: 0; padding-left: 18px; }

/* ---------- 报修工单 ---------- */
.rf-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: start; }
.rf-ticket { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.rf-ticket .tk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.rf-ticket .tk-head b { font-size: 15px; color: #1f2d3f; letter-spacing: .5px; }
.rf-timeline { position: relative; padding-left: 20px; margin-top: 14px; }
.rf-timeline::before {
    content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: #e8eef7;
}
.rf-step { position: relative; padding-bottom: 16px; font-size: 12.5px; color: #6c7a8c; line-height: 1.7; }
.rf-step::before {
    content: ''; position: absolute; left: -19px; top: 4px; width: 10px; height: 10px;
    border-radius: 50%; background: #cbd6e4; border: 2px solid #fff;
}
.rf-step.done::before { background: var(--primary); }
.rf-step.done b { color: #1f2d3f; }
.rf-step b { display: block; font-size: 13px; color: #2b3a4d; margin-bottom: 2px; }

/* ---------- 失物招领 ---------- */
.lf-filter { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.lf-filter a {
    font-size: 13px; padding: 7px 16px; border-radius: 8px; text-decoration: none;
    border: 1px solid var(--border); color: #5a6879; background: #fff;
}
.lf-filter a.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.lf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lf-card {
    background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px;
    display: flex; flex-direction: column;
}
.lf-card .lf-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.lf-type {
    font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 4px;
}
.lf-type.lost { background: #fff0ee; color: #a3352b; }
.lf-type.found { background: #e9f6ee; color: #226943; }
.lf-card .lf-top .lf-done { margin-left: auto; font-size: 11.5px; color: #98a5b6; }
.lf-card h3 { font-size: 15px; margin: 0 0 8px; color: #1f2d3f; }
.lf-card p { font-size: 12.5px; color: #78859a; line-height: 1.8; margin: 0 0 12px; flex: 1; }
.lf-card .lf-meta { font-size: 12px; color: #93a0b2; display: flex; flex-direction: column; gap: 4px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
    .ov-band { grid-template-columns: repeat(2, 1fr); }
    .rf-grid { grid-template-columns: 1fr; }
    .lf-grid { grid-template-columns: repeat(2, 1fr); }
    .mt-form { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .sc-section { padding: 36px 0; }
    .svc-grid { grid-template-columns: 1fr; gap: 12px; }
    .svc-card { padding: 18px 16px; }
    .ov-band { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .mt-toolbar { flex-direction: column; align-items: flex-start; }
    .mt-dates { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
    .mt-date { min-width: 72px; flex: 0 0 auto; }
    .mt-panel { padding: 20px 16px; }
    .bk-card { flex-direction: column; align-items: flex-start; }
    .lf-grid { grid-template-columns: 1fr; }
    .mt-table { min-width: 900px; }
    .mt-table td.room-col { width: 130px; min-width: 130px; }
    .guide-item .guide-body { padding-left: 18px; }
}
