/* 复用主样式 */
@import url('styles.css');

.listing-form {
    background: #1a1c23;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 32px 24px;
    max-width: 600px;
    margin: 32px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 两列布局容器 */
.listing-form .form-row {
    display: flex;
    gap: 20px;
}

.listing-form .form-group {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.listing-form label {
    font-weight: 600;
    color: #fff;
}

.listing-form label span {
    color: #e74c3c;
    margin-left: 2px;
}

.listing-form input,
.listing-form select,
.listing-form textarea {
    padding: 10px 12px;
    border: 1px solid #2a2d36;
    border-radius: 6px;
    font-size: 1rem;
    background: rgba(255,255,255,0.1);
    color: #fff;
    transition: border 0.2s, background 0.2s;
}

.listing-form select {
    background: rgba(30,32,40,1);
    color: #fff;
}

.listing-form select option {
    background: #23242a;
    color: #fff;
}

.listing-form input:focus,
.listing-form select:focus,
.listing-form textarea:focus {
    border-color: #27ae60;
    outline: none;
    background: rgba(255,255,255,0.18);
}

.listing-form textarea {
    resize: vertical;
    min-height: 80px;
}

.listing-form .btn-primary {
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.listing-form .btn-primary:hover {
    background: #219150;
}

.form-message {
    margin-top: 16px;
    text-align: center;
    font-size: 1rem;
    color: #27ae60;
}

/* 响应式：移动端一列 */
@media (max-width: 600px) {
    .listing-form {
        padding: 18px 6px;
    }
    .listing-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

body.light-mode .listing-form {
    background: #f8fafc;
}
body.light-mode .listing-form label {
    color: #222;
}
body.light-mode .listing-form input,
body.light-mode .listing-form select,
body.light-mode .listing-form textarea {
    background: #fff;
    color: #222;
    border: 1px solid #e2e8f0;
}
body.light-mode .listing-form select {
    background: #fff;
    color: #222;
}
body.light-mode .listing-form select option {
    background: #fff;
    color: #222;
}
body.light-mode .listing-form input:focus,
body.light-mode .listing-form select:focus,
body.light-mode .listing-form textarea:focus {
    border-color: #22c55e;
    background: #f1f5f9;
}
body.light-mode .listing-form .btn-primary {
    background: #22c55e;
    color: #fff;
}
body.light-mode .listing-form .btn-primary:hover {
    background: #1dab50;
}
body.light-mode .form-message {
    color: #22c55e;
} 