﻿:root {
    --brand-blue: #0052d9;
    --brand-blue-hover: #003cab;
    --brand-blue-light: #eef5ff;
    --brand-blue-border: #bfdbfe;
    --tech-gray-dark: #1e293b;
    --tech-gray-muted: #64748b;
    --tech-border: #e2e8f0;
    --tech-border-light: #f1f5f9;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 25px -5px rgba(0, 82, 217, 0.1), 0 8px 10px -6px rgba(0, 82, 217, 0.05);
    --shadow-pop: 0 20px 25px -5px rgba(15, 23, 42, 0.15), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
    --max-w: 1720px;
    --page-gutter: 48px;
}
@media screen and (min-width: 1400px) {
    :root {
        --page-gutter: 64px;
    }
}
@media screen and (min-width: 1920px) {
    :root {
        --page-gutter: 120px;
    }
}
@media screen and (max-width: 768px) {
    :root {
        --page-gutter: 24px;
    }
}
@media screen and (max-width: 600px) {
    :root {
        --page-gutter: 16px;
    }
}

.mr-page-wrapper {
    min-height: 100vh;
    padding-bottom: 120px;
    background: #f4f6fa;
    color: var(--tech-gray-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ========================================================
   1:1 首页风格 Hero 大图通栏 (.tpm-portal-hero-media)
   ======================================================== */
.tpm-portal-hero-media {
    position: relative;
    width: 100%;
    min-height: 380px;
    background-color: #0b1528;
    background-image: linear-gradient(90deg, rgba(8, 16, 33, 0.95) 0%, rgba(11, 21, 40, 0.85) 45%, rgba(13, 27, 54, 0.4) 100%), url("/assets/images/hero/hero-bg-media.jpg");
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}
.tpm-portal-hero-media__inner {
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    padding: 56px var(--page-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}
@media screen and (min-width: 1920px) {
    .tpm-portal-hero-media__inner {
        padding: 72px var(--page-gutter);
    }
}
@media screen and (max-width: 768px) {
    .tpm-portal-hero-media__inner {
        padding: 40px var(--page-gutter);
    }
}
@media screen and (max-width: 600px) {
    .tpm-portal-hero-media__inner {
        padding: 32px var(--page-gutter);
    }
}
.tpm-portal-hero-media__left {
    max-width: 780px;
}
.tpm-portal-hero-media__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(0, 82, 217, 0.25);
    border: 1px solid rgba(147, 197, 253, 0.35);
    color: #93c5fd;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}
.tpm-portal-hero-media__title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.tpm-portal-hero-media__title .linear {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 50%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.tpm-portal-hero-media__desc {
    font-size: 15px;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 28px;
    max-width: 680px;
}
.tpm-portal-hero-media__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.tpm-portal-hero__item-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 28px;
    background: #0052d9;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 4px 14px rgba(0, 82, 217, 0.35);
    box-sizing: border-box;
}
.tpm-portal-hero__item-btn:hover {
    background: #003cab;
    box-shadow: 0 6px 20px rgba(0, 82, 217, 0.5);
    transform: translateY(-1px);
}
.tpm-portal-hero__item-btn-icon {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid #ffffff;
    margin-left: 8px;
}
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}
.btn-hero-secondary i {
    color: #60a5fa !important;
    font-size: 14px;
    transition: transform 0.2s ease;
}
.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.btn-hero-secondary:hover i {
    transform: scale(1.1);
}
.btn-hero-secondary:active {
    transform: translateY(0);
}

/* ========================================================
   1:1 首页风格 快捷活动/产品入口栏 (.tpm-portal-entry)
   ======================================================== */
.tpm-portal-entry {
    background: #ffffff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 20;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
}
.tpm-portal-entry__inner {
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--page-gutter);
    display: flex;
    align-items: stretch;
    min-height: 84px;
    box-sizing: border-box;
}
.tpm-portal-entry__item {
    height: auto;
    width: 0;
    flex-grow: 1;
    position: relative;
    padding: 18px 32px 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    transition: box-shadow 0.3s ease-in-out, background-color 0.3s ease-in-out;
    background: #ffffff;
    box-sizing: border-box;
}
.tpm-portal-entry__item:hover {
    z-index: 2;
    box-shadow: 0 4px 32px 0 rgba(16, 52, 113, 0.1);
}
.tpm-portal-entry__item + .tpm-portal-entry__item:before {
    content: "";
    width: 1px;
    height: calc(100% - 40px);
    background: #eee;
    position: absolute;
    left: 0;
    top: 20px;
}
.tpm-portal-entry__item:hover:before,
.tpm-portal-entry__item:hover + .tpm-portal-entry__item:before {
    display: none;
}
.tpm-portal-entry__tag {
    color: rgba(0, 0, 0, 0.5);
    font-size: 12px;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.tpm-portal-entry__title p:first-child {
    font-size: 15px;
    font-weight: 600;
    color: #171d25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tpm-portal-entry__title p:nth-child(2) {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.55);
    font-weight: 400;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tpm-portal-entry__item:hover .tpm-portal-entry__title p:first-child {
    color: #0052d9;
}
.tpm-portal-entry__arrow {
    width: 16px;
    height: 16px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.tpm-portal-entry__arrow:before,
.tpm-portal-entry__arrow:after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease-in-out;
}
.tpm-portal-entry__arrow:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M6.17574 4.17574C6.41005 3.94142 6.78908 3.94142 7.02339 4.17574L10.5244 7.67574C10.7587 7.91005 10.7587 8.29005 10.5244 8.52437L7.02339 12.0253C6.78914 12.2593 6.40999 12.2593 6.17574 12.0253C5.94142 11.791 5.94142 11.411 6.17574 11.1767L9.25093 8.09956L6.17574 5.02339C5.94142 4.78908 5.94142 4.41005 6.17574 4.17574Z' fill='black' fill-opacity='0.4'/%3E%3C/svg%3E");
}
.tpm-portal-entry__arrow:after {
    opacity: 0;
    transform: translateX(-4px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M9.17574 4.17574C9.41005 3.94142 9.78908 3.94142 10.0234 4.17574L13.5244 7.67574C13.7587 7.91005 13.7587 8.29005 13.5244 8.52437L10.0234 12.0253C9.78914 12.2593 9.40999 12.2593 9.17574 12.0253C8.94142 11.791 8.94142 11.411 9.17574 11.1767L12.2509 8.09956L9.17574 5.02339C8.94142 4.78908 8.94142 4.41005 9.17574 4.17574Z' fill='%230052D9'/%3E%3Cpath d='M12.5 8H3' stroke='%230052D9' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
}
.tpm-portal-entry__item:hover .tpm-portal-entry__arrow:before {
    opacity: 0;
    transform: translateX(4px);
}
.tpm-portal-entry__item:hover .tpm-portal-entry__arrow:after {
    opacity: 1;
    transform: translateX(0);
}
.tpm-portal-entry__event {
    width: 0;
    flex-grow: 1.35;
    position: relative;
    margin: 10px 0 10px 16px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f6ff 0%, #e6efff 100%) !important;
    border: 1px solid #cce1ff;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 82, 217, 0.05);
    box-sizing: border-box;
}
.tpm-portal-entry__event:hover {
    z-index: 2;
    border-color: #0052d9;
    background: linear-gradient(135deg, #e8f2ff 0%, #dbeafe 100%) !important;
    box-shadow: 0 6px 20px rgba(0, 82, 217, 0.15);
    transform: translateY(-1px);
}
.tpm-portal-entry__event:before,
.tpm-portal-entry__item + .tpm-portal-entry__event:before {
    display: none !important;
}
.tpm-portal-entry__event-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}
.tpm-portal-entry__event-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 22px;
}
.tpm-portal-entry__event-brand-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.2px;
    line-height: 22px;
}
.tpm-portal-entry__event-brand-badge {
    font-size: 11px;
    font-weight: 600;
    color: #0052d9;
    background: #dbeafe;
    padding: 1px 7px;
    border-radius: var(--radius-xs);
    line-height: 16px;
}
.tpm-portal-entry__event-desc {
    margin-top: 6px;
    color: #334155;
    max-width: 100%;
    font-weight: 500;
    font-size: 12.5px;
    line-height: 20px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.tpm-portal-entry__event-desc-btn {
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #0052d9;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    padding: 2px 10px;
    border-radius: 4px;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 2px 6px rgba(0, 82, 217, 0.25);
}
.tpm-portal-entry__event:hover .tpm-portal-entry__event-desc-btn {
    background: #003cab;
    box-shadow: 0 3px 10px rgba(0, 82, 217, 0.4);
}

/* ================= 容器与整体布局 ================= */
.mr-main-container,
.layout-container {
    max-width: var(--max-w);
    margin: 24px auto 0 auto;
    padding: 0 var(--page-gutter);
    box-sizing: border-box;
    width: 100%;
}
.mr-content-area {
    width: 100%;
    box-sizing: border-box;
}

/* ================= 多维智能筛选中枢 (Smart Filter Dock) ================= */
.filter-dock-panel,
#media-results-area,
.mr-procurement-results {
    scroll-margin-top: 80px;
}
.filter-dock-panel {
    background: #ffffff;
    border: 1px solid var(--tech-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
    overflow: hidden;
}

/* 顶部一级分类切换 Tab：按媒体平台划分 (带左右滑动与模式切换) */
.filter-primary-tabs-nav-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: #fafbfc;
    border-bottom: 1px solid var(--tech-border);
    padding: 0;
    user-select: none;
}
.filter-tabs-track-wrapper {
    position: relative;
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 48px;
}
.filter-primary-tabs {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding: 0 8px;
    gap: 4px;
    width: 100%;
    cursor: default;
}
.filter-primary-tabs::-webkit-scrollbar {
    display: none;
}
.filter-primary-tabs.is-dragging {
    cursor: grabbing !important;
    user-select: none;
    scroll-behavior: auto;
}
.filter-primary-tabs.mode-wrap {
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 8px;
    overflow-x: visible;
}

/* 滑动指示与触发按钮 */
.tab-scroll-btn {
    width: 34px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #475569;
    border: none;
    border-right: 1px solid var(--tech-border);
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    font-size: 13px;
    flex-shrink: 0;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.03);
}
.tab-scroll-btn.btn-right {
    border-right: none;
    border-left: 1px solid var(--tech-border);
    box-shadow: -2px 0 6px rgba(0, 0, 0, 0.03);
}
.tab-scroll-btn:hover {
    color: var(--brand-blue);
    background: #f0f6ff;
}
.tab-scroll-btn.is-disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
    background: #fafbfc;
}

/* 渐变遮罩边缘（提示内容可横向滑动） */
.tab-fade-mask {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 32px;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.25s;
    opacity: 0;
}
.tab-fade-mask.left {
    left: 0;
    background: linear-gradient(90deg, #fafbfc 30%, rgba(250, 251, 252, 0) 100%);
}
.tab-fade-mask.right {
    right: 0;
    background: linear-gradient(-90deg, #fafbfc 30%, rgba(250, 251, 252, 0) 100%);
}
.tab-fade-mask.visible {
    opacity: 1;
}

/* Tab 按钮样式优化（杜绝文字裁切与基线压迫） */
.primary-tab-btn {
    position: relative;
    padding: 13px 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--tech-gray-dark);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s;
    flex-shrink: 0;
    border-radius: var(--radius-xs) var(--radius-xs) 0 0;
    line-height: 22px;
    user-select: none;
}
.primary-tab-btn i {
    font-size: 13px;
    opacity: 0.75;
    transition: transform 0.2s, opacity 0.2s;
}
.primary-tab-btn:hover {
    color: var(--brand-blue);
    background: rgba(0, 82, 217, 0.04);
}
.primary-tab-btn:hover i {
    transform: scale(1.1);
    opacity: 1;
}
.primary-tab-btn.active {
    color: var(--brand-blue);
    font-weight: 600;
    background: #ffffff;
}
.primary-tab-btn::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 2.5px;
    border-radius: 2px 2px 0 0;
    background: transparent;
    transition: all 0.2s ease;
}
.primary-tab-btn.active::after {
    background: var(--brand-blue);
}
.primary-tab-btn .tab-count {
    font-size: 11px;
    background: #eef2f6;
    color: #64748b;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 500;
    line-height: 16px;
    transition: all 0.2s;
}
.primary-tab-btn.active .tab-count {
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    font-weight: 600;
}

/* 右侧人性化工具条：平铺/滑动模式切换 */
.tab-actions-right {
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-left: 1px solid var(--tech-border);
    height: 48px;
    background: #fafbfc;
    flex-shrink: 0;
    gap: 8px;
}
.btn-tab-wrap-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #64748b;
    background: #ffffff;
    border: 1px solid var(--tech-border);
    padding: 5px 10px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    user-select: none;
}
.btn-tab-wrap-toggle:hover {
    color: var(--brand-blue);
    border-color: var(--brand-blue);
    background: #f0f6ff;
}

/* 过滤中枢主体 */
.filter-dock-body {
    padding: 16px 20px;
}
.filter-search-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.search-main-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}
.search-main-input-wrap i {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 14px;
}
.search-main-input {
    width: 100%;
    height: 40px;
    padding: 0 16px 0 40px;
    border: 1px solid var(--tech-border);
    border-radius: var(--radius-sm);
    background: #f8fafc;
    font-size: 13px;
    color: #0f172a;
    outline: none;
    transition: all 0.2s;
}
.search-main-input:focus {
    background: #fff;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.12);
}
.search-quick-tags {
    position: absolute;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.quick-tag-chip {
    font-size: 11px;
    color: #64748b;
    background: #fff;
    border: 1px solid var(--tech-border);
    padding: 2px 8px;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}
.quick-tag-chip:hover {
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}

/* 过滤行 */
.filter-row {
    display: flex;
    align-items: flex-start;
    padding: 7px 0;
    border-top: 1px dashed #f1f5f9;
}
.filter-row:first-of-type {
    border-top: none;
    padding-top: 0;
}
.filter-row.secondary-row {
    background: #f8fbff;
    border: 1px solid #e0eeff;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin: 4px 0 8px 0;
}
.filter-label {
    width: 96px;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    padding-top: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.filter-options {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}
.opt-pill {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    color: #475569;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
    background: transparent;
    border: 1px solid transparent;
}
.opt-pill:hover {
    color: var(--brand-blue);
    background: #f0f6ff;
}
.opt-pill.active {
    background: var(--brand-blue);
    color: #ffffff;
    font-weight: 600;
}
.opt-pill.sub-active {
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
}

/* 自定义价格输入框 */
.custom-price-inputs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}
.custom-price-input {
    width: 68px;
    height: 26px;
    padding: 0 6px;
    border: 1px solid var(--tech-border);
    border-radius: var(--radius-xs);
    font-size: 12px;
    outline: none;
    color: #0f172a;
}
.custom-price-input:focus {
    border-color: var(--brand-blue);
}
.btn-apply-price {
    background: #ffffff;
    border: 1px solid var(--tech-border);
    color: #475569;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    cursor: pointer;
}
.btn-apply-price:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

/* 高级筛选区 */
.advanced-filters-block {
    display: none;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--tech-border);
    animation: fadeIn 0.2s ease-in-out;
}
.advanced-filters-block.open {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 过滤中枢底部 */
.filter-dock-footer {
    background: #f8fafc;
    border-top: 1px solid var(--tech-border);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.active-chips-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.active-chips-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}
.chip-badge {
    background: #ffffff;
    border: 1px solid var(--brand-blue-border);
    color: var(--brand-blue);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.chip-badge a {
    color: inherit;
    opacity: 0.7;
    text-decoration: none;
}
.chip-badge a:hover {
    opacity: 1;
}
.btn-clear-all {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: none;
    cursor: pointer;
    margin-left: 6px;
    transition: color 0.2s;
}
.btn-clear-all:hover {
    color: var(--color-danger);
}
.btn-toggle-advanced {
    font-size: 12px;
    color: var(--brand-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    user-select: none;
}

/* ================= 列表工具栏与双视图切换 ================= */
.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 4px;
}
.toolbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.results-count {
    font-size: 14px;
    color: #334155;
}
.results-count b {
    color: var(--brand-blue);
    font-weight: 700;
}
.sort-segmented {
    display: flex;
    align-items: center;
    background: #e2e8f0;
    padding: 2px;
    border-radius: var(--radius-sm);
    gap: 2px;
}
.sort-btn {
    font-size: 12px;
    padding: 4px 10px;
    color: #475569;
    text-decoration: none;
    cursor: pointer;
    border-radius: var(--radius-xs);
    transition: all 0.2s;
    user-select: none;
}
.sort-btn.active {
    background: #ffffff;
    color: var(--brand-blue);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.view-switch {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--tech-border);
    border-radius: var(--radius-sm);
    padding: 2px;
    user-select: none;
}
.view-btn {
    padding: 5px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    border-radius: var(--radius-xs);
    transition: all 0.15s;
    font-weight: 500;
}
.view-btn:hover {
    color: var(--brand-blue);
}
.view-btn.active {
    background: var(--brand-blue);
    color: #ffffff;
    font-weight: 600;
}

/* ================= 视图模式 1：专业对比表格 ================= */
.table-responsive {
    background: #ffffff;
    border: 1px solid var(--tech-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.modern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.modern-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--tech-border);
    white-space: nowrap;
}
.modern-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}
.modern-table tr:hover td {
    background: #f8fbff;
}
.modern-table tr.selected td {
    background: #eff6ff;
}
.select-col {
    width: 44px;
    text-align: center !important;
}

/* 媒体名称与单元格内容 */
.media-cell-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}
.media-avatar-box {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    border: 1px solid var(--tech-border);
    background: #f8fafc;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.media-avatar-favicon {
    display: none;
    position: relative;
    z-index: 2;
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.media-avatar-box .media-avatar-char,
.card-avatar-box .card-avatar-char {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0;
    z-index: 1;
}
.media-avatar-char {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    border: 1px solid var(--tech-border);
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    color: #ffffff;
    flex-shrink: 0;
}
.avatar-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.avatar-emerald { background: linear-gradient(135deg, #10b981, #047857); }
.avatar-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.avatar-amber { background: linear-gradient(135deg, #f59e0b, #b45309); }
.avatar-indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }

.media-name-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4;
}
.media-name-title:hover {
    color: var(--brand-blue);
}
.badge-carrier,
.platform-badge {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 600;
}
.case-badge-pill {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.case-badge-pill:hover {
    background: #d1fae5;
}

.channel-dual-badges {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: flex-start;
}
.badge-primary-cat {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
}
.badge-secondary-cat {
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 1px 5px;
    border-radius: 2px;
}

.price-val {
    font-size: 15px;
    font-weight: 800;
    color: #d97706;
}
.weight-pill {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}
.weight-pill.pc, .weight-pill.weight-pc {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}
.weight-pill.mobile, .weight-pill.weight-mobile {
    background: #fdf2f8;
    color: #db2777;
    border: 1px solid #fce7f3;
}

.f-badge, .f-tag {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
}
.f-news-source, .f-tag-news { background: #fff7ed; color: #c2410c; border: 1px solid #ffedd5; font-weight: 600; }
.f-blue { background: #ecfdf5; color: #047857; border: 1px solid #d1fae5; }
.f-ai { background: #f5f3ff; color: #6d28d9; border: 1px solid #ede9fe; }

.table-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.btn-table-preview {
    background: #ffffff;
    border: 1px solid var(--tech-border);
    color: #475569;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.15s;
}
.btn-table-preview:hover {
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}
.btn-table-cart {
    background: var(--brand-blue);
    color: #ffffff;
    border: 1px solid var(--brand-blue);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.15s;
}
.btn-table-cart:hover {
    background: var(--brand-blue-hover);
}
.btn-table-cart.in-cart {
    background: var(--color-success);
    border-color: var(--color-success);
}

/* 卡片模式无缝切换与防闪烁 */
html.media-view-is-card #media-results-container {
    display: none !important;
}
html.media-view-is-card #media-cards-grid {
    display: grid !important;
}
html.media-view-is-card #card-batch-select-wrap {
    display: inline-flex !important;
}
html.media-view-is-card #view-btn-card {
    background: #ffffff !important;
    color: var(--brand-blue) !important;
    box-shadow: var(--shadow-sm) !important;
}
html.media-view-is-card #view-btn-table {
    background: transparent !important;
    color: var(--tech-gray-muted) !important;
    box-shadow: none !important;
}

/* ================= 视图模式 2：视觉卡片矩阵 ================= */
.media-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.media-card {
    background: #ffffff;
    border: 1px solid var(--tech-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.media-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-blue);
    box-shadow: var(--shadow-hover);
}
.media-card.selected {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 2px var(--brand-blue), 0 8px 24px rgba(0, 82, 217, 0.12);
}
.media-card-top-bar {
    height: 3px;
    background: #e2e8f0;
    width: 100%;
}
.media-card.level-central .media-card-top-bar { background: linear-gradient(90deg, #ef4444, #f97316); }
.media-card.level-portal .media-card-top-bar { background: linear-gradient(90deg, #2563eb, #38bdf8); }
.media-card.level-provincial .media-card-top-bar { background: linear-gradient(90deg, #10b981, #34d399); }
.media-card.level-industry .media-card-top-bar { background: linear-gradient(90deg, #8b5cf6, #c084fc); }
.media-card.level-default .media-card-top-bar { background: linear-gradient(90deg, #0052d9, #60a5fa); }

.media-card-body {
    padding: 16px 18px 14px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.media-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
}
.media-card-brand-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.card-avatar-img {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: #ffffff;
    border: 1px solid var(--tech-border);
    flex-shrink: 0;
    cursor: pointer;
}
.card-avatar-box {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    position: relative;
    flex-shrink: 0;
    border: 1px solid var(--tech-border);
    overflow: hidden;
    background: #fafbfc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.card-avatar-char {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
    cursor: pointer;
}
.media-card-title-col {
    flex: 1;
    min-width: 0;
}
.media-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
}
.media-name:hover {
    color: var(--brand-blue);
}
.media-card-meta {
    font-size: 11px;
    color: #64748b;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    white-space: nowrap;
}
.media-card-meta .badge-carrier {
    font-size: 10.5px;
    font-weight: 600;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 3px;
    padding: 0 5px;
    line-height: 16px;
}
.media-card-top-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}
.card-select-cb {
    cursor: pointer;
    display: flex;
    align-items: center;
}
.media-card-top-actions .weight-pill-group {
    display: flex;
    align-items: center;
    gap: 4px;
}
.media-card-top-actions .weight-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    line-height: 14px;
}
.media-card-top-actions .weight-pill.pc {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
.media-card-top-actions .weight-pill.mobile {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.media-summary {
    font-size: 12px;
    color: var(--tech-gray-muted);
    line-height: 1.5;
    margin: 4px 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}
.media-tags-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
    min-height: 24px;
}
.media-tag-chip {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 3px;
    background: #f1f5f9;
    color: #475569;
    display: inline-flex;
    align-items: center;
    line-height: 16px;
}
.media-tag-chip.adv {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-weight: 600;
}
.media-tag-chip.news-src {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #ffedd5;
    font-weight: 600;
}
.media-tag-chip.ai {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ede9fe;
    font-weight: 600;
}

.media-metrics-row {
    background: #f8fafc;
    border: 1px solid var(--tech-border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    margin-bottom: 12px;
}
.metric-cell {
    display: flex;
    flex-direction: column;
}
.metric-cell .val {
    font-size: 11.5px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}
.metric-cell .val.green { color: var(--color-success); }
.metric-cell .lbl {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 1px;
}
.metric-divider {
    width: 1px;
    height: 18px;
    background: var(--tech-border);
}

.media-card-footer {
    border-top: 1px solid var(--tech-border-light);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafbfc;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.card-footer-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-card-preview {
    background: #ffffff;
    border: 1px solid var(--tech-border);
    color: #475569;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 500;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
}
.btn-card-preview:hover {
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}
.btn-card-cart {
    background: var(--brand-blue);
    color: #ffffff !important;
    border: 1px solid var(--brand-blue);
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 82, 217, 0.2);
}
.btn-card-cart:hover {
    background: var(--brand-blue-hover);
    border-color: var(--brand-blue-hover);
}
.btn-card-cart.in-cart {
    background: var(--color-success);
    border-color: var(--color-success);
    box-shadow: 0 2px 5px rgba(16, 185, 129, 0.25);
}
.price-box {
    display: flex;
    align-items: baseline;
}
.price-box .currency {
    font-size: 12px;
    color: var(--color-warning);
    font-weight: 700;
}
.price-box .amount {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-warning);
    letter-spacing: -0.5px;
}

/* ================= 分页导航与异步加载状态 ================= */
.resource-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 36px 0 24px;
    margin-top: 24px;
    border-top: 1px solid var(--tech-border);
    user-select: none;
}
.resource-pagination .page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    font-weight: 500;
    color: #475569;
    background: #ffffff;
    border: 1px solid var(--tech-border);
    border-radius: var(--radius-xs);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}
.resource-pagination .page-btn:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: #f0f6ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 82, 217, 0.12);
}
.resource-pagination .page-btn.active,
.resource-pagination .page-btn.is-current {
    background: var(--brand-blue) !important;
    border-color: var(--brand-blue) !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 82, 217, 0.35);
    pointer-events: none;
}
.resource-pagination span.page-btn[aria-hidden="true"] {
    border: none;
    background: transparent;
    box-shadow: none;
    color: #94a3b8;
    cursor: default;
    min-width: 24px;
    padding: 0 4px;
}
.resource-pagination span.page-btn[aria-hidden="true"]:hover {
    background: transparent;
    color: #94a3b8;
    transform: none;
}
.resource-async-status {
    padding: 24px 0;
    text-align: center;
    color: #64748b;
    font-size: 13.5px;
}
.resource-async-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 24px;
    margin: 20px 0;
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: var(--radius-sm);
    color: #b91c1c;
    font-size: 13.5px;
}
.resource-async-retry {
    padding: 6px 14px;
    background: #dc2626;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.resource-async-retry:hover {
    background: #b91c1c;
}

/* ================= 异步无刷新筛选平滑过渡 ================= */
#media-filter-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #0052d9, #38bdf8, #60a5fa);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.8), 0 0 4px #0052d9;
    transition: width 0.25s cubic-bezier(0.1, 0.9, 0.2, 1), opacity 0.2s ease;
    z-index: 100;
    border-radius: 2px;
    pointer-events: none;
    opacity: 0;
}
.filter-dock-panel.is-async-filtering {
    pointer-events: auto;
}
.results-toolbar.is-async-loading,
[data-resource-async-root].is-async-loading,
#media-results-area.is-async-loading,
#media-results-area.is-skeleton-active {
    position: relative;
    pointer-events: none;
}
#media-results-area.is-async-loading .media-cards-grid,
#media-results-area.is-async-loading .table-responsive,
#media-results-area.is-async-loading .media-table-wrap,
#media-results-area.is-async-loading .resource-pagination,
#media-results-area.is-skeleton-active .media-cards-grid,
#media-results-area.is-skeleton-active .table-responsive,
#media-results-area.is-skeleton-active .media-table-wrap,
#media-results-area.is-skeleton-active .resource-pagination,
.is-skeleton-active .media-cards-grid,
.is-skeleton-active .table-responsive,
.is-skeleton-active .media-table-wrap,
.is-skeleton-active .resource-pagination {
    opacity: 0.52;
    filter: grayscale(12%);
    pointer-events: none;
    transition: opacity 0.12s ease-out, filter 0.12s ease-out;
}

.media-skeleton-loader {
    display: none !important;
}

.skeleton-shimmer-bg {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
    background-size: 400% 100%;
    animation: mediaShimmer 1.4s ease infinite;
    border-radius: var(--radius-xs);
}

.skeleton-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 1440px) {
    .skeleton-cards-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 1024px) {
    .skeleton-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 640px) {
    .skeleton-cards-grid { grid-template-columns: 1fr; gap: 10px; }
}

.skeleton-card-item {
    background: #ffffff;
    border: 1px solid var(--tech-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-card);
}
.skeleton-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.skeleton-avatar {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    flex-shrink: 0;
}
.skeleton-title-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.skeleton-line {
    height: 12px;
}
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-50 { width: 50%; }
.skeleton-line.w-100 { width: 100%; }
.skeleton-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.skeleton-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--tech-border-light);
}

.skeleton-table {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--tech-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.skeleton-table-row {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--tech-border-light);
    gap: 16px;
}
.skeleton-table-row:last-child {
    border-bottom: none;
}

/* ================= 浮动发稿胶囊与抽屉 ================= */
.floating-cart-pill {
    position: fixed;
    right: 140px;
    bottom: 30px;
    background: #0f172a;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.4), 0 8px 10px -6px rgba(15, 23, 42, 0.3);
    cursor: pointer;
    z-index: 999;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #334155;
    user-select: none;
}
.floating-cart-pill:hover {
    transform: scale(1.03);
    background: #1e293b;
    border-color: var(--brand-blue);
}
.cart-icon-circle {
    width: 32px;
    height: 32px;
    background: var(--brand-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.cart-badge-count {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--color-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    border: 2px solid #0f172a;
}
.cart-info-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.cart-info-text .line1 {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}
.cart-info-text .line2 {
    font-size: 11px;
    color: #94a3b8;
}
.btn-cart-open {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    cursor: pointer;
}

/* 抽屉 */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.cart-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 440px;
    max-width: 90vw;
    background: #ffffff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer.open {
    transform: translateX(0);
}
.drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--tech-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
}
.drawer-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.drawer-title-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-xs);
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
.drawer-count-badge {
    font-size: 11px;
    font-weight: 600;
    background: var(--brand-blue);
    color: #fff;
    padding: 1px 7px;
    border-radius: 10px;
    line-height: 16px;
}
.drawer-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.drawer-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid transparent;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.15s ease;
}
.drawer-clear-btn:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fecaca;
}
.drawer-close-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    border-radius: var(--radius-xs);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.drawer-close-btn:hover {
    background: #f1f5f9;
    color: #334155;
}
.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8fafc;
}
.drawer-body::-webkit-scrollbar {
    width: 6px;
}
.drawer-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.drawer-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 抽屉内媒体卡片精致化重构 */
.drawer-item,
.drawer-item-card {
    background: #ffffff;
    border: 1px solid var(--tech-border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.drawer-item:hover,
.drawer-item-card:hover {
    border-color: var(--brand-blue-border);
    box-shadow: 0 4px 12px rgba(0, 82, 217, 0.08);
    transform: translateY(-1px);
}
.drawer-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.drawer-item-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.45;
    flex: 1;
    cursor: pointer;
    transition: color 0.15s ease;
    word-break: break-all;
}
.drawer-item-title:hover {
    color: var(--brand-blue);
}
.drawer-item-del-btn {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-xs);
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: all 0.15s ease;
}
.drawer-item-del-btn:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fecaca;
}
.drawer-item-meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}
.drawer-item-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    flex: 1;
}
.drawer-tag {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 4px;
    line-height: 1.5;
    white-space: nowrap;
}
.drawer-tag.tag-platform {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 500;
    border: 1px solid #dbeafe;
}
.drawer-tag.tag-channel {
    background: #f1f5f9;
    color: #475569;
    font-weight: 500;
}
.drawer-tag.tag-secondary {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}
.drawer-tag.tag-sla {
    background: #ecfdf5;
    color: #059669;
    font-weight: 600;
    border: 1px solid #a7f3d0;
}
.drawer-item-price-wrap {
    flex-shrink: 0;
    text-align: right;
    line-height: 1;
}
.drawer-item-price-wrap .price-currency {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-warning);
    margin-right: 1px;
}
.drawer-item-price-wrap .price-num {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-warning);
    letter-spacing: -0.2px;
}

/* 兼容旧版样式结构 */
.drawer-item-info .title {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}
.drawer-item-info .tags {
    font-size: 11px;
    color: #64748b;
}
.drawer-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.drawer-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-warning);
}
.btn-remove-item {
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-xs);
    transition: all 0.15s;
}
.btn-remove-item:hover {
    color: #ef4444;
    background: #fee2e2;
}

/* 抽屉空状态 */
.drawer-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 16px;
    text-align: center;
}
.drawer-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
}
.drawer-empty-title {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}
.drawer-empty-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}
.drawer-footer {
    border-top: 1px solid var(--tech-border);
    padding: 16px 20px;
    background: #fafbfc;
}
.drawer-total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}
.drawer-total-label {
    font-size: 13px;
    color: #64748b;
}
.drawer-total-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-warning);
}
.drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.btn-drawer-checkout {
    background: var(--brand-blue);
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}
.btn-drawer-checkout:hover {
    background: var(--brand-blue-hover);
}
.btn-drawer-export {
    background: #fff;
    border: 1px solid var(--tech-border);
    color: #475569;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}
.btn-drawer-export:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

/* ================= 媒体速览详情模态框 ================= */
.media-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(3px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.media-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.media-modal-box {
    background: #ffffff;
    width: 740px;
    max-width: 92vw;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-pop);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalScale {
    from { transform: scale(0.96) translateY(10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-header {
    padding: 20px 24px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--tech-border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.modal-title-wrap h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}
.modal-title-wrap p {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}
.modal-body {
    padding: 20px 24px;
    max-height: 65vh;
    overflow-y: auto;
}
.modal-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}
.modal-data-box {
    background: #f8fafc;
    border: 1px solid var(--tech-border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}
.modal-data-title {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.modal-data-list {
    list-style: none;
    font-size: 12px;
    color: #334155;
    line-height: 1.8;
    padding: 0;
    margin: 0;
}
.modal-rules-box {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: #92400e;
    line-height: 1.6;
    margin-bottom: 16px;
}
.modal-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--tech-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafbfc;
}

/* 响应式适配 */
@media (max-width: 1440px) {
    .media-cards-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 1024px) {
    .media-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .tpm-portal-entry__inner { flex-wrap: wrap; }
    .tpm-portal-entry__item { width: 50%; flex-grow: unset; }
    .tpm-portal-entry__event { width: 100%; flex-grow: unset; }
    .floating-cart-pill { right: 110px; bottom: 24px; }
}
@media (max-width: 768px) {
    .tab-actions-right { display: none; }
    .primary-tab-btn { padding: 12px 12px; font-size: 13px; }
    .floating-cart-pill { right: 20px; bottom: 84px; }
}
@media (max-width: 640px) {
    .media-cards-grid { grid-template-columns: 1fr; gap: 12px; }
    .cart-drawer { width: 100vw; }
    .tpm-portal-entry__item { width: 100%; }
    .floating-cart-pill { right: 12px; bottom: 80px; padding: 8px 14px; gap: 8px; }
}