/* 暗黑简洁主题 - 授权模板样式（极简扁平设计） */

/* ========== 授权模板样式 ========== */
.license-container {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    min-height: calc(100vh - 140px);
    background: #1f2833; /* 白色背景，与外围一致 */
    padding: 50px 40px;
    box-sizing: border-box;
}

/* 头部标题区域 */
.license-header {
    text-align: center;
    margin-bottom: 40px;
}

.license-title {
    font-size: 36px;
    font-weight: 700;
    color: #CCCCCC; /* 深灰文字 */
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.license-description {
    font-size: 16px;
    color: #a0a8b0; /* 稍浅的灰色 */
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* 提醒信息板块 */
.license-notice {
    background: #1f2f4a; /* 浅蓝背景 */
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 20px;
    border: 1px solid #2f3f5a;
    border-left: 4px solid #5dade2; /* 主题蓝色 */
}

.license-notice-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #5dade2; /* 主题蓝色 */
    margin-bottom: 10px;
}

.license-notice-icon {
    font-size: 18px;
    color: #5dade2;
}

.license-notice-content {
    padding: 0;
    color: #CCCCCC;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-line;
}

/* 授权表单区域 */
.license-form-container {
    background: #1f2833;
    border-radius: 8px;
    padding: 40px;
    border: 1px solid #2a3441;
}

.license-form-main {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    align-items: flex-start;
}

/* 左侧平台选择 */
.license-form-left {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
}

.license-platform-title {
    font-size: 16px;
    font-weight: 600;
    color: #CCCCCC;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.license-platform-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.license-platform-item {
    position: relative;
}

.license-platform-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.license-platform-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #2a3441;
    border: 1px solid #2a3441;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    color: #CCCCCC;
}

.license-platform-label:hover {
    background: #1f2f4a;
    border-color: #5dade2;
}

.license-platform-radio:checked + .license-platform-label {
    background: #5dade2; /* 纯色背景 */
    border-color: #5dade2;
    color: white;
}

.license-platform-icon {
    width: 40px;
    height: 40px;
    font-size: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f2833;
    border-radius: 6px;
}

.license-platform-radio:checked + .license-platform-label .license-platform-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.license-platform-name {
    font-size: 15px;
    font-weight: 500;
    flex: 1;
}

/* 授权状态标签 */
.license-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

.license-status-badge.pending {
    background: #1f2833;
    color: #fbbf24;
    border: 1px solid #ffeaa7;
}

.license-status-badge.approved {
    background: #1f4a2f;
    color: #4ade80;
    border: 1px solid #2a5a3f;
}

.license-status-badge.rejected {
    background: #4a1f1f;
    color: #ff6b6b;
    border: 1px solid #5a2a2a;
}

.license-platform-check {
    width: 18px;
    height: 18px;
    border: 2px solid #2a3441;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.2s ease;
}

.license-platform-radio:checked + .license-platform-label .license-platform-check {
    background: #1f2833;
    border-color: white;
}

.license-platform-radio:checked + .license-platform-label .license-platform-check::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #5dade2;
    font-size: 12px;
    font-weight: 600;
}

/* 右侧ID填写 */
.license-form-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #2a3441;
    border-radius: 6px;
    padding: 30px;
    min-height: 400px;
    border: 1px solid #2a3441;
}

.license-platform-info {
    display: none;
    flex-direction: column;
    gap: 25px;
}

.license-platform-info.active {
    display: flex;
}

.license-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2a3441;
}

.license-info-icon {
    font-size: 32px;
}

.license-info-title {
    font-size: 20px;
    font-weight: 600;
    color: #CCCCCC;
}

.license-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.license-input-label {
    font-size: 14px;
    font-weight: 600;
    color: #CCCCCC;
}

.license-input-box {
    position: relative;
}

.license-input-field {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #2a3441;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    background: #1f2833;
    color: #CCCCCC;
}

.license-input-field:focus {
    outline: none;
    border-color: #5dade2;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.license-input-field:disabled {
    background: #2a3441;
    color: #a0a8b0;
    cursor: not-allowed;
}

.license-input-field::placeholder {
    color: #a0a8b0;
}

/* 授权素材选择下拉框样式 */
.license-material-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
}

.license-material-select:focus {
    border-color: #5dade2;
    outline: none;
}

.license-material-select option {
    padding: 8px;
    background: #1f2833;
    color: #CCCCCC;
}

/* 多选复选框样式 */
.license-material-checkbox-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.license-material-select-all-btn {
    background: #5dade2; /* 纯色背景 */
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.license-material-select-all-btn:hover {
    background: #4a9bc7;
}

.license-material-select-all-btn.active {
    background: #ec4899; /* 粉红色 */
}

.license-material-select-all-btn.active:hover {
    background: #db2777;
}

.license-material-checkbox-container {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #2a3441;
    border-radius: 6px;
    padding: 12px;
    background: #1f2833;
}

.license-material-checkbox-container::-webkit-scrollbar {
    width: 6px;
}

.license-material-checkbox-container::-webkit-scrollbar-track {
    background: #2a3441;
    border-radius: 3px;
}

.license-material-checkbox-container::-webkit-scrollbar-thumb {
    background: #bdbdbd;
    border-radius: 3px;
}

.license-material-checkbox-container::-webkit-scrollbar-thumb:hover {
    background: #9e9e9e;
}

.license-material-checkbox-item {
    display: flex;
    align-items: center;
    padding: 10px 8px;
    margin-bottom: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.license-material-checkbox-item:hover {
    background: #1f2f4a;
}

.license-material-checkbox-item:last-child {
    margin-bottom: 0;
}

.license-material-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #5dade2;
}

.license-material-checkbox-label {
    font-size: 14px;
    color: #CCCCCC;
    flex: 1;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 已提交素材标记样式 */
.license-material-submitted-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    background: #1f2f4a;
    color: #5dade2;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid #2f3f5a;
}

.license-material-checkbox-item.submitted {
    background: #1f2f4a;
    border-left: 2px solid #5dade2;
}

/* 需要重新提交提示样式 */
.license-resubmit-notice {
    background: #1f2833;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.license-resubmit-notice-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.license-resubmit-notice-text {
    font-size: 14px;
    color: #fbbf24;
    line-height: 1.5;
    flex: 1;
}

.license-action-btns {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.license-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.license-btn-secondary {
    background: #1f2833;
    color: #a0a8b0;
    border: 1px solid #2a3441;
}

.license-btn-secondary:hover {
    background: #2a3441;
    border-color: #5dade2;
    color: #5dade2;
}

.license-btn-primary {
    background: #5dade2; /* 纯色背景 */
    color: white;
}

.license-btn-primary:hover {
    background: #4a9bc7;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

.license-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 空状态 */
.license-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #a0a8b0;
    gap: 15px;
}

.license-empty-icon {
    font-size: 48px;
    opacity: 0.5;
}

.license-empty-text {
    font-size: 16px;
    line-height: 1.6;
}

/* 顶部提示框样式 */
.toast-notification {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    display: none;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    display: block;
    animation: slideDown 0.3s ease;
}

.toast-notification.error {
    background: #4a1f1f;
    color: #ff6b6b;
    border: 1px solid #5a2a2a;
}

.toast-notification.success {
    background: #1f4a2f;
    color: #4ade80;
    border: 1px solid #2a5a3f;
}

.toast-notification.warning {
    background: #1f2833;
    color: #fbbf24;
    border: 1px solid #ffeaa7;
}

.toast-notification.info {
    background: #1f2f4a;
    color: #60a5fa;
    border: 1px solid #2f3f5a;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .license-container {
        padding: 30px 30px;
    }
    
    .license-form-main {
        gap: 30px;
    }
    
    .license-form-left {
        flex: 0 0 280px;
    }
}

@media (max-width: 768px) {
    .license-container {
        padding: 15px 12px;
        max-width: 100%;
    }
    
    .license-header {
        margin-bottom: 30px;
    }
    
    .license-title {
        font-size: 28px;
        margin-bottom: 10px;
        letter-spacing: 1px;
    }
    
    .license-description {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .license-notice {
        padding: 18px 15px;
        margin-bottom: 25px;
        border-radius: 10px;
    }
    
    .license-notice-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .license-notice-content {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .license-form-container {
        padding: 20px 12px;
        border-radius: 12px;
    }
    
    .license-form-main {
        flex-direction: column;
        gap: 25px;
    }
    
    .license-form-left {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .license-platform-title {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .license-platform-list {
        gap: 10px;
    }
    
    .license-platform-label {
        padding: 12px 16px;
        border-radius: 8px;
    }
    
    .license-platform-icon {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    .license-platform-name {
        font-size: 14px;
    }
    
    .license-status-badge {
        font-size: 10px;
        padding: 2px 8px;
        margin-left: 6px;
    }
    
    .license-platform-check {
        width: 18px;
        height: 18px;
    }
    
    .license-form-right {
        width: 100%;
        padding: 20px 15px;
        border-radius: 10px;
        min-height: 300px;
    }
    
    .license-info-header {
        padding-bottom: 15px;
        margin-bottom: 20px;
    }
    
    .license-info-icon {
        font-size: 28px;
    }
    
    .license-info-title {
        font-size: 18px;
    }
    
    .license-input-group {
        gap: 8px;
    }
    
    .license-input-label {
        font-size: 13px;
    }
    
    .license-input-field {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .license-action-btns {
        gap: 10px;
        flex-direction: column;
    }
    
    .license-btn {
        padding: 10px 16px;
        font-size: 13px;
        width: 100%;
        text-align: center;
    }
    
    .license-empty-state {
        gap: 12px;
        padding: 40px 15px;
    }
    
    .license-empty-icon {
        font-size: 40px;
    }
    
    .license-empty-text {
        font-size: 14px;
    }
}

/* 拒绝理由显示样式 */
.license-reject-reason {
    background: linear-gradient(135deg, #3d1f1f 0%, #2d1818 100%);
    border: 1px solid #7f3333;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.license-reject-reason-icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1.4;
}

.license-reject-reason-content {
    font-size: 14px;
    color: #ff9999;
    line-height: 1.5;
    flex: 1;
}

.license-reject-reason-content strong {
    color: #ff6b6b;
}

/* 需要重新提交提示样式 */
.license-resubmit-notice {
    background: linear-gradient(135deg, #3d3a1f 0%, #2d2818 100%);
    border: 1px solid #7f7333;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.license-resubmit-notice-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.license-resubmit-notice-text {
    font-size: 14px;
    color: #ffd966;
    line-height: 1.5;
    flex: 1;
}




