/* ===== 标签页 ===== */
.pf-c-tabs {
    margin-bottom: 0;
    border-bottom: 1px solid #d2d2d2;
    background: #fff;
    padding: 0 24px;
}

.pf-c-tabs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
}

.pf-c-tabs__item {
    margin: 0;
}

.pf-c-tabs__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #6a6e73;
    border: none;
    border-bottom: 3px solid transparent;
    background: none;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: -1px;
}

.pf-c-tabs__link:hover {
    color: #0066cc;
    background-color: #f5f5f5;
}

.pf-c-tabs__item.pf-m-current .pf-c-tabs__link {
    color: #0066cc;
    border-bottom-color: #0066cc;
    font-weight: 600;
}

/* ===== 内容面板 ===== */
.tab-panel {
    margin-top: 20px;
}

.tab-panel.hidden {
    display: none;
}

/* ===== 区域标题 ===== */
.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #151515;
    margin-bottom: 14px;
}

.section-title i {
    color: #0066cc;
}

.section-hint {
    font-size: 12px;
    font-weight: 400;
    color: #72767b;
    margin-left: 8px;
}

.warning-hint {
    color: #ec7a08 !important;
}

.warning-hint i {
    color: #ec7a08 !important;
}

/* ===== Logo 预览 ===== */
.logo-preview-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 8px;
}

.logo-preview-box {
    width: 320px;
    height: 160px;
    border: 2px dashed #d2d2d2;
    border-radius: 6px;
    background: #1e1e1e;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.logo-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #5a5a5a;
    font-size: 12px;
}

.logo-preview-placeholder i {
    font-size: 32px;
    color: #444;
}

.logo-preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-preview-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
}

/* ===== 上传区域 ===== */
.upload-area {
    border: 2px dashed #b8bbbf;
    border-radius: 6px;
    padding: 28px 20px;
    text-align: center;
    background: #fafbfc;
    transition: all 0.2s;
    cursor: pointer;
    margin-bottom: 14px;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #0066cc;
    background: #f0f7ff;
}

.upload-icon {
    font-size: 36px;
    color: #b8bbbf;
    margin-bottom: 10px;
}

.upload-area:hover .upload-icon,
.upload-area.drag-over .upload-icon {
    color: #0066cc;
}

.upload-text {
    font-size: 14px;
    color: #4d5258;
    margin-bottom: 6px;
}

.upload-link {
    color: #0066cc;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
}

.upload-hint {
    font-size: 12px;
    color: #72767b;
}

.upload-status {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-status.success {
    background: #ecf7ec;
    border: 1px solid #3f9c35;
    color: #1e4620;
}

.upload-status.error {
    background: #fff0ee;
    border: 1px solid #c00;
    color: #7d1d1d;
}

.upload-status.uploading {
    background: #e7f1fa;
    border: 1px solid #73bcf7;
    color: #004080;
}

/* ===== Logo 文件列表 ===== */
.logo-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #4d5258;
    margin-bottom: 10px;
}

.btn-sm {
    padding: 5px 10px !important;
    font-size: 12px !important;
}

.logo-list {
    border: 1px solid #e6e9ed;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
    min-height: 60px;
}

.logo-list-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px;
    color: #72767b;
    font-size: 13px;
}

.logo-list-empty i {
    font-size: 18px;
}

.logo-list-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.1s;
    gap: 12px;
}

.logo-list-item:last-child {
    border-bottom: none;
}

.logo-list-item:hover {
    background: #f5f9ff;
}

.logo-item-thumb {
    width: 48px;
    height: 28px;
    background: #1e1e1e;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-item-thumb-placeholder {
    color: #555;
    font-size: 10px;
}

.logo-item-info {
    flex: 1;
    min-width: 0;
}

.logo-item-name {
    font-size: 13px;
    font-weight: 500;
    color: #151515;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo-item-meta {
    font-size: 11px;
    color: #72767b;
    margin-top: 2px;
}

.logo-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ===== 烧写区域 ===== */
.flash-area {
    background: #fffbf0;
    border: 1px solid #f5e6c8;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 16px;
}

.flash-select-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.flash-label {
    font-size: 13px;
    font-weight: 500;
    color: #4d5258;
    white-space: nowrap;
}

.pf-c-form-control {
    flex: 1;
    min-width: 200px;
    padding: 7px 10px;
    border: 1px solid #b8bbbf;
    border-radius: 3px;
    font-size: 13px;
    background: #fff;
    color: #151515;
    outline: none;
}

.pf-c-form-control:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

.flash-note {
    font-size: 12px;
    color: #72767b;
    line-height: 1.6;
}

.flash-note code {
    background: #f0f0f0;
    padding: 1px 5px;
    border-radius: 3px;
    font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
    color: #c00;
    font-size: 11px;
}

/* 危险按钮 */
.pf-c-button.pf-m-danger {
    background-color: #c00;
    color: white;
    border-color: #c00;
}

.pf-c-button.pf-m-danger:hover:not(:disabled) {
    background-color: #a30000;
    border-color: #a30000;
}

.pf-c-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== 空状态占位 ===== */
.empty-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #72767b;
    text-align: center;
}

.empty-placeholder > i {
    font-size: 48px;
    color: #d2d2d2;
    margin-bottom: 16px;
}

.empty-title {
    font-size: 16px;
    font-weight: 600;
    color: #4d5258;
    margin-bottom: 8px;
}

.empty-desc {
    font-size: 13px;
    color: #72767b;
}

/* ===== 通用 ===== */
.hidden {
    display: none !important;
}
