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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f6f8;
    color: #333;
    font-size: 14px;
}

#app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 220px;
    background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
    color: #fff;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
}

.sidebar-logo {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    border-radius: 4px;
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu li {
    list-style: none;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu li a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.sidebar-menu li a.active {
    background: #007bff;
    color: #fff;
    border-left: 3px solid #fff;
}

.sidebar-menu li a i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
}

.sidebar-user {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-user-info {
    flex: 1;
}

.sidebar-user-name {
    font-size: 14px;
    font-weight: 500;
}

.sidebar-user-role {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.sidebar-customer-service-wrap {
    position: absolute;
    bottom: 80px;
    left: 10px;
    right: 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    overflow: visible;
    z-index: 10;
}

.sidebar-bottom-space {
    height: 80px;
}

.sidebar-user-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.sidebar-customer-service {
    padding: 12px 12px;
}

.sidebar-customer-service-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.sidebar-customer-service-qrcode {
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 20;
}

.sidebar-customer-service .sidebar-customer-service-qrcode img {
    max-width: 90px !important;
    max-height: 90px !important;
    width: 90px !important;
    height: 90px !important;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.25);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    object-fit: cover;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-customer-service .sidebar-customer-service-qrcode img:hover {
    border-color: rgba(0,212,255,0.6);
    box-shadow: 0 4px 12px rgba(0,212,255,0.3);
}

.sidebar-customer-service-qrcode .qrcode-popup {
    position: absolute;
    top: -190px;
    left: 20px;
    width: 180px;
    height: 180px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}

.sidebar-customer-service-qrcode:hover .qrcode-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(-5px);
}

.sidebar-customer-service-qrcode .qrcode-popup img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 8px;
    object-fit: contain;
    border: none !important;
    box-shadow: none !important;
}

.sidebar-customer-service-qrcode .qrcode-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
}

.sidebar-customer-service-phone {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.sidebar-customer-service-phone span {
    color: #00d4ff;
}

.sidebar-customer-service-phone a {
    color: #00d4ff;
    text-decoration: none;
}

.sidebar-customer-service-phone a:hover {
    color: #00f5ff;
}

.sidebar-customer-service-note {
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    line-height: 1.4;
}

.main-content {
    flex: 1;
    margin-left: 220px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-bar {
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
}

.top-bar-left {
    display: flex;
    align-items: center;
}

.top-bar-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.top-bar-tabs {
    display: flex;
    margin-left: 30px;
}

.top-bar-tab {
    padding: 0 20px;
    height: 60px;
    line-height: 60px;
    color: #666;
    cursor: pointer;
    position: relative;
}

.top-bar-tab.active {
    color: #007bff;
}

.top-bar-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #007bff;
}

.xwp-type-tabs {
    display: flex;
    margin-left: 20px;
    align-items: center;
    gap: 8px;
}

.xwp-type-tab {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #5a6270;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
    border: 1px solid #e4e7ed;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.xwp-type-tab:hover {
    color: #409eff;
    border-color: #c6e2ff;
    background: #ecf5ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.15);
}

.xwp-type-tab.active {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

.xwp-type-tab.active:hover {
    background: linear-gradient(135deg, #7c8eea 0%, #865ba2 100%);
}

.video-tag {
    font-size: 10px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 4px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-actions {
    display: flex;
    gap: 10px;
}

.top-bar-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.top-bar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar-user-arrow {
    font-size: 12px;
    color: #999;
    transition: transform 0.2s;
}

#topBarUserMenu.open .top-bar-user-arrow {
    transform: rotate(180deg);
}

.top-bar-user-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 160px;
    padding: 4px 0;
    display: none;
    z-index: 1000;
}

#topBarUserMenu.open .top-bar-user-dropdown {
    display: block;
}

.top-bar-user-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 12px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
}

.dropdown-item {
    padding: 10px 16px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

.page-container {
    flex: 1;
    padding: 24px;
    padding-bottom: 100px;
    overflow-y: auto;
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: #fff;
}

.btn i {
    margin-right: 6px;
}

.btn-primary {
    background: #007bff;
}

.btn-primary:hover {
    background: #0069d9;
}

.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
}

.btn-outline:hover {
    background: #f5f5f5;
}

.btn-outline-primary {
    background: #fff;
    border: 1px solid #007bff;
    color: #007bff;
}

.btn-outline-primary:hover {
    background: #f5faff;
}

.btn-default {
    background: #fff;
    border: 1px solid #007bff;
    color: #007bff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-default:hover {
    background: #f5faff;
}

.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
}

.filter-bar {
    padding: 16px 20px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    color: #666;
}

.filter-group select,
.filter-group input {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 120px;
}

.filter-group input[type="text"] {
    min-width: 150px;
}

.filter-group input[type="number"] {
    min-width: 100px;
}

.filter-section {
    padding: 16px 20px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #f0f0f0;
    margin-bottom: 8px;
}

.filter-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-item label {
    font-size: 12px;
    color: #888;
    font-weight: 500;
    white-space: nowrap;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.filter-tag {
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid #007bff;
    background: #fff;
    font-size: 12px;
    color: #007bff;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.4;
}

.filter-tag:hover {
    border-color: #007bff;
    color: #007bff;
    background: #f5faff;
}

.filter-tag.active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.filter-tag.more {
    color: #007bff;
    border-color: transparent;
    padding: 3px 6px;
    background: transparent;
    font-size: 11px;
}

.filter-tag.more:hover {
    color: #0056b3;
    background: #f0f7ff;
}

.filter-tag.hidden {
    display: none;
}

.expand-btn {
    background: none;
    border: none;
    font-size: 12px;
    color: #007bff;
    cursor: pointer;
    margin-left: 8px;
    padding: 2px 4px;
}

.expand-btn:hover {
    color: #0056b3;
}

.expand-row {
    background-color: #f8f9fa;
}

.expand-content {
    padding: 12px 16px;
    border-top: 1px solid #e9ecef;
}

.expand-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.expand-details {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.multi-line {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
    line-height: 1.4;
}

.multi-line .label {
    color: #999;
    font-weight: 500;
    margin-right: 4px;
}

.multi-line .value {
    color: #333;
    font-weight: 500;
}

.multi-line div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
}

.filter-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.filter-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-input-group input {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f8f9fa;
}

.data-table th,
.data-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.data-table th {
    font-weight: 600;
    color: #666;
    white-space: nowrap;
}

.data-table tbody tr:hover {
    background: #fafafa;
}

.data-table tbody tr.selected {
    background: #e3f2fd;
}

.data-table .checkbox-cell {
    width: 40px;
}

.data-table .checkbox-cell input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.data-table .status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.normal {
    background: #d4edda;
    color: #155724;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.publishing {
    background: #cce5ff;
    color: #004085;
}

.status-badge.published {
    background: #d4edda;
    color: #155724;
}

.status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.cancelled {
    background: #e2e3e5;
    color: #383d41;
}

.status-badge.scheduled {
    background: #e3f2fd;
    color: #1976d2;
}

.media-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.media-type-badge.media-xwp-news {
    background: #cce5ff;
    color: #004085;
}

.media-type-badge.media-xwp-we {
    background: #d4edda;
    color: #155724;
}

.media-type-badge.media-xwp-gzh {
    background: #f8d7da;
    color: #721c24;
}

.media-type-badge.media-xwp-wb {
    background: #fff3cd;
    color: #856404;
}

.media-type-badge.media-xwp-dsp {
    background: #e8daef;
    color: #6c3483;
}

.media-type-badge.media-xwp-xhs {
    background: #f5b7b1;
    color: #721c24;
}

.media-type-badge.media-cj-news {
    background: #a8d8ea;
    color: #0c637e;
}

.media-type-badge.media-cj-we {
    background: #b8e0d2;
    color: #1b5e20;
}

.media-type-badge.media-unknown {
    background: #e2e3e5;
    color: #383d41;
}

.data-table .tag {
    display: inline-block;
    padding: 2px 6px;
    background: #f0f0f0;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 4px;
}

.data-table .tag-primary {
    background: #e3f2fd;
    color: #1976d2;
}

.data-table .tag-success {
    background: #e8f5e9;
    color: #388e3c;
}

.data-table .tag-warning {
    background: #fff3e0;
    color: #f57c00;
}

.data-table .media-name-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.data-table .media-name-link:hover {
    text-decoration: underline;
}

.data-table .media-name {
    font-weight: 600;
    color: #333;
}

.data-table .preview-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 3px;
    font-size: 12px;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
}

.data-table .preview-badge:hover {
    background: #bbdefb;
}

.data-table .select-col {
    width: 60px;
    text-align: center;
    vertical-align: middle;
}

.data-table .select-col input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin-right: 4px;
}

.data-table .favorite-btn {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: #ccc;
    padding: 0;
    transition: color 0.2s;
}

.data-table .sub-text {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.data-table .favorite-btn:hover {
    color: #ffd700;
}

.data-table .favorite-btn.collected {
    color: #ffd700;
}

.favorite-menu {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 6px;
    min-width: 140px;
    max-width: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.favorite-menu .menu-title {
    font-size: 11px;
    color: #666;
    margin-bottom: 6px;
    padding-bottom: 3px;
    border-bottom: 1px solid #eee;
}

.favorite-menu button {
    display: block;
    width: 100%;
    padding: 4px 8px;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 12px;
    color: #333;
    border-radius: 3px;
    transition: background 0.2s;
    line-height: 1.4;
}

.favorite-menu button:hover {
    background: #f5f5f5;
}

.favorite-menu .star-filled {
    color: #007bff;
}

.favorite-menu .star-empty {
    color: #999;
}

.collection-tag {
    position: relative;
    padding-right: 24px;
}

.tag-delete {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.tag-delete:hover {
    color: #ff4d4f;
}

.pagination-bar {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination-info {
    font-size: 14px;
    color: #666;
}

.pagination {
    display: flex;
    gap: 4px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination a:hover {
    border-color: #007bff;
    color: #007bff;
}

.pagination a.active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.pagination a.prev,
.pagination a.next {
    padding: 0 12px;
    width: auto;
}

.pagination .ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #999;
    font-size: 14px;
}

.summary-bar {
    padding: 12px 20px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
    position: fixed;
    bottom: 0;
    left: 220px;
    right: 0;
    z-index: 200;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.summary-bar .selected-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.summary-bar .selected-count {
    font-weight: 600;
    color: #007bff;
}

.summary-bar .total-price {
    font-size: 16px;
    font-weight: bold;
    color: #dc3545;
}

.form-container {
    padding: 24px;
}

.form-row {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
}

.amount-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.amount-option {
    padding: 14px 30px;
    border: 2px solid #d9d9d9;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
    background: #fff;
}

.amount-option:hover {
    border-color: #007bff;
    color: #007bff;
}

.amount-option.active {
    border-color: #007bff;
    background: #e3f2fd;
    color: #007bff;
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
}

.form-group .hint {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-blue {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-green {
    background: #e8f5e9;
    color: #388e3c;
}

.badge-orange {
    background: #fff3e0;
    color: #f57c00;
}

.badge-recommend {
    background: #fff176;
    color: #f9a825;
    font-weight: bold;
    font-size: 12px;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 4px;
}

.badge-red {
    background: #ffebee;
    color: #c62828;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 14px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
}

.modal-close {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#toolbar {
    border: 1px solid #d9d9d9;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    background: #fafafa;
}

#editor {
    border: 1px solid #d9d9d9;
    border-radius: 0 0 4px 4px;
    min-height: 300px;
}

.w-e-text-container {
    height: 100% !important;
    min-height: 300px !important;
}

.w-e-text {
    height: 100% !important;
    min-height: 300px !important;
}

.article-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.article-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
}

.article-table th,
.article-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.article-table th {
    background: #fafafa;
    font-weight: 600;
    font-size: 14px;
    color: #666;
}

.article-table td {
    font-size: 14px;
    color: #333;
}

.article-table tr:hover td {
    background: #fafafa;
}

.article-table .status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.article-table .status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.article-table .status-badge.published {
    background: #d4edda;
    color: #155724;
}

.article-table .status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
}

.draft-limit-notice {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    background: #fff3cd;
    border-radius: 8px;
    margin: 0 20px 20px;
    border-left: 4px solid #ffc107;
}

.draft-limit-notice .notice-icon {
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.draft-limit-notice .notice-content {
    flex: 1;
}

.draft-limit-notice .notice-title {
    font-weight: 600;
    color: #856404;
    font-size: 14px;
    margin-bottom: 4px;
}

.draft-limit-notice .notice-desc {
    font-size: 13px;
    color: #856404;
    line-height: 1.5;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: normal;
    color: #333;
}

.radio-group input[type="radio"] {
    margin: 0;
}

.form-hint {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

.notice-section {
    background: #fff5f5;
    border: 1px solid #ffccc7;
    border-radius: 4px;
    padding: 20px;
    margin: 20px;
    font-size: 13px;
    line-height: 1.8;
    color: #666;
}

.notice-section h4 {
    color: #d93026;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 15px;
}

.notice-section h4:first-child {
    margin-top: 0;
}

.notice-section p {
    margin-bottom: 8px;
}

.notice-section strong {
    color: #d93026;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
    position: fixed;
    bottom: 0;
    left: 220px;
    right: 0;
    z-index: 200;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.article-footer .footer-left {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.article-footer .footer-left strong {
    color: #333;
    font-weight: 600;
}

.article-footer .footer-right {
    display: flex;
    gap: 10px;
}

.selected-media-section {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.selected-media-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.selected-media-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 40px;
}

.selected-media-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f0f5ff;
    border: 1px solid #d6e4ff;
    border-radius: 20px;
    font-size: 13px;
}

.selected-media-item .media-name {
    color: #333;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-media-item .media-price {
    color: #007bff;
    font-weight: 600;
}

.remove-media-btn {
    width: 20px;
    height: 20px;
    line-height: 16px;
    text-align: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: #999;
    transition: all 0.2s;
}

.remove-media-btn:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.selected-media-list .empty-hint {
    color: #999;
    font-size: 13px;
    padding: 8px 0;
}

.summary-bar .account-balance {
    font-weight: 600;
    color: #28a745;
}

.btn-outline {
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #666;
    border-radius: 4px;
}

.btn-outline:hover {
    border-color: #007bff;
    color: #007bff;
}

.upload-area {
    border: 2px dashed #d9d9d9;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.upload-area:hover {
    border-color: #007bff;
    background: #f0f7ff;
}

.upload-area.dragover {
    border-color: #007bff;
    background: #e6f7ff;
}

.upload-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.upload-text {
    font-size: 14px;
    color: #666;
}

.upload-text .highlight {
    color: #007bff;
    font-weight: 500;
}

.upload-input {
    display: none;
}

.upload-file-name {
    font-size: 13px;
    color: #007bff;
    margin-top: 8px;
    font-weight: 500;
}

.upload-progress {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.upload-progress-bar-container {
    width: 100%;
    max-width: 300px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #28a745);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.upload-progress-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.upload-progress-label {
    font-size: 12px;
    color: #666;
    margin-top: -4px;
}

.upload-hint {
    font-size: 12px;
    color: #999;
    margin-top: 12px;
    line-height: 1.6;
}

.preview-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.preview-modal-overlay.show {
    display: flex;
}

.preview-modal {
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.preview-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.preview-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.preview-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.preview-modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(80vh - 60px);
}

.preview-header-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.preview-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.preview-content #previewBody {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.preview-content #previewBody p {
    margin-bottom: 16px;
}

.preview-content #previewBody strong {
    font-weight: 600;
}

.preview-content #previewBody em {
    font-style: italic;
}

.preview-content #previewBody ul,
.preview-content #previewBody ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.preview-content #previewBody li {
    margin-bottom: 8px;
}

.preview-content #previewBody img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.stats-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stat-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.stat-value.text-green {
    color: #28a745;
}

.stat-value.text-red {
    color: #dc3545;
}

.text-green {
    color: #28a745;
}

.text-red {
    color: #dc3545;
}

.transaction-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.transaction-type-badge.type-recharge {
    background: #d4edda;
    color: #155724;
}

.transaction-type-badge.type-payment {
    background: #f8d7da;
    color: #721c24;
}

.transaction-type-badge.type-withdrawal {
    background: #fff3cd;
    color: #856404;
}

.transaction-type-badge.type-refund {
    background: #d1ecf1;
    color: #0c5460;
}

.order-no {
    font-family: monospace;
    font-size: 12px;
    color: #007bff;
}

.filter-bar {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e8e8e8;
}

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

.filter-tab {
    padding: 6px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #666;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.filter-tab:hover {
    border-color: #007bff;
    color: #007bff;
}

.filter-tab.active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.batch-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.batch-select-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.batch-select-info label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
}

.batch-select-info label input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.batch-select-info #selectedCount {
    font-size: 13px;
    color: #007bff;
    font-weight: 500;
}

.batch-buttons {
    display: flex;
    gap: 10px;
}

.preview-info {
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
}

.preview-info p {
    margin: 5px 0;
}

.preview-info strong {
    color: #333;
}

.status-badge.scheduled {
    background: #fff3cd;
    color: #856404;
}

.status-badge.submitted {
    background: #d1ecf1;
    color: #0c5460;
}

.article-table tr.selected {
    background: #e3f2fd;
}

.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid #eee;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-info {
    font-size: 13px;
    color: #666;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-numbers {
    display: flex;
    gap: 4px;
}

.page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.page-btn:hover:not(.active):not(:disabled) {
    border-color: #007bff;
    color: #007bff;
}

.page-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

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

.page-ellipsis {
    padding: 0 4px;
    color: #999;
    line-height: 32px;
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .sidebar-logo span,
    .sidebar-menu li a span,
    .sidebar-user-info {
        display: none;
    }
    
    .sidebar-menu li a {
        justify-content: center;
        padding: 12px 0;
    }
    
    .main-content {
        margin-left: 60px;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .stats-row {
        flex-direction: column;
    }
    
    .batch-actions-bar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
    }
}
