/* 创建组队名片页面样式 */

/* 页面标题 */
.page-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.page-title h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.page-title p {
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

/* 创建表单容器 */
.create-form-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* 表单预览区域 */
.form-preview {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.preview-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.preview-header h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-header h3 i {
    color: var(--primary-color);
}

.preview-card {
    transform: scale(0.9);
    transform-origin: top center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

/* 表单区域 */
.form-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.create-form {
    padding: 20px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-bottom: 10px;
}

.form-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.form-section h3 i {
    color: var(--primary-color);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* 范围滑块 */
.range-slider {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 5px rgba(196, 18, 48, 0.1);
}

.range-value {
    font-weight: 500;
    color: var(--primary-color);
    text-align: center;
}

/* 字数统计 */
.char-count {
    text-align: right;
    font-size: 0.9rem;
    color: var(--light-text);
    margin-top: 5px;
}

/* 标签选择 */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    position: relative;
}

.tag-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.tag-item label {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f0f0f0;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--light-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-item input[type="checkbox"]:checked + label {
    background-color: var(--primary-color);
    color: white;
}

.tag-item label:hover {
    background-color: #e0e0e0;
}

.tag-item input[type="checkbox"]:checked + label:hover {
    background-color: var(--secondary-color);
}

/* 表单操作按钮 */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

/* 中式风格装饰 */
.main-content::before {
    content: '';
    position: absolute;
    top: 50px;
    right: 50px;
    width: 200px;
    height: 200px;
    background-image: url('https://images.unsplash.com/photo-1578301978693-85fa9c0320b9?ixlib=rb-1.2.1&auto=format&fit=crop&w=200&q=80');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.03;
    transform: rotate(15deg);
    z-index: -1;
}

.main-content::after {
    content: '';
    position: absolute;
    bottom: 50px;
    left: 50px;
    width: 150px;
    height: 150px;
    background-image: url('https://images.unsplash.com/photo-1578301978693-85fa9c0320b9?ixlib=rb-1.2.1&auto=format&fit=crop&w=150&q=80');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.03;
    transform: rotate(-15deg);
    z-index: -1;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .create-form-container {
        grid-template-columns: 1fr;
    }
    
    .form-preview {
        position: static;
        margin-bottom: 30px;
    }
    
    .preview-card {
        transform: none;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
} 