/* ======================================================================
 *  花粉日历与过敏防护 · 独立设计「花粉防护计划」
 *  配色：柠檬黄（明亮、自然）为主，青草绿（浓度 1）、琥珀（2）、珊瑚红（3）
 * ====================================================================== */

.pln {
    --bg: #fefdf4;
    --bg2: #fdfbe7;
    --card: #ffffff;
    --card2: #fefcea;
    --ink: #1f1c0e;
    --sub: #544f2d;
    --faint: #9b956c;
    --line: #e8e3c2;
    --line2: #f3efd1;
    --lemon: #fab005;
    --lemon-2: #ffe066;
    --lemon-soft: #fff9db;
    --lemon-ink: #c99004;
    --green-l: #a9e34b;
    --amber-l: #fd7e14;
    --red-l: #f03e3e;
    --ok: #2f9e44;
    --shadow-sm: 0 1px 2px rgba(31, 28, 14, .04), 0 6px 16px rgba(31, 28, 14, .04);
    --shadow: 0 2px 6px rgba(31, 28, 14, .06), 0 20px 46px rgba(31, 28, 14, .08);
    --r: 20px;
    --r-sm: 13px;
}

:root[data-theme="dark"] .pln {
    --bg: #1a1706;
    --bg2: #24200a;
    --card: #2a2610;
    --card2: #353014;
    --ink: #fff9db;
    --sub: #d4c98a;
    --faint: #8c8351;
    --line: #3d3819;
    --line2: #332e14;
    --lemon: #ffd43b;
    --lemon-soft: rgba(255, 212, 59, .14);
    --lemon-ink: #ffe066;
}

.pln {
    background:
        radial-gradient(760px 340px at 92% -6%, rgba(250, 176, 5, .14), transparent 60%),
        radial-gradient(620px 320px at 2% 8%, rgba(255, 224, 102, .1), transparent 58%),
        var(--bg);
}

.pln-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
    align-items: center;
    padding: 30px 0 24px;
}
.pln-hero-l .tsk-h1 { margin-top: 15px; }
.pln-hero-l .tsk-h1 em { color: var(--lemon-ink); }

.pln-hero-r {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 22px 24px;
}
.pln-region-l {
    font-size: 13px;
    font-weight: 700;
    color: var(--faint);
    display: block;
    margin-bottom: 12px;
}
.pln-region-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.pln-region-btn {
    background: var(--card2);
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--sub);
    cursor: pointer;
    transition: .15s;
    text-align: center;
}
.pln-region-btn:hover { border-color: var(--lemon); }
.pln-region-btn.on {
    background: var(--lemon);
    border-color: var(--lemon);
    color: #1f1c0e;
    box-shadow: 0 4px 12px rgba(250, 176, 5, .3);
}
.pln-current-month {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    text-align: center;
}
.pln-current-month span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--faint);
}
.pln-level-badge {
    margin-top: 6px;
    padding: 8px 18px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    display: inline-block;
    background: var(--lemon);
}

/* Calendar */
.pln-calendar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow-sm);
    padding: 14px;
}
.pln-month {
    background: var(--card2);
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
    border: 1.5px solid var(--line);
    transition: .15s;
    position: relative;
    overflow: hidden;
}
.pln-month:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pln-month.l0 { background: #f1f3f5; }
.pln-month.l1 { background: #d3f9d8; border-color: #b2f2bb; }
.pln-month.l2 { background: #fff3dc; border-color: #ffd8a8; }
.pln-month.l3 { background: #ffe3e3; border-color: #ffc9c9; }
.pln-month-cur::after {
    content: "今月";
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 99px;
    background: var(--lemon);
    color: #1f1c0e;
}
.pln-month-t {
    font-size: 11px;
    font-weight: 800;
    color: var(--faint);
    margin-bottom: 4px;
}
.pln-month p {
    font-size: 10.5px;
    line-height: 1.4;
    color: var(--ink);
    margin: 0;
    font-weight: 600;
}
.pln-month-note {
    margin-top: 3px;
    font-size: 9px;
    color: var(--amber-l);
    font-weight: 800;
}

/* Cross reactions */
.pln-cross {
    display: grid;
    gap: 10px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow-sm);
    padding: 14px 16px;
}
.pln-cross-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--card2);
    border-radius: 10px;
    border: 1px solid var(--line2);
    flex-wrap: wrap;
}
.pln-cross-allergen {
    font-size: 13px;
    font-weight: 800;
    color: var(--lemon-ink);
    background: var(--lemon-soft);
    padding: 3px 10px;
    border-radius: 99px;
    flex: none;
}
.pln-cross-arrow {
    color: var(--faint);
    font-size: 14px;
    flex: none;
}
.pln-cross-foods {
    flex: 1;
    font-size: 12px;
    color: var(--sub);
}
.pln-cross-foods b {
    color: var(--ink);
    font-weight: 700;
    margin: 0 3px;
}
.pln-cross-foods i {
    font-style: normal;
    color: var(--faint);
}

/* Protocols */
.pln-protocols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}
.pln-protocol {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--green-l);
}
.pln-protocol.moderate { border-top-color: var(--amber-l); }
.pln-protocol.severe { border-top-color: var(--red-l); }
.pln-protocol h3 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 4px;
}
.pln-protocol h3 span { color: var(--ink); }
.pln-protocol-when {
    font-size: 11.5px;
    color: var(--faint);
    font-style: italic;
    margin-bottom: 12px;
}
.pln-protocol-steps {
    padding-left: 1em;
    margin: 0;
    display: grid;
    gap: 8px;
}
.pln-protocol-steps li {
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--sub);
}
.pln-protocol-steps li b { color: var(--ink); font-weight: 700; }

/* Meds */
.pln-meds {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}
.pln-med {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}
.pln-med b {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--lemon-ink);
}
.pln-med-ex {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    margin-top: 4px;
    line-height: 1.5;
}
.pln-med i {
    display: block;
    font-style: normal;
    font-size: 11.5px;
    color: var(--faint);
    margin-top: 8px;
    line-height: 1.6;
}

/* Seek */
.pln-seek {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
}
.pln-seek-card {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-sm);
}
.pln-seek-n {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--lemon);
    color: #1f1c0e;
    font: 800 12px/24px var(--num, "Bahnschrift", monospace);
    text-align: center;
    flex: none;
}
.pln-seek-card p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--ink);
    margin: 0;
}

/* Conditions */
.pln-conds {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.pln-cond {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}
.pln-cond b {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}
.pln-cond span {
    display: block;
    font-size: 11.5px;
    color: var(--lemon-ink);
    margin-top: 3px;
    font-weight: 600;
}
.pln-cond i {
    display: block;
    font-style: normal;
    font-size: 11.5px;
    color: var(--faint);
    margin-top: 8px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .pln-hero { grid-template-columns: 1fr; }
    .pln-calendar { grid-template-columns: repeat(2, 1fr); }
}
