:root {
    --demand-v2-primary: #2563eb;
    --demand-v2-primary-strong: #1e40af;
    --demand-v2-primary-soft: #eff6ff;
    --demand-v2-accent: #ea580c;
    --demand-v2-success: #059669;
    --demand-v2-danger: #dc2626;
    --demand-v2-warning: #d97706;
    --demand-v2-text: #0f172a;
    --demand-v2-text-secondary: #475569;
    --demand-v2-text-muted: #94a3b8;
    --demand-v2-border: rgba(148, 163, 184, 0.22);
    --demand-v2-card: rgba(255, 255, 255, 0.92);
    --demand-v2-shadow: 0 16px 48px rgba(15, 23, 42, 0.07);
    --demand-v2-shadow-hover: 0 20px 56px rgba(30, 64, 175, 0.11);
    --demand-v2-radius: 16px;
}

.demand-detail-v2-page {
    min-width: 0;
    overflow-x: hidden;
    color: var(--demand-v2-text);
    background:
        radial-gradient(circle at 13% 12%, rgba(59, 130, 246, 0.10), transparent 28rem),
        radial-gradient(circle at 91% 36%, rgba(14, 165, 233, 0.07), transparent 26rem),
        #fafbfc;
}

.demand-detail-v2-page,
.demand-detail-v2-page button,
.demand-detail-v2-page input {
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.demand-detail-v2-page *,
.demand-detail-v2-page *::before,
.demand-detail-v2-page *::after {
    box-sizing: border-box;
}

.demand-detail-v2-page button,
.demand-detail-v2-page a {
    -webkit-tap-highlight-color: transparent;
}

.demand-detail-v2-page button:focus-visible,
.demand-detail-v2-page a:focus-visible,
.demand-detail-v2-page input:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.23);
    outline-offset: 2px;
}

.demand-detail-v2-page.is-bid-modal-open {
    overflow: hidden;
}

.demand-detail-v2-page .demand-v2-shell {
    width: min(1440px, calc(100% - 40px));
    min-height: 600px;
    margin: 0 auto;
    padding: 38px 0 64px;
}

.demand-detail-v2-page .demand-v2-breadcrumb {
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 0 0 20px;
    color: var(--demand-v2-text-muted);
    font-size: 13px;
    line-height: 20px;
    white-space: nowrap;
}

.demand-detail-v2-page .demand-v2-breadcrumb a {
    color: var(--demand-v2-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.demand-detail-v2-page .demand-v2-breadcrumb a:hover {
    color: var(--demand-v2-primary);
}

.demand-detail-v2-page .demand-v2-breadcrumb > span:not(.demand-v2-breadcrumb__current) {
    margin: 0 10px;
    color: #cbd5e1;
}

.demand-detail-v2-page .demand-v2-breadcrumb__current {
    overflow: hidden;
    min-width: 0;
    color: var(--demand-v2-text-muted);
    text-overflow: ellipsis;
}

.demand-detail-v2-page .demand-v2-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(340px, 25vw, 360px);
    gap: clamp(24px, 2vw, 28px);
    align-items: start;
}

.demand-detail-v2-page .demand-v2-main {
    display: grid;
    min-width: 0;
    gap: 20px;
}

.demand-detail-v2-page .box,
.demand-detail-v2-page .demand-v2-card,
.demand-detail-v2-page .demand-v2-publisher {
    margin: 0;
    border: 1px solid var(--demand-v2-border);
    border-radius: var(--demand-v2-radius);
    background: var(--demand-v2-card);
    box-shadow: var(--demand-v2-shadow);
    backdrop-filter: blur(14px);
}

@media (hover: hover) {
    .demand-detail-v2-page .demand-v2-card {
        transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
    }

    .demand-detail-v2-page .demand-v2-card:hover {
        border-color: rgba(59, 130, 246, 0.25);
        box-shadow: var(--demand-v2-shadow-hover);
        transform: translateY(-1px);
    }
}

.demand-detail-v2-page .demand-v2-summary {
    position: relative;
    overflow: hidden;
    padding: 32px;
}

.demand-detail-v2-page .demand-v2-summary__header {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    justify-content: space-between;
}

.demand-detail-v2-page .demand-v2-summary__identity {
    flex: 1 1 auto;
    min-width: 0;
}

.demand-detail-v2-page .demand-v2-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--demand-v2-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.demand-detail-v2-page .demand-v2-eyebrow::before {
    width: 20px;
    height: 2px;
    margin-right: 8px;
    border-radius: 2px;
    background: var(--demand-v2-primary);
    content: "";
}

.demand-detail-v2-page .demand-v2-summary h1 {
    margin: 0;
    color: var(--demand-v2-text);
    font-size: clamp(22px, 2.2vw, 32px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    word-break: break-word;
}

.demand-detail-v2-page .demand-v2-summary__identity > p {
    margin: 11px 0 0;
    color: var(--demand-v2-text-muted);
    font-size: 13px;
}

.demand-detail-v2-page .demand-v2-summary__identity > p span {
    color: var(--demand-v2-text-secondary);
    font-family: Consolas, Monaco, monospace;
}

.demand-detail-v2-page .demand-v2-status-group {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.demand-detail-v2-page .demand-v2-status {
    display: inline-flex;
    align-items: center;
    max-width: 260px;
    min-height: 32px;
    padding: 6px 13px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    color: var(--demand-v2-primary-strong);
    background: var(--demand-v2-primary-soft);
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    text-align: right;
}

.demand-detail-v2-page .demand-v2-status i {
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--demand-v2-primary);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    animation: demand-v2-pulse 1.8s ease-out infinite;
}

.demand-detail-v2-page .demand-v2-status--success {
    border-color: rgba(5, 150, 105, 0.16);
    color: #047857;
    background: #ecfdf5;
}

.demand-detail-v2-page .demand-v2-status--warning {
    border-color: rgba(217, 119, 6, 0.16);
    color: #b45309;
    background: #fffbeb;
}

.demand-detail-v2-page .demand-v2-status--danger {
    border-color: rgba(220, 38, 38, 0.15);
    color: #b91c1c;
    background: #fef2f2;
}

@keyframes demand-v2-pulse {
    70% { box-shadow: 0 0 0 7px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.demand-detail-v2-page .demand-v2-commission {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    align-items: center;
    margin: 0 0 16px;
}

.demand-detail-v2-page .demand-v2-commission > div:not(.demand-v2-guarantee) {
    display: flex;
    gap: 8px;
    align-items: center;
}

.demand-detail-v2-page .demand-v2-commission > div:not(.demand-v2-guarantee) > span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 12px;
    border-radius: 6px;
    color: #fff;
    background: var(--demand-v2-primary-strong);
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
}

.demand-detail-v2-page .demand-v2-commission strong {
    color: var(--demand-v2-primary-strong);
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
}

.demand-detail-v2-page .demand-v2-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0 0;
}

.demand-detail-v2-page .demand-v2-meta > div {
    min-width: 0;
    padding: 14px 15px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.82);
}

.demand-detail-v2-page .demand-v2-meta dt {
    margin-bottom: 5px;
    color: var(--demand-v2-text-muted);
    font-size: 12px;
}

.demand-detail-v2-page .demand-v2-meta dd {
    overflow: hidden;
    margin: 0;
    color: var(--demand-v2-text);
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demand-detail-v2-page .demand-v2-meta__estimated-weight {
    margin-left: 12px;
}

.demand-detail-v2-page .demand-v2-summary-detail {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--demand-v2-border);
}

.demand-detail-v2-page .demand-v2-section,
.demand-detail-v2-page .participation-stats,
.demand-detail-v2-page .demand-v2-bid-actions-card,
.demand-detail-v2-page .demand-v2-progress,
.demand-detail-v2-page .demand-v2-audit {
    padding: 28px 30px;
}

.demand-detail-v2-page .demand-v2-section__header {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
}

.demand-detail-v2-page .demand-v2-section__header > span {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    border-radius: 10px;
    color: var(--demand-v2-primary);
    background: var(--demand-v2-primary-soft);
    font-size: 12px;
    font-weight: 800;
}

.demand-detail-v2-page .demand-v2-section__header h2,
.demand-detail-v2-page .publicity-countdown-header h2 {
    margin: 0;
    color: var(--demand-v2-text);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.demand-detail-v2-page .demand-v2-richtext,
.demand-detail-v2-page .demand-v2-bid-content {
    overflow-wrap: anywhere;
    color: var(--demand-v2-text-secondary);
    font-size: 15px;
    line-height: 1.9;
}

.demand-detail-v2-page .demand-v2-richtext img,
.demand-detail-v2-page .demand-v2-bid-content img {
    max-width: 100%;
    height: auto;
}

.demand-detail-v2-page .demand-v2-attachment {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 15px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    background: #f8fafc;
}

.demand-detail-v2-page .demand-v2-attachment__icon {
    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: var(--demand-v2-primary);
    background: #eaf2ff;
}

.demand-detail-v2-page .demand-v2-attachment__icon .iconfont {
    font-size: 22px;
}

.demand-detail-v2-page .demand-v2-attachment__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.demand-detail-v2-page .demand-v2-attachment__body strong {
    overflow: hidden;
    color: var(--demand-v2-text);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demand-detail-v2-page .demand-v2-attachment__body span {
    color: var(--demand-v2-text-muted);
    font-size: 12px;
}

.demand-detail-v2-page .demand-v2-attachment button,
.demand-detail-v2-page .select-bid-btn {
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 9px;
    color: var(--demand-v2-primary);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.demand-detail-v2-page .demand-v2-attachment button:hover,
.demand-detail-v2-page .select-bid-btn:hover {
    border-color: var(--demand-v2-primary);
    color: #fff;
    background: var(--demand-v2-primary);
    transform: translateY(-1px);
}

.demand-detail-v2-page .demand-promotion-panel {
    padding: 18px;
}

.demand-detail-v2-page .demand-promotion-actions {
    gap: 12px;
}

.demand-detail-v2-page .demand-promotion-action {
    min-height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--demand-v2-primary), var(--demand-v2-primary-strong));
    box-shadow: 0 9px 18px rgba(37, 99, 235, 0.18);
}

.demand-detail-v2-page .demand-promotion-action--urgent {
    background: linear-gradient(135deg, #f97316, var(--demand-v2-accent));
    box-shadow: 0 9px 18px rgba(234, 88, 12, 0.17);
}

.demand-detail-v2-page .publicity-countdown-container {
    padding: 24px 30px;
}

.demand-detail-v2-page .publicity-countdown-header {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.demand-detail-v2-page .publicity-countdown-header i {
    margin-right: 10px;
    color: var(--demand-v2-primary);
    font-size: 22px;
}

.demand-detail-v2-page .publicity-countdown-time {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 16px;
    padding: 18px;
    border-radius: 12px;
    background: linear-gradient(120deg, #eff6ff, #f8fafc);
}

.demand-detail-v2-page .time-item {
    display: flex;
    min-width: 72px;
    flex-direction: column;
    align-items: center;
}

.demand-detail-v2-page .time-number {
    min-width: 50px;
    color: var(--demand-v2-primary-strong);
    font: 700 38px/1 Consolas, Monaco, monospace;
    text-align: center;
}

.demand-detail-v2-page .time-label {
    margin-top: 6px;
    color: var(--demand-v2-text-muted);
    font-size: 12px;
}

.demand-detail-v2-page .time-separator {
    margin: 0 9px 17px;
    color: #bfdbfe;
    font-size: 28px;
    font-weight: 700;
}

.demand-detail-v2-page .publicity-countdown-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--demand-v2-text-secondary);
    font-size: 13px;
}

.demand-detail-v2-page .publicity-countdown-tip i {
    margin-right: 6px;
    color: var(--demand-v2-warning);
}

.demand-detail-v2-page .demand-v2-participants {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.demand-detail-v2-page .stat-item {
    display: flex;
    width: auto;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 17px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 13px;
    background: rgba(248, 250, 252, 0.75);
}

.demand-detail-v2-page .demand-v2-role-head {
    display: flex;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.demand-detail-v2-page .demand-v2-role-head h3,
.demand-detail-v2-page .demand-v2-role-head p {
    margin: 0;
}

.demand-detail-v2-page .demand-v2-role-head h3 {
    color: var(--demand-v2-text);
    font-size: 15px;
    font-weight: 700;
}

.demand-detail-v2-page .demand-v2-role-head p {
    margin-top: 2px;
    color: var(--demand-v2-text-muted);
    font-size: 11px;
}

.demand-detail-v2-page .demand-v2-role-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    font-size: 14px;
    font-weight: 700;
}

.demand-detail-v2-page .demand-v2-role-icon--checker {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.demand-detail-v2-page .demand-v2-role-icon--supervisor,
.demand-detail-v2-page .demand-v2-role-icon--contact {
    background: linear-gradient(135deg, #0f172a, #475569);
}

.demand-detail-v2-page .stat-item .info-container {
    display: flex;
    width: 100%;
    align-items: center;
    margin: 16px 0 14px;
    padding: 0;
}

.demand-detail-v2-page .stat-item .count {
    display: flex;
    width: 62px;
    min-width: 62px;
    height: 62px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    border: 0;
    border-radius: 14px;
    color: var(--demand-v2-primary);
    background: #eaf2ff;
    font-size: 11px;
}

.demand-detail-v2-page .stat-item .count strong {
    font-size: 20px;
    line-height: 1.1;
}

.demand-detail-v2-page .stat-item .demand-v2-participant-avatar {
    --vip-avatar-size: 68px;
    margin-right: 12px;
}

.demand-detail-v2-page .stat-item .details {
    min-width: 0;
    flex: 1;
    color: var(--demand-v2-text-secondary);
    font-size: 12px;
    text-align: left;
}

.demand-detail-v2-page .stat-item .details > strong {
    display: block;
    overflow: hidden;
    margin-bottom: 4px;
    color: var(--demand-v2-text);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demand-detail-v2-page .stat-item .details p {
    margin: 2px 0;
    line-height: 1.45;
}

.demand-detail-v2-page .demand-v2-person-status {
    display: inline-flex;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #b45309;
    background: #fffbeb;
    font-size: 11px;
    font-weight: 600;
}

.demand-detail-v2-page .demand-v2-person-status--selected {
    color: #047857;
    background: #ecfdf5;
}

.demand-detail-v2-page .demand-v2-person-status--official {
    color: var(--demand-v2-primary-strong);
    background: #eff6ff;
}

.demand-detail-v2-page .stat-item .select-bid-btn {
    width: 100%;
    min-height: 38px;
    margin: auto 0 0;
    padding: 0 12px;
    text-align: center;
}

.demand-detail-v2-page .stat-item .select-bid-btn:not(:disabled) {
    color: #fff;
    background: var(--demand-v2-primary);
}

.demand-detail-v2-page .stat-item .select-bid-btn:disabled {
    border-color: #e2e8f0;
    color: #94a3b8;
    background: #f1f5f9;
    cursor: not-allowed;
}

.demand-detail-v2-page .demand-v2-bid-actions {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border: 1px solid #dbeafe;
    border-radius: 13px;
    background: linear-gradient(120deg, #eff6ff, #f8fafc);
}

.demand-detail-v2-page .demand-v2-bid-actions--only-buttons {
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.demand-detail-v2-page .demand-v2-bid-actions > div:first-child {
    min-width: 0;
}

.demand-detail-v2-page .demand-v2-bid-actions strong {
    display: block;
    color: var(--demand-v2-text);
    font-size: 15px;
}

.demand-detail-v2-page .demand-v2-bid-actions p {
    margin: 5px 0 0;
    color: var(--demand-v2-text-muted);
    font-size: 12px;
    line-height: 1.55;
}

.demand-detail-v2-page .demand-v2-bid-actions__buttons {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.demand-detail-v2-page .demand-v2-bid-actions__buttons.demand-v2-bid-actions__buttons--publisher {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.demand-detail-v2-page .demand-v2-bid-actions__buttons--publisher .bid-btn {
    width: min(360px, 100%);
    flex: 0 1 360px;
}

.demand-detail-v2-page .demand-v2-bid-actions__buttons .select-bid-btn {
    min-width: 132px;
    color: #fff;
    background: var(--demand-v2-primary);
}

.demand-detail-v2-page .demand-v2-bid-actions--only-buttons .demand-v2-bid-actions__buttons {
    width: min(360px, 100%);
}

.demand-detail-v2-page .demand-v2-bid-actions--only-buttons .demand-v2-bid-actions__buttons .select-bid-btn {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
}

.demand-detail-v2-page .demand-v2-bid-actions__buttons .select-bid-btn:disabled {
    border-color: #e2e8f0;
    color: #94a3b8;
    background: #f1f5f9;
    cursor: not-allowed;
}

.demand-detail-v2-page .demand-v2-progress .progress-bars,
.demand-detail-v2-page .demand-v2-progress .progress-bar {
    display: flex;
    min-width: 0;
    padding: 0;
    font-size: 12px;
}

.demand-detail-v2-page .demand-v2-progress .progress-bars {
    margin-bottom: 14px;
}

.demand-detail-v2-page .demand-v2-progress .progress-bar + .progress-bar {
    margin-top: 12px;
}

.demand-detail-v2-page .demand-v2-progress .progress-item {
    position: relative;
    display: flex;
    height: 40px;
    flex: 1;
    align-items: center;
    justify-content: center;
    margin-right: 7px;
    padding-left: 14px;
    color: var(--demand-v2-text-secondary);
    background: #e2e8f0;
}

.demand-detail-v2-page .demand-v2-progress .progress-item.active {
    color: #fff;
    background: var(--demand-v2-primary);
}

.demand-detail-v2-page .demand-v2-progress .progress-item.completed {
    color: #fff;
    background: var(--demand-v2-success);
}

.demand-detail-v2-page .demand-v2-progress .progress-item.done {
    color: #fff;
    background: var(--demand-v2-danger);
}

.demand-detail-v2-page .demand-v2-progress .progress-item::before,
.demand-detail-v2-page .demand-v2-progress .progress-item::after {
    position: absolute;
    top: 0;
    width: 18px;
    height: 100%;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    content: "";
}

.demand-detail-v2-page .demand-v2-progress .progress-item::before {
    left: 0;
    background: #fff;
}

.demand-detail-v2-page .demand-v2-progress .progress-item::after {
    right: -17px;
    z-index: 1;
    background: inherit;
}

.demand-detail-v2-page .demand-v2-progress .progress-item:first-child {
    border-radius: 9px 0 0 9px;
}

.demand-detail-v2-page .demand-v2-progress .progress-item:first-child::before,
.demand-detail-v2-page .demand-v2-progress .progress-item:last-child::after {
    display: none;
}

.demand-detail-v2-page .demand-v2-progress .progress-item:last-child {
    margin-right: 0;
    border-radius: 0 9px 9px 0;
}

.demand-detail-v2-page .demand-v2-progress .progress-itemst,
.demand-detail-v2-page .demand-v2-progress .progress-items,
.demand-detail-v2-page .demand-v2-progress .progress-itemsb {
    flex: 1;
    padding: 0 8px;
    color: var(--demand-v2-text-secondary);
}

.demand-detail-v2-page .demand-v2-audit .audit-item {
    position: relative;
    margin-left: 8px;
    padding: 0 0 24px 26px;
    border-left: 1px solid #dbeafe;
}

.demand-detail-v2-page .demand-v2-audit .audit-item:last-child {
    padding-bottom: 0;
}

.demand-detail-v2-page .demand-v2-audit .audit-item::before {
    position: absolute;
    top: 3px;
    left: -6px;
    width: 11px;
    height: 11px;
    border: 3px solid #dbeafe;
    border-radius: 50%;
    background: var(--demand-v2-primary);
    content: "";
}

.demand-detail-v2-page .demand-v2-audit .status {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #b91c1c;
    background: #fef2f2;
    font-size: 12px;
    font-weight: 600;
}

.demand-detail-v2-page .demand-v2-audit .status.pass {
    color: #047857;
    background: #ecfdf5;
}

.demand-detail-v2-page .demand-v2-audit .content {
    color: var(--demand-v2-text-secondary);
    font-size: 14px;
    line-height: 1.75;
}

.demand-detail-v2-page .demand-v2-audit .time {
    margin-top: 8px;
    color: var(--demand-v2-text-muted);
    font-size: 12px;
}

.demand-detail-v2-page .demand-v2-audit .image-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.demand-detail-v2-page .demand-v2-audit .image-item img {
    width: 72px;
    height: 72px;
    border-radius: 9px;
    object-fit: cover;
    cursor: zoom-in;
}

.demand-detail-v2-page .demand-v2-sidebar {
    position: sticky;
    top: 92px;
}

.demand-detail-v2-page .demand-v2-publisher {
    overflow: hidden;
    padding: 26px;
}

.demand-detail-v2-page .demand-v2-publisher__profile {
    display: flex;
    align-items: center;
    padding: 7px 0 22px;
}

.demand-detail-v2-page .demand-v2-publisher__profile > .demand-v2-publisher-avatar {
    --vip-avatar-size: 72px;
    margin-right: 13px;
}

.demand-detail-v2-page .demand-v2-publisher__profile > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.demand-detail-v2-page .demand-v2-publisher__profile strong {
    overflow: hidden;
    color: var(--demand-v2-text);
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demand-detail-v2-page .demand-v2-publisher__profile span {
    color: var(--demand-v2-text-muted);
    font-size: 12px;
}

.demand-detail-v2-page .demand-v2-publisher__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0;
    padding: 18px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.demand-detail-v2-page .demand-v2-publisher__stats > div {
    text-align: center;
}

.demand-detail-v2-page .demand-v2-publisher__stats > div + div {
    border-left: 1px solid rgba(148, 163, 184, 0.18);
}

.demand-detail-v2-page .demand-v2-publisher__stats dt {
    color: var(--demand-v2-text);
    font-size: 23px;
    font-weight: 700;
}

.demand-detail-v2-page .demand-v2-publisher__stats dd {
    margin: 4px 0 0;
    color: var(--demand-v2-text-muted);
    font-size: 12px;
}

.demand-detail-v2-page .demand-v2-publisher__guarantee {
    display: flex;
    align-items: center;
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.demand-detail-v2-page .demand-v2-publisher__guarantee > span {
    display: flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    margin-right: 11px;
    border-radius: 10px;
    color: #fff;
    background: var(--demand-v2-primary);
    font-size: 13px;
    font-weight: 700;
}

.demand-detail-v2-page .demand-v2-publisher__guarantee strong {
    display: block;
    color: var(--demand-v2-text);
    font-size: 13px;
}

.demand-detail-v2-page .demand-v2-publisher__guarantee p {
    margin: 4px 0 0;
    color: var(--demand-v2-text-muted);
    font-size: 11px;
    line-height: 1.5;
}

/* 投标弹窗 */
.demand-v2-modal[hidden] {
    display: none;
}

.demand-v2-modal {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    overflow: auto;
    place-items: center;
    padding: 24px;
}

.demand-v2-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
}

.demand-v2-modal--declaration {
    padding: 12px;
}

.demand-v2-modal--declaration .demand-v2-modal__backdrop {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: none;
}

.demand-v2-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    overflow: hidden;
    width: min(680px, calc(100vw - 48px));
    max-height: 92vh;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
    animation: demand-v2-dialog-in 0.24s ease-out;
}

@keyframes demand-v2-dialog-in {
    from { opacity: 0; transform: translateY(12px) scale(0.975); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.demand-v2-dialog__header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    padding: 21px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(120deg, #f8fbff, #fff);
}

.demand-v2-dialog__title {
    display: flex;
    align-items: center;
}

.demand-v2-dialog__title-icon {
    display: flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    font-size: 14px;
    font-weight: 700;
}

.demand-v2-dialog__title h2,
.demand-v2-dialog__title p {
    margin: 0;
}

.demand-v2-dialog__title h2 {
    color: var(--demand-v2-text);
    font-size: 19px;
    font-weight: 700;
}

.demand-v2-dialog__title p {
    margin-top: 3px;
    color: var(--demand-v2-text-muted);
    font-size: 12px;
}

.demand-v2-dialog__close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    color: #64748b;
    background: transparent;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.demand-v2-dialog__close:hover {
    color: var(--demand-v2-text);
    background: #f1f5f9;
}

.demand-v2-dialog__body {
    overflow-y: auto;
    min-height: 0;
    padding: 24px;
    scrollbar-color: #cbd5e1 transparent;
    scrollbar-width: thin;
}

.demand-v2-dialog__footer {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    padding: 17px 24px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.demand-v2-dialog__footer--between {
    justify-content: space-between;
}

.demand-v2-dialog__footer > span {
    color: var(--demand-v2-text-muted);
    font-size: 12px;
}

.demand-v2-button {
    display: inline-flex;
    min-width: 112px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.demand-v2-button--primary {
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.23);
}

.demand-v2-button--secondary {
    border-color: #dbe3ee;
    color: var(--demand-v2-text-secondary);
    background: #fff;
}

.demand-v2-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.demand-v2-button:disabled {
    opacity: 0.68;
    cursor: wait;
}

.demand-v2-button__spinner {
    display: none;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-top-color: #fff;
    border-radius: 50%;
    animation: demand-v2-spin 0.7s linear infinite;
}

.demand-v2-button.is-loading .demand-v2-button__spinner {
    display: inline-block;
}

@keyframes demand-v2-spin { to { transform: rotate(360deg); } }

.demand-v2-dialog--blocked {
    box-sizing: border-box;
    width: min(376px, calc(100vw - 24px));
    min-height: 277px;
    align-items: center;
    padding: 23px 16px 22px;
    border: 0;
    border-radius: 4px;
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.2);
    text-align: center;
}

.demand-v2-blocked-icon {
    display: flex;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #e5252a;
    background: #fff0f1;
}

.demand-v2-blocked-icon svg {
    width: 42px;
    height: 42px;
}

.demand-v2-dialog--blocked h2 {
    margin: 19px 0 0;
    color: #071329;
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
}

.demand-v2-dialog--blocked p {
    margin: 12px 0 0;
    color: #4f6483;
    font-size: 14px;
    line-height: 22px;
}

.demand-v2-blocked-hint {
    margin-top: 3px;
    color: #93a4c1;
    font-size: 14px;
    line-height: 22px;
}

.demand-v2-dialog--blocked .demand-v2-button {
    min-width: 112px;
    min-height: 38px;
    margin-top: 20px;
    border-radius: 4px;
    background: #3f7ff0;
    box-shadow: none;
    font-size: 16px;
}

.declaration-modal {
    --declaration-bg: #fff;
    --declaration-line: #e5eaf0;
    --declaration-text: #4b5563;
    --declaration-muted: #8a94a3;
    --declaration-title: #222;
    --declaration-blue: #1e5bd8;
    position: relative;
    z-index: 1;
    display: flex;
    overflow: hidden;
    width: min(670px, calc(100vw - 24px));
    height: min(780px, calc(100vh - 24px));
    flex-direction: column;
    border: 1px solid var(--declaration-line);
    border-radius: 8px;
    color: var(--declaration-text);
    background: var(--declaration-bg);
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.18);
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

.declaration-modal__header {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 78px;
    padding: 18px 72px 16px 21px;
    border-bottom: 1px solid var(--declaration-line);
    background: #f8fafc;
    box-sizing: border-box;
}

.declaration-modal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 12px;
    border-radius: 12px;
    background: #fff0d8;
}

.declaration-modal__icon svg {
    width: 20px;
    height: 20px;
    stroke: #1e70ff;
}

.declaration-modal__heading {
    margin: 0;
    color: var(--declaration-title);
    font-size: 20px;
    font-weight: 700;
    line-height: 25px;
}

.declaration-modal__subheading {
    margin-top: 2px;
    color: var(--declaration-muted);
    font-size: 13px;
    line-height: 18px;
}

.declaration-modal__close {
    position: absolute;
    top: 19px;
    right: 23px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #d5e0ef;
    border-radius: 12px;
    color: #6b7788;
    background: #fff;
    cursor: pointer;
}

.declaration-modal__close::before,
.declaration-modal__close::after {
    position: absolute;
    top: 19px;
    left: 11px;
    width: 18px;
    height: 2px;
    background: currentColor;
    content: "";
}

.declaration-modal__close::before {
    transform: rotate(45deg);
}

.declaration-modal__close::after {
    transform: rotate(-45deg);
}

.declaration-modal__close:hover {
    border-color: #a8c9f5;
    color: #1f2937;
}

.declaration-modal__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 24px 22px 28px;
    box-sizing: border-box;
    color: var(--declaration-text);
    font-size: 16px;
    line-height: 28px;
    scrollbar-color: #c8d0d8 #f2f5f8;
    scrollbar-width: thin;
}

.declaration-modal__body::-webkit-scrollbar {
    width: 8px;
}

.declaration-modal__body::-webkit-scrollbar-track {
    background: #f2f5f8;
}

.declaration-modal__body::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: #c8d0d8;
}

.declaration-modal__intro,
.declaration-modal__body p {
    margin: 0 0 14px;
}

.declaration-modal__section {
    margin-top: 22px;
}

.declaration-modal__section-title {
    margin: 0 0 12px;
    padding-left: 12px;
    border-left: 3px solid #2d7dff;
    color: var(--declaration-blue);
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
}

.declaration-modal__body strong {
    color: var(--declaration-blue);
    font-weight: 700;
}

.declaration-modal__measures {
    margin: 12px 0 0 26px;
    padding: 0;
    list-style: none;
}

.declaration-modal__measures li {
    margin-bottom: 8px;
}

.declaration-modal__sign {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--declaration-line);
}

.declaration-modal__sign strong {
    display: block;
    margin-bottom: 14px;
    color: var(--declaration-blue);
}

.declaration-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    padding: 12px 23px 12px 21px;
    border-top: 1px solid var(--declaration-line);
    background: #f8fafc;
    box-sizing: border-box;
}

.declaration-modal__meta {
    color: #8b97a8;
    font-size: 13px;
    line-height: 20px;
}

.declaration-modal__read-btn {
    min-width: 96px;
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: #2563eb;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.declaration-modal__read-btn:hover {
    background: #1d4ed8;
}

.demand-v2-bid-brief {
    padding: 18px;
    border: 1px solid #dbeafe;
    border-radius: 13px;
    background: linear-gradient(120deg, #eff6ff, #f8fafc);
}

.demand-v2-bid-brief__topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.demand-v2-bid-commission,
.demand-v2-bid-status {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
}

.demand-v2-bid-commission {
    padding: 7px 12px;
    color: #fff;
    background: var(--demand-v2-primary-strong);
}

.demand-v2-bid-commission > span {
    margin-right: 7px;
    font-weight: 500;
}

.demand-v2-bid-commission > b {
    font-weight: 700;
}

.demand-v2-bid-commission > strong {
    margin-left: 6px;
    color: #fff;
    font-size: 15px;
}

.demand-v2-bid-status {
    padding: 6px 12px;
    border: 1px solid #a7f3d0;
    color: #047857;
    background: #ecfdf5;
}

.demand-v2-bid-status > i {
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: #10b981;
}

.demand-v2-bid-brief dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.demand-v2-bid-brief dt {
    color: var(--demand-v2-text-muted);
    font-size: 11px;
}

.demand-v2-bid-brief dd {
    overflow: hidden;
    margin: 3px 0 0;
    color: var(--demand-v2-text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demand-v2-bid-brief h3 {
    margin: 15px 0 12px;
    color: var(--demand-v2-text);
    font-size: 17px;
    line-height: 1.5;
}

.demand-v2-bid-parties {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.demand-v2-bid-parties article {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 10px;
    align-items: center;
    padding: 13px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f8fbff;
}

.demand-v2-bid-parties article[hidden] {
    display: none;
}

.demand-v2-bid-parties article > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.demand-v2-bid-parties article strong,
.demand-v2-bid-parties article small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demand-v2-bid-parties article strong {
    color: var(--demand-v2-text);
    font-size: 12px;
}

.demand-v2-bid-parties article small {
    margin-top: 2px;
    color: var(--demand-v2-text-muted);
    font-size: 10px;
}

.demand-v2-bid-parties article > b {
    grid-column: 1 / 3;
    margin-top: 9px;
    padding: 4px;
    border-radius: 6px;
    color: var(--demand-v2-primary-strong);
    background: #dbeafe;
    font-size: 10px;
    text-align: center;
}

.demand-v2-bid-parties .demand-v2-bid-parties__supervisor {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.demand-v2-bid-parties .demand-v2-bid-parties__supervisor > b {
    color: #475569;
    background: #e2e8f0;
}

.demand-v2-bid-section {
    margin-top: 22px;
}

.demand-v2-bid-section > h3 {
    display: flex;
    align-items: center;
    margin: 0 0 12px;
    color: var(--demand-v2-text);
    font-size: 14px;
    font-weight: 700;
}

.demand-v2-bid-section > h3::before {
    width: 3px;
    height: 14px;
    margin-right: 8px;
    border-radius: 3px;
    background: var(--demand-v2-primary);
    content: "";
}

.demand-v2-bid-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.demand-v2-bid-overview > div {
    padding: 11px;
    border-radius: 9px;
    background: #f8fafc;
}

.demand-v2-bid-overview dt {
    color: var(--demand-v2-text-muted);
    font-size: 10px;
}

.demand-v2-bid-overview dd {
    overflow: hidden;
    margin: 3px 0 0;
    color: var(--demand-v2-text);
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demand-v2-bid-content {
    max-height: 150px;
    overflow-y: auto;
    padding: 14px;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 13px;
}

.demand-v2-bid-file {
    display: flex;
    min-width: 0;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: var(--demand-v2-primary);
    background: #f8fafc;
}

.demand-v2-bid-file .iconfont {
    margin-right: 8px;
}

.demand-v2-bid-file strong {
    overflow: hidden;
    color: var(--demand-v2-text-secondary);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demand-v2-bid-quote {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f8fbff;
}

.demand-v2-bid-quote > h3,
.demand-v2-bid-quote > p {
    grid-column: 1 / -1;
}

.demand-v2-bid-quote > label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

.demand-v2-bid-quote > label > span {
    color: var(--demand-v2-text-secondary);
    font-size: 12px;
}

.demand-v2-bid-quote em {
    color: var(--demand-v2-danger);
    font-style: normal;
}

.demand-v2-bid-quote > label > strong {
    display: flex;
    min-height: 40px;
    align-items: center;
    color: var(--demand-v2-text);
    font-size: 13px;
}

.demand-v2-field {
    display: flex;
    overflow: hidden;
    min-width: 0;
    min-height: 40px;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
}

.demand-v2-field:focus-within {
    border-color: var(--demand-v2-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.11);
}

.demand-v2-field input {
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 0 11px;
    border: 0;
    outline: 0;
    color: var(--demand-v2-text);
    background: transparent;
    font-size: 13px;
}

.demand-v2-field i {
    flex: 0 0 auto;
    padding: 0 10px;
    color: var(--demand-v2-text-muted);
    font-size: 11px;
    font-style: normal;
}

.demand-v2-field-error {
    min-height: 18px;
    margin: 0;
    color: var(--demand-v2-danger);
    font-size: 12px;
}

.demand-v2-agreement {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    margin-top: 22px;
    color: var(--demand-v2-text-secondary);
    font-size: 12px;
    line-height: 1.6;
    cursor: pointer;
}

.demand-v2-agreement input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.demand-v2-agreement > span {
    position: relative;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
}

.demand-v2-agreement input:checked + span {
    border-color: var(--demand-v2-primary);
    background: var(--demand-v2-primary);
}

.demand-v2-agreement input:checked + span::after {
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    content: "";
    transform: rotate(45deg);
}

.demand-v2-agreement input:focus-visible + span {
    outline: 3px solid rgba(37, 99, 235, 0.23);
    outline-offset: 2px;
}

.demand-v2-agreement b {
    font-weight: 400;
}

.demand-v2-agreement a {
    color: var(--demand-v2-primary);
}

.demand-v2-dialog--success {
    width: min(420px, calc(100vw - 48px));
    align-items: center;
    padding: 36px 30px 30px;
    text-align: center;
}

.demand-v2-success-icon {
    display: flex;
    width: 66px;
    height: 66px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #34d399, #059669);
    box-shadow: 0 12px 28px rgba(5, 150, 105, 0.24);
    font-size: 31px;
}

.demand-v2-dialog--success h2 {
    margin: 0;
    color: var(--demand-v2-text);
    font-size: 22px;
}

.demand-v2-dialog--success p {
    margin: 10px 0 24px;
    color: var(--demand-v2-text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* Layui 相关弹窗统一视觉 */
.layui-layer.demand-promotion-layer,
.layui-layer.bid-selection-layer,
.layui-layer.bid-profile-layer,
.layui-layer.bid-hire-confirm-layer {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px !important;
    box-shadow: 0 28px 82px rgba(15, 23, 42, 0.24) !important;
}

.layui-layer.demand-promotion-layer .layui-layer-content,
.layui-layer.bid-selection-layer .layui-layer-content {
    border-radius: 18px;
}

.layui-layer.bid-profile-layer .layui-layer-title,
.layui-layer.bid-hire-confirm-layer .layui-layer-title {
    height: 54px;
    border-color: #e2e8f0;
    color: var(--demand-v2-text);
    background: #f8fafc;
    font-size: 16px;
    font-weight: 700;
    line-height: 54px;
}

.layui-layer.bid-hire-confirm-layer .layui-layer-btn .layui-layer-btn0 {
    border-color: var(--demand-v2-primary);
    border-radius: 8px;
    background: var(--demand-v2-primary);
}

.bid-selection-layer .bid-selection-dialog {
    color: var(--demand-v2-text);
}

.bid-selection-layer .bid-selection-dialog__header {
    border-color: #e2e8f0;
    background: linear-gradient(120deg, #eff6ff, #fff);
}

.bid-selection-layer .bid-candidate {
    border-color: #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.bid-selection-layer .bid-candidate__hire,
.bid-selection-layer .bid-candidate__profile {
    border-radius: 8px;
}

@media (max-width: 1080px) {
    .demand-detail-v2-page .demand-v2-meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .demand-detail-v2-page .demand-v2-participants {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .demand-detail-v2-page .demand-v2-shell {
        width: min(100% - 32px, 760px);
    }

    .demand-detail-v2-page .demand-v2-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .demand-detail-v2-page .demand-v2-sidebar {
        position: static;
        grid-row: 1;
    }

    .demand-detail-v2-page .demand-v2-publisher {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 220px;
        gap: 0 24px;
        align-items: center;
    }

    .demand-detail-v2-page .demand-v2-publisher > .demand-v2-eyebrow {
        grid-column: 1 / -1;
    }

    .demand-detail-v2-page .demand-v2-publisher__profile {
        padding-bottom: 0;
    }

    .demand-detail-v2-page .demand-v2-publisher__stats {
        border-top: 0;
    }

    .demand-detail-v2-page .demand-v2-publisher__guarantee {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .demand-detail-v2-page .demand-v2-shell {
        width: min(100% - 24px, 620px);
        padding: 38px 0 44px;
    }

    .demand-detail-v2-page .demand-v2-breadcrumb {
        margin-bottom: 14px;
        font-size: 12px;
    }

    .demand-detail-v2-page .demand-v2-breadcrumb > span:not(.demand-v2-breadcrumb__current) {
        margin: 0 6px;
    }

    .demand-detail-v2-page .demand-v2-main,
    .demand-detail-v2-page .demand-v2-layout {
        gap: 14px;
    }

    .demand-detail-v2-page .demand-v2-summary,
    .demand-detail-v2-page .demand-v2-section,
    .demand-detail-v2-page .participation-stats,
    .demand-detail-v2-page .demand-v2-bid-actions-card,
    .demand-detail-v2-page .demand-v2-progress,
    .demand-detail-v2-page .demand-v2-audit,
    .demand-detail-v2-page .demand-v2-publisher {
        padding: 20px;
    }

    .demand-detail-v2-page .demand-v2-summary__header {
        flex-direction: column;
        gap: 14px;
    }

    .demand-detail-v2-page .demand-v2-status-group {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .demand-detail-v2-page .demand-v2-status {
        text-align: left;
    }

    .demand-detail-v2-page .demand-v2-summary-detail {
        margin-top: 22px;
        padding-top: 22px;
    }

    .demand-detail-v2-page .demand-v2-commission {
        gap: 14px 24px;
    }

    .demand-detail-v2-page .demand-v2-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .demand-detail-v2-page .demand-v2-attachment {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .demand-detail-v2-page .demand-v2-attachment button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .demand-detail-v2-page .demand-v2-participants {
        grid-template-columns: minmax(0, 1fr);
    }

    .demand-detail-v2-page .demand-v2-bid-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .demand-detail-v2-page .demand-v2-bid-actions__buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .demand-detail-v2-page .demand-v2-bid-actions__buttons .select-bid-btn {
        min-width: 0;
        width: 100%;
    }

    .demand-detail-v2-page .demand-v2-publisher {
        display: block;
    }

    .demand-detail-v2-page .demand-v2-publisher__profile {
        padding-bottom: 18px;
    }

    .demand-detail-v2-page .demand-v2-publisher__stats {
        border-top: 1px solid rgba(148, 163, 184, 0.18);
    }

    .demand-detail-v2-page .publicity-countdown-time {
        padding: 15px 8px;
    }

    .demand-detail-v2-page .time-item {
        min-width: 54px;
    }

    .demand-detail-v2-page .time-number {
        min-width: 38px;
        font-size: 28px;
    }

    .demand-detail-v2-page .time-separator {
        margin-right: 3px;
        margin-left: 3px;
        font-size: 22px;
    }

    .demand-v2-modal {
        align-items: end;
        padding: 10px;
    }

    .demand-v2-dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
        border-radius: 18px;
    }

    .demand-v2-dialog__header,
    .demand-v2-dialog__body,
    .demand-v2-dialog__footer {
        padding-right: 18px;
        padding-left: 18px;
    }

    .demand-v2-dialog__footer--between {
        align-items: stretch;
        flex-direction: column;
    }

    .demand-v2-dialog__footer--between > span {
        text-align: center;
    }

    .demand-v2-bid-parties {
        grid-template-columns: minmax(0, 1fr);
    }

    .demand-v2-bid-overview,
    .demand-v2-bid-quote {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 375px) {
    .demand-detail-v2-page .demand-v2-shell {
        width: calc(100% - 16px);
        padding-top: 8px;
    }

    .demand-detail-v2-page .demand-v2-summary,
    .demand-detail-v2-page .demand-v2-section,
    .demand-detail-v2-page .participation-stats,
    .demand-detail-v2-page .demand-v2-bid-actions-card,
    .demand-detail-v2-page .demand-v2-progress,
    .demand-detail-v2-page .demand-v2-audit,
    .demand-detail-v2-page .demand-v2-publisher {
        padding: 17px;
        border-radius: 14px;
    }

    .demand-detail-v2-page .demand-v2-meta {
        grid-template-columns: minmax(0, 1fr);
    }

    .demand-detail-v2-page .demand-v2-summary h1 {
        font-size: 22px;
    }

    .demand-detail-v2-page .demand-v2-commission strong {
        font-size: 22px;
    }

    .demand-detail-v2-page .publicity-countdown-container {
        padding: 17px 10px;
    }

    .demand-detail-v2-page .demand-v2-bid-actions__buttons {
        grid-template-columns: minmax(0, 1fr);
    }

    .demand-detail-v2-page .time-item {
        min-width: 46px;
    }

    .demand-detail-v2-page .time-number {
        font-size: 24px;
    }

    .demand-detail-v2-page .time-label {
        font-size: 10px;
    }

    .demand-v2-dialog__title-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .demand-v2-dialog__title h2 {
        font-size: 17px;
    }

    .demand-v2-dialog__title p {
        display: none;
    }

    .demand-v2-bid-brief dl,
    .demand-v2-bid-overview,
    .demand-v2-bid-quote {
        grid-template-columns: minmax(0, 1fr);
    }

    .demand-v2-dialog__footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .demand-v2-dialog__footer--between {
        display: flex;
    }

    .demand-v2-button {
        min-width: 0;
        width: 100%;
        padding: 0 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .demand-detail-v2-page *,
    .demand-detail-v2-page *::before,
    .demand-detail-v2-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
