/* 感恩节彩蛋弹窗：点击品牌卡上的“感恩节小彩蛋”打开。
   iOS 毛玻璃 + 黑白灰（AGENTS.md 弹窗视觉基线），插画复用卡片里的感恩节场景，
   做成一张贴纸，避免弹窗本身变成第二张彩色卡片。
   尺寸只用 rem / px，高度上限走 --skxs-vh；字号全部 rem；遮罩挂 body，
   类名已登记进 index-profile.js 的原生底栏识别列表。 */

.holiday-thanks-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.34);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-tap-highlight-color: transparent;
}
.holiday-thanks-overlay[hidden] { display: none; }

.holiday-thanks-panel {
    position: relative;
    width: 100%;
    max-width: 20rem;
    max-height: min(34rem, calc(var(--skxs-vh, 1vh) * 82));
    box-sizing: border-box;
    padding: 0.9rem 1.25rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 247, 250, 0.96) 100%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    box-shadow:
        0 24px 60px -18px rgba(0, 0, 0, 0.4),
        0 4px 14px -8px rgba(0, 0, 0, 0.24);
    color: #1c1c1e;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
    line-height: 1.5;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    text-align: center;
}
.holiday-thanks-panel * { box-sizing: border-box; }
/* 面板只是为了接管读屏焦点，本身不可交互，不画焦点环 */
.holiday-thanks-panel:focus { outline: none; }

@keyframes holidayThanksFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes holidayThanksRise {
    from { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.96); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
    .holiday-thanks-overlay.is-open { animation: holidayThanksFadeIn 0.2s ease both; }
    .holiday-thanks-overlay.is-open .holiday-thanks-panel { animation: holidayThanksRise 0.32s cubic-bezier(0.22, 1, 0.36, 1) both; }
}

.holiday-thanks-close {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(118, 118, 128, 0.12);
    color: #3a3a3c;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, transform 0.1s ease;
}
.holiday-thanks-close:active {
    background: rgba(118, 118, 128, 0.22);
    transform: scale(0.94);
}

/* 插画贴纸：白色圆角方块里放感恩节场景，和黑白灰外壳形成一层对比 */
.holiday-thanks-art {
    width: 8.5rem;
    height: 8.5rem;
    margin: 0.35rem auto 0.15rem;
    border-radius: 30px;
    background: #ffffff;
    box-shadow:
        0 8px 20px -10px rgba(0, 0, 0, 0.28),
        inset 0 0 0 1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.holiday-thanks-art svg {
    display: block;
    width: 100%;
    height: 100%;
}

.holiday-thanks-kicker {
    display: block;
    margin: 0.85rem 0 0.3rem;
    color: #8e8e93;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.holiday-thanks-title {
    display: block;
    margin: 0;
    font-size: 1.32rem;
    line-height: 1.28;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #1c1c1e;
}

.holiday-thanks-quote {
    margin: 0.6rem 0 0;
    font-size: 0.94rem;
    font-weight: 400;
    line-height: 1.72;
    color: #3a3a3c;
    overflow-wrap: anywhere;
}

.holiday-thanks-sign {
    margin: 0.6rem 0 0;
    font-size: 0.7rem;
    font-weight: 500;
    color: #8e8e93;
}

.holiday-thanks-ok {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    margin-top: 1rem;
    padding: 0.62rem 0;
    border: 0;
    border-radius: 999px;
    background: #1c1c1e;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.1s ease, opacity 0.15s ease;
}
.holiday-thanks-ok:active { transform: scale(0.98); opacity: 0.88; }

.holiday-thanks-dismiss {
    display: block;
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.5rem 0;
    border: 0;
    background: transparent;
    color: #8e8e93;
    font-size: 0.8rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.holiday-thanks-dismiss:active { color: #1c1c1e; }

/* 深色：同一套层级换成夜间纸面 */
[data-color-mode="dark"] .holiday-thanks-overlay { background: rgba(0, 0, 0, 0.55); }
[data-color-mode="dark"] .holiday-thanks-panel {
    border-color: rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(44, 44, 46, 0.97) 0%, rgba(28, 28, 30, 0.97) 100%);
    box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.75);
    color: #f2f2f7;
}
[data-color-mode="dark"] .holiday-thanks-close { background: rgba(120, 120, 128, 0.28); color: #f2f2f7; }
[data-color-mode="dark"] .holiday-thanks-close:active { background: rgba(120, 120, 128, 0.44); }
[data-color-mode="dark"] .holiday-thanks-art {
    background: #2c2c2e;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 20px -10px rgba(0, 0, 0, 0.6);
}
[data-color-mode="dark"] .holiday-thanks-kicker,
[data-color-mode="dark"] .holiday-thanks-sign,
[data-color-mode="dark"] .holiday-thanks-dismiss { color: #8e8e93; }
[data-color-mode="dark"] .holiday-thanks-title { color: #f2f2f7; }
[data-color-mode="dark"] .holiday-thanks-quote { color: #d1d1d6; }
[data-color-mode="dark"] .holiday-thanks-ok { background: #f2f2f7; color: #1c1c1e; }
[data-color-mode="dark"] .holiday-thanks-dismiss:active { color: #f2f2f7; }

/* 关闭透明与增强对比时，退回实色纸面，保证可读 */
@media (prefers-reduced-transparency: reduce) {
    .holiday-thanks-overlay { background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: none; backdrop-filter: none; }
    .holiday-thanks-panel { background: #ffffff; -webkit-backdrop-filter: none; backdrop-filter: none; }
    [data-color-mode="dark"] .holiday-thanks-panel { background: #1c1c1e; }
}
@media (prefers-contrast: more) {
    .holiday-thanks-panel { border-color: rgba(0, 0, 0, 0.4); background: #ffffff; }
    .holiday-thanks-quote { color: #000000; }
    .holiday-thanks-kicker,
    .holiday-thanks-sign { color: #48484a; }
    [data-color-mode="dark"] .holiday-thanks-panel { border-color: rgba(255, 255, 255, 0.5); background: #000000; }
}
