/* ============================================================
 * by 诗航软件-凯哥 2026.6.16
 * ============================================================ */

/* ============================================================
 * quote.css - 在线智能报价页专用样式
 * ============================================================ */

body {
    background: #f0f5fa;
}

.survey-wrapper {
    padding: 2rem 1.5rem;
}

.survey-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.form-card {
    flex: 2;
    min-width: 300px;
    background: white;
    border-radius: 2rem;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
    padding: 1.8rem 2rem 2.2rem;
}

.result-card {
    flex: 1.2;
    min-width: 320px;
    background: linear-gradient(135deg, #ffffff 0%, #fef9f0 100%);
    border-radius: 2rem;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.12);
    padding: 1.8rem 1.8rem 2rem;
    position: sticky;
    top: 1.5rem;
    height: fit-content;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1F5E3A, #2C8F5E);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.4rem;
}

.sub {
    color: #5b6f82;
    border-left: 3px solid #2C8F5E;
    padding-left: 0.8rem;
    margin-bottom: 1.8rem;
    font-size: 0.9rem;
}

.question-group {
    margin-bottom: 1.8rem;
}

.question-label {
    font-weight: 600;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1f3b4a;
}

.options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.3rem;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    border: 1px solid #e0e9ef;
    transition: all 0.2s;
    cursor: pointer;
}

.option-item.selected {
    background: #e6f4ee;
    border-color: #2C8F5E;
}

input[type="radio"], input[type="checkbox"] {
    accent-color: #2C8F5E;
    width: 1rem;
    height: 1rem;
}

label {
    font-weight: 500;
    cursor: pointer;
}

.sub-options {
    margin-top: 1rem;
    margin-left: 0.8rem;
    padding-left: 1rem;
    border-left: 3px dashed #cbdde6;
    transition: all 0.2s;
}

.badge {
    background: #eef2f5;
    font-size: 0.7rem;
    border-radius: 30px;
    padding: 0.2rem 0.6rem;
    color: #2c6b4e;
    font-weight: 500;
}

.price-tip {
    font-size: 0.75rem;
    color: #5f7f6e;
    margin-top: 0.4rem;
}

.warning-tip {
    background: #fff1e0;
    border-left: 3px solid #e67e22;
    padding: 0.5rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #a55304;
    margin-top: 0.8rem;
}

.year-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.year-btn {
    background: #f1f5f9;
    border: 1px solid #cfdfe8;
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.1s;
}

.year-btn.active {
    background: #2C8F5E;
    border-color: #2C8F5E;
    color: white;
}

.year-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: #e9ecef;
}

.addon-group {
    background: #fafdfb;
    padding: 0.8rem 1rem;
    border-radius: 1.2rem;
    margin-top: 0.8rem;
}

.result-text {
    background: #fef7e0;
    padding: 1.2rem;
    border-radius: 1.2rem;
    font-size: 0.85rem;
    line-height: 1.55;
    white-space: pre-wrap;
    font-family: 'SF Mono', monospace;
    border: 1px solid #ffe2b5;
    margin: 1rem 0;
    max-height: 500px;
    overflow-y: auto;
}

.copy-btn {
    background: #1f5e3a;
    color: white;
    border: none;
    width: 100%;
    padding: 0.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
}

.copy-btn:hover {
    background: #0f462e;
    transform: translateY(-2px);
}

.toast-msg {
    text-align: center;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #2C8F5E;
}

hr {
    margin: 1rem 0;
}
select, input[type="number"] {
    padding: 0.3rem 0.6rem;
    border-radius: 30px;
    border: 1px solid #cbd5e1;
    background: white;
}
.inline-field {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
@media (max-width: 780px) {
    .survey-wrapper { padding: 1rem; }
    .form-card, .result-card { padding: 1.2rem; }
}
.disabled-option {
    opacity: 0.6;
    pointer-events: none;
    filter: grayscale(0.1);
}
.qr-inside {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 1.2rem;
    padding: 0.8rem;
    border: 1px solid #e2edf2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.qr-inside img {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    object-fit: contain;
}
.qr-inside span {
    font-size: 0.7rem;
    color: #2c6b4e;
    margin-top: 6px;
    font-weight: 500;
}

.ai-requirement-box {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.ai-requirement-box textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 1rem;
    padding: 0.8rem 1rem;
    font-family: inherit;
    font-size: 0.85rem;
    resize: vertical;
    background: #fefef7;
    transition: 0.2s;
}
.ai-requirement-box textarea:focus {
    outline: none;
    border-color: #2C8F5E;
    box-shadow: 0 0 0 2px rgba(44,143,94,0.2);
}
.ai-requirement-box label {
    font-weight: 500;
    color: #2c5a4a;
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
}

/* 备注：Hero Banner 公共样式已在 common.css 定义，以下为 quote.css 独有样式 */

.footer-copyright-area {
    background: #0f172a;
    border-radius: 1.5rem;
    max-width: 1400px;
    margin: 1.5rem auto 2rem auto;
    padding: 1.2rem 1.8rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: #e2e8f0;
}
.copyright-text {
    font-size: 0.75rem;
    line-height: 1.5;
}
.copyright-text a {
    color: #7aa9d9;
    text-decoration: none;
}
.copyright-text a:hover {
    color: #ffd966;
}
@media (max-width: 700px) {
    .footer-copyright-area {
        flex-direction: column;
        text-align: center;
        margin: 1rem 1rem 1.5rem;
    }
}