:root {
    --main-color: #5D3FD3;
    --light-purple: #f0edff;
    --red-price: #ff4444;
    --green-success: #28a745;
    --dark-purple: #4a2fb8;
    --gradient-primary: linear-gradient(135deg, #5D3FD3 0%, #7B68EE 100%);
}

/* BFF模式：消息提示样式 */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    animation: slideInDown 0.3s ease-out;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 主容器样式 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.form-container {
    background: white;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(93, 63, 211, 0.1);
    transition: all 0.3s ease;
}

.form-container:hover {
    box-shadow: 0 15px 50px rgba(93, 63, 211, 0.15);
    transform: translateY(-5px);
}

/* 表单区域样式 */
.form-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    animation: fadeInUp 0.6s ease-out;
}

.form-section:last-child { margin-bottom: 0; }

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--main-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i { font-size: 18px; }

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

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

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

.required { color: var(--red-price); }

.form-input, .form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: white;
}

.form-input:focus, .form-select:focus { 
    outline: none; 
    border-color: var(--main-color); 
    box-shadow: 0 0 0 3px rgba(93, 63, 211, 0.1); 
}

.form-textarea { min-height: 100px; resize: vertical; }

/* 图片上传预览 */
.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
    padding: 10px;
    border: 2px dashed #e0e0e0;
    border-radius: 10px;
    background-color: #f9f9f9;
    min-height: 140px; /* 确保容器有最小高度 */
}

.image-slot {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-slot:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.image-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.image-slot:hover .remove-btn {
    opacity: 1;
    transform: scale(1);
}

.upload-slot {
    width: 120px;
    height: 120px;
    border: 2px dashed var(--main-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--main-color);
    background-color: var(--light-purple);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.upload-slot:hover {
    background-color: #e0d8ff;
    border-color: var(--dark-purple);
}

.upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.upload-text {
    font-size: 14px;
    font-weight: 500;
}

/* 交易类型选择器 */
.type-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 10px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid rgba(93, 63, 211, 0.1);
}

.type-option {
    flex: 1;
    padding: 20px 15px;
    border: 2px solid transparent;
    border-radius: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.type-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.type-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(93, 63, 211, 0.15);
    border-color: rgba(93, 63, 211, 0.3);
}

.type-option.active {
    border-color: var(--main-color);
    background: linear-gradient(135deg, var(--light-purple) 0%, #f0ebff 100%);
    color: var(--main-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(93, 63, 211, 0.2);
}

.type-option.active::before {
    opacity: 0.05;
}

.type-option i {
    font-size: 28px;
    margin-bottom: 12px;
    display: block;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.type-option:hover i {
    transform: scale(1.1);
}

.type-option.active i {
    color: var(--main-color);
    text-shadow: 0 2px 8px rgba(93, 63, 211, 0.3);
}

.type-option .label {
    font-weight: 700;
    font-size: 15px;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

/* 买卖类型选择器 */
.deal-type-selector {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding: 10px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid rgba(93, 63, 211, 0.1);
}

.deal-type-option {
    flex: 1;
    padding: 25px 20px;
    border: 2px solid transparent;
    border-radius: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.deal-type-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.deal-type-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(93, 63, 211, 0.15);
    border-color: rgba(93, 63, 211, 0.3);
}

.deal-type-option i {
    font-size: 28px;
    color: var(--main-color);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.deal-type-option:hover i {
    transform: scale(1.1);
    text-shadow: 0 2px 8px rgba(93, 63, 211, 0.3);
}

.deal-type-option span {
    font-size: 16px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.deal-type-option.active {
    border-color: var(--main-color);
    background: linear-gradient(135deg, var(--light-purple) 0%, #f0ebff 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(93, 63, 211, 0.2);
}

.deal-type-option.active::before {
    opacity: 0.05;
}

.deal-type-option.active i {
    color: var(--main-color);
    text-shadow: 0 2px 8px rgba(93, 63, 211, 0.4);
}

.deal-type-option.active span {
    color: var(--main-color);
}

.required-star {
    color: #ff4d4f;
    margin-left: 4px;
}

/* 搜索建议样式 */
.search-input-container { position: relative; }

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background-color: var(--light-purple); }
.suggestion-item.selected {
    background-color: var(--light-purple);
    color: var(--main-color);
}

.suggestion-name { font-weight: 500; color: #333; }
.suggestion-category {
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 12px;
}

.no-suggestions {
    padding: 15px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* 图片上传样式 */
.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid rgba(93, 63, 211, 0.08);
    margin-top: 15px;
}

.upload-slot, .preview-item {
    width: 100px;
    height: 100px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}

.upload-slot {
    border: 2px dashed rgba(93, 63, 211, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.upload-slot:hover { 
    border-color: var(--main-color);
    background: linear-gradient(135deg, var(--light-purple) 0%, #f0ebff 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(93, 63, 211, 0.15);
}

.upload-icon { 
    font-size: 28px; 
    color: var(--main-color); 
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.upload-slot:hover .upload-icon {
    transform: scale(1.1);
    text-shadow: 0 2px 8px rgba(93, 63, 211, 0.3);
}

.upload-text { 
    color: var(--main-color); 
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.upload-hint { 
    color: #999; 
    font-size: 10px; 
    margin-top: 3px;
    text-align: center;
}

.preview-item { 
    border: 2px solid rgba(93, 63, 211, 0.2); 
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.preview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(93, 63, 211, 0.15);
}

.preview-image { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: transform 0.3s ease;
}

.preview-item:hover .preview-image {
    transform: scale(1.05);
}

.remove-image {
    position: absolute;
    top: 8px; 
    right: 8px;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.9), rgba(255, 45, 85, 0.9));
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.3);
    backdrop-filter: blur(10px);
}

.remove-image:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.5);
}

/* 选择器网格 */
.selector-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
    gap: 18px; 
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid rgba(93, 63, 211, 0.08);
}

.selector-item { 
    padding: 18px 20px; 
    border: 2px solid transparent; 
    border-radius: 12px; 
    text-align: center; 
    cursor: pointer; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    font-size: 14px; 
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.3px;
}

.selector-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.selector-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 63, 211, 0.12);
    border-color: rgba(93, 63, 211, 0.3);
}

.selector-item.active { 
    border-color: var(--main-color); 
    background: linear-gradient(135deg, var(--light-purple) 0%, #f0ebff 100%); 
    color: var(--main-color);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(93, 63, 211, 0.18);
}

.selector-item.active::before {
    opacity: 0.03;
}

/* 表单行 */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* 表单组间距优化 */
.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    margin-bottom: 15px;
    display: block;
    font-weight: 700;
    color: #2c3e50;
    font-size: 16px;
    position: relative;
    padding-left: 8px;
}

.form-group label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* 基础输入框样式 */
.form-control, input[type="text"], input[type="number"], input[type="email"], 
input[type="tel"], textarea, select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e8ecf4;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.5;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-family: inherit;
    color: #2c3e50;
}

.form-control:focus, input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 4px rgba(93, 63, 211, 0.1), 0 4px 20px rgba(93, 63, 211, 0.15);
    background: #fefeff;
    transform: translateY(-1px);
}

.form-control:hover, input:hover, textarea:hover, select:hover {
    border-color: #c8d3f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* 文本域特殊样式 */
textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* 选择框样式 */
select {
    cursor: pointer;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%235D3FD3" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 45px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* 输入框组合样式 */
.input-group {
    position: relative;
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    border-radius: 12px 0 0 12px;
    border-right: none;
}

.input-group-append {
    display: flex;
}

.input-group-text {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecf4 100%);
    border: 2px solid #e8ecf4;
    border-left: none;
    border-radius: 0 12px 12px 0;
    color: var(--main-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* 占位符样式 */
.form-control::placeholder, input::placeholder, textarea::placeholder {
    color: #a0aec0;
    opacity: 1;
    font-style: italic;
}

/* 错误状态 */
.form-control.is-invalid, input.is-invalid, textarea.is-invalid {
    border-color: #e53e3e;
    box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.1);
}

/* 成功状态 */
.form-control.is-valid, input.is-valid, textarea.is-valid {
    border-color: #38a169;
    box-shadow: 0 0 0 4px rgba(56, 161, 105, 0.1);
}

/* 子标题样式 */
.section-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    margin-top: 0;
    display: block;
}

/* 价格输入组 */
.price-input-group { 
    display: flex; 
    align-items: center; 
    border: 2px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.price-input-group:hover {
    border-color: var(--main-color);
    box-shadow: 0 4px 15px rgba(93, 63, 211, 0.15);
}

.price-input-group:focus-within {
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(93, 63, 211, 0.1);
}

.currency-symbol { 
    padding: 0 15px;
    font-weight: 700; 
    color: var(--main-color); 
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-right: 2px solid #e9ecef;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 16px;
}

.price-input { 
    flex: 1; 
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.price-input:focus {
    box-shadow: none;
}

.unit-selector {
    background: linear-gradient(135deg, var(--main-color), #7c5bd4);
    color: white;
    padding: 0 18px;
    border-radius: 0 10px 10px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    border-left: 2px solid var(--main-color);
    height: 100%;
    font-size: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.price-input-group:hover .unit-selector {
    background: linear-gradient(135deg, #6b4bc7, var(--main-color));
    transform: scale(1.02);
}

/* 保证金信息 */
.guarantee-section {
    background: var(--light-purple);
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid var(--main-color);
    margin-top: 20px;
}

.guarantee-title {
    font-weight: 600;
    color: var(--main-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.guarantee-content {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* 包绝品开关样式 */
.guarantee-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    margin-top: 20px;
}

.guarantee-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* 开关容器样式 */
.form-group.switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    margin-top: 15px;
    margin-bottom: 20px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    opacity: 1;
    max-height: 100px;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

.form-group.switch-container.hidden {
    opacity: 0;
    max-height: 0;
    padding: 0;
    margin: 0;
    border: none;
}

.form-group.switch-container.visible {
    opacity: 1;
    max-height: 100px;
    padding: 20px 0;
    margin-top: 15px;
    margin-bottom: 20px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.switch-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--main-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--main-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* 协议复选框 */
.agreement-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    font-size: 13px;
    color: #666;
    flex-wrap: wrap;
}

.agreement-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--main-color);
}

.agreement-checkbox a {
    color: var(--main-color);
    text-decoration: none;
}

.agreement-checkbox a:hover {
    text-decoration: underline;
}

/* 底部提交区域 */
.submit-section {
    position: static;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    padding: 30px;
    margin-top: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(93, 63, 211, 0.15);
    border: 1px solid rgba(93, 63, 211, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.submit-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 20px 20px 0 0;
}

.agreement-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
    padding: 15px 20px;
    background: rgba(93, 63, 211, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(93, 63, 211, 0.1);
}

.agreement-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--main-color);
    cursor: pointer;
}

.agreement-checkbox label {
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

.agreement-checkbox a {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.agreement-checkbox a:hover {
    text-decoration: underline;
    color: var(--dark-purple);
}

.action-buttons { 
    display: flex; 
    gap: 15px; 
    min-width: 300px;
}

.action-btn { 
    flex: 1; 
    padding: 16px 24px; 
    border-radius: 12px; 
    font-size: 16px; 
    font-weight: 600; 
    cursor: pointer; 
    border: none; 
    transition: all 0.3s ease; 
    position: relative;
    overflow: hidden;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn.secondary { 
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057; 
    border: 2px solid #dee2e6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.action-btn.secondary:hover { 
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--main-color);
}

.action-btn.primary { 
    background: var(--gradient-primary); 
    color: white; 
    box-shadow: 0 6px 20px rgba(93, 63, 211, 0.4);
    border: 2px solid transparent;
}

.action-btn.primary:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(93, 63, 211, 0.5);
    background: linear-gradient(135deg, #6b4bc7 0%, #8a7aee 100%);
}

.action-btn.primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(93, 63, 211, 0.4);
}

.action-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.action-btn:disabled::before {
    display: none;
}

/* 添加图标到按钮 */
.action-btn.secondary::after {
    content: '\f0c7'; /* FontAwesome save icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.action-btn.primary::after {
    content: '\f1d8'; /* FontAwesome paper-plane icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* 侧边栏样式 */
.sidebar { 
    position: sticky; 
    top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-card { 
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 20px; 
    padding: 30px; 
    box-shadow: 0 15px 50px rgba(93, 63, 211, 0.12);
    border: 1px solid rgba(93, 63, 211, 0.08);
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.3s;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 20px 20px 0 0;
}

.sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(93, 63, 211, 0.18);
}

.sidebar-title { 
    font-size: 20px; 
    font-weight: 700; 
    margin-bottom: 25px; 
    color: var(--main-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(93, 63, 211, 0.5);
}

.sidebar-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.sidebar-list li { 
    position: relative; 
    padding: 15px 0 15px 35px; 
    margin-bottom: 8px;
    color: #555; 
    font-size: 14px;
    line-height: 1.6;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sidebar-list li:hover {
    background: rgba(93, 63, 211, 0.05);
    color: var(--main-color);
    transform: translateX(5px);
}

.sidebar-list li::before { 
    content: '';
    position: absolute; 
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--gradient-primary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sidebar-list li:hover::before {
    transform: translateY(-50%) scale(1.3);
    box-shadow: 0 0 15px rgba(93, 63, 211, 0.6);
}

.sidebar-list li::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    border-radius: 0 3px 3px 0;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-list li:hover::after {
    transform: scaleY(1);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section:nth-child(2) { animation-delay: 0.1s; }
.form-section:nth-child(3) { animation-delay: 0.2s; }
.form-section:nth-child(4) { animation-delay: 0.3s; }

/* 响应式设计 */
@media (max-width: 992px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    .sidebar {
        margin-top: 30px;
    }
    .submit-section {
        flex-direction: column;
        gap: 15px;
    }
    .action-buttons {
        width: 100%;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-container {
        padding: 20px;
    }
    .trade-type-selector {
        flex-direction: column;
        gap: 10px;
    }
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
}