/* ============================================================
   定制报价页专属样式 - 布艺配饰风 · 报价计算器 + 套餐对比
   ============================================================ */

/* ---------- Banner 装饰 ---------- */
.quote-banner::after {
    content: ""; position: absolute; left: -40px; bottom: -50px; width: 220px; height: 220px;
    border-radius: 50%; background: rgba(189, 211, 176, .22); z-index: 0;
}
.quote-banner .pb-copy em { font-style: normal; color: var(--lotus-deep); position: relative; }
.quote-banner .pb-copy em::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 10px;
    background: var(--sage-soft); z-index: -1; border-radius: 6px;
}
.banner-meta { display: flex; gap: 30px; margin-top: 28px; flex-wrap: wrap; }
.banner-meta span { font-size: .9rem; color: var(--ink-soft); }
.banner-meta strong { font-family: var(--f-serif); font-size: 1.5rem; color: var(--lotus-deep); margin-right: 4px; font-weight: 600; }

/* ---------- 计算器布局 ---------- */
.calc-grid {
    display: grid; grid-template-columns: 1.55fr 1fr; gap: 40px;
    align-items: start;
}
.calc-form { display: flex; flex-direction: column; gap: 22px; }

/* 每个区块（fieldset 重置） */
.calc-block {
    border: none; padding: 0; margin: 0;
    background: var(--white); border-radius: var(--radius-lg);
    padding: 28px 30px; border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    position: relative;
}
.calc-block::before {
    /* 左侧布艺缝线点缀 */
    content: ""; position: absolute; left: 14px; top: 30px; bottom: 30px; width: 2px;
    background: repeating-linear-gradient(180deg, var(--lotus) 0 6px, transparent 6px 12px);
}
.calc-block legend {
    display: flex; align-items: center; gap: 14px;
    padding: 0; margin-bottom: 22px; width: 100%;
}
.step-no {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center;
    background: var(--lotus-soft); color: var(--lotus-deep);
    font-family: var(--f-serif); font-size: 1.05rem; font-weight: 600;
}
.calc-block:nth-of-type(2) .step-no { background: var(--sage-soft); color: var(--sage-deep); }
.calc-block:nth-of-type(3) .step-no { background: var(--lotus-soft); color: var(--lotus-deep); }
.calc-block:nth-of-type(4) .step-no { background: var(--sage-soft); color: var(--sage-deep); }
.step-t { font-family: var(--f-serif); font-size: 1.18rem; font-weight: 600; color: var(--ink); }
.step-t em { font-style: normal; font-size: .76rem; color: var(--ink-mute); margin-left: 8px; letter-spacing: 1px; font-family: var(--f-sans); font-weight: 400; }

/* 隐藏原生 radio/checkbox，保留可访问性 */
.calc-block input[type="radio"],
.calc-block input[type="checkbox"] {
    position: absolute; opacity: 0; width: 0; height: 0;
}

/* 单选卡片网格（网站类型 / 设计要求） */
.calc-radios { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.calc-radios-3 { grid-template-columns: repeat(3, 1fr); }
.opt-card {
    position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 8px; padding: 20px 14px; border-radius: var(--radius);
    border: 1.5px dashed var(--line); background: var(--cream);
    cursor: pointer; transition: all .3s;
}
.opt-card:hover { border-color: var(--lotus); background: var(--lotus-soft); transform: translateY(-3px); }
.opt-card input:checked ~ * { color: var(--lotus-deep); }
.opt-card:has(input:checked) {
    border: 1.5px solid var(--lotus-deep); background: var(--lotus-soft);
    box-shadow: 0 8px 22px -14px rgba(199, 156, 146, .6);
}
.opt-card:has(input:checked)::after {
    content: "✓"; position: absolute; top: -10px; right: -10px;
    width: 24px; height: 24px; border-radius: 50%; background: var(--lotus-deep);
    color: var(--white); display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}
.opt-ic { width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink-soft); }
.opt-ic svg { width: 30px; height: 30px; }
.opt-name { font-weight: 600; color: var(--ink); font-size: .96rem; }
.opt-price { font-size: .82rem; color: var(--lotus-deep); font-family: var(--f-serif); font-weight: 600; }
.opt-desc { font-size: .8rem; color: var(--ink-mute); line-height: 1.5; }
.opt-rate { font-size: .85rem; color: var(--sage-deep); font-weight: 600; }

/* 设计要求三档用浅绿选中色 */
.calc-radios-3 .opt-card:has(input:checked) { background: var(--sage-soft); border-color: var(--sage-deep); }
.calc-radios-3 .opt-card:has(input:checked)::after { background: var(--sage-deep); }

/* 步进器 */
.calc-stepper {
    display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 16px;
    background: var(--cream); border-radius: var(--radius); padding: 16px 20px;
    border: 1.5px dashed var(--line);
}
.step-btn {
    width: 46px; height: 46px; border-radius: 50%; background: var(--white);
    border: 1.5px solid var(--lotus); color: var(--lotus-deep);
    font-size: 1.5rem; line-height: 1; transition: all .3s;
    display: grid; place-items: center;
}
.step-btn:hover { background: var(--lotus-deep); color: var(--white); transform: scale(1.08); }
.step-val { display: flex; align-items: baseline; gap: 4px; min-width: 70px; }
.step-val span { font-family: var(--f-serif); font-size: 2rem; color: var(--ink); font-weight: 600; }
.step-val small { font-size: .9rem; color: var(--ink-mute); }
.step-hint { font-size: .84rem; color: var(--ink-mute); }

/* 多选 chips */
.calc-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.chip {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 16px 10px; border-radius: var(--radius); cursor: pointer;
    border: 1.5px dashed var(--line); background: var(--cream); transition: all .3s;
}
.chip:hover { border-color: var(--sage); background: var(--sage-soft); transform: translateY(-3px); }
.chip:has(input:checked) {
    border: 1.5px solid var(--sage-deep); background: var(--sage-soft);
    box-shadow: 0 8px 22px -14px rgba(147, 171, 132, .6);
}
.chip:has(input:checked)::after {
    content: "✓"; position: absolute; top: -10px; right: -10px;
    width: 22px; height: 22px; border-radius: 50%; background: var(--sage-deep);
    color: var(--white); display: grid; place-items: center; font-size: .72rem; font-weight: 700;
}
.chip-ic { width: 32px; height: 32px; display: grid; place-items: center; color: var(--ink-soft); }
.chip:has(input:checked) .chip-ic { color: var(--sage-deep); }
.chip-ic svg { width: 24px; height: 24px; }
.chip-name { font-size: .9rem; font-weight: 600; color: var(--ink); }
.chip-fee { font-size: .78rem; color: var(--sage-deep); font-family: var(--f-serif); font-weight: 600; }

/* ---------- 右侧预估价侧栏 ---------- */
.calc-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 18px; }
.price-card {
    background: linear-gradient(160deg, var(--lotus-soft), var(--cream));
    border-radius: var(--radius-lg); padding: 34px 30px;
    border: 1px solid var(--lotus); box-shadow: var(--shadow);
    position: relative; overflow: hidden;
}
.price-card::before {
    content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px;
    border-radius: 50%; background: rgba(255, 255, 255, .35);
}
.price-card-top { position: relative; z-index: 2; margin-bottom: 14px; }
.price-card-top h3 { margin-top: 12px; font-size: 1.2rem; }
.price-main { position: relative; z-index: 2; display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.price-main .cur { font-size: 1.5rem; color: var(--lotus-deep); font-family: var(--f-serif); font-weight: 600; }
.price-main .amt {
    font-family: var(--f-serif); font-size: 3rem; font-weight: 700; color: var(--lotus-deep);
    line-height: 1; letter-spacing: 1px;
}
.price-range { position: relative; z-index: 2; font-size: .86rem; color: var(--ink-soft); margin-bottom: 22px; }

.price-detail {
    position: relative; z-index: 2; border-top: 1px dashed var(--lotus-deep);
    padding-top: 18px; margin-bottom: 24px;
}
.price-detail li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 9px 0; font-size: .92rem; color: var(--ink-soft);
    border-bottom: 1px dotted var(--line);
}
.price-detail li:last-child { border-bottom: none; }
.price-detail li span:last-child { font-family: var(--f-serif); color: var(--ink); font-weight: 600; }

.price-cta { position: relative; z-index: 2; width: 100%; justify-content: center; }
.price-note { position: relative; z-index: 2; font-size: .78rem; color: var(--ink-mute); margin-top: 14px; text-align: center; line-height: 1.6; }

.aside-tip {
    display: flex; gap: 12px; align-items: flex-start;
    background: var(--white); border-radius: var(--radius); padding: 16px 18px;
    border: 1px solid var(--line);
}
.aside-tip .tip-ic { flex-shrink: 0; width: 30px; height: 30px; }
.aside-tip .tip-ic svg { width: 30px; height: 30px; }
.aside-tip p { font-size: .84rem; color: var(--ink-soft); line-height: 1.7; }
.aside-tip p a { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 套餐对比 ---------- */
.tier-section { background: var(--cream-2); }
.tier-compare {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch;
}
.tier-card {
    background: var(--white); border-radius: var(--radius-lg); padding: 36px 30px;
    border: 1px solid var(--line); position: relative; transition: transform .4s, box-shadow .4s;
    display: flex; flex-direction: column;
}
.tier-card:nth-child(1) { transform: translateY(24px); }
.tier-card:nth-child(3) { transform: translateY(48px); }
.tier-card:hover { box-shadow: var(--shadow); transform: translateY(-8px); }
.tier-card:nth-child(1):hover { transform: translateY(16px); }
.tier-card:nth-child(3):hover { transform: translateY(40px); }
.tier-card.featured {
    background: linear-gradient(180deg, var(--sage-soft), var(--white) 60%);
    border: 2px solid var(--sage-deep); transform: translateY(-16px);
    box-shadow: 0 24px 60px -28px rgba(147, 171, 132, .6); z-index: 2;
}
.tier-card.featured:hover { transform: translateY(-24px); }
.ribbon {
    position: absolute; top: 18px; right: -8px; background: var(--sage-deep); color: var(--white);
    padding: 6px 16px 6px 14px; font-size: .76rem; letter-spacing: 2px; font-weight: 500;
    border-radius: 4px 0 0 4px; box-shadow: var(--shadow-sm);
}
.ribbon::after {
    content: ""; position: absolute; right: 0; bottom: -6px;
    border: 4px solid transparent; border-top-color: var(--sage-deep); border-right-color: var(--sage-deep);
}
.tier-head { margin-bottom: 22px; }
.tier-tag {
    display: inline-block; font-size: .72rem; letter-spacing: 2px; color: var(--lotus-deep);
    background: var(--lotus-soft); padding: 3px 12px; border-radius: 20px; margin-bottom: 12px;
}
.tier-tag.sage { color: var(--sage-deep); background: var(--sage-soft); }
.tier-head h3 { font-size: 1.5rem; margin-bottom: 8px; }
.tier-price { display: flex; align-items: baseline; gap: 2px; margin-bottom: 8px; }
.tier-price .cur { font-size: 1.2rem; color: var(--lotus-deep); font-family: var(--f-serif); font-weight: 600; }
.tier-price { font-family: var(--f-serif); font-size: 2.4rem; color: var(--ink); font-weight: 700; line-height: 1; }
.tier-price small { font-size: .82rem; color: var(--ink-mute); font-family: var(--f-sans); font-weight: 400; margin-left: 4px; }
.tier-card.featured .tier-price { color: var(--sage-deep); }
.tier-head p { font-size: .88rem; color: var(--ink-mute); }
.tier-list { flex: 1; margin-bottom: 26px; }
.tier-list li {
    display: flex; align-items: center; gap: 10px; padding: 8px 0;
    font-size: .92rem; color: var(--ink); border-bottom: 1px dotted var(--line);
}
.tier-list li:last-child { border-bottom: none; }
.tier-list li.no { color: var(--ink-mute); }
.tier-list .tick {
    width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center; font-size: .72rem; font-weight: 700;
    background: var(--sage-soft); color: var(--sage-deep);
}
.tier-list li.no .tick { background: var(--cream-3); color: var(--ink-mute); }
.tier-btn { justify-content: center; width: 100%; }

/* ---------- 报价说明 FAQ（details/summary） ---------- */
.quote-faq-sec { background: var(--cream); }
.quote-faq { display: flex; flex-direction: column; gap: 14px; }
.qf-item {
    background: var(--white); border-radius: var(--radius); border: 1px solid var(--line);
    overflow: hidden; transition: box-shadow .3s, border-color .3s;
}
.qf-item[open] { border-color: var(--lotus); box-shadow: var(--shadow-sm); }
.qf-item summary {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 20px 26px; cursor: pointer; list-style: none;
    font-family: var(--f-serif); font-size: 1.05rem; font-weight: 600; color: var(--ink);
}
.qf-item summary::-webkit-details-marker { display: none; }
.qf-ic {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center; background: var(--lotus-soft); color: var(--lotus-deep);
    font-size: 1.3rem; font-weight: 400; transition: transform .4s; line-height: 1;
}
.qf-item[open] .qf-ic { transform: rotate(45deg); background: var(--lotus-deep); color: var(--white); }
.qf-body { padding: 0 26px 22px; }
.qf-body p { font-size: .94rem; color: var(--ink-soft); line-height: 1.85; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .calc-grid { grid-template-columns: 1fr; gap: 30px; }
    .calc-aside { position: static; }
    .calc-radios { grid-template-columns: repeat(2, 1fr); }
    .calc-chips { grid-template-columns: repeat(4, 1fr); }
    .tier-compare { grid-template-columns: 1fr; gap: 20px; }
    .tier-card:nth-child(1), .tier-card:nth-child(3), .tier-card.featured { transform: none; }
    .tier-card:nth-child(1):hover, .tier-card:nth-child(3):hover, .tier-card.featured:hover { transform: translateY(-6px); }
}
@media (max-width: 760px) {
    .calc-radios, .calc-radios-3 { grid-template-columns: 1fr 1fr; }
    .calc-chips { grid-template-columns: 1fr 1fr; }
    .calc-stepper { grid-template-columns: auto auto 1fr; gap: 12px; padding: 14px; }
    .calc-block { padding: 24px 20px; }
    .price-card { padding: 28px 22px; }
    .price-main .amt { font-size: 2.4rem; }
}
@media (max-width: 480px) {
    .calc-radios, .calc-radios-3, .calc-chips { grid-template-columns: 1fr; }
    .step-hint { grid-column: 1 / -1; margin-top: 6px; }
    .banner-meta { gap: 18px; }
    .qf-item summary { padding: 16px 18px; font-size: .98rem; }
    .qf-body { padding: 0 18px 18px; }
}
