/*!
 * quote.css — 广奇官网「获取报价」页样式（配合 src/master/quote.html 使用）
 * 前缀统一 gk- ；颜色沿用站点品牌色（#2563EB / #1E3A8A）
 */

/* ---------------- Hero ---------------- */
.gk-hero-glow {
    position: absolute;
    top: -40%;
    left: 50%;
    width: 900px;
    height: 900px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, rgba(37, 99, 235, 0) 65%);
    pointer-events: none;
}

.gk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(147, 197, 253, 0.35);
}

.gk-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 2rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.gk-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.gk-trust i {
    color: #60a5fa;
}

/* ---------------- 卡片与分组 ---------------- */
.gk-card {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    padding: 2.5rem;
}

.gk-group + .gk-group {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px dashed #e2e8f0;
}

.gk-group-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.gk-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ---------------- 字段 ---------------- */
.gk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.gk-field {
    margin-bottom: 1.25rem;
}

.gk-field > label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.gk-req {
    color: #dc2626;
    margin-left: 2px;
}

.gk-field input[type="text"],
.gk-field input[type="email"],
.gk-field input[type="tel"],
.gk-field select,
.gk-field textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    background: #f8fafc;
    font-size: 0.95rem;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gk-field input:focus,
.gk-field select:focus,
.gk-field textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.gk-field textarea {
    resize: vertical;
    min-height: 120px;
}

.gk-phone {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.6rem;
}

.gk-err {
    display: none;
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 0.4rem;
}

.gk-field.gk-invalid .gk-err {
    display: block;
}

.gk-field.gk-invalid input,
.gk-field.gk-invalid select,
.gk-field.gk-invalid textarea {
    border-color: #dc2626;
    background: #fef2f2;
}

/* ---------------- 多选胶囊 ---------------- */
.gk-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.gk-pill {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.gk-pill input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

.gk-pill > span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    background: #f8fafc;
    font-size: 0.9rem;
    color: #334155;
    transition: all 0.2s ease;
    user-select: none;
}

.gk-pill > span::before {
    content: "";
    width: 0.95rem;
    height: 0.95rem;
    border: 1.5px solid #94a3b8;
    border-radius: 4px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.gk-pill:hover > span {
    border-color: #93c5fd;
    background: #eff6ff;
}

.gk-pill input:checked + span {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.gk-pill input:checked + span::before {
    background: #ffffff;
    border-color: #ffffff;
    content: "\2713";
    color: #2563eb;
    font-size: 0.7rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.gk-pill input:focus-visible + span {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

/* ---------------- 提交与提示 ---------------- */
.gk-submit {
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem;
    border: none;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.3);
}

.gk-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.38);
}

.gk-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.gk-submit-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.loader {
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: gk-spin 0.9s linear infinite;
    display: inline-block;
}

@keyframes gk-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gk-privacy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #64748b;
}

.gk-privacy i {
    color: #16a34a;
}

.gk-form-error {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.9rem;
}

/* ---------------- 成功态 ---------------- */
.gk-success {
    text-align: center;
    animation: gk-fade-up 0.5s ease both;
}

@keyframes gk-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.gk-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    font-size: 1.9rem;
    box-shadow: 0 12px 30px rgba(22, 163, 74, 0.35);
}

.gk-ref {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.85rem;
    font-weight: 600;
}

.gk-success-qr img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    margin: 0 auto;
}

.gk-success-qr p {
    margin-top: 0.75rem;
    color: #475569;
    font-weight: 600;
}

/* ---------------- 产品分组 ---------------- */
.gk-prod-group + .gk-prod-group {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px dashed #e2e8f0;
}

.gk-prod-group-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.02em;
    margin-bottom: 0.55rem;
}

/* 「整类」选项：虚线边框 + 浅蓝底，区别于具体机型 */
.gk-pill.gk-pill-whole > span {
    border-style: dashed;
    font-weight: 600;
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #93c5fd;
}

.gk-pill.gk-pill-whole input:checked + span {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* ---------------- 蜜罐（机器人不可见） ---------------- */
.gk-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------------- 聊天记录预填提示条 ---------------- */
.gk-prefill-note {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 0.88rem;
    line-height: 1.6;
}

.gk-prefill-note > i {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.gk-prefill-note > span {
    flex: 1;
}

.gk-prefill-note button {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
    padding: 0 0.2rem;
}

.gk-prefill-note button:hover {
    color: #0f172a;
}

/* 加载态：抽取进行中（无关闭按钮，结果返回后自动替换或移除） */
.gk-prefill-note.gk-prefill-loading {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #475569;
}

.gk-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-top: 0.15rem;
    border: 2px solid rgba(100, 116, 139, 0.3);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: gk-spin 0.9s linear infinite;
    flex-shrink: 0;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 640px) {
    .gk-card {
        padding: 1.5rem;
        border-radius: 1.25rem;
    }

    .gk-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .gk-phone {
        grid-template-columns: 120px 1fr;
    }

    .gk-group-title {
        font-size: 1.05rem;
    }
}
