/* ============================================================
   pest-control-cost · 灭蟑螂除虫消杀价格计算
   防护盾牌风（pcc-）：深绿 + 荧光绿 + 警示橙，盾牌/准星/警戒条纹装饰
   与宣纸卷轴 / 红包 / 快递面单等主题零重叠
   ============================================================ */
.pcc-page {
    --pcc-green: #2e6b4e;
    --pcc-green-deep: #1e4a35;
    --pcc-green-soft: rgba(46, 107, 78, 0.10);
    --pcc-lime: #7fc06e;
    --pcc-orange: #e07b39;
    --pcc-orange-deep: #b85a1c;
    --pcc-orange-soft: rgba(224, 123, 57, 0.12);
    --pcc-mist: #f2f6ef;
    --pcc-card: #fbfdfa;
    --pcc-card-2: #eef4ea;
    --pcc-line: #cfe0cf;
    --pcc-line-strong: #a9c4ab;
    --pcc-text: #1c2b22;
    --pcc-muted: #63796b;
    --pcc-shadow: 0 6px 20px rgba(30, 74, 53, 0.12);

    color: var(--pcc-text);
    font-size: 15px;
    line-height: 1.8;
}

[data-theme="dark"] .pcc-page {
    --pcc-green: #6aa886;
    --pcc-green-deep: #8fc4a5;
    --pcc-green-soft: rgba(106, 168, 134, 0.14);
    --pcc-lime: #9ad488;
    --pcc-orange: #f09a5e;
    --pcc-orange-deep: #f2b687;
    --pcc-orange-soft: rgba(240, 154, 94, 0.14);
    --pcc-mist: #17211b;
    --pcc-card: #1d2a21;
    --pcc-card-2: #24352a;
    --pcc-line: #31473a;
    --pcc-line-strong: #4a6353;
    --pcc-text: #e2ede4;
    --pcc-muted: #93a899;
    --pcc-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.pcc-page h1, .pcc-page h2, .pcc-page h3 { line-height: 1.4; }
.pcc-page b, .pcc-page strong { color: var(--pcc-green-deep); }

/* ---------- 首屏 ---------- */
.pcc-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(200px, 0.7fr) minmax(240px, 0.8fr);
    gap: 22px 26px;
    align-items: center;
    padding: 30px 32px 26px;
    margin-bottom: 24px;
    border-radius: 16px;
    border: 1px solid var(--pcc-line-strong);
    background:
        radial-gradient(circle at 90% 10%, var(--pcc-green-soft) 0, transparent 34%),
        linear-gradient(180deg, var(--pcc-mist) 0%, var(--pcc-card) 100%);
    box-shadow: var(--pcc-shadow);
    overflow: hidden;
}
.pcc-hero::before {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 8px;
    background: repeating-linear-gradient(45deg, var(--pcc-orange) 0 14px, transparent 14px 28px);
    opacity: 0.5;
}
.pcc-kicker {
    display: inline-block;
    padding: 5px 14px;
    margin-bottom: 12px;
    border-radius: 4px;
    background: var(--pcc-green);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
}
.pcc-hero h1 { margin: 0 0 10px; font-size: clamp(25px, 3.2vw, 36px); font-weight: 900; }
.pcc-hero-sub { margin: 0 0 14px; max-width: 56ch; color: var(--pcc-muted); font-size: 15px; }
.pcc-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pcc-hero-chips li {
    padding: 5px 13px;
    border-radius: 999px;
    border: 1px solid var(--pcc-line-strong);
    background: var(--pcc-card);
    color: var(--pcc-muted);
    font-size: 12px;
    font-weight: 700;
}

/* hero 盾牌 */
.pcc-hero-shield {
    display: grid;
    justify-items: center;
    gap: 10px;
}
.pcc-shield {
    position: relative;
    width: 148px; height: 168px;
    display: grid;
    place-items: center;
    background: linear-gradient(170deg, var(--pcc-green) 0%, var(--pcc-green-deep) 100%);
    clip-path: polygon(50% 0, 100% 16%, 100% 62%, 50% 100%, 0 62%, 0 16%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(30, 74, 53, 0.3);
}
.pcc-shield::before {
    content: "";
    position: absolute;
    inset: 9px;
    clip-path: polygon(50% 0, 100% 16%, 100% 62%, 50% 100%, 0 62%, 0 16%);
    border: 2px solid var(--pcc-lime);
    opacity: 0.8;
}
.pcc-shield-bug { position: absolute; top: 30px; font-size: 34px; opacity: 0.92; }
.pcc-shield-cross {
    position: absolute;
    top: 64px;
    font-size: 40px;
    font-weight: 900;
    color: var(--pcc-orange);
    line-height: 1;
    text-shadow: 0 0 10px rgba(224, 123, 57, 0.6);
}
.pcc-shield-text {
    margin-top: 46px;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.4em;
    margin-left: 0.4em;
}
.pcc-shield-stripe {
    width: 120px; height: 6px;
    border-radius: 3px;
    background: repeating-linear-gradient(45deg, var(--pcc-orange) 0 10px, transparent 10px 20px);
    opacity: 0.7;
}

/* hero 读数 */
.pcc-hero-readout, .pcc-result-hero {
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid var(--pcc-line-strong);
    background: var(--pcc-card);
    display: grid;
    gap: 4px;
    justify-items: start;
    box-shadow: var(--pcc-shadow);
}
.pcc-hero-readout { position: relative; z-index: 1; }
.pcc-readout-label, .pcc-rh-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--pcc-muted);
}
.pcc-readout-num, .pcc-rh-num {
    font-size: 27px;
    font-weight: 900;
    color: var(--pcc-orange-deep);
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}
.pcc-readout-avg { font-size: 13px; font-weight: 700; color: var(--pcc-green); }
.pcc-readout-meta { font-size: 12px; color: var(--pcc-muted); }
.pcc-readout-tip { margin-top: 6px; font-size: 12px; color: var(--pcc-muted); opacity: 0.85; }

/* ---------- 主体两栏 ---------- */
.pcc-calc {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(290px, 1fr);
    gap: 20px;
    align-items: start;
    margin-bottom: 28px;
}
.pcc-input-col { display: grid; gap: 16px; min-width: 0; }

.pcc-panel {
    padding: 20px 22px;
    border: 1px solid var(--pcc-line);
    border-radius: 14px;
    background: var(--pcc-card);
    box-shadow: var(--pcc-shadow);
}
.pcc-panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pcc-panel-head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.pcc-panel-head p { margin: 2px 0 0; font-size: 13px; color: var(--pcc-muted); }
.pcc-step {
    flex-shrink: 0;
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--pcc-green);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.pcc-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pcc-field { display: grid; gap: 6px; }
.pcc-label { font-size: 13px; font-weight: 700; color: var(--pcc-text); }
.pcc-input-wrap { position: relative; display: flex; align-items: center; }
.pcc-input {
    width: 100%;
    height: 44px;
    padding: 0 44px 0 12px;
    border: 1.5px solid var(--pcc-line-strong);
    border-radius: 10px;
    background: var(--pcc-card-2);
    color: var(--pcc-text);
    font-size: 15px;
    font-weight: 700;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.pcc-input:focus { border-color: var(--pcc-green); box-shadow: 0 0 0 3px var(--pcc-green-soft); }
.pcc-unit {
    position: absolute;
    right: 12px;
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    color: var(--pcc-muted);
    pointer-events: none;
}
.pcc-hint { margin: 12px 0 0; font-size: 12.5px; color: var(--pcc-muted); }

/* 虫害选择 */
.pcc-bugs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pcc-bug {
    display: grid;
    gap: 3px;
    justify-items: center;
    padding: 13px 8px 11px;
    border: 1.5px solid var(--pcc-line-strong);
    border-radius: 12px;
    background: var(--pcc-card-2);
    cursor: pointer;
    transition: all 0.14s;
    text-align: center;
}
.pcc-bug:hover { border-color: var(--pcc-green); }
.pcc-bug.is-active {
    border-color: var(--pcc-green);
    background: var(--pcc-green-soft);
    box-shadow: inset 0 0 0 1px var(--pcc-green);
}
.pcc-bug-ico { font-size: 24px; line-height: 1; }
.pcc-bug b { font-size: 14px; color: var(--pcc-text); }
.pcc-bug small { font-size: 11px; color: var(--pcc-muted); }
.pcc-bug.is-active b { color: var(--pcc-green-deep); }
.pcc-bug.is-active::after {
    content: "✓";
    position: relative;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 900;
    color: var(--pcc-green);
}

.pcc-error {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(184, 90, 28, 0.4);
    background: var(--pcc-orange-soft);
    color: var(--pcc-orange-deep);
    font-size: 13px;
}
.pcc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pcc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    padding: 0 20px;
    border: 1.5px solid var(--pcc-line-strong);
    border-radius: 10px;
    background: var(--pcc-card-2);
    color: var(--pcc-text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s;
}
.pcc-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(30, 74, 53, 0.16); }
.pcc-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.pcc-btn--primary {
    border-color: var(--pcc-green-deep);
    background: linear-gradient(170deg, var(--pcc-green) 0%, var(--pcc-green-deep) 100%);
    color: #fff;
}

/* 结果列 */
.pcc-result-col { display: grid; gap: 14px; position: sticky; top: 16px; }
.pcc-rh-sub { font-size: 13px; font-weight: 700; color: var(--pcc-green); }

.pcc-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pcc-kpi {
    padding: 12px 14px;
    border: 1px solid var(--pcc-line);
    border-radius: 12px;
    background: var(--pcc-card);
    display: grid;
    gap: 2px;
}
.pcc-kpi span { font-size: 12px; color: var(--pcc-muted); font-weight: 700; }
.pcc-kpi b { font-size: 21px; font-weight: 900; color: var(--pcc-text); line-height: 1.2; font-variant-numeric: tabular-nums; }
.pcc-kpi small { font-size: 11px; color: var(--pcc-muted); }

.pcc-mini-card {
    padding: 16px 18px;
    border: 1px solid var(--pcc-line);
    border-radius: 12px;
    background: var(--pcc-card);
}
.pcc-mini-card h3 { margin: 0 0 10px; font-size: 15px; font-weight: 800; color: var(--pcc-green-deep); }

.pcc-table { width: 100%; border-collapse: collapse; }
.pcc-table th, .pcc-table td {
    padding: 7px 8px;
    border-bottom: 1px solid var(--pcc-line);
    font-size: 13px;
    text-align: left;
}
.pcc-table th { color: var(--pcc-muted); font-size: 12px; font-weight: 800; }
.pcc-table td { font-variant-numeric: tabular-nums; }
.pcc-table tr:last-child td { border-bottom: none; }

.pcc-safety { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pcc-safety li {
    position: relative;
    padding-left: 18px;
    font-size: 13px;
    color: var(--pcc-muted);
}
.pcc-safety li::before {
    content: "⚠";
    position: absolute;
    left: 0;
    color: var(--pcc-orange);
    font-size: 12px;
}
.pcc-result-foot { margin: 0; font-size: 12px; color: var(--pcc-muted); }

/* ---------- 选公司指南 ---------- */
.pcc-guide { margin-bottom: 28px; }
.pcc-section-head { margin: 0 0 14px; }
.pcc-section-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--pcc-green-deep);
    opacity: 0.85;
}
.pcc-section-head h2 { margin: 4px 0 2px; font-size: 22px; font-weight: 900; }
.pcc-section-head p { margin: 0; font-size: 13px; color: var(--pcc-muted); }
.pcc-guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pcc-guide-card {
    position: relative;
    padding: 18px 18px 16px;
    border: 1px solid var(--pcc-line);
    border-radius: 12px;
    background: var(--pcc-card);
    overflow: hidden;
}
.pcc-guide-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: repeating-linear-gradient(45deg, var(--pcc-orange) 0 10px, transparent 10px 20px);
    opacity: 0.5;
}
.pcc-guide-no {
    display: inline-block;
    padding: 3px 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    background: var(--pcc-green-soft);
    color: var(--pcc-green-deep);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
}
.pcc-guide-card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 800; }
.pcc-guide-card p { margin: 0; font-size: 13px; color: var(--pcc-muted); }

/* ---------- FAQ ---------- */
.pcc-faq { margin-bottom: 28px; }
.pcc-faq .faq-item { border-color: var(--pcc-line); background: var(--pcc-card); }
.pcc-faq .faq-item summary { color: var(--pcc-text); }
.pcc-faq .faq-a { color: var(--pcc-muted); }
.pcc-comments { margin-bottom: 28px; }

/* ---------- 返回顶部 ---------- */
.pcc-top {
    position: fixed;
    right: 22px;
    bottom: 26px;
    width: 44px; height: 44px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(170deg, var(--pcc-green) 0%, var(--pcc-green-deep) 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 6px 16px rgba(30, 74, 53, 0.3);
    z-index: 60;
}
.pcc-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .pcc-hero { grid-template-columns: 1fr 1fr; }
    .pcc-hero-readout { grid-column: 1 / -1; }
    .pcc-calc { grid-template-columns: 1fr; }
    .pcc-result-col { position: static; }
    .pcc-guide-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .pcc-hero { grid-template-columns: 1fr; padding: 22px 18px; }
    .pcc-grid3 { grid-template-columns: 1fr; }
    .pcc-bugs { grid-template-columns: repeat(2, 1fr); }
    .pcc-guide-grid { grid-template-columns: 1fr; }
    .pcc-actions .pcc-btn { flex: 1 1 46%; }
}
