/* ===== 电商大促日历 /tool/promo-calendar （重设计 v3） ===== */

.detail-wrap {
    --pc-bg: #fff7f4;
    --pc-card: #ffffff;
    --pc-card2: #fff1ec;
    --pc-text: #2b2230;
    --pc-sub: #6f616b;
    --pc-muted: #a89c9a;
    --pc-border: #f1ddd4;
    --pc-red: #ff4d4f;
    --pc-orange: #ff7a45;
    --pc-gold: #ffb020;
    --pc-primary: #ff5230;
    --pc-soft: #ffe9e3;
    --pc-soft2: #fff3e8;
    --pc-grad: linear-gradient(135deg, #ff4d4f 0%, #ff7a45 100%);
    --pc-shadow: 0 16px 38px rgba(255, 82, 48, .18);
}

[data-theme="dark"] .detail-wrap {
    --pc-bg: #15121a;
    --pc-card: #211b29;
    --pc-card2: #2a2233;
    --pc-text: #f3ecef;
    --pc-sub: #b6a8b4;
    --pc-muted: #837886;
    --pc-border: #3a2f44;
    --pc-red: #ff6b6b;
    --pc-orange: #ff955e;
    --pc-gold: #ffc14d;
    --pc-primary: #ff6b5a;
    --pc-soft: #3a2230;
    --pc-soft2: #33272f;
    --pc-grad: linear-gradient(135deg, #ff5b5b 0%, #ff8a4d 100%);
    --pc-shadow: 0 16px 38px rgba(0, 0, 0, .45);
}

/* ---------- 顶部品牌头 ---------- */
.pc-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    margin-bottom: 34px;
    padding: 26px 30px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--pc-card), var(--pc-card2));
    border: 1px solid var(--pc-border);
}
.pc-head-icon {
    width: 76px; height: 76px; border-radius: 22px;
    display: grid; place-items: center; font-size: 40px;
    background: var(--pc-grad); color: #fff;
    box-shadow: 0 14px 30px rgba(255, 82, 48, .35);
}
.pc-head-main h1 {
    margin: 0 0 8px; font-size: 34px; font-weight: 900;
    letter-spacing: -.02em; color: var(--pc-text);
}
.pc-head-sub {
    margin: 0 0 14px; font-size: 15px; line-height: 1.7;
    color: var(--pc-sub); max-width: 62ch;
}
.pc-head-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-head-meta {
    display: flex; flex-direction: column; gap: 10px;
    padding-left: 24px; border-left: 1px solid var(--pc-border);
}
.pc-head-meta .item { display: flex; flex-direction: column; gap: 2px; }
.pc-head-meta .k { font-size: 12px; color: var(--pc-muted); }
.pc-head-meta .v { font-size: 14px; font-weight: 700; color: var(--pc-text); }

/* ---------- 核心区 ---------- */
.pc-board { margin-bottom: 44px; }

.pc-hero, .pmc-hero {
    position: relative;
    display: flex; align-items: center; gap: 30px;
    padding: 32px 34px; border-radius: 24px;
    background: var(--pc-grad); color: #fff;
    box-shadow: var(--pc-shadow); overflow: hidden;
}
.pc-hero::before {
    content: ""; position: absolute; right: -60px; top: -80px;
    width: 240px; height: 240px; border-radius: 50%;
    background: rgba(255, 255, 255, .16);
}
.pc-hero::after {
    content: ""; position: absolute; right: 70px; bottom: -90px;
    width: 170px; height: 170px; border-radius: 50%;
    background: rgba(255, 255, 255, .1);
}

.pmc-next-date {
    position: relative; z-index: 1; flex-shrink: 0;
    width: 116px; height: 116px; border-radius: 22px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .16);
    border: 2px dashed rgba(255, 255, 255, .65);
}
.pmc-next-date b { font-size: 36px; font-weight: 900; line-height: 1; }
.pmc-next-date span { font-size: 12px; opacity: .9; margin-top: 6px; }

.pmc-next-body { position: relative; z-index: 1; flex: 1; min-width: 0; }
.pmc-next-name {
    font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.pmc-next-count { margin-top: 8px; font-size: 15px; opacity: .96; }
.pmc-next-count b {
    font-size: 46px; font-weight: 900; margin: 0 6px; vertical-align: -6px;
}
.pmc-next-prep { margin-top: 8px; font-size: 13.5px; line-height: 1.6; opacity: .92; }
.pmc-next-prep b { font-weight: 800; }

/* 级别标签 */
.pmc-lv {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 800; line-height: 1.5;
}
.pmc-hero .pmc-lv { background: rgba(255, 255, 255, .94); color: var(--pc-red); }
.pmc-lv--s { background: var(--pc-soft); color: var(--pc-red); }
.pmc-lv--a { background: #fff3e0; color: #e8590c; }
.pmc-lv--b { background: #fff8db; color: #b08900; }
.pmc-lv--c { background: #eef4ff; color: #3b6fd4; }

/* 筛选 */
.pc-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 24px 0 16px; }
.pc-controls-label { font-size: 14px; font-weight: 700; color: var(--pc-text); }
.pmc-filter { display: flex; flex-wrap: wrap; gap: 10px; }
.pmc-filter-btn {
    padding: 8px 20px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--pc-border); background: var(--pc-card);
    color: var(--pc-sub); font-size: 14px; font-weight: 700; transition: .18s;
}
.pmc-filter-btn:hover { border-color: var(--pc-primary); color: var(--pc-primary); }
.pmc-filter-btn.active {
    background: var(--pc-primary); border-color: var(--pc-primary);
    color: #fff; box-shadow: 0 6px 16px rgba(255, 82, 48, .3);
}

/* 节点列表（网格卡片） */
.pmc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pmc-item {
    display: flex; gap: 16px; padding: 18px;
    border: 1px solid var(--pc-border); border-radius: 16px;
    background: var(--pc-card); transition: .18s;
}
.pmc-item:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--pc-primary) 45%, var(--pc-border));
    box-shadow: 0 10px 24px rgba(255, 82, 48, .12);
}
.pmc-item.is-hot {
    background: linear-gradient(135deg, var(--pc-card) 62%, var(--pc-soft) 100%);
    border-color: color-mix(in srgb, var(--pc-red) 45%, var(--pc-border));
    box-shadow: 0 8px 22px rgba(255, 77, 79, .16);
}
.pmc-date {
    flex-shrink: 0; width: 78px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 10px 0; border-radius: 12px; background: var(--pc-card2);
}
.pmc-date b { font-size: 18px; font-weight: 800; color: var(--pc-text); letter-spacing: .5px; }
.pmc-date span { font-size: 11px; color: var(--pc-muted); white-space: nowrap; }
.pmc-item.is-hot .pmc-date { background: var(--pc-soft); }
.pmc-item.is-hot .pmc-date b { color: var(--pc-red); }
.pmc-item.is-hot .pmc-date span { color: var(--pc-red); }

.pmc-body { flex: 1; min-width: 0; }
.pmc-name { font-size: 16px; font-weight: 800; color: var(--pc-text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pmc-desc { margin-top: 5px; font-size: 13px; line-height: 1.7; color: var(--pc-sub); }
.pmc-meta { margin-top: 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pmc-meta i {
    font-style: normal; padding: 3px 10px; border-radius: 999px;
    background: color-mix(in srgb, var(--pc-primary) 12%, transparent);
    color: var(--pc-primary); font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.pmc-meta em {
    font-style: normal; font-size: 11.5px; font-weight: 700; white-space: nowrap;
    color: #b08900; background: #fff8db; padding: 3px 10px; border-radius: 999px;
}
.pmc-empty { grid-column: 1 / -1; padding: 36px 0; text-align: center; color: var(--pc-muted); font-size: 14px; }

.pc-tip { margin-top: 16px; font-size: 13px; line-height: 1.7; color: var(--pc-sub); }

/* ---------- 节奏参考 ---------- */
.pc-rhythm { margin-bottom: 36px; }
.pc-section-title h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; color: var(--pc-text); }
.pc-section-title p { margin: 0 0 18px; font-size: 14px; color: var(--pc-sub); }
.pc-rhythm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pc-rhythm-card {
    padding: 18px; border-radius: 16px; background: var(--pc-card);
    border: 1px solid var(--pc-border); position: relative; overflow: hidden;
}
.pc-rhythm-card::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--pc-grad);
}
.pc-rhythm-card .stage { font-size: 15px; font-weight: 800; color: var(--pc-text); }
.pc-rhythm-card .win {
    display: inline-block; margin: 10px 0 8px; font-size: 12px; font-weight: 700;
    color: var(--pc-primary); background: var(--pc-soft); padding: 3px 10px; border-radius: 999px;
}
.pc-rhythm-card .act { font-size: 13px; color: var(--pc-sub); line-height: 1.6; }

/* ---------- 免责 ---------- */
.pc-disclaim {
    font-size: 13px; line-height: 1.85; color: var(--pc-sub);
    background: var(--pc-card2); border: 1px solid var(--pc-border);
    border-left: 4px solid var(--pc-gold); border-radius: 12px; padding: 16px 18px; margin-bottom: 38px;
}
.pc-disclaim b { color: var(--pc-text); }

/* ---------- Tab 内容区 ---------- */
.pc-block-head { font-size: 19px; font-weight: 800; color: var(--pc-text); margin: 0 0 16px; }
.pc-feature-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; margin-bottom: 26px; }
.pc-feature-chip { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--pc-sub); }
.pc-feature-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pc-primary); flex-shrink: 0; }
.pc-prose { font-size: 15px; line-height: 1.9; color: var(--pc-sub); }
.pc-prose b { color: var(--pc-text); }

.pc-steps { display: flex; flex-direction: column; gap: 12px; }
.pc-step {
    display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px;
    background: var(--pc-card); border: 1px solid var(--pc-border);
}
.pc-step-no {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px;
    display: grid; place-items: center; font-weight: 800; color: #fff;
    background: var(--pc-grad); font-size: 14px;
}
.pc-step-body { font-size: 14px; color: var(--pc-sub); line-height: 1.7; }
.pc-step-body b { color: var(--pc-text); }

.pc-changelog { display: flex; flex-direction: column; gap: 14px; }
.pc-log { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px dashed var(--pc-border); }
.pc-log .ver { font-weight: 800; color: var(--pc-primary); font-size: 14px; }
.pc-log .date { font-size: 12px; color: var(--pc-muted); }
.pc-log .txt { flex: 1; min-width: 240px; font-size: 13.5px; color: var(--pc-sub); line-height: 1.7; }
.pc-log .txt b { color: var(--pc-text); }

.pc-faq { display: flex; flex-direction: column; gap: 10px; }
.pc-faq details {
    border: 1px solid var(--pc-border); border-radius: 14px; background: var(--pc-card); padding: 0 16px;
}
.pc-faq summary {
    cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 14.5px; color: var(--pc-text); list-style: none;
}
.pc-faq summary::-webkit-details-marker { display: none; }
.pc-faq summary::after { content: "+"; float: right; color: var(--pc-primary); font-size: 20px; line-height: 1; }
.pc-faq details[open] summary::after { content: "−"; }
.pc-faq .faq-a { padding: 0 0 16px; font-size: 13.5px; line-height: 1.8; color: var(--pc-sub); }
.pc-faq .faq-a b { color: var(--pc-text); }

/* ---------- 相关工具 ---------- */
.pc-related { margin-top: 44px; }
.pc-related h2 { font-size: 22px; font-weight: 800; color: var(--pc-text); margin: 0 0 16px; }
.pc-rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.pc-rel-item {
    display: flex; align-items: center; gap: 14px; padding: 16px;
    border-radius: 16px; background: var(--pc-card); border: 1px solid var(--pc-border); text-decoration: none; transition: .18s;
}
.pc-rel-item:hover { transform: translateY(-2px); border-color: var(--pc-primary); box-shadow: 0 10px 24px rgba(255, 82, 48, .12); }
.pc-rel-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: var(--pc-card2); flex-shrink: 0; }
.pc-rel-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pc-rel-body b { font-size: 15px; font-weight: 700; color: var(--pc-text); }
.pc-rel-body small { font-size: 12px; color: var(--pc-muted); }
.pc-rel-go { margin-left: auto; color: var(--pc-primary); font-weight: 800; }

/* ---------- 暗色微调 ---------- */
[data-theme="dark"] .pmc-lv--a { background: #3a2c1c; color: #ffb36b; }
[data-theme="dark"] .pmc-lv--b { background: #38321a; color: #e8d06a; }
[data-theme="dark"] .pmc-lv--c { background: #1f2c44; color: #7fa6e8; }
[data-theme="dark"] .pmc-meta em { background: #3a3018; color: #e8d06a; }

/* ---------- 响应式 ---------- */
@media (max-width: 880px) {
    .pc-head { grid-template-columns: auto 1fr; }
    .pc-head-meta {
        grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 18px;
        padding-left: 0; border-left: 0; border-top: 1px solid var(--pc-border); padding-top: 16px;
    }
    .pc-rhythm-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .pc-hero, .pmc-hero { flex-direction: column; text-align: center; padding: 26px; gap: 18px; }
    .pmc-next-name { justify-content: center; }
    .pc-head { padding: 20px; }
    .pc-head-main h1 { font-size: 28px; }
    .pc-list { grid-template-columns: 1fr; }
    .pc-item { flex-direction: column; gap: 12px; }
    .pmc-date { flex-direction: row; width: 100%; justify-content: space-between; padding: 10px 16px; }
    .pc-rhythm-grid { grid-template-columns: 1fr; }
    .pc-feature-chips { grid-template-columns: 1fr; }
}
