/* AI工具分类收录页面样式 - 完整版 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 主容器 */
.aitool-collect-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0f2a 0%, #0a1f3e 100%);
    padding: 2rem;
    position: relative;
}

/* 卡片样式 */
.aitool-collect-card {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(12, 25, 55, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 2rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 255, 255, 0.1);
    overflow: hidden;
}

/* 卡片头部 */
.aitool-collect-card .card-header {
    background: linear-gradient(135deg, rgba(0, 100, 150, 0.4), rgba(0, 150, 200, 0.2));
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(78, 255, 255, 0.3);
    text-align: center;
}

.aitool-collect-card .card-header h2 {
    color: #4effff;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 0 10px rgba(78, 255, 255, 0.5);
}

.aitool-collect-card .card-header p {
    color: #bbddff;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* 卡片主体 */
.aitool-collect-card .card-body {
    padding: 2rem;
}

/* 表单分组 */
.aitool-collect-card .form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.aitool-collect-card .form-group label {
    width: 130px;
    color: #e0f0ff;
    font-weight: 500;
    padding-top: 0.5rem;
    font-size: 0.95rem;
}

.aitool-collect-card .form-group label .required,
.aitool-collect-card .form-group .required {
    color: #ff6b6b;
    margin-left: 2px;
}

.aitool-collect-card .form-group .form-control,
.aitool-collect-card .form-group .form-select {
    flex: 1;
    min-width: 200px;
    background: rgba(20, 40, 70, 0.8);
    border: 1px solid rgba(78, 255, 255, 0.3);
    border-radius: 0.75rem;
    padding: 0.6rem 1rem;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.aitool-collect-card .form-group .form-control:focus,
.aitool-collect-card .form-group .form-select:focus {
    outline: none;
    border-color: #4effff;
    box-shadow: 0 0 10px rgba(78, 255, 255, 0.3);
    background: rgba(30, 60, 100, 0.9);
}

.aitool-collect-card .form-group .form-control::placeholder {
    color: #88aaff;
    opacity: 0.6;
}

.aitool-collect-card .form-group .input-group {
    flex: 1;
    min-width: 200px;
}

.aitool-collect-card .form-group .input-group .form-control {
    flex: 1;
    min-width: auto;
    border-radius: 0.75rem 0 0 0.75rem;
}

.aitool-collect-card .form-group .input-group .btn {
    border-radius: 0 0.75rem 0.75rem 0;
    background: rgba(0, 100, 150, 0.4);
    border: 1px solid rgba(78, 255, 255, 0.3);
    color: #4effff;
}

.aitool-collect-card .form-group .input-group .btn:hover {
    background: rgba(0, 150, 200, 0.4);
}

/* 文本域 */
.aitool-collect-card textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* 平台填写区域 */
.aitool-collect-card .platform-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(78, 255, 255, 0.3);
    position: relative;
}

.aitool-collect-card .platform-section::before {
    content: "以下由平台填写";
    position: absolute;
    top: -12px;
    left: 20px;
    background: rgba(12, 25, 55, 0.9);
    padding: 0 10px;
    color: #ffaa66;
    font-size: 0.85rem;
}

.aitool-collect-card .platform-section .form-group label {
    color: #ffaa66;
}

.aitool-collect-card .platform-section .form-control {
    background: rgba(40, 40, 60, 0.6);
    cursor: not-allowed;
}

/* 按钮组 */
.aitool-collect-card .button-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1rem;
}

.aitool-collect-card .btn {
    padding: 0.7rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.aitool-collect-card .btn-submit {
    background: linear-gradient(135deg, #00aaff, #0066cc);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 100, 200, 0.3);
}

.aitool-collect-card .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 150, 255, 0.4);
}

.aitool-collect-card .btn-cancel {
    background: rgba(100, 100, 120, 0.6);
    color: #ddddff;
    border: 1px solid rgba(200, 200, 255, 0.3);
}

.aitool-collect-card .btn-cancel:hover {
    background: rgba(120, 120, 140, 0.8);
}

.aitool-collect-card .btn-return {
    background: rgba(0, 0, 0, 0.5);
    color: #bbddff;
    border: 1px solid #4effff;
}

.aitool-collect-card .btn-return:hover {
    background: #2c6e9e;
    color: white;
}

/* 列表组样式（分类选择） */
.list-group {
    background: transparent;
    border-radius: 0.5rem;
}

.list-group-item {
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(20, 40, 70, 0.6);
    border: 1px solid rgba(78, 255, 255, 0.2);
    color: #e0f0ff;
    margin-bottom: 3px;
    border-radius: 0.5rem !important;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.list-group-item:hover {
    background: rgba(0, 100, 150, 0.4);
    border-color: #4effff;
    transform: translateX(3px);
}

.list-group-item.active {
    background: rgba(0, 150, 200, 0.5);
    border-color: #4effff;
    color: #ffffff;
    font-weight: 600;
}

.list-group-item.active:hover {
    background: rgba(0, 150, 200, 0.7);
}

/* 表单验证样式 */
.aitool-collect-card .form-control.is-valid {
    border-color: #28a745 !important;
}

.aitool-collect-card .form-control.is-invalid {
    border-color: #dc3545 !important;
}

.aitool-collect-card .invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.aitool-collect-card .is-invalid ~ .invalid-feedback {
    display: block;
}

/* 模态框样式 */
.modal-content {
    border-radius: 1.5rem;
    border: 1px solid rgba(78, 255, 255, 0.3);
}

.modal-header {
    border-bottom: 1px solid rgba(78, 255, 255, 0.3);
}

.modal-footer {
    border-top: 1px solid rgba(78, 255, 255, 0.3);
}

/* 二维码上传错误 */
#qrcodeError {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(78, 255, 255, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(78, 255, 255, 0.5);
}

/* PDF查看器样式 */
.pdf-canvas-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pdf-page-canvas {
    margin-bottom: 10px;
    border: 1px solid rgba(78, 255, 255, 0.2);
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    max-width: 100%;
    height: auto;
}

/* 响应式 */
@media (max-width: 768px) {
    .aitool-collect-container {
        padding: 1rem;
    }
    
    .aitool-collect-card .card-body {
        padding: 1.5rem;
    }
    
    .aitool-collect-card .form-group {
        flex-direction: column;
    }
    
    .aitool-collect-card .form-group label {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .aitool-collect-card .form-group .form-control,
    .aitool-collect-card .form-group .input-group {
        width: 100%;
        min-width: auto;
    }
    
    .aitool-collect-card .button-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .aitool-collect-card .btn {
        width: 100%;
    }
    
    .modal-dialog.modal-lg {
        margin: 10px;
    }
    
    .modal-body .col-md-4 {
        margin-bottom: 15px;
    }
    
    .modal-body .list-group {
        height: 200px !important;
    }
}

/* 打印样式 */
@media print {
    .no-print {
        display: none !important;
    }
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}



