/* 发布拍卖页面样式 */

.main-content {
    padding: 40px 0;
    background: #F5F5F5;
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, #C8102E 0%, #8B0A1E 100%);
    border-radius: 12px;
    color: white;
}

.page-header h1 {
    font-size: 32px;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.page-header .subtitle {
    font-size: 15px;
    margin: 0;
    opacity: 0.9;
}

/* 表单容器 */
.publish-form {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* 表单区块 */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #E0E0E0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 20px;
    color: #333;
    margin: 0;
    font-weight: bold;
}

.required-hint {
    font-size: 13px;
    color: #C8102E;
}

.optional-hint {
    font-size: 13px;
    color: #999;
}

/* 表单网格 */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-label.required::after {
    content: ' *';
    color: #C8102E;
}

.form-input,
.form-textarea {
    padding: 12px 15px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #C8102E;
    box-shadow: 0 0 0 3px rgba(200,16,46,0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-hint {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* 带单位的输入框 */
.input-with-unit {
    position: relative;
}

.input-with-unit .form-input {
    padding-right: 50px;
}

.unit-label {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
}

/* 字符计数 */
.char-counter {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* 图片上传区域 */
.upload-area {
    border: 2px dashed #E0E0E0;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: #C8102E;
    background: #FFF5F7;
}

.upload-placeholder {
    pointer-events: none;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-area p {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: #333;
}

.upload-area small {
    font-size: 13px;
    color: #999;
}

/* 图片预览列表 */
.image-preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #E0E0E0;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
}

.image-remove-btn:hover {
    background: #C8102E;
    transform: scale(1.1);
}

/* 协议同意框 */
.agreement-box {
    background: #F9F9F9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-label .link {
    color: #C8102E;
    text-decoration: none;
    margin: 0 4px;
}

.checkbox-label .link:hover {
    text-decoration: underline;
}

/* 表单操作按钮 */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #E0E0E0;
}

.btn-primary,
.btn-secondary,
.btn-preview {
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #C8102E 0%, #8B0A1E 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(200,16,46,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200,16,46,0.4);
}

.btn-primary:disabled {
    background: #CCCCCC;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: white;
    color: #666;
    border: 1px solid #E0E0E0;
}

.btn-secondary:hover {
    background: #F5F5F5;
    border-color: #C8102E;
    color: #C8102E;
}

.btn-preview {
    background: white;
    color: #C8102E;
    border: 2px solid #C8102E;
}

.btn-preview:hover {
    background: #C8102E;
    color: white;
}

/* 提示信息 */
.info-box {
    background: #E3F2FD;
    border-left: 4px solid #2196F3;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.info-box h4 {
    margin: 0 0 10px 0;
    font-size: 15px;
    color: #1976D2;
}

.info-box p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.info-box ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.info-box li {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

/* 验证错误 */
.form-input.error,
.form-textarea.error {
    border-color: #f44336;
}

.error-message {
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
}

/* 成功提示 */
.success-box {
    background: #E8F5E9;
    border: 1px solid #4CAF50;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 40px 0;
}

.success-box .success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.success-box h3 {
    font-size: 24px;
    color: #388E3C;
    margin: 0 0 15px 0;
}

.success-box p {
    font-size: 15px;
    color: #666;
    margin: 0 0 25px 0;
}

.success-box .btn-primary {
    margin-right: 10px;
}

/* 删除 @media (max-width: 768px) - 移动端样式在 mobile.css */

/* 加载状态 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
