/* 社媒推流 — 任务发布方市场 + 公开落地页 */

body.social-traffic-page .dashboard-layout,
body.social-traffic-order-page .dashboard-layout,
body.pub-social-page .dashboard-layout {
    display: block;
}

body.social-traffic-page .dashboard-main,
body.social-traffic-order-page .dashboard-main,
body.pub-social-page .dashboard-main {
    margin-left: 280px;
    width: calc(100% - 280px);
    background: #eef1f6;
}

body.social-traffic-page .dashboard-header,
body.social-traffic-order-page .dashboard-header,
body.pub-social-page .dashboard-header {
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    z-index: 250;
    background: #fff;
    justify-content: flex-end;
    min-height: 56px;
}

.st-content {
    padding: 76px 24px 90px;
    max-width: 1200px;
    margin: 0 auto;
}

.st-breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 14px;
    color: #64748b;
}

.st-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.st-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 45%, #7c3aed 100%);
    color: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.st-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12), transparent 45%);
    pointer-events: none;
}

.st-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.st-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.st-hero h1 {
    font-size: 1.75rem;
    margin: 0 0 12px;
    font-weight: 700;
}

.st-hero p {
    margin: 0;
    opacity: 0.92;
    line-height: 1.6;
    font-size: 0.95rem;
}

.st-platform-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.st-platform-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.14);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.st-filter-bar {
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    align-items: end;
}

.st-filter-bar label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}

.st-filter-bar .form-control {
    width: 100%;
    font-size: 0.875rem;
}

.st-filter-actions {
    display: flex;
    gap: 8px;
}

.st-results-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: #64748b;
}

.st-table-wrap {
    background: #fff;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.st-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.st-table th,
.st-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

/* 覆盖 style.css 全局 td { color: var(--text-primary) }（浅色字在白底表格上不可见） */
.st-table td {
    color: #334155;
}

.st-table td strong {
    color: #0f172a;
    font-weight: 700;
}

.st-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.st-table tr:hover td {
    background: #f8fafc;
}

.st-creator-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}

.st-platform-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-size: 1rem;
}

.st-creator-name {
    font-weight: 600;
    color: #0f172a;
}

.st-creator-handle {
    font-size: 0.8rem;
    color: #64748b;
}

.st-badge-verified {
    display: inline-block;
    font-size: 0.7rem;
    background: #dcfce7;
    color: #166534;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

.st-btn-order {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.st-btn-order:hover {
    background: #1d4ed8;
}

.st-faq {
    margin-top: 32px;
    background: #fff;
    border-radius: 12px;
    padding: 20px 22px;
}

.st-faq h2 {
    font-size: 1.1rem;
    margin: 0 0 16px;
}

.st-faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
}

.st-faq-item:last-child {
    border-bottom: none;
}

.st-faq-q {
    font-weight: 600;
    margin-bottom: 6px;
    color: #0f172a;
}

.st-faq-a {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.55;
}

/* 下单页 */
.st-order-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 992px) {
    body.social-traffic-page .dashboard-main,
    body.social-traffic-order-page .dashboard-main,
    body.pub-social-page .dashboard-main {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.social-traffic-page .dashboard-header,
    body.social-traffic-order-page .dashboard-header,
    body.pub-social-page .dashboard-header {
        left: 0 !important;
        right: 0 !important;
        justify-content: space-between !important;
    }

    .st-content {
        padding: 76px 16px calc(100px + env(safe-area-inset-bottom, 0px));
        max-width: 100%;
    }

    .st-hero {
        padding: 22px 16px;
    }

    .st-order-grid {
        grid-template-columns: 1fr;
    }
}

.st-order-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.st-order-card h2 {
    font-size: 1.05rem;
    margin: 0 0 16px;
}

.st-field {
    margin-bottom: 16px;
}

.st-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}

.st-delivery-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px 12px;
}

.st-platform-checkbox-root {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.st-platform-category-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.st-platform-category-grid {
    margin-bottom: 4px;
}

.st-delivery-type-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    color: #334155;
    cursor: pointer;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    margin: 0;
}

.st-delivery-type-option:hover {
    border-color: #93c5fd;
    background: #fff;
}

.st-delivery-type-option input {
    margin-top: 3px;
    flex-shrink: 0;
}

.st-delivery-type-option:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
}

.st-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.875rem;
    border-bottom: 1px dashed #e2e8f0;
}

.st-price-breakdown {
    list-style: none;
    margin: 0 0 12px;
    padding: 0 0 12px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.45;
}

.st-price-breakdown li {
    margin-bottom: 6px;
}

.st-price-breakdown strong {
    color: #334155;
    font-weight: 600;
}

.st-summary-total {
    font-weight: 700;
    font-size: 1.1rem;
    color: #0f172a;
    padding-top: 12px;
}

.st-submit-btn {
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.st-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 网站出售商 — 社媒账号 */
.st-channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.st-channel-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #e2e8f0;
}

.st-channel-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.st-channel-meta {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.5;
}

.st-channel-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.st-channel-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.st-channel-form-card.st-channel-form-editing {
    box-shadow: 0 0 0 2px #2563eb;
}

.st-empty {
    text-align: center;
    padding: 48px 24px;
    color: #64748b;
}

/* 公开落地页 */
.st-public-hero {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
}

.st-public-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.st-public-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 22px;
}

.st-public-card i {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #a78bfa;
}

/* 推流需求发布 / 接单 */
.st-hero--compact {
    padding: 28px 24px;
    margin-bottom: 20px;
}

.st-hero--compact h1 {
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.st-rfq-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.st-rfq-tab {
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    color: #475569;
    cursor: pointer;
}

.st-rfq-tab.active {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.st-rfq-budget-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.st-rfq-budget-row .form-control {
    flex: 1;
}

.st-rfq-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
}

.st-rfq-card h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    color: #0f172a;
}

.st-rfq-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.st-rfq-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.st-rfq-status {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    vertical-align: middle;
}

.st-rfq-status--open { background: #dcfce7; color: #166534; }
.st-rfq-status--awarded { background: #dbeafe; color: #1d4ed8; }
.st-rfq-status--cancelled { background: #f1f5f9; color: #64748b; }

.st-rfq-market-list {
    margin-top: 16px;
}

.st-rfq-bid-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
}

.st-rfq-bid-row:last-child {
    border-bottom: none;
}

.st-rfq-bid-price {
    text-align: right;
    font-weight: 700;
    color: #0f172a;
    flex-shrink: 0;
}

.st-rfq-my-bid {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #2563eb;
    font-weight: 600;
}

.st-rfq-modal {
    max-width: 520px;
    width: 94%;
}

body.social-rfq-page .st-table td,
body.pub-social-rfq-page .st-rfq-card {
    color: #334155;
}

.st-procurement-hints {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.st-procurement-card {
    display: block;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #93c5fd;
    background: #eff6ff;
    color: #1e3a5f;
    text-decoration: none;
}

.st-procurement-card strong {
    display: block;
    margin-bottom: 4px;
}

.st-procurement-card span {
    font-size: 0.8rem;
    color: #475569;
}

.st-procurement-card--muted {
    border-color: #e2e8f0;
    background: #fff;
}

.st-metrics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    margin: 10px 0;
}

.st-metrics-table th,
.st-metrics-table td {
    border: 1px solid #e2e8f0;
    padding: 8px 10px;
    text-align: left;
}

.st-metrics-table th {
    background: #f8fafc;
    font-weight: 600;
}

.st-delivery-report {
    margin-top: 12px;
}

.st-rfq-accept-error {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.875rem;
    line-height: 1.45;
}

.app-toast-alert {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10050;
    max-width: min(520px, 92vw);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.st-delivery-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 12px 0;
}

.st-delivery-metrics-grid label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8125rem;
}

#stDeliveryForm label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.8125rem;
}

#stDeliveryForm .form-control {
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
}

.st-order-checklist {
    margin: 0;
    padding-left: 18px;
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.55;
}

.st-rfq-market-filters {
    margin-bottom: 16px;
}
