:root {
    --radius: 22px;
    --bg-0: #f6f8ff;
    --bg-1: #eef3ff;
    --text: #142033;
    --muted: rgba(20,32,51,.62);
    --line: rgba(20,32,51,.10);
    --glass: rgba(255,255,255,.40);
    --glass-strong: rgba(255,255,255,.75);
    --shadow-lg: 0 20px 60px rgba(20,32,51,.10);
    --shadow-md: 0 12px 30px rgba(20,32,51,.08);
    --shadow-sm: 0 6px 16px rgba(20,32,51,.08);
    --accent: #ffb300;
    --accent-ink: #2a1b00;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-size: 14px;
    margin: 0;
    color: var(--text);
    background: radial-gradient(1200px 3200px at 20% 10%, rgba(255,179,0,.09), transparent 55%), radial-gradient(1200px 3200px at 80% 25%, rgba(197,67,255,.06), transparent 60%), linear-gradient(180deg, var(--bg-0), var(--bg-1));
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.bs-shell {
    display: flex;
    min-height: 100vh;
    padding: 8px;
    gap: 8px;
}

/* Sidebar */
.bs-sidebar {
    width: 250px;
    border-radius: calc(var(--radius) + 6px);
    background: var(--glass);
    border: 1px solid rgba(255,255,255,.55);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    overflow: hidden;
}

.bs-brand {
    height: 54px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(20,32,51,.08);
    background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.55));
}

.bs-brand-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.bs-menu {
    padding: 12px;
}

/* Menu tree */
.bs-menu-root, .bs-menu-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bs-menu-item {
    font-size: 14px;
    margin: 6px 0;
}

.bs-menu-ico {
    width: 18px;
    text-align: center;
    opacity: .85;
}

.bs-menu-link, .bs-menu-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 16px;
}

.bs-menu-link {
    color: var(--text);
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

    .bs-menu-link:hover {
        background: rgba(255,255,255,.70);
        border-color: rgba(20,32,51,.08);
        box-shadow: var(--shadow-sm);
        transform: translateY(-1px);
    }

.bs-menu-badge {
        margin-left: auto;
        padding: 2px 8px;
        border-radius: 999px;
        background: var(--accent);
        color: var(--accent-ink);
        font-size: 12px;
        font-weight: 800;
    }

.bs-menu-group {
    color: var(--muted);
    font-weight: 700;
    padding-top: 14px;
}

.bs-menu-children {
    padding-left: 14px;
    margin-top: 6px;
    border-left: 1px dashed rgba(20,32,51,.12);
}

/* Main */
.bs-main {
    flex: 1;
    border-radius: calc(var(--radius) + 6px);
    background: var(--glass);
    border: 1px solid rgba(255,255,255,.55);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.bs-topbar {
    height: 54px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(20,32,51,.08);
    background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.60));
}

.bs-page-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.bs-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
}

.bs-date {
    font-weight: 600;
    margin-right: 12px;
}

.bs-icon-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    border: 1px solid rgba(20,32,51,.10);
    background: rgba(255,255,255,.70);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 8px 20px rgba(20,32,51,.08);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .bs-icon-btn:hover {
        transform: translateY(-2px);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 12px 26px rgba(20,32,51,.10);
    }

.bs-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: #ff3b30;
    box-shadow: 0 6px 14px rgba(255,59,48,.35);
}

.bs-avatar {
    width: 36px;
    height: 36px;
    border-radius: 18px;
    border: 1px solid rgba(20,32,51,.10);
    background: rgba(255,255,255,.70);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 8px 20px rgba(20,32,51,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: transform .15s ease, box-shadow .15s ease;
}
    .bs-avatar:hover {
        transform: translateY(-2px);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 12px 26px rgba(20,32,51,.10);
    }

/* Content */
.bs-content {
    padding: 18px;
}

.bs-card {
    border-radius: calc(var(--radius) + 8px);
    background: #ffffff40;
    border: 1px solid rgba(255,255,255,.65);
    box-shadow: var(--shadow-md);
    padding: 16px;
}

.bs-card-title {
    font-weight: 800;
    color: var(--muted);
    margin-bottom: 12px;
}

.bs-card-body {
    border-radius: calc(var(--radius) + 2px);
    /* border: 1px dashed rgba(20,32,51,.18); */
    min-height: 220px;
    background: rgba(255,255,255,.45);
}

/* Animations */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.18);
        opacity: .78;
    }
}

.animate-breathe {
    animation: breathe 2s ease-in-out infinite;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255,255,255,.45);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb {
    background: rgb(213, 213, 213, 0.55);
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,.6);
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgb(169, 169, 169, 0.80);
    }

/* ===== Layout: Sidebar / Main 独立滚动 ===== */
.bs-shell {
    height: 100vh; /* 整体占满视口 */
    min-height: 0; /* 允许内部滚动容器正确计算高度 */
}

.bs-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.bs-brand {
    flex: 0 0 auto;
}

.bs-menu {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto; /* 左侧菜单独立滚动 */
    padding-right: 6px; /* 给滚动条一点空间 */
}

.bs-main {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.bs-topbar {
    flex: 0 0 auto;
}

.bs-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto; /* 右侧内容区独立滚动 */
}

/* ===== Menu: details/summary 折叠样式 + 高亮 ===== */
.bs-menu-details {
    border-radius: 16px;
}

.bs-menu-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 16px;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

    .bs-menu-summary::-webkit-details-marker {
        display: none;
    }

.bs-menu-summary-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.bs-menu-caret {
    opacity: .55;
    transition: transform .15s ease;
}

.bs-menu-details[open] .bs-menu-caret {
    transform: rotate(180deg);
}

.bs-menu-summary:hover {
    background: rgba(255,255,255,.70);
    border-color: rgba(20,32,51,.08);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

/* 子项容器缩进 */
.bs-menu-children {
    list-style: none;
    margin: 6px 0 0;
    padding: 0 0 0 14px;
    border-left: 1px dashed rgba(20,32,51,.12);
}

/* 当前页高亮 */
.bs-menu-link.is-active {
    background: rgb(176, 196, 255, 0.06);
    border-color: rgb(73, 126, 255, 0.16);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    font-weight: bold;
}

/* 当前页所在的父级也给一点提示 */
.bs-menu-summary.is-active {
    color: var(--text);
}

/* ===== MyProjects (Project/MyProjects) ===== */
.mp-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mp-card {
    border-radius: calc(var(--radius) + 8px);
    background: #ffffff30;
    border: 1px solid rgba(255,255,255,.65);
    box-shadow: var(--shadow-md);
    padding: 16px;
}

.mp-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mp-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mp-title-ico {
    opacity: .85;
}

.mp-title-text {
    font-weight: 800;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 18px;
    border: 1px solid rgba(20,32,51,.10);
    background: rgba(255,255,255,.70);
    text-decoration: none;
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 8px 20px rgba(20,32,51,.08);
    transition: transform .15s ease, box-shadow .15s ease;
    font-weight: 700;
    white-space: nowrap;
}

    .mp-detail-btn:hover {
        transform: translateY(-1px);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 12px 26px rgba(20,32,51,.10);
    }

.mp-meta {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    flex-wrap: wrap;
}

.mp-deadline {
    font-size: 13px
}

.mp-divider {
    height: 1px;
    margin: 14px 0 12px;
    background: rgba(20,32,51,.08);
}

.mp-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .02em;
}

.mp-tag--blue {
    background: rgba(59,130,246,.14);
    color: rgba(29,78,216,.95);
}

.mp-tag--red {
    background: rgba(239,68,68,.14);
    color: rgba(185,28,28,.95);
}

.mp-tag--amber {
    background: rgba(255,179,0,.18);
    color: rgba(138,92,0,.95);
}

.mp-tag--gray {
    background: rgba(148,163,184,.22);
    color: rgba(51,65,85,.95);
}

.mp-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 14px;
}

.mp-grid-h {
    color: var(--muted);
    font-weight: 800;
    font-size: 12px;
}

.mp-grid-v {
    min-width: 0;
}

.mp-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
    border: 1px solid rgba(20,32,51,.10);
    background: rgba(255,255,255,.65);
}

.mp-pill--ok {
    background: rgba(16,185,129,.14);
    color: rgba(4,120,87,.95);
    border-color: rgba(16,185,129,.18);
}

.mp-pill--warn {
    background: rgba(245,158,11,.16);
    color: rgba(146,64,14,.95);
    border-color: rgba(245,158,11,.18);
}

.mp-pill--neutral {
    background: rgba(59,130,246,.12);
    color: rgba(29,78,216,.95);
    border-color: rgba(59,130,246,.16);
}

.mp-pill--gray {
    background: rgba(148,163,184,.18);
    color: rgba(51,65,85,.95);
    border-color: rgba(148,163,184,.20);
}

.mp-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.mp-muted {
    color: var(--muted);
    font-weight: 700;
}

.mp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mp-empty-ico {
    font-size: 34px;
    opacity: .45;
}

.mp-empty-title {
    font-weight: 900;
    letter-spacing: -0.01em;
}

.mp-empty-sub {
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 1024px) {
    .mp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .mp-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Common controls ===== */
.bs-input {
    height: 38px;
    padding: 0 12px;
    border-radius: 16px;
    border: 1px solid rgba(20,32,51,.10);
    background: rgba(255,255,255,.75);
    outline: none;
}

.bs-select {
    padding-right: 34px;
}

.bs-btn {
    height: 38px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid rgba(20,32,51,.10);
    background: rgba(255,255,255,.75);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 22px rgba(20,32,51,.08);
}

    .bs-btn:hover {
        transform: translateY(-1px);
    }

.bs-btn--ghost {
    background: rgba(255,255,255,.55);
    box-shadow: none;
}

.bs-btn--danger {
    background: rgba(239,68,68,.12);
    border-color: rgba(239,68,68,.18);
    color: rgba(185,28,28,.95);
    box-shadow: none;
}

.bs-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 18px;
    overflow: hidden;
}

    .bs-table th, .bs-table td {
        border: 1px solid rgba(20,32,51,.10);
        padding: 10px 10px;
        vertical-align: top;
        font-size: 13px; /* 小号不跟着 15px 放大 */
    }

    .bs-table th {
        background: rgba(255,255,255,.85);
        color: rgba(20,32,51,.70);
        font-weight: 900;
    }

/* ===== Dialog ===== */
.bs-dialog {
    border: none;
    padding: 0;
    background: transparent;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

    .bs-dialog::backdrop {
        background: rgba(20,32,51,.35);
        backdrop-filter: blur(6px);
    }

.bs-dialog-card {
    width: min(1200px, calc(100vw - 40px));
    max-height: calc(100vh - 60px);
    overflow: hidden;
    border-radius: 26px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(255,255,255,.65);
    box-shadow: 0 30px 90px rgba(20,32,51,.18);
    display: flex;
    flex-direction: column;
}

.bs-dialog-head {
    height: 56px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(20,32,51,.08);
}

.bs-dialog-title {
    font-weight: 900;
    letter-spacing: -0.01em;
}

.bs-dialog-body {
    padding: 14px;
    overflow: auto;
}

.bs-dialog-foot {
    padding: 12px 14px;
    border-top: 1px solid rgba(20,32,51,.08);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ===== EngineeringCheck ===== */
.ec-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ec-filter {
    border-radius: 24px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(255,255,255,.65);
    box-shadow: 0 12px 30px rgba(20,32,51,.08);
    padding: 14px;
}

.ec-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ec-row--sub {
    margin-top: 10px;
    color: rgba(20,32,51,.70);
}

.ec-label {
    font-weight: 900;
    color: rgba(20,32,51,.70);
}

.ec-dot {
    padding: 0 6px;
    color: rgba(20,32,51,.35);
}

.ec-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
}

.ec-add {
    height: 46px;
    border-radius: 24px;
    border: 1px dashed rgba(20,32,51,.18);
    background: rgba(255,255,255,.55);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .ec-add:hover {
        background: rgba(255,255,255,.75);
        transform: translateY(-1px);
    }

/* ===== 长按钮：新增（浅渐变更显眼） ===== */
.ec-add, .br-add {
    height: 46px;
    border-radius: 24px;
    border: 1px solid rgba(255,179,0,.28);
    background: linear-gradient(135deg, rgba(255,179,0,.22) 0%, rgba(255,255,255,.72) 55%, rgba(83,114,255,.12) 100%);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 12px 26px rgba(20,32,51,.08);
}

    .ec-add:hover, .br-add:hover {
        transform: translateY(-1px);
        box-shadow: 0 16px 34px rgba(20,32,51,.10);
    }

.ec-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ec-card {
    border-radius: 26px;
    background: rgba(255,255,255,.74);
    border: 1px solid rgba(255,255,255,.65);
    box-shadow: 0 12px 30px rgba(20,32,51,.08);
    padding: 14px;
}

.ec-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ec-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    min-width: 0;
}

    .ec-card-title span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.ec-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ec-status {
    margin-top: 10px;
    color: rgba(20,32,51,.70);
    font-weight: 800;
}

.ec-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid rgba(20,32,51,.10);
}

.ec-tag--blue {
    background: rgba(59,130,246,.12);
    color: rgba(29,78,216,.95);
}

.ec-tag--green {
    background: rgba(16,185,129,.14);
    color: rgba(4,120,87,.95);
}

.ec-tag--red {
    background: rgba(239,68,68,.14);
    color: rgba(185,28,28,.95);
}

/* Detail tabs */
.ec-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.ec-tab {
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(20,32,51,.10);
    background: rgba(255,255,255,.65);
    font-weight: 900;
    font-size: 12px;
}

    .ec-tab.is-active {
        background: rgba(255,179,0,.18);
        border-color: rgba(255,179,0,.22);
    }

    .ec-tab:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

.ec-empty {
    text-align: center;
    color: rgba(20,32,51,.55);
    font-weight: 800;
}

.ec-loading {
    padding: 18px;
    color: rgba(20,32,51,.65);
    font-weight: 900;
}

/* Add dialog */
.ec-add-selected {
    margin: 10px 0;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(20,32,51,.10);
    font-weight: 900;
    color: rgba(20,32,51,.70);
}

.ec-add-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

/* Project picker */
.pp-toolbar {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
}

.pp-body {
    padding: 0 14px 14px;
}

.pp-row {
    cursor: pointer;
}

    .pp-row:hover {
        background: rgba(255,179,0,.10);
    }

.pp-empty {
    text-align: center;
    padding: 14px;
    color: rgba(20,32,51,.55);
    font-weight: 900;
}

/* ===== ProjectPicker: pager + highlight ===== */
.pp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px 14px;
}

.pp-summary {
    font-weight: 900;
    color: rgba(20,32,51,.65);
}

.pp-pager {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pp-pageinfo {
    font-weight: 900;
    color: rgba(20,32,51,.65);
}

.pp-pagesize {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.pp-pagesize-label {
    font-weight: 900;
    color: rgba(20,32,51,.65);
    font-size: 12px;
}

.pp-mark {
    background: rgba(255,179,0,.28);
    border: 1px solid rgba(255,179,0,.22);
    border-radius: 8px;
    padding: 0 4px;
    font-weight: 900;
}

/* ===== BidReview (主页面) ===== */
.br-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.br-filter {
    border-radius: 24px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(255,255,255,.65);
    box-shadow: 0 12px 30px rgba(20,32,51,.08);
    padding: 14px;
}

.br-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.br-row--sub {
    margin-top: 10px;
    color: rgba(20,32,51,.70);
}

.br-label {
    font-weight: 900;
    color: rgba(20,32,51,.70);
}

.br-dot {
    padding: 0 6px;
    color: rgba(20,32,51,.35);
}

.br-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
}

.br-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.br-card {
    border-radius: 26px;
    background: rgba(255,255,255,.74);
    border: 1px solid rgba(255,255,255,.65);
    box-shadow: 0 12px 30px rgba(20,32,51,.08);
    padding: 14px;
}

.br-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.br-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    min-width: 0;
}

    .br-title span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.br-detail-btn {
    white-space: nowrap;
}

.br-meta {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.br-muted {
    color: rgba(20,32,51,.62);
    font-weight: 800;
}

.br-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid rgba(20,32,51,.10);
    font-weight: 900;
}

.br-tag--blue {
    background: rgba(59,130,246,.12);
    color: rgba(29,78,216,.95);
}

.br-tag--green {
    background: rgba(16,185,129,.14);
    color: rgba(4,120,87,.95);
}

.br-tag--red {
    background: rgba(239,68,68,.14);
    color: rgba(185,28,28,.95);
}

.br-stats {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.br-stat {
    min-width: 90px;
    border-radius: 18px;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(20,32,51,.10);
    padding: 10px 12px;
    text-align: center;
}

.br-stat-k {
    color: rgba(20,32,51,.55);
    font-weight: 900;
    font-size: 12px;
}

.br-stat-v {
    font-weight: 1000;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.br-loading {
    padding: 16px;
    font-weight: 900;
    color: rgba(20,32,51,.65);
}

.br-add-selected {
    margin: 10px 0;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(20,32,51,.10);
    font-weight: 900;
    color: rgba(20,32,51,.70);
}

.br-add-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

/* ===== BidReview Detail (详情页) ===== */
.brd-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.brd-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brd-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: rgba(20,32,51,.70);
    font-weight: 900;
    padding: 8px 12px;
    border-radius: 16px;
    border: 1px solid rgba(20,32,51,.10);
    background: rgba(255,255,255,.65);
}

.brd-title {
    font-weight: 1000;
    font-size: 16px;
    letter-spacing: -0.01em;
}

.brd-subtitle {
    font-weight: 1000;
}

.brd-file {
    color: rgba(20,32,51,.62);
    font-weight: 800;
}

.brd-dot {
    padding: 0 6px;
    color: rgba(20,32,51,.35);
}

.brd-file-name {
    font-weight: 1000;
    color: rgba(20,32,51,.80);
}

.brd-cards {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.brd-card {
    flex: 1 1 180px;
    border-radius: 22px;
    background: rgba(255,255,255,.74);
    border: 1px solid rgba(255,255,255,.65);
    box-shadow: 0 12px 30px rgba(20,32,51,.08);
    padding: 14px;
}

.brd-card-k {
    color: rgba(20,32,51,.55);
    font-weight: 1000;
    font-size: 12px;
}

.brd-card-v {
    font-weight: 1000;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.brd-card-sub {
    margin-top: 4px;
    color: rgba(20,32,51,.62);
    font-weight: 900;
    font-size: 12px;
}

.brd-section-title {
    margin-top: 8px;
    font-weight: 1000;
}

.brd-tree {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* parent node */
.brd-node {
    border-radius: 22px;
    background: rgba(255,255,255,.70);
    border: 1px solid rgba(20,32,51,.10);
    overflow: hidden;
}

.brd-node-head {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    user-select: none;
}

    .brd-node-head::-webkit-details-marker {
        display: none;
    }

.brd-node-title {
    font-weight: 1000;
}

.brd-node-sum {
    color: rgba(20,32,51,.62);
    font-weight: 900;
    font-size: 12px;
}

.brd-caret {
    opacity: .55;
    transition: transform .15s ease;
}

.brd-node[open] .brd-caret {
    transform: rotate(180deg);
}

.brd-node-children {
    padding: 0 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* leaf */
.brd-leaf {
    border-radius: 18px;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(20,32,51,.10);
    padding: 12px 12px;
}

.brd-leaf-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brd-leaf-title {
    font-weight: 1000;
}

.brd-leaf-desc {
    margin-top: 6px;
    color: rgba(20,32,51,.62);
    font-weight: 800;
}

.brd-leaf-reason {
    margin-top: 6px;
    color: rgba(185,28,28,.92);
    font-weight: 900;
}

.brd-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(20,32,51,.10);
    font-weight: 1000;
    font-size: 12px;
}

.brd-tag--ok {
    background: rgba(16,185,129,.14);
    color: rgba(4,120,87,.95);
    border-color: rgba(16,185,129,.18);
}

.brd-tag--bad {
    background: rgba(239,68,68,.14);
    color: rgba(185,28,28,.95);
    border-color: rgba(239,68,68,.18);
}

/* ===== CompanyPage (ValueAdded/CompanyPage) ===== */
.cp-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Tab 切换栏 */
.cp-tabs {
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,.60);
    border: 1px solid rgba(255,255,255,.65);
    box-shadow: var(--shadow-sm);
    border-radius: 22px;
    padding: 6px;
    width: fit-content;
}

.cp-tab {
    height: 36px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: transparent;
    font-weight: 800;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
    color: var(--muted);
}

    .cp-tab:hover {
        background: rgba(255,255,255,.65);
        color: var(--text);
    }

    .cp-tab.is-active {
        background: rgba(255,255,255,.90);
        border-color: rgba(20,32,51,.10);
        box-shadow: var(--shadow-sm);
        color: var(--text);
        transform: translateY(-1px);
    }

/* Panel */
.cp-panel {
    border-radius: 26px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(255,255,255,.65);
    box-shadow: var(--shadow-md);
    padding: 20px;
}

.cp-panel--hidden {
    display: none;
}

.cp-section-title {
    font-weight: 900;
    font-size: 15px;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    color: var(--text);
}

/* 表单网格 */
.cp-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 20px;
    margin-bottom: 16px;
}

.cp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cp-field--full {
    grid-column: 1 / -1;
}

.cp-label {
    font-weight: 900;
    font-size: 13px;
    color: rgba(20,32,51,.70);
}

.cp-input {
    width: 100%;
}

.cp-textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(20,32,51,.10);
    background: rgba(255,255,255,.75);
    outline: none;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .cp-textarea:focus {
        border-color: rgba(59,130,246,.35);
        box-shadow: 0 0 0 3px rgba(59,130,246,.08);
    }

    .bs-input:focus {
        border-color: rgba(59,130,246,.35);
        box-shadow: 0 0 0 3px rgba(59,130,246,.08);
    }

/* 操作行 */
.cp-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
}

/* 提示消息 */
.cp-msg {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 800;
    min-height: 20px;
    transition: opacity .2s ease;
}

.cp-msg--ok {
    color: rgba(4,120,87,.95);
}

.cp-msg--err {
    color: rgba(185,28,28,.95);
}

/* 企业主页左右布局 */
.cp-page-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    align-items: start;
}

.cp-page-editor {
    min-width: 0;
}

/* URL 行：输入框 + 复制按钮 */
.cp-url-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cp-url-input {
    flex: 1;
    background: rgba(241,245,249,.85) !important;
    color: #374151 !important;
    cursor: default;
    user-select: all;
}

.cp-url-copy {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Logo 行 */
.cp-logo-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

.cp-logo-preview {
    width: 90px;
    height: 90px;
    border-radius: 18px;
    border: 1px dashed rgba(20,32,51,.20);
    background: rgba(255,255,255,.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: rgba(20,32,51,.45);
    font-size: 12px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

    .cp-logo-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 18px;
    }

.cp-logo-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cp-hint {
    font-size: 12px;
    color: rgba(20,32,51,.50);
    font-weight: 700;
}

/* 轮播图列表区 */
.cp-banner-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    min-height: 0;
}

/* 单张轮播图缩略图 */
.cp-banner-thumb {
    position: relative;
    width: 140px;
    height: 88px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(20,32,51,.12);
    background: rgba(241,245,249,.8);
    flex-shrink: 0;
}

.cp-banner-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 上传中遇罩 */
.cp-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

.cp-banner-thumb.is-uploading .cp-banner-overlay {
    opacity: 1;
}

/* 删除按钮 */
.cp-banner-del {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(220,38,38,.85);
    border: none;
    color: #fff;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .15s;
    line-height: 1;
    padding: 0;
}

.cp-banner-thumb:hover .cp-banner-del,
.cp-logo-preview:hover .cp-banner-del {
    opacity: 1;
}

/* 添加按钮区 */
.cp-banner-add {
    margin-bottom: 6px;
}

/* 右侧说明卡片 */
.cp-page-tip {
    border-radius: 20px;
    background: rgba(59,130,246,.06);
    border: 1px solid rgba(59,130,246,.14);
    padding: 16px;
}

.cp-tip-title {
    font-weight: 900;
    font-size: 13px;
    color: rgba(29,78,216,.95);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cp-tip-list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .cp-tip-list li {
        font-size: 13px;
        color: rgba(20,32,51,.75);
        font-weight: 700;
        line-height: 1.6;
    }

@media (max-width: 900px) {
    .cp-page-layout {
        grid-template-columns: 1fr;
    }

    .cp-form {
        grid-template-columns: 1fr;
    }
}

/* ===== AdSlots (广告位投放) ===== */
.ad-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ad-panel {
    border-radius: 26px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(255,255,255,.65);
    box-shadow: var(--shadow-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ad-panel--hidden {
    display: none;
}

/* 总览头部 */
.ad-overview-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ad-overview-title {
    font-weight: 900;
    font-size: 15px;
    margin-bottom: 4px;
}

.ad-overview-sub {
    font-size: 13px;
    color: rgba(20,32,51,.60);
    font-weight: 700;
}

.ad-legend {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.ad-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: rgba(20,32,51,.65);
}

.ad-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ad-dot--free  { background: rgba(16,185,129,.80); }
.ad-dot--mine  { background: rgba(59,130,246,.80); }
.ad-dot--taken { background: rgba(148,163,184,.60); }

/* 全满提示条 */
.ad-full-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 12px;
}

.ad-full-notice i {
    color: #f97316;
    font-size: 15px;
    flex-shrink: 0;
}

.ad-full-notice-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
}

.ad-full-notice-link:hover { text-decoration: underline; }

/* 广告位网格 */
.ad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.ad-grid-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: rgba(20,32,51,.55);
    font-weight: 900;
}

.ad-slot-card {
    border-radius: 20px;
    border: 2px solid rgba(20,32,51,.10);
    background: rgba(255,255,255,.75);
    padding: 14px 12px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

    .ad-slot-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .ad-slot-card.is-free {
        border-color: rgba(16,185,129,.35);
        background: rgba(16,185,129,.06);
    }

    .ad-slot-card.is-mine {
        border-color: rgba(59,130,246,.40);
        background: rgba(59,130,246,.07);
        cursor: default;
    }

    .ad-slot-card.is-taken {
        border-color: rgba(148,163,184,.25);
        background: rgba(148,163,184,.08);
        cursor: default;
        opacity: .9;
    }

.ad-slot-no {
    font-size: 11px;
    font-weight: 900;
    color: rgba(20,32,51,.45);
    letter-spacing: .04em;
}

.ad-slot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255,255,255,.80);
    border: 1px solid rgba(20,32,51,.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    color: rgba(20,32,51,.55);
}

    .ad-slot-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
    }

.ad-slot-name {
    font-weight: 900;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-slot-time {
    font-size: 11px;
    color: rgba(245,158,11,.85);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    height: 16px;
    line-height: 16px;
}

.ad-slot-industry {
    font-size: 11px;
    color: rgba(20,32,51,.55);
    font-weight: 700;
    margin-top: 2px;
    height: 16px;
    line-height: 16px;
}

.ad-slot-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 7px;
    border-radius: 999px;
    letter-spacing: .03em;
}

.ad-slot-badge--free  { background: rgba(16,185,129,.18); color: rgba(4,120,87,.90); }
.ad-slot-badge--mine  { background: rgba(59,130,246,.18); color: rgba(29,78,216,.90); }
.ad-slot-badge--taken { background: rgba(148,163,184,.20); color: rgba(51,65,85,.80); }

.ad-slot-action {
    width: 100%;
    height: 28px;
    border-radius: 14px;
    border: 1px solid rgba(16,185,129,.30);
    background: rgba(16,185,129,.12);
    color: rgba(4,120,87,.90);
    font-weight: 900;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background .15s ease;
    margin-top: 6px;
}

    .ad-slot-action:hover {
        background: rgba(16,185,129,.22);
    }

    .ad-slot-action--reserve {
        border-color: rgba(245,158,11,.35);
        background: rgba(245,158,11,.10);
        color: rgba(146,64,14,.90);
    }

    .ad-slot-action--reserve:hover {
        background: rgba(245,158,11,.22);
    }

    .ad-slot-card.is-mine .ad-slot-action {
        border-color: rgba(59,130,246,.30);
        background: rgba(59,130,246,.12);
        color: rgba(29,78,216,.90);
    }

/* 已占用卡位——双行按钮区 */
.ad-slot-actions-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.ad-slot-taken-label {
    flex: 1;
    font-size: 11px;
    font-weight: 900;
    color: rgba(20,32,51,.40);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 套餐介绍 */
.ad-packages {
    border-radius: 20px;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(20,32,51,.08);
    padding: 16px;
}

.ad-packages-title {
    font-weight: 900;
    font-size: 14px;
    margin-bottom: 12px;
    color: rgba(20,32,51,.75);
}

.ad-packages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.ad-pkg {
    border-radius: 18px;
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(20,32,51,.10);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .ad-pkg:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
    }

    .ad-pkg--hot {
        border-color: rgba(255,179,0,.35);
        background: rgba(255,179,0,.07);
    }

.ad-pkg-badge {
    position: absolute;
    top: -8px;
    right: 10px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 10px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 999px;
}

.ad-pkg-name {
    font-weight: 900;
    font-size: 14px;
}

.ad-pkg-duration {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.ad-pkg-price {
    font-size: 12px;
    font-weight: 800;
    color: rgba(20,32,51,.55);
}

.ad-pkg-desc {
    font-size: 12px;
    color: rgba(20,32,51,.60);
    font-weight: 700;
    line-height: 1.6;
    flex: 1;
}

.ad-pkg-btn {
    margin-top: 8px;
    height: 32px;
    border-radius: 16px;
    border: 1px solid rgba(20,32,51,.12);
    background: rgba(255,255,255,.80);
    font-weight: 900;
    font-size: 12px;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

    .ad-pkg-btn:hover {
        background: rgba(255,255,255,1);
        transform: translateY(-1px);
    }

/* 立即投放布局 */
.ad-apply-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 20px;
    align-items: start;
}

/* 已选广告位提示条 */
.ad-selected-slot {
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(59,130,246,.08);
    border: 1px dashed rgba(59,130,246,.30);
    font-weight: 800;
    font-size: 13px;
    color: rgba(29,78,216,.85);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

    .ad-selected-slot.is-selected {
        background: rgba(16,185,129,.08);
        border-color: rgba(16,185,129,.30);
        color: rgba(4,120,87,.90);
    }

/* 费用预览 */
.ad-fee-preview {
    margin-top: 4px;
    border-radius: 18px;
    background: rgba(255,255,255,.65);
    border: 1px solid rgba(20,32,51,.08);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ad-fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 800;
    color: rgba(20,32,51,.70);
}

.ad-fee-row--total {
    color: var(--text);
    font-size: 14px;
}

.ad-fee-divider {
    height: 1px;
    background: rgba(20,32,51,.08);
    margin: 2px 0;
}

/* 投放提交按钟 */
.ad-submit-btn {
    background: rgba(255,179,0,.18);
    border-color: rgba(255,179,0,.28);
    color: rgba(138,92,0,.95);
}

    .ad-submit-btn:hover {
        background: rgba(255,179,0,.28);
    }

/* 右侧预览卡片 */
.ad-apply-preview {
    border-radius: 20px;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(20,32,51,.08);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ad-preview-wrap {
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(20,32,51,.10);
    box-shadow: 0 2px 12px rgba(20,32,51,.08);
    overflow: hidden;
    padding: 14px 14px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ad-preview-card {
    display: flex;
    gap: 12px;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
}

.ad-preview-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ad-preview-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

    .ad-preview-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
    }

.ad-preview-name {
    font-weight: 900;
    font-size: 15px;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-preview-industry {
    font-size: 12px;
    color: rgba(20,32,51,.55);
    font-weight: 700;
    margin-top: 3px;
}

.ad-preview-desc {
    font-size: 13px;
    color: rgba(20,32,51,.65);
    font-weight: 600;
    line-height: 1.6;
    /* 超出两行显示省略号 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-preview-btn {
    border-top: 1px solid rgba(20,32,51,.08);
    margin: 0 -14px;
    padding: 10px 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    cursor: default;
    border-radius: 0 0 16px 16px;
    background: #fff;
}

.ad-preview-tip {
    font-size: 11px;
    color: rgba(20,32,51,.40);
    font-weight: 800;
    text-align: center;
    margin-top: 4px;
}

/* 投放记录 */
.ad-records-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ad-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ad-stat {
    border-radius: 16px;
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(20,32,51,.08);
    padding: 10px 16px;
    text-align: center;
    min-width: 80px;
}

.ad-stat-val {
    font-weight: 900;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.ad-stat-label {
    font-size: 11px;
    color: rgba(20,32,51,.55);
    font-weight: 800;
    margin-top: 2px;
}

.ad-table-wrap {
    overflow-x: auto;
    border-radius: 18px;
}

.ad-table {
    min-width: 720px;
}

.ad-table-empty {
    text-align: center;
    padding: 24px;
    color: rgba(20,32,51,.50);
    font-weight: 900;
}

.ad-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.ad-status--active   { background: rgba(16,185,129,.14); color: rgba(4,120,87,.90); }
.ad-status--pending  { background: rgba(245,158,11,.14); color: rgba(146,64,14,.90); }
.ad-status--expired  { background: rgba(148,163,184,.18); color: rgba(51,65,85,.85); }
.ad-status--rejected { background: rgba(239,68,68,.14); color: rgba(185,28,28,.90); }

.ad-ctr-bar {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ad-ctr-track {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: rgba(20,32,51,.10);
    overflow: hidden;
}

.ad-ctr-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(59,130,246,.70), rgba(16,185,129,.70));
    transition: width .4s ease;
}

.ad-ctr-val {
    font-size: 12px;
    font-weight: 900;
    min-width: 36px;
    text-align: right;
    color: rgba(20,32,51,.70);
}

@media (max-width: 900px) {
    .ad-grid { grid-template-columns: repeat(2, 1fr); }
    .ad-packages-grid { grid-template-columns: repeat(2, 1fr); }
    .ad-apply-layout { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
    .ad-grid { grid-template-columns: 1fr; }
    .ad-packages-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   主页模版设置 — HomepageTemplate
============================================================ */

/* 板块标题行 */
.tpl-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(20,32,51,.85);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tpl-section-hint {
    font-size: .8rem;
    font-weight: 400;
    color: rgba(20,32,51,.50);
}

/* 三栏模版卡片网格 */
.tpl-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 8px;
}

/* 单张模版卡片 */
.tpl-card {
    position: relative;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .15s;
    user-select: none;
    overflow: hidden;
}


.tpl-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 16px rgba(37,99,235,.12);
    transform: translateY(-2px);
}

.tpl-card.selected {
    border-color: #2563eb;
    box-shadow: 0 4px 20px rgba(37,99,235,.20);
}

/* 右下角勾选图标 */
.tpl-card-check {
    position: absolute;
    bottom: 10px;
    right: 12px;
    color: #2563eb;
    font-size: 1.25rem;
    opacity: 0;
    transition: opacity .2s;
}

.tpl-card.selected .tpl-card-check {
    opacity: 1;
}

/* 右上角角标 */
.tpl-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    z-index: 2;
}

.tpl-badge--agency {
    background: rgba(37,99,235,.12);
    color: #1d4ed8;
}

.tpl-badge--supplier {
    background: rgba(16,185,129,.12);
    color: #047857;
}

/* SVG 示意图容器 */
.tpl-preview-img {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
    line-height: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.tpl-preview-img svg {
    width: 100%;
    height: auto;
    display: block;
    max-height: 140px;
}


/* 模版名称 */
.tpl-card-name {
    font-size: .9rem;
    font-weight: 700;
    color: rgba(20,32,51,.88);
    margin-bottom: 4px;
}

/* 模版描述 */
.tpl-card-desc {
    font-size: .75rem;
    color: rgba(20,32,51,.55);
    line-height: 1.4;
    padding-right: 20px;
}

/* 选中后描述颜色稍亮 */
.tpl-card.selected .tpl-card-desc {
    color: rgba(20,32,51,.75);
}

/* 未选中模版占位提示 */
.tpl-placeholder {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 10px;
    padding: 24px 20px;
    color: #94a3b8;
    font-size: .9rem;
}

.tpl-placeholder i {
    font-size: 1.5rem;
    color: #cbd5e1;
}

/* 配置面板容器 */
.tpl-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
}

/* 配置面板操作行 */
.tpl-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* 提示框（代理机构 / 供应商版） */
.tpl-hint-box {
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: .85rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.tpl-hint-box i {
    margin-top: 2px;
    flex-shrink: 0;
}

.tpl-hint-box--agency {
    background: rgba(37,99,235,.07);
    color: #1e40af;
    border-left: 3px solid #2563eb;
}

.tpl-hint-box--supplier {
    background: rgba(16,185,129,.07);
    color: #065f46;
    border-left: 3px solid #10b981;
}

/* 图片网格（资质/案例）——比轮播图小一点 */
.tpl-img-grid .cp-banner-thumb {
    width: 90px;
    height: 90px;
}

/* 字数计数 */
.tpl-char-count {
    font-size: .78rem;
    font-weight: 400;
    color: rgba(20,32,51,.45);
    margin-left: 6px;
}

/* cp-field--half 两栏布局 */
.cp-form .cp-field--half {
    width: calc(50% - 6px);
    display: inline-block;
    vertical-align: top;
}

.cp-form .cp-field--half:nth-child(even) {
    margin-left: 12px;
}

@media (max-width: 900px) {
    .tpl-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .tpl-card-grid { grid-template-columns: 1fr; }
    .tpl-actions { flex-direction: column; }
    .cp-form .cp-field--half { width: 100%; margin-left: 0; }
}

/* ========================================
   仪表盘 Dashboard Styles
   ======================================== */

.db-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ---- Welcome Bar ---- */
.db-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.db-welcome-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.db-welcome-greeting {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.db-welcome-plan {
    font-size: .82rem;
    color: var(--muted);
    font-weight: 500;
}

.db-btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid rgba(20,32,51,.12);
    background: rgba(255,255,255,.75);
    color: var(--text);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

    .db-btn-edit:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
        background: rgba(255,255,255,.9);
    }

/* ---- Plan Card (Blue) ---- */
.db-plan-card {
    border-radius: 20px;
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 40%, #60A5FA 100%);
    color: #fff;
    padding: 22px 24px;
    box-shadow: 0 12px 36px rgba(37,99,235,.25);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.db-plan-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.db-plan-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.db-plan-name {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.db-plan-desc {
    font-size: .82rem;
    opacity: .82;
    font-weight: 400;
}

.db-plan-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.db-btn-renew {
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.4);
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background .15s ease, transform .15s ease;
}

    .db-btn-renew:hover {
        background: rgba(255,255,255,.25);
        transform: translateY(-1px);
    }

.db-btn-upgrade {
    padding: 8px 20px;
    border-radius: 20px;
    border: none;
    background: #fff;
    color: #2563EB;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,.1);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .db-btn-upgrade:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(0,0,0,.15);
    }

.db-plan-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    padding-top: 6px;
}

.db-plan-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.db-plan-stat-label {
    font-size: .72rem;
    opacity: .7;
    font-weight: 500;
}

.db-plan-stat-value {
    font-size: .95rem;
    font-weight: 700;
}

.db-text-danger {
    color: #FCA5A5 !important;
}

/* ---- Service Usage Row ---- */
.db-service-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.db-service-card {
    border-radius: 18px;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(255,255,255,.7);
    box-shadow: var(--shadow-sm);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .db-service-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.db-service-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.db-service-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
}

.db-service-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.db-service-name {
    font-size: .85rem;
    font-weight: 700;
    color: var(--muted);
}

.db-service-bar {
    height: 6px;
    border-radius: 99px;
    background: rgba(20,32,51,.08);
    overflow: hidden;
}

.db-service-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width .4s ease;
}

.db-service-meta {
    font-size: .72rem;
    color: rgba(20,32,51,.4);
    font-weight: 500;
}

/* ---- Bottom Two-Column Layout ---- */
.db-bottom-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    align-items: start;
}

/* ---- Generic Card ---- */
.db-card {
    border-radius: 18px;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(255,255,255,.7);
    box-shadow: var(--shadow-sm);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.db-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.db-card-title {
    font-size: .95rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
}

.db-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 99px;
    background: #EFF6FF;
    color: #2563EB;
    font-size: .72rem;
    font-weight: 700;
}

/* ---- Task List ---- */
.db-task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.db-task-item {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,.5);
    border: 1px solid rgba(20,32,51,.06);
    border-left-width: 4px;
    border-left-style: solid;
    transition: transform .12s ease, box-shadow .12s ease;
}

    .db-task-item:hover {
        transform: translateX(3px);
        box-shadow: var(--shadow-sm);
    }

.db-task-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
}

.db-task-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.db-task-title {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.db-task-desc {
    font-size: .76rem;
    color: var(--muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.db-task-deadline {
    font-size: .72rem;
    color: rgba(20,32,51,.4);
    font-weight: 500;
    margin-top: 2px;
}

/* ---- Stats Column ---- */
.db-stats-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.db-stat-card {
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255,255,255,.7);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .db-stat-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.db-stat-card--blue {
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
}

.db-stat-card--green {
    background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
}

.db-stat-card--purple {
    background: linear-gradient(135deg, #F5F3FF, #EDE9FE);
}

.db-stat-card-icon {
    font-size: 1.1rem;
    opacity: .55;
}

    .db-stat-card--blue .db-stat-card-icon {
        color: #2563EB;
    }

    .db-stat-card--green .db-stat-card-icon {
        color: #059669;
    }

    .db-stat-card--purple .db-stat-card-icon {
        color: #7C3AED;
    }

.db-stat-card-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

    .db-stat-card--blue .db-stat-card-num {
        color: #2563EB;
    }

    .db-stat-card--green .db-stat-card-num {
        color: #059669;
    }

    .db-stat-card--purple .db-stat-card-num {
        color: #7C3AED;
    }

.db-stat-card-sub {
    font-size: .76rem;
    color: var(--muted);
    font-weight: 500;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .db-bottom-row {
        grid-template-columns: 1fr;
    }

    .db-service-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .db-service-row {
        grid-template-columns: 1fr;
    }

    .db-welcome {
        flex-direction: column;
        align-items: flex-start;
    }

    .db-plan-stats {
        gap: 16px;
    }
}

