.container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.platform-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.platform-tab {
    padding: 10px 20px;
    cursor: pointer;
    margin-right: 10px;
    border-bottom: 2px solid transparent;
}

.platform-tab.active {
    border-bottom-color: #1890ff;
    color: #1890ff;
}

/* 继承内容管理的基础样式 */
.material-type-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.material-type-tab {
    padding: 12px 16px;
    cursor: pointer;
    margin-right: 10px;
    position: relative;
    color: #595959;
}

.material-type-tab:hover {
    color: #1890ff;
}

.material-type-tab.active {
    color: #1890ff;
}

.material-type-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #1890ff;
}

/* 搜索和过滤区域样式 */
.filter-section {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.account-filter-container {
    position: relative;
    width: 380px;
}

.account-search-box {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    background-color: white;
    cursor: pointer;
}

.account-search-box input {
    border: none;
    outline: none;
    flex: 1;
    padding: 5px 0;
}

/* 添加账号选择相关样式 */
.selected-accounts-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f7ff;
    border: 1px solid #91d5ff;
    border-radius: 8px;
    min-height: 60px;
}

.account-search {
    margin-bottom: 20px;
}

.account-search input {
    width: 100%;
    padding: 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
}

.account-list {
    margin-bottom: 20px;
}

.account-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

/* 账号卡片删除按钮样式 */
.account-card {
    position: relative;
}

.account-delete-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ff4d4f;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.account-card:hover .account-delete-btn {
    opacity: 1;
}

.account-delete-btn:hover {
    background-color: #ff7875;
}

.account-card {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.account-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.account-card.selected {
    background-color: #e6f7ff;
    border-color: #1890ff;
}

.selected-account {
    display: flex;
    align-items: center;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    gap: 8px;
}

.selected-account .remove-account {
    cursor: pointer;
    color: #999;
}

.selected-account .remove-account:hover {
    color: #ff4d4f;
}

/* 完善模态框样式 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
}

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

.modal-body {
    max-height: 400px;
    overflow-y: auto;
}

.close {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #333;
}

/* 确保按钮样式一致 */
.btn.primary {
    background-color: #1890ff;
    color: white;
    border: none;
}

.btn.secondary {
    background-color: #fff;
    color: #333;
    border: 1px solid #d9d9d9;
}

.btn:hover {
    opacity: 0.85;
}

.account-item {
    padding: 8px 12px;
    cursor: pointer;
}

.account-item:hover {
    background-color: #f5f5f5;
}

.account-item-content {
    display: flex;
    align-items: center;
}

.account-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
}

.platform-logo {
    width: 16px;
    height: 16px;
    margin-left: 8px;
}

.no-results {
    padding: 10px;
    text-align: center;
    color: #999;
}

/* 表格样式扩展 */
.table-container {
    margin-top: 10px;
}

#dataTable td {
    max-width: 300px;
    position: relative;
    padding: 8px;
    vertical-align: middle;
}

/* 表格内容样式 */
#dataTable td .cell-content {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    max-width: 100%;
    display: inline-block;
    line-height: 1.4;
}

/* 状态标签样式 */
.status-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* 按钮样式 */
.btn {
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

/*.btn.primary {*/
/*    background-color: #1890ff;*/
/*    color: white;*/
/*}*/

.btn.success {
    background-color: #52c41a;
    color: white;
}

.btn.danger {
    background-color: #f5222d;
    color: white;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 10px 0;
}

.pagination-info {
    color: #666;
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

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

.page-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 3px;
}

.page-btn:hover:not(:disabled) {
    border-color: #1890ff;
    color: #1890ff;
}

.page-btn.active {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

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

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

.pagination-controls span {
    padding: 0 8px;
    color: #666;
}

.page-btn.active {
    background-color: #1890ff;
    border-color: #1890ff;
    color: #fff;
}

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

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

.pagination-controls span {
    padding: 0 8px;
    color: #666;
}

/* 加载状态 */
.loading-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

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

/* 错误提示样式 */
.error-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px;
    background: #ffebee;
    color: #c62828;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
}

/* 表格响应式样式 */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
}

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

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    width: 50%;
    max-width: 600px;
}

.modal-footer {
    margin-top: 20px;
    text-align: right;
}

.close {
    font-size: 20px;
    /* 其他样式保持不变 */
}

textarea.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 100px;
}

#modalTitle {
    font-size: 16px;
    margin-bottom: 15px;
}

.add-account-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.add-account-item {
    padding: 8px 12px;
    cursor: pointer;
}
#addModel {
    display: none;
}

/* 账号删除按钮样式 */
.account-card {
    position: relative;
}

.account-delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(245, 34, 45, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.account-card:hover .account-delete-btn {
    opacity: 1;
}

.account-delete-btn:hover {
    background-color: rgba(245, 34, 45, 1);
}
/* 确保分页容器位于右下角 */
.pagination {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end; /* 右对齐 */
    align-items: center;
}

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

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

.page-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 3px;
}

.page-btn:hover:not(:disabled) {
    border-color: #1890ff;
    color: #1890ff;
}

.page-btn.active {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

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

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

.pagination-controls span {
    padding: 0 8px;
    color: #666;
}

.page-btn.active {
    background-color: #1890ff;
    border-color: #1890ff;
    color: #fff;
}

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

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

.pagination-controls span {
    padding: 0 8px;
    color: #666;
}

/* 加载状态 */
.loading-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

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

/* 错误提示样式 */
.error-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px;
    background: #ffebee;
    color: #c62828;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
}

/* 表格响应式样式 */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
}

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

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    width: 50%;
    max-width: 600px;
}

.modal-footer {
    margin-top: 20px;
    text-align: right;
}

.close {
    font-size: 20px;
    /* 其他样式保持不变 */
}

textarea.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 100px;
}

#modalTitle {
    font-size: 16px;
    margin-bottom: 15px;
}

.add-account-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.add-account-item {
    padding: 8px 12px;
    cursor: pointer;
}
#addModel {
    display: none;
}

/* 账号删除按钮样式 */
.account-card {
    position: relative;
}

.account-delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(245, 34, 45, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.account-card:hover .account-delete-btn {
    opacity: 1;
}

.account-delete-btn:hover {
    background-color: rgba(245, 34, 45, 1);
}