/* 发布信息页面专用样式 */

/* 顶部提示栏 */
.publish-notice {
    background: linear-gradient(135deg, var(--theme-color, #ff1493) 0%, var(--theme-color-light, #ff69b4) 100%);
    color: white;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

/* VIP升级提示 */
.vip-notice {
    background: #f8f9fa;
    color: #333;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    border-left: 4px solid var(--theme-color, #ff1493);
}

/* 发布表单 */
.publish-form {
    background: #fff;
    padding: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--theme-color, #ff1493);
    box-shadow: 0 0 0 2px rgba(var(--theme-color-rgb, 255, 20, 147), 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999;
}

/* 表单行布局 */
.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-select {
    flex: 1;
}

/* 服务项目网格 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
}

.service-item input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.service-item:hover {
    color: var(--theme-color, #ff1493);
}

.service-item input[type="checkbox"]:checked + span {
    color: var(--theme-color, #ff1493);
    font-weight: bold;
}

/* 联系方式区域 */
.contact-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
}

.contact-notice {
    background: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 13px;
    border: 1px solid #ffeeba;
}

/* 文件上传 */
.upload-section {
    border: 2px dashed #ddd;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    background: #fafafa;
}

.upload-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.upload-btn:hover {
    background: #218838;
}

.upload-preview {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 提交按钮区域 */
.form-submit {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.submit-btn,
.reset-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn {
    background: var(--theme-color, #ff1493);
    color: white;
}

.submit-btn:hover {
    background: var(--theme-color-dark, #e91e63);
    transform: translateY(-1px);
}

.reset-btn {
    background: #6c757d;
    color: white;
}

.reset-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* 底部提示 */
.bottom-notices {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.notice-red {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
    font-size: 13px;
    line-height: 1.6;
}

.notice-green {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    font-size: 13px;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
        padding: 10px;
    }
    
    .service-item {
        font-size: 12px;
    }
    
    .contact-section {
        padding: 15px;
    }
    
    .form-submit {
        flex-direction: column;
        align-items: center;
    }
    
    .submit-btn,
    .reset-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .upload-preview {
        justify-content: flex-start;
    }
    
    .preview-item {
        width: 80px;
        height: 80px;
    }
}
