/* 白色拟态主题 - 授权模板样式 */

/* ========== CSS变量定义（与header.css保持一致） ========== */
:root {
    --background-color: #ebecf0;
    --greyLight-1: #e4ebf5;
    --greyLight-2: #c8d0e7;
    --greyLight-3: #bec8e4;
    --greyDark: #6d85c1;
    --white: #fff;
    --text-a-color: #7a7e90;
    --text-a-hover: #8897d8;
    --text-li-color: #565e82;
    --primary: #6d5dfc;
    --primary-dark: #5b0eeb;
}

/* ========== 授权容器 ========== */
.license-container {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    min-height: calc(100vh - 140px);
    background: var(--background-color);
    padding: 40px 40px;
    box-sizing: border-box;
}

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

.license-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-li-color);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.license-description {
    font-size: 16px;
    color: var(--text-a-color);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* ========== 提醒信息板块 ========== */
.license-notice {
    background: var(--background-color);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 20px;
    border: none;
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white);
}

.license-notice-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-li-color);
    margin-bottom: 8px;
}

.license-notice-icon {
    font-size: 18px;
}

.license-notice-content {
    padding: 0;
    color: var(--text-a-color);
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-line;
}

/* ========== 授权表单区域 ========== */
.license-form-container {
    background: var(--background-color);
    border-radius: 12px;
    padding: 40px;
    border: none;
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white);
}

.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: var(--text-li-color);
    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: var(--background-color);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white);
}

.license-platform-label:hover {
    box-shadow: 0.3rem 0.3rem 0.6rem var(--greyLight-2), -0.2rem -0.2rem 0.5rem var(--white);
    transform: translateY(-2px);
}

.license-platform-radio:checked + .license-platform-label {
    background: var(--background-color);
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white);
    color: var(--primary);
}

.license-platform-icon {
    width: 40px;
    height: 40px;
    font-size: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-color);
    border-radius: 12px;
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white);
    border: none;
}

.license-platform-radio:checked + .license-platform-label .license-platform-icon {
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white);
    color: var(--primary);
}

.license-platform-name {
    font-size: 15px;
    font-weight: 500;
    flex: 1;
    color: var(--text-li-color);
}

.license-platform-radio:checked + .license-platform-label .license-platform-name {
    color: var(--primary);
}

/* ========== 授权状态标签 ========== */
.license-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
    background: var(--background-color);
    box-shadow: inset 0.1rem 0.1rem 0.2rem var(--greyLight-2), inset -0.05rem -0.05rem 0.15rem var(--white);
    border: none;
}

.license-status-badge.pending {
    color: #e65100;
}

.license-status-badge.approved {
    color: #2e7d32;
}

.license-status-badge.rejected {
    color: #c62828;
}

.license-platform-check {
    width: 18px;
    height: 18px;
    border: 2px solid var(--greyLight-2);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background: var(--background-color);
    box-shadow: inset 0.1rem 0.1rem 0.2rem var(--greyLight-2), inset -0.05rem -0.05rem 0.15rem var(--white);
}

.license-platform-radio:checked + .license-platform-label .license-platform-check {
    background: var(--background-color);
    border-color: var(--primary);
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white);
}

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

/* ========== 右侧ID填写 ========== */
.license-form-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--background-color);
    border-radius: 12px;
    padding: 30px;
    min-height: 400px;
    border: none;
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white);
}

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

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

/* ========== 空状态提示样式 ========== */
.license-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-a-color);
    gap: 15px;
}

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

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

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

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

.license-info-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-li-color);
}

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

.license-input-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-a-color);
}

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

.license-input-field {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    background: var(--background-color);
    color: var(--text-li-color);
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white);
}

.license-input-field:focus {
    outline: none;
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white);
    color: var(--text-li-color);
}

.license-input-field:disabled {
    background: var(--background-color);
    color: var(--text-a-color);
    cursor: not-allowed;
    opacity: 0.6;
}

.license-input-field::placeholder {
    color: var(--text-a-color);
}

/* ========== 授权素材选择下拉框样式 ========== */
.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='%237a7e90' 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 {
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white);
    outline: none;
}

.license-material-select option {
    padding: 8px;
    background: var(--background-color);
    color: var(--text-li-color);
}

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

.license-material-select-all-btn {
    background: var(--background-color);
    color: var(--text-li-color);
    border: none;
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white);
}

.license-material-select-all-btn:hover {
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white);
    color: var(--primary);
}

.license-material-select-all-btn.active {
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white);
    color: var(--primary);
}

.license-material-checkbox-container {
    max-height: 250px;
    overflow-y: auto;
    border: none;
    border-radius: 12px;
    padding: 12px;
    background: var(--background-color);
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white);
}

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

.license-material-checkbox-container::-webkit-scrollbar-track {
    background: var(--greyLight-1);
    border-radius: 3px;
}

.license-material-checkbox-container::-webkit-scrollbar-thumb {
    background: var(--greyLight-2);
    border-radius: 3px;
    box-shadow: inset 0.1rem 0.1rem 0.2rem var(--greyLight-2), inset -0.05rem -0.05rem 0.15rem var(--white);
}

.license-material-checkbox-container::-webkit-scrollbar-thumb:hover {
    background: var(--greyLight-3);
}

.license-material-checkbox-item {
    display: flex;
    align-items: center;
    padding: 10px 8px;
    margin-bottom: 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--background-color);
    box-shadow: 0.1rem 0.1rem 0.2rem var(--greyLight-2), -0.05rem -0.05rem 0.15rem var(--white);
    border: none;
}

.license-material-checkbox-item:hover {
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white);
    transform: translateY(-1px);
}

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

.license-material-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--primary);
}

.license-material-checkbox-label {
    font-size: 14px;
    color: var(--text-li-color);
    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: var(--background-color);
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: inset 0.1rem 0.1rem 0.2rem var(--greyLight-2), inset -0.05rem -0.05rem 0.15rem var(--white);
    border: none;
}

.license-material-checkbox-item.submitted {
    background: var(--background-color);
    box-shadow: 0.1rem 0.1rem 0.2rem var(--greyLight-2), -0.05rem -0.05rem 0.15rem var(--white);
}

/* ========== 提交按钮 ========== */
.license-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--background-color);
    color: var(--text-li-color);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 20px;
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white);
}

.license-submit-btn:hover {
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white);
    color: var(--primary);
}

.license-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--background-color);
}

/* ========== 授权操作按钮区域 ========== */
.license-action-btns {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ========== 基础按钮样式 ========== */
.license-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* ========== 更换绑定按钮（次要按钮）- 白色拟态风格 ========== */
.license-btn-secondary {
    background: var(--background-color);
    color: var(--text-li-color);
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white);
}

.license-btn-secondary:hover:not(:disabled) {
    background: var(--background-color);
    color: var(--primary);
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white);
    transform: none;
}

.license-btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--background-color);
    box-shadow: inset 0.1rem 0.1rem 0.2rem var(--greyLight-2), inset -0.05rem -0.05rem 0.15rem var(--white);
}

/* ========== 提交授权按钮（主要按钮）- 白色拟态风格 ========== */
.license-btn-primary {
    background: var(--background-color);
    color: var(--text-li-color);
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white);
}

.license-btn-primary:hover:not(:disabled) {
    background: var(--background-color);
    color: var(--primary);
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white);
    transform: none;
}

.license-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--background-color);
    box-shadow: inset 0.1rem 0.1rem 0.2rem var(--greyLight-2), inset -0.05rem -0.05rem 0.15rem var(--white);
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .license-form-main {
        flex-direction: column;
        gap: 30px;
    }
    
    .license-form-left {
        flex: 1;
        width: 100%;
    }
    
    .license-form-right {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .license-container {
        padding: 25px 18px;
    }
    
    .license-title {
        font-size: 26px;
    }
    
    .license-description {
        font-size: 14px;
    }
    
    .license-form-container {
        padding: 25px 20px;
    }
    
    .license-form-main {
        gap: 20px;
    }
    
    .license-platform-label {
        padding: 12px 16px;
    }
    
    .license-platform-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .license-form-right {
        padding: 20px;
    }
    
    .license-info-title {
        font-size: 18px;
    }

    .license-empty-state {
        gap: 12px;
        padding: 40px 15px;
    }

    .license-empty-icon {
        font-size: 40px;
    }

    .license-empty-text {
        font-size: 14px;
    }

    .license-action-btns {
        flex-direction: column;
        gap: 10px;
    }

    .license-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 拒绝理由显示样式 */
.license-reject-reason {
    background: var(--background-color);
    border: none;
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white);
    border-left: 3px solid #f87171;
}

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

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

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

/* 需要重新提交提示样式 */
.license-resubmit-notice {
    background: var(--background-color);
    border: none;
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white);
    border-left: 3px solid #f59e0b;
}

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

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