/**
 * 居安如意 - 装修报价计算器样式
 * 黄金配色 · 专业大气 · 响应式
 */

.calc-card {
    max-width: 780px; margin: 0 auto;
    background: linear-gradient(180deg, #fff, #faf8f3);
    border-radius: 20px; padding: 40px 42px 36px;
    box-shadow: 0 20px 60px rgba(200,168,94,0.15), 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid rgba(200,168,94,0.18);
    position: relative; overflow: hidden;
}
.calc-card::before {
    content:""; position:absolute; top:-50px; right:-50px;
    width:200px; height:200px; border-radius:50%;
    background: radial-gradient(circle, rgba(200,168,94,0.15), transparent 70%);
    pointer-events:none;
}

.calc-header { text-align:center; margin-bottom: 32px; position:relative; z-index:1; }
.calc-title {
    font-size: 24px; font-weight: 700; color: #2a2520;
    display:inline-block;
}
.calc-sub {
    font-size: 13px; color:#888; margin-top: 8px;
}

/* 通用 section */
.calc-section { margin-bottom: 24px; position:relative; z-index:1; }
.calc-label {
    display:flex; justify-content:space-between; align-items:center;
    font-size: 14px; color:#4a4a4a; margin-bottom: 12px; font-weight: 500;
}
.calc-area-val input {
    width: 72px; padding: 6px 10px; font-size: 18px; font-weight: 700;
    border: 2px solid #c8a85e; border-radius: 8px; color:#2a2520; text-align:center;
    font-family: inherit;
}
.calc-area-val input:focus { outline:none; box-shadow:0 0 0 3px rgba(200,168,94,0.25); }
.calc-area-val { font-size:14px; color:#888; }

/* 面积滑动条 */
.calc-range {
    width:100%; height: 6px; -webkit-appearance:none; appearance:none;
    background: linear-gradient(90deg, #c8a85e, #e5cc8e);
    border-radius: 3px; outline:none; cursor:pointer;
}
.calc-range::-webkit-slider-thumb {
    -webkit-appearance:none; appearance:none; width:22px; height:22px; border-radius:50%;
    background: #fff; border: 3px solid #c8a85e; cursor:grab;
    box-shadow: 0 2px 8px rgba(200,168,94,0.4);
    transition: transform .15s ease;
}
.calc-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.calc-range-ticks {
    display:flex; justify-content:space-between; font-size:11px; color:#aaa; margin-top: 6px;
}

/* 类型 */
.calc-type-group { display: flex; gap: 12px; }
.calc-type-label {
    flex:1; cursor:pointer; position:relative;
}
.calc-type-label input { position:absolute; opacity:0; }
.calc-type-box {
    display:block; padding: 14px 16px;
    border: 2px solid #e5e5e5; border-radius: 12px; text-align:center;
    transition: all .2s ease; background:#fff;
}
.calc-type-box strong { display:block; font-size:15px; color:#333; margin-bottom:4px; }
.calc-type-box em { display:block; font-size:11px; color:#999; font-style:normal; }
.calc-type-label input:checked + .calc-type-box {
    border-color: #c8a85e; background: #fdf8ea;
    box-shadow: 0 4px 14px rgba(200,168,94,0.2);
}

/* 档次 */
.calc-grade-group { display:flex; gap: 12px; }
.calc-grade-btn {
    flex:1; padding: 14px 10px; border: 2px solid #e5e5e5;
    background:#fff; border-radius: 12px; cursor:pointer;
    transition: all .2s ease; font-family: inherit; text-align:center;
}
.calc-grade-btn strong { display:block; font-size:15px; color:#333; margin-bottom:4px; font-weight:600; }
.calc-grade-btn em { display:block; font-size:11px; color:#999; font-style:normal; }
.calc-grade-btn:hover { border-color:#c8a85e; }
.calc-grade-btn.active {
    border-color: #c8a85e; background: linear-gradient(135deg, #c8a85e, #a58a48);
    box-shadow: 0 4px 16px rgba(200,168,94,0.3);
}
.calc-grade-btn.active strong { color:#fff; }
.calc-grade-btn.active em { color: rgba(255,255,255,0.85); }

/* 风格 */
.calc-style-group { display:grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.calc-style-btn {
    padding: 12px 8px; border: 2px solid #e5e5e5; background:#fff; border-radius: 10px;
    cursor:pointer; transition: all .2s ease; font-family: inherit;
    display:flex; flex-direction:column; align-items:center; gap:4px; font-size: 13px; color:#555;
}
.calc-style-icon { font-size: 22px; }
.calc-style-btn:hover { border-color:#c8a85e; background:#fdf8ea; }
.calc-style-btn.active {
    border-color: #c8a85e; background: linear-gradient(135deg, #fdf8ea, #fff3d5);
    color:#8a6d1a; font-weight: 600;
    box-shadow: 0 2px 8px rgba(200,168,94,0.18);
}

/* 计算按钮 */
.calc-submit {
    display:block; width:100%; padding: 18px; font-size: 17px; font-weight: 700;
    color:#fff; border:none; border-radius: 14px; cursor:pointer;
    background: linear-gradient(135deg, #c8a85e 0%, #a58a48 100%);
    box-shadow: 0 8px 24px rgba(200,168,94,0.35);
    transition: all .25s ease; margin: 12px 0 0; font-family: inherit;
    letter-spacing: 1px;
}
.calc-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(200,168,94,0.45);
}
.calc-submit:active { transform: translateY(0); }

/* 结果 */
.calc-result {
    display:none; margin-top: 30px; padding-top: 28px;
    border-top: 2px dashed rgba(200,168,94,0.35);
    animation: none;
}
.calc-result.show {
    animation: calcFadeInUp .5s ease both;
    display: block !important;
}
@keyframes calcFadeInUp {
    from { opacity:0; transform: translateY(20px); }
    to { opacity:1; transform: translateY(0); }
}

.calc-res-row {
    display:flex; justify-content: space-between; align-items:center;
    padding: 10px 0;
}
.calc-res-label { font-size: 13px; color:#888; }
.calc-res-total .calc-res-num {
    font-size: 34px; font-weight: 800; color: #c8a85e; font-family: inherit;
}
.calc-res-total em { font-style:normal; font-size: 13px; color:#888; margin-left: 4px; }
.calc-res-range { font-size: 14px; font-weight: 600; color:#2a2520; }
.calc-res-meta { font-size: 12px; color:#999; }
.calc-res-meta em { font-style:normal; color:#c8a85e; font-weight: 600; }

/* 预算分解 */
.calc-breakdown { margin-top: 16px; }
.calc-bd-title {
    font-size: 14px; font-weight: 600; color:#2a2520; margin-bottom: 14px; padding-left: 10px;
    border-left: 3px solid #c8a85e;
}
.calc-bd-bars { display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-bd-bar { background:#fdfbf5; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(200,168,94,0.1); }
.calc-bd-head {
    display:flex; justify-content:space-between; align-items:center; margin-bottom: 8px;
    font-size: 13px; color:#333;
}
.calc-bd-head strong { font-size: 14px; color:#2a2520; }
.calc-bd-head em { font-style:normal; font-size: 11px; color:#888; margin-left:4px; }
.calc-bd-track {
    height: 6px; background:#eee; border-radius: 3px; overflow:hidden; margin-bottom: 8px;
}
.calc-bd-fill {
    height:100%; border-radius: 3px;
    transition: width .6s ease;
}
.calc-bd-items { display:flex; flex-wrap:wrap; gap: 4px; }
.calc-bd-items span {
    font-size: 10px; color:#999; background:#fff; padding: 2px 6px;
    border-radius: 10px; border: 1px solid #eee;
}

/* CTA */
.calc-cta {
    margin-top: 20px; padding: 20px; text-align:center;
    background: linear-gradient(135deg, #2a2520, #3d3529);
    border-radius: 12px; color:#fff;
}
.calc-cta-text { font-size: 13px; opacity: .9; margin-bottom: 14px; line-height: 1.8; }
.calc-cta-btns { display:flex; gap: 12px; justify-content:center; }
.calc-cta-phone {
    padding: 12px 20px; border-radius: 10px; color:#fff; text-decoration:none;
    background: linear-gradient(135deg, #c8a85e, #a58a48); font-weight: 700; font-size: 15px;
    transition: all .2s ease;
}
.calc-cta-phone:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,168,94,0.4); }
.calc-cta-free {
    padding: 12px 20px; border-radius: 10px; color:#c8a85e; text-decoration:none;
    border: 2px solid #c8a85e; font-weight: 600; font-size: 14px;
    transition: all .2s ease;
}
.calc-cta-free:hover { background: rgba(200,168,94,0.15); }

/* 移动端 */
@media (max-width: 640px) {
    .calc-card { padding: 28px 20px; border-radius: 16px; }
    .calc-style-group { grid-template-columns: repeat(3,1fr); }
    .calc-bd-bars { grid-template-columns: 1fr; }
    .calc-res-total .calc-res-num { font-size: 28px; }
    .calc-cta-btns { flex-direction: column; gap: 10px; }
    .calc-cta-phone, .calc-cta-free { display:block; text-align:center; }
}
@media (max-width: 420px) {
    .calc-style-group { grid-template-columns: repeat(2,1fr); }
    .calc-type-group { flex-direction: column; gap: 8px; }
    .calc-grade-group { flex-direction: column; gap: 8px; }
}
