* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background: #f5f6fa;
    color: #333;
}

/* ===== 顶部导航栏 ===== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1f3b73;            /* 保持你原来的深蓝色调 */
    padding: 0 24px;
    height: 56px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    transition: all .2s;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255,255,255,.12);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffd77a;                /* 保留你原来的金黄色 */
    font-size: 14px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,.2);
}

.user-info a {
    color: #f8b4b4;
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid rgba(248,180,180,.5);
    border-radius: 6px;
    font-size: 13px;
    transition: all .2s;
}

.user-info a:hover {
    background: #f87171;
    color: #fff;
}
.container { max-width: 1200px; margin: 24px auto; padding: 0 20px; }

.flash { padding: 10px 16px; border-radius: 6px; margin-bottom: 16px; }
.flash-success { background: #d4edda; color: #155724; }
.flash-danger { background: #f8d7da; color: #721c24; }
.flash-warning { background: #fff3cd; color: #856404; }
.flash-info { background: #d1ecf1; color: #0c5460; }

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
}
.btn-primary { background: #1f3b73; color: #fff; border-color: #1f3b73; }
.btn-success { background: #28a745; color: #fff; border-color: #28a745; }
.btn-small { padding: 4px 10px; font-size: 13px; }

.auth-box {
    max-width: 420px;
    margin: 60px auto;
    background: #fff;
    padding: 32px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.auth-box h2 { margin-bottom: 24px; text-align: center; }
.auth-box label { display: block; margin: 12px 0 6px; font-size: 14px; }
.auth-box input, .auth-box select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}
.auth-box .btn { width: 100%; margin-top: 20px; }
.auth-link { margin-top: 16px; text-align: center; font-size: 14px; }

.table-wrap { background: #fff; border-radius: 10px; padding: 16px; overflow-x: auto; }
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    white-space: nowrap;
}

.upload-box {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
}
.upload-box h3 { margin-bottom: 16px; }

.tabs { border-bottom: 2px solid #eee; margin-bottom: 16px; }
.tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.tab-btn.active { color: #1f3b73; border-bottom-color: #1f3b73; font-weight: bold; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
}
.paste-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    cursor: text;
    margin-bottom: 12px;
    overflow: hidden;
}
.paste-preview { max-width: 100%; max-height: 250px; }

.status { margin-top: 12px; font-size: 14px; }
.status-ok { color: #28a745; }
.status-err { color: #dc3545; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.form-item label { display: block; margin-bottom: 6px; font-size: 13px; color: #666; }
.form-item input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}
.form-item.full { grid-column: span 3; }
.detail-value {
    padding: 10px;
    background: #f7f8fa;
    border-radius: 6px;
    min-height: 38px;
    font-size: 14px;
}
.detail-box { background: #fff; border-radius: 10px; padding: 24px; margin-bottom: 20px; }

@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-item.full { grid-column: span 1; }
}
.status-pending { color: #b8860b; font-weight: bold; }
.status-approved { color: #228b22; font-weight: bold; }
.status-rejected { color: #b22222; font-weight: bold; }
.btn-approve { color: #228b22; margin-right: 8px; }
.btn-reject { color: #b22222; }
/* ===== 房调台账：合并单元格美化 ===== */
.room-table th {
    background: linear-gradient(180deg, #1f3b73, #2a4d8f);
    color: #fff;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.room-table td {
    white-space: nowrap;
}

.room-table td.merged {
    vertical-align: middle;
    text-align: center;
    font-weight: 600;
    background: #f4f6fb;
    border-right: 1px solid #e3e8f2;
}

.room-table tbody tr:hover td:not(.merged) {
    background: #eef3fb;
}

.room-table input[type="text"] {
    border: 1px solid #d5dbe6;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 13px;
    transition: border-color .2s;
}
.room-table input[type="text"]:focus {
    outline: none;
    border-color: #1f3b73;
}

/* ===== 工作台 ===== */
.dash-welcome {
    background: linear-gradient(135deg, #1f3b73, #2a4d8f);
    color: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 20px;
}
.dash-welcome h2 { margin: 0 0 6px; }
.dash-sub { margin: 0; opacity: .9; }
.dash-dept {
    display: inline-block;
    background: rgba(255,255,255,.2);
    padding: 2px 12px;
    border-radius: 20px;
    font-weight: 600;
}
.dash-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.dash-card {
    display: block;
    background: #fff;
    border: 1px solid #e3e8f2;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: #1f3b73;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}
.dash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(31,59,115,.12);
}
.dash-card-icon { font-size: 36px; }
.dash-card-title { font-size: 18px; font-weight: 700; margin-top: 8px; }
.dash-card-desc { font-size: 13px; color: #888; margin-top: 4px; }
.dash-card.locked {
    background: #f2f3f5;
    color: #aaa;
    cursor: not-allowed;
    opacity: .7;
}
.dash-lock { font-size: 12px; color: #999; margin-top: 8px; }
@media (max-width: 768px) {
    .dash-cards { grid-template-columns: 1fr; }
}

/* ===== 酒店管理 & 房调详情新增样式 ===== */
.badge-success{background:#e8f5e9;color:#2e7d32;padding:2px 10px;border-radius:4px;font-weight:bold}
.badge-warning{background:#fff3e0;color:#e65100;padding:2px 10px;border-radius:4px;font-weight:bold}
.btn-small{padding:3px 12px;font-size:13px}
.btn-danger{background:#e53935;color:#fff}
.btn-danger:hover{background:#c62828}
.panel{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:16px;margin-bottom:20px}
.panel h3{margin-top:0}
.inline-form{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.inline-form input{flex:1;min-width:120px;padding:6px 10px;border:1px solid #ddd;border-radius:4px}
.inline-form button{flex:none}
.info-bar{background:#f5f7fa;border-left:4px solid #1F3B73;padding:10px 14px;margin-bottom:16px;border-radius:4px}

/* ===== 工作台：四大部门模块 ===== */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}
.dept-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    border-top: 4px solid #1f3b73;
    transition: transform .2s, box-shadow .2s;
}
.dept-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(31,59,115,.14);
}
.dept-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.dept-icon {
    font-size: 30px;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f0f4ff;
    flex: none;
}
.dept-head-text { min-width: 0; }
.dept-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f3b73;
}
.dept-sub {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}
.dept-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dept-link {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f7f9fc;
    color: #1f3b73;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e8edf5;
    transition: all .2s;
}
.dept-link:hover {
    background: #1f3b73;
    color: #fff;
    border-color: #1f3b73;
}
.dept-empty {
    padding: 10px 12px;
    color: #bbb;
    font-size: 13px;
    text-align: center;
}
.dept-fin  { border-top-color: #f59e0b; }
.dept-room { border-top-color: #3b82f6; }
.dept-car  { border-top-color: #10b981; }
.dept-cs   { border-top-color: #8b5cf6; }

@media (max-width: 1024px) {
    .dept-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .dept-grid { grid-template-columns: 1fr; }
}

/* ===== 工作台：四大部门卡片 ===== */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}
.dept-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border-radius: 14px;
    padding: 30px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    border-top: 4px solid #1f3b73;
    text-decoration: none;
    color: #1f3b73;
    transition: transform .2s, box-shadow .2s;
}
.dept-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 26px rgba(31,59,115,.16);
}
.dept-card .dept-icon {
    font-size: 42px;
    margin-bottom: 14px;
}
.dept-card .dept-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f3b73;
    margin-bottom: 6px;
}
.dept-card .dept-sub {
    font-size: 13px;
    color: #999;
}
.dept-card.locked {
    background: #f2f3f5;
    color: #aaa;
    cursor: not-allowed;
    opacity: .7;
    pointer-events: none;
}
.dept-fin  { border-top-color: #f59e0b; }
.dept-room { border-top-color: #3b82f6; }
.dept-car  { border-top-color: #10b981; }
.dept-cs   { border-top-color: #8b5cf6; }

/* ===== 部门二级页面 ===== */
.dept-page-head {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #1f3b73, #2a4d8f);
    color: #fff;
    border-radius: 14px;
    padding: 26px 28px;
    margin-bottom: 24px;
}
.dept-page-icon {
    font-size: 44px;
    background: rgba(255,255,255,.15);
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    flex: none;
}
.dept-page-text { flex: 1; }
.dept-page-text h2 { margin: 0 0 6px; font-size: 24px; }
.dept-page-text p { margin: 0; opacity: .85; font-size: 14px; }
.dept-page-head .btn {
    background: rgba(255,255,255,.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
}
.dept-page-head .btn:hover {
    background: rgba(255,255,255,.3);
}

.dept-func-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.dept-func {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    text-decoration: none;
    color: #1f3b73;
    border: 1px solid #e8edf5;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.dept-func:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(31,59,115,.14);
    border-color: #1f3b73;
}
.dept-func-icon {
    font-size: 34px;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f0f4ff;
    flex: none;
}
.dept-func-title {
    font-size: 17px;
    font-weight: 700;
    color: #1f3b73;
}
.dept-func-desc {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

@media (max-width: 1024px) {
    .dept-grid, .dept-func-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .dept-grid, .dept-func-grid { grid-template-columns: 1fr; }
}

/* ===== 工作台：功能快捷入口 ===== */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.quick-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    border-left: 4px solid #3b82f6;
    text-decoration: none;
    color: #1f3b73;
    transition: transform .2s, box-shadow .2s;
}
.quick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(31,59,115,.14);
}
.quick-icon {
    font-size: 28px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f0f4ff;
    flex: none;
}
.quick-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.quick-title {
    font-size: 15px;
    font-weight: 700;
    color: #1f3b73;
}
.quick-sub {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}
.quick-card.quick-disabled {
    border-left-color: #cbd5e1;
    background: #f7f8fa;
    color: #aaa;
    cursor: not-allowed;
    opacity: .75;
    pointer-events: none;
}
.quick-card.quick-disabled .quick-icon { background: #eceff3; }
.quick-pickup { border-left-color: #3b82f6; }
@media (max-width: 640px) {
    .quick-grid { grid-template-columns: 1fr; }
}

/* ===== 工作台：高端商务升级 ===== */
.dash-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #12224a 0%, #1f3b73 45%, #2a4d8f 100%);
    border-radius: 16px;
    padding: 34px 36px;
    margin-bottom: 24px;
    color: #fff;
    box-shadow: 0 8px 30px rgba(18,34,74,.25);
}
.dash-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,162,75,.35), transparent 70%);
}
.dash-hero::before {
    content: "";
    position: absolute;
    right: 40px;
    bottom: -120px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%);
}
.dash-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 1;
}
.dash-hero-title {
    font-size: 13px;
    letter-spacing: 3px;
    color: #c9a24b;
    font-weight: 600;
    margin-bottom: 8px;
}
.dash-hero h2 {
    font-size: 28px;
    margin: 0 0 6px;
    font-weight: 700;
}
.dash-hero-greet {
    font-size: 15px;
    opacity: .92;
    margin-bottom: 16px;
}
.dash-hero-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.dash-pill {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}
.dash-pill b { color: #ffd77a; font-weight: 700; }
.dash-hero-right {
    text-align: right;
    position: relative;
    z-index: 1;
    font-size: 14px;
    opacity: .95;
    line-height: 1.9;
}
.dash-hero-right .dash-dept-big {
    display: inline-block;
    margin-top: 8px;
    background: #c9a24b;
    color: #1f3b73;
    font-weight: 700;
    padding: 4px 18px;
    border-radius: 20px;
    letter-spacing: 1px;
}

/* 统计看板 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}
.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    border: 1px solid #eef1f6;
    transition: transform .2s, box-shadow .2s;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(31,59,115,.14);
}
.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex: none;
}
.stat-icon.blue   { background: #e8f0ff; }
.stat-icon.gold   { background: #fdf3e0; }
.stat-icon.green  { background: #e6f7ef; }
.stat-icon.purple { background: #efeaff; }
.stat-body { min-width: 0; }
.stat-num {
    font-size: 28px;
    font-weight: 800;
    color: #1f3b73;
    line-height: 1.1;
}
.stat-label {
    font-size: 13px;
    color: #8a94a6;
    margin-top: 4px;
}

/* 区块标题 */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: #1f3b73;
    margin-bottom: 16px;
}
.section-title::before {
    content: "";
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: linear-gradient(180deg, #c9a24b, #1f3b73);
}

/* 订单列表表头商务化 */
    background: #1f3b73;
    color: #fff;
    font-weight: 600;
    border: none;
}
    background: #f6f8fd;
}

@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* ===== hero 紧凑化 ===== */
.dash-hero {
    padding: 20px 26px !important;
    margin-bottom: 20px !important;
}
.dash-hero h2 {
    font-size: 22px !important;
    margin-bottom: 2px !important;
}
.dash-hero-title {
    font-size: 12px !important;
    margin-bottom: 4px !important;
    letter-spacing: 2px !important;
}
.dash-hero-greet {
    font-size: 13px !important;
    margin-bottom: 0 !important;
}
.dash-hero-right {
    font-size: 13px !important;
    line-height: 1.6 !important;
}
.dash-hero-week {
    font-size: 30px;
    font-weight: 800;
    color: #ffd77a;
    line-height: 1.1;
    letter-spacing: 1px;
}
.dash-dept-big {
    margin-top: 6px !important;
    font-size: 12px !important;
    padding: 3px 14px !important;
}

/* ===== 紧凑化 + 商务线性图标 ===== */
.stats-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 14px !important; }
.stat-card { padding: 16px 20px !important; gap: 12px !important; }
.stat-icon { width: 42px; height: 42px; border-radius: 10px !important; font-size: 0 !important; }
.stat-icon svg { width: 20px; height: 20px; }
.stat-icon.blue  { color: #1f3b73; }
.stat-icon.gold  { color: #c9a24b; }
.stat-icon.green { color: #2e9e6b; }
.stat-num { font-size: 26px !important; }
.stat-label { font-size: 12px !important; margin-top: 3px !important; }

.quick-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px !important; }
.quick-card { padding: 13px 18px !important; border-radius: 12px !important; gap: 10px !important; }
.quick-icon {
    width: 38px; height: 38px; border-radius: 9px !important;
    font-size: 0 !important; display: flex !important;
    align-items: center; justify-content: center;
    color: #c9a24b !important; background: #fdf6e8 !important;
}
.quick-icon svg { width: 18px; height: 18px; }
.quick-title { font-size: 14px !important; }
.quick-sub { font-size: 12px !important; }

.dept-icon { font-size: 0 !important; color: #c9a24b !important; }
.dept-icon svg { width: 24px; height: 24px; }

/* ===== 日历图标 + 部门字号 ===== */
.dash-clock-line {
    display: flex;
    align-items: center;
    gap: 9px;
}
.dash-cal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffd77a;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
    will-change: transform;
}
.dash-cal:hover {
    transform: scale(1.7);
}
.dash-cal svg {
    width: 24px;
    height: 24px;
}
.dept-title {
    font-size: 21px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
}

/* ===== 真实日历（悬停放大弹出） ===== */
.cal-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.dash-cal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffd77a;
    cursor: pointer;
    transition: transform .25s ease;
}
.dash-cal svg { width: 22px; height: 22px; }
.cal-popup {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 250px;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(20,30,60,.16);
    padding: 14px;
    z-index: 200;
    transform: scale(.4);
    transform-origin: top right;
    opacity: 0;
    pointer-events: none;
    transition: transform .28s cubic-bezier(.34,1.56,.64,1), opacity .22s ease;
}
.cal-wrap:hover .cal-popup {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}
.cal-popup-head {
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    color: #1f3b73;
    margin-bottom: 8px;
}
.cal-popup-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
    font-size: 13px;
}
.cal-popup-grid .wd {
    color: #9aa4b5;
    font-weight: 600;
    font-size: 12px;
    padding: 3px 0;
}
.cal-popup-grid .day {
    padding: 5px 0;
    border-radius: 6px;
    color: #333;
}
.cal-popup-grid .day.today {
    background: #c9a24b;
    color: #fff;
    font-weight: 700;
}
.cal-popup-grid .day.empty { visibility: hidden; }

/* ===== 通知式滚动统计栏（收窄） ===== */
.stat-ticker {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #f8f6f0 0%, #fdf9f2 100%);
    border: 1px solid #eee4d0;
    border-radius: 10px;
    padding: 0 18px;
    height: 46px;
    overflow: hidden;
    margin: 14px 0 16px;
}
.ticker-badge {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #1f3b73;
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 1px;
}
.ticker-viewport {
    flex: 1;
    height: 46px;
    overflow: hidden;
}
.ticker-track {
    transition: transform .55s cubic-bezier(.4,0,.2,1);
}
.ticker-item {
    height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
}
.ticker-item .tk-label { color: #7a8494; }
.ticker-item .tk-num {
    font-weight: 800;
    font-size: 16px;
    color: #1f3b73;
}
.ticker-item .tk-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #c9a24b;
    flex: 0 0 auto;
}

/* ===== 真实迷你日历（月+日+星期，悬停放大） ===== */
.mini-cal {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 58px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(20,30,60,.08);
    cursor: pointer;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
    flex: 0 0 auto;
}
.mini-cal:hover {
    transform: scale(1.4);
}
.mini-cal-head {
    width: 100%;
    text-align: center;
    background: #c9a24b;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 0;
    letter-spacing: 1px;
}
.mini-cal-day {
    font-size: 25px;
    font-weight: 800;
    color: #1f3b73;
    line-height: 1.15;
}
.mini-cal-week {
    font-size: 11px;
    color: #999;
    padding-bottom: 5px;
}

/* ===== 横向跑马灯统计栏 ===== */
.stat-ticker {
    background: linear-gradient(135deg, #f8f6f0 0%, #fdf9f2 100%);
    border: 1px solid #eee4d0;
    border-radius: 10px;
    height: 44px;
    overflow: hidden;
    margin: 14px 0 16px;
    display: flex;
    align-items: center;
}
.ticker-viewport {
    width: 100%;
    overflow: hidden;
}
.ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerScroll 20s linear infinite;
}
.ticker-track:hover {
    animation-play-state: paused;
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 26px;
    font-size: 14px;
    color: #333;
}
.ticker-item .tk-label { color: #7a8494; }
.ticker-item .tk-num {
    font-weight: 800;
    font-size: 16px;
    color: #1f3b73;
}
.ticker-item .tk-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #c9a24b;
}
@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== 真实迷你日历（悬停展开整月） ===== */
.cal-wrap { position: relative; display: inline-flex; }
.mini-cal {
    display: flex; flex-direction: column; align-items: center;
    width: 56px; background: #fff;
    border: 1px solid #d8d8d8; border-radius: 10px; overflow: hidden;
    box-shadow: 0 3px 10px rgba(20,30,60,.08);
    flex: 0 0 auto; z-index: 1;
}
.mini-cal-head { width: 100%; text-align: center; background: #1a2b4a; color: #ffd77a; font-size: 12px; font-weight: 700; padding: 3px 0; letter-spacing: 1px; }
.mini-cal-day { font-size: 24px; font-weight: 800; color: #1a2b4a; line-height: 1.1; }
.mini-cal-week { font-size: 11px; color: #999; padding-bottom: 4px; }
.cal-full {
    position: absolute; top: calc(100% + 10px); right: 0;
    width: 268px; background: #fff; border-radius: 14px;
    box-shadow: 0 14px 40px rgba(20,30,60,.18); padding: 14px;
    z-index: 200; transform: scale(.3); transform-origin: top right;
    opacity: 0; pointer-events: none;
    transition: transform .28s cubic-bezier(.34,1.56,.64,1), opacity .22s ease;
}
.cal-wrap:hover .cal-full { transform: scale(1); opacity: 1; pointer-events: auto; }
.cal-full-head { text-align: center; font-weight: 700; font-size: 15px; color: #1a2b4a; margin-bottom: 8px; }
.cal-full-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; text-align: center; font-size: 13px; }
.cal-full-grid .cf-wd { color: #9aa4b5; font-weight: 600; font-size: 12px; padding: 3px 0; }
.cal-full-grid .cf-day { padding: 5px 0; border-radius: 6px; color: #333; }
.cal-full-grid .cf-day.today { background: #c9a24b; color: #fff; font-weight: 700; }
.cal-full-grid .cf-day.empty { visibility: hidden; }

/* ===== 统计栏：新配色（深藏青 + 金色） ===== */
.stat-ticker {
    background: linear-gradient(135deg, #1a2b4a 0%, #223a60 100%);
    border: 1px solid #2c4670; border-radius: 10px;
    height: 46px; overflow: hidden; margin: 14px 0 16px;
    display: flex; align-items: center;
}
.ticker-viewport { flex: 1; overflow: hidden; }
.ticker-track { display: inline-flex; align-items: center; white-space: nowrap; animation: tickerScroll 22s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; padding: 0 26px; font-size: 14px; color: #dfe6f2; }
.ticker-item .tk-label { color: #a9b8d0; }
.ticker-item .tk-num { font-weight: 800; font-size: 16px; color: #ffd77a; }
.ticker-item .tk-dot { width: 7px; height: 7px; border-radius: 50%; background: #ffd77a; }
.ticker-item.ticker-notif .tk-dot { background: #ff5a5a; }
.ticker-item.ticker-notif .tk-notif-text { color: #ff7a7a; font-weight: 600; }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== 操作按钮（红）+ 通知面板 ===== */
.op-btn {
    flex: 0 0 auto; margin-right: 10px;
    background: #c0392b; color: #fff; border: none;
    padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
    cursor: pointer; letter-spacing: 1px;
}
.op-btn:hover { background: #e74c3c; }
.notif-panel {
    margin: 0 0 16px; background: #fff; border: 1px solid #e5e0d5;
    border-radius: 12px; padding: 16px; box-shadow: 0 8px 24px rgba(20,30,60,.08);
}
.notif-panel-head { font-size: 14px; font-weight: 700; color: #1a2b4a; margin-bottom: 10px; }
.notif-form { display: flex; gap: 10px; margin-bottom: 12px; }
.notif-form input {
    flex: 1; padding: 8px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px;
}
.notif-form button {
    background: #c0392b; color: #fff; border: none; padding: 8px 18px;
    border-radius: 8px; font-size: 14px; cursor: pointer;
}
.notif-form button:hover { background: #e74c3c; }
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif-item {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px;
    background: #fdf2f2; border: 1px solid #f5d6d6; border-radius: 8px;
}
.notif-text { flex: 1; color: #c0392b; font-weight: 600; font-size: 14px; }
.notif-time { color: #999; font-size: 12px; }
.notif-del-form button {
    background: none; border: none; color: #999; font-size: 13px; cursor: pointer;
}
.notif-del-form button:hover { color: #c0392b; }
.notif-empty { color: #999; font-size: 13px; text-align: center; padding: 8px; }

/* ===== 修复日历弹层被统计栏遮挡 ===== */
.dash-hero {
    position: relative;
    z-index: 60;
}
.cal-wrap {
    z-index: 100;
}
.cal-full {
    z-index: 999;
}

/* ===== 日历弹层终极修复：fixed 悬浮最上层 + JS 定位 ===== */
.cal-full {
    position: fixed !important;
    top: 0;
    left: 0;
    right: auto !important;
    z-index: 99999 !important;
    opacity: 0;
    pointer-events: none;
    transform: scale(.3);
    transform-origin: top right;
    transition: transform .28s cubic-bezier(.34,1.56,.64,1), opacity .22s ease;
}
/* 阻止旧的 CSS hover 规则干扰（没加 show 类时强制隐藏） */
.cal-wrap:hover .cal-full:not(.show) {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(.3) !important;
}
/* 由 JS 加 show 类时才显示，并定位到正确位置 */
.cal-full.show {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: scale(1) !important;
}

/* ===== 日历节假日标记 ===== */
.cf-day { position: relative; }
.cf-day.holi-xiu { color: #c0392b; font-weight: 700; }
.cf-day.holi-xiu::after {
    content: "休";
    position: absolute; top: -3px; right: 2px;
    font-size: 9px; line-height: 1; color: #c0392b; font-weight: 500;
}
.cf-day.holi-ban { color: #9a9a9a; }
.cf-day.holi-ban::after {
    content: "班";
    position: absolute; top: -3px; right: 2px;
    font-size: 9px; line-height: 1; color: #9a9a9a;
}

/* ==================== 日历面板（最终完整版） ==================== */
.cal-full{position:fixed !important;visibility:hidden !important;opacity:1 !important;width:580px !important;max-width:95vw !important;background:#ffffff !important;border-radius:18px !important;padding:0 !important;box-shadow:0 20px 60px rgba(15,25,50,.30) !important;overflow:hidden !important;transform:scale(.3) !important;transform-origin:top right !important;transition:transform .28s cubic-bezier(.34,1.56,.64,1) !important;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Segoe UI",Roboto,sans-serif !important;}
.cal-full.show{visibility:visible !important;opacity:1 !important;transform:scale(1) !important;}
.cal-wrap:hover .cal-full:not(.show){visibility:hidden !important;opacity:0 !important;transform:scale(.3) !important;}
.cal-full-head{display:flex !important;align-items:center !important;justify-content:center !important;gap:10px !important;background:linear-gradient(135deg,#1a2b4a 0%,#223a60 100%) !important;padding:14px 16px !important;margin:0 !important;}
.cal-title{font-size:18px !important;font-weight:700 !important;color:#ffffff !important;min-width:120px !important;text-align:center !important;letter-spacing:1px !important;}
.cal-nav{width:30px !important;height:30px !important;border-radius:8px !important;border:none !important;background:rgba(255,255,255,.16) !important;color:#ffffff !important;font-size:18px !important;line-height:1 !important;cursor:pointer !important;display:flex !important;align-items:center !important;justify-content:center !important;padding:0 !important;transition:background .2s !important;}
.cal-nav:hover{background:rgba(255,255,255,.32) !important;}
.cal-today{height:30px !important;padding:0 14px !important;border-radius:8px !important;border:none !important;background:#f0b429 !important;color:#1a2b4a !important;font-size:13px !important;font-weight:700 !important;cursor:pointer !important;letter-spacing:1px !important;}
.cal-today:hover{background:#ffc94d !important;}
.cal-full-grid{display:grid !important;grid-template-columns:repeat(7,1fr) !important;gap:5px !important;padding:14px !important;background:#ffffff !important;}
.cf-wd{text-align:center !important;font-size:12px !important;font-weight:600 !important;color:#9aa4b5 !important;padding:6px 0 !important;}
.cf-wd:nth-child(1){color:#d08080 !important;}
.cf-wd:nth-child(7){color:#6b9bd6 !important;}
.cf-day{position:relative !important;display:flex !important;flex-direction:column !important;align-items:center !important;justify-content:flex-start !important;min-height:72px !important;padding:7px 3px 6px !important;border-radius:9px !important;background:#f6f8fb !important;border:1px solid #eef1f6 !important;box-sizing:border-box !important;overflow:visible !important;}
.cf-day.empty{background:transparent !important;border:none !important;}
.cf-num{font-style:normal !important;font-size:18px !important;font-weight:700 !important;color:#2b3440 !important;line-height:1.2 !important;order:1 !important;}
.cf-lunar{font-weight:400 !important;font-size:10px !important;color:#9aa4b5 !important;line-height:1.2 !important;margin-top:3px !important;order:2 !important;}
.cf-tag{font-style:normal !important;font-size:12px !important;font-weight:600 !important;line-height:1.25 !important;margin-top:3px !important;order:3 !important;white-space:nowrap !important;}
.cf-day.f-fest .cf-tag{color:#d64545 !important;}
.cf-day.f-term .cf-tag{color:#2e8b57 !important;}
.cf-tag-null{visibility:hidden !important;}
.cf-sat .cf-num{color:#3d6ea5 !important;}
.cf-sun .cf-num{color:#c05050 !important;}
.cf-day.today{background:#ffe08a !important;border-color:#f0b429 !important;box-shadow:0 2px 10px rgba(240,180,41,.4) !important;}
.cf-day.today .cf-num{color:#5b3a00 !important;}
.cf-day.holi-xiu .cf-num{color:#d64545 !important;}
.cf-day.holi-ban .cf-num{color:#aab2c0 !important;}
.cf-day.holi-xiu::after{content:"休";position:absolute !important;top:3px;right:4px;font-size:10px !important;line-height:1 !important;color:#d64545 !important;font-style:normal !important;}
.cf-day.holi-ban::after{content:"班";position:absolute !important;top:3px;right:4px;font-size:10px !important;line-height:1 !important;color:#9aa4b5 !important;font-style:normal !important;}
@media (max-width: 768px) { .overview-grid { grid-template-columns: 1fr; } }

/* ===== 核心数据概览卡片 ===== */
.overview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.overview-card { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 12px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.06); text-decoration: none; color: inherit; }
.overview-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.12); transform: translateY(-1px); transition: .15s; }
.overview-card .oc-icon { font-size: 26px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 10px; flex: none; }
.overview-card .oc-body { display: flex; flex-direction: column; line-height: 1.2; }
.overview-card .oc-num { font-size: 24px; font-weight: 700; }
.overview-card .oc-label { font-size: 13px; color: #666; margin-top: 2px; }
.overview-card.oc-blue .oc-icon { background: #e8f1fc; }
.overview-card.oc-blue .oc-num { color: #2d6cdf; }
.overview-card.oc-gold .oc-icon { background: #fdf3e4; }
.overview-card.oc-gold .oc-num { color: #d98a1f; }
.overview-card.oc-green .oc-icon { background: #eaf7e9; }
.overview-card.oc-green .oc-num { color: #2e9e4f; }
.overview-card.oc-red .oc-icon { background: #fdecec; }
.overview-card.oc-red .oc-num { color: #d64545; }
@media (max-width: 768px) { .overview-grid { grid-template-columns: repeat(2, 1fr); } }
.quick-trips { border-left-color: #2e9e4f; }
.quick-trips .quick-icon { background: #eaf7e9; }


/* ===== 天气看板 ===== */
.weather-board { margin-top: 22px; }
.weather-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.weather-title { font-size: 17px; font-weight: 700; color: #2c3e50; }
.weather-src { font-size: 12px; color: #999; }
.weather-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.weather-card {
    background: linear-gradient(160deg, #eaf4ff 0%, #ffffff 70%);
    border: 1px solid #d8e8f8; border-radius: 12px;
    padding: 12px 14px; box-shadow: 0 2px 6px rgba(60,110,180,.08);
}
.wc-name { font-size: 14px; font-weight: 700; color: #1f5d8f; margin-bottom: 8px; }
.wc-main { display: flex; align-items: center; gap: 8px; }
.wc-icon { width: 42px; height: 42px; }
.wc-temp { font-size: 22px; font-weight: 700; color: #e67e22; }
.wc-min { font-size: 14px; color: #7f9db9; font-weight: 500; }
.wc-text { font-size: 14px; color: #2c3e50; white-space: nowrap; }
.wc-sub { margin-top: 8px; font-size: 12px; color: #607d8b; display: flex; gap: 10px; flex-wrap: wrap; white-space: nowrap; }
.wc-tomorrow { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #d8e8f8; font-size: 12px; color: #607d8b; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.wc-tmr-label { color: #1f5d8f; font-weight: 600; }
.wc-icon-sm { width: 20px; height: 20px; }
.wc-empty { color: #bbb; font-size: 13px; padding: 16px 0; text-align: center; }

/* ===== 订单列表美化 ===== */
.order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.order-table thead th {
    background: #1f3b73;
    color: #fff;
    padding: 13px 18px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 1px;
}
.order-table thead th:first-child {
    border-top-left-radius: 8px;
    text-align: center;
    width: 60px;
}
.order-table thead th:last-child { border-top-right-radius: 8px; }
.order-table tbody td {
    padding: 15px 18px;
    border-bottom: 1px solid #f0f2f5;
    white-space: nowrap;
    color: #333;
}
.order-table tbody tr:nth-child(even) { background: #fafbfd; }
.order-table tbody tr:hover { background: #eef3fb; }
.order-table td.seq {
    text-align: center;
    color: #1f3b73;
    font-weight: 600;
}
.order-table .empty {
    text-align: center;
    color: #999;
    padding: 44px 0;
    font-size: 14px;
}
.order-table .btn {
    padding: 5px 16px;
    border-radius: 16px;
    font-size: 13px;
    border: 1px solid #d5dbe7;
    color: #1f3b73;
    background: #fff;
}
.order-table .btn:hover {
    background: #1f3b73;
    color: #fff;
    border-color: #1f3b73;
}
.order-table .btn-danger {
    background: #fff0f0;
    color: #e74c3c;
    border-color: #f5c6c6;
}
.order-table .btn-danger:hover {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}
