/*
 * Article expiry/update notice styles.
 * All selectors are scoped to the Pidan child theme notice component.
 */

.niliu-post-expiry-notice {
    --npe-accent: #ff9800;
    --npe-text: #4b5563;
    --npe-bg: #ffffff;
    --npe-border: #e5e7eb;
    --npe-code-bg: rgba(127, 127, 127, 0.1);
    --npe-link: #e67e22;
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-sizing: border-box;
    width: 100%;
    margin: 22px 0 26px;
    padding: 16px 46px 16px 18px;
    overflow: hidden;
    color: var(--npe-text);
    background: var(--npe-bg);
    border: 1px solid var(--npe-border);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.75;
}

.niliu-post-expiry-notice[hidden] {
    display: none !important;
}

.niliu-post-expiry-icon,
.niliu-post-expiry-content,
.niliu-expiry-close {
    position: relative;
    z-index: 2;
}

.niliu-post-expiry-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-top: 1px;
    color: var(--npe-accent);
    font-size: 21px;
    line-height: 1;
}

.niliu-post-expiry-icon i {
    line-height: 1;
}

.niliu-post-expiry-content {
    min-width: 0;
    flex: 1 1 auto;
}

.niliu-post-expiry-title {
    display: block;
    margin: 0 0 3px;
    color: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.65;
}

.niliu-post-expiry-freshness {
    margin-top: 5px;
    color: inherit;
    font-size: 13px;
    line-height: 1.75;
    opacity: 0.96;
}

.niliu-post-expiry-freshness code {
    display: inline-block;
    max-width: 100%;
    padding: 1px 7px;
    overflow-wrap: anywhere;
    color: inherit;
    background: var(--npe-code-bg);
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.92em;
    font-weight: 600;
}

.niliu-post-expiry-notice a {
    color: var(--npe-link);
    font-weight: 600;
    text-decoration: none;
}

.niliu-post-expiry-notice a:hover,
.niliu-post-expiry-notice a:focus-visible {
    text-decoration: underline;
}

.niliu-post-expiry-qq {
    color: var(--npe-link);
    font-weight: 700;
    white-space: nowrap;
}

.niliu-expiry-close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: currentColor;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.55;
    transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.niliu-expiry-close:hover,
.niliu-expiry-close:focus-visible {
    background: rgba(127, 127, 127, 0.14);
    outline: none;
    opacity: 1;
}

.niliu-expiry-close:active {
    transform: scale(0.92);
}

.niliu-expiry-close:focus-visible {
    box-shadow: 0 0 0 2px var(--npe-accent);
}

/* 01 · 极简线性边框 */
.niliu-post-expiry--style-01 {
    --npe-accent: #ff9800;
    --npe-text: #555b65;
    --npe-bg: transparent;
    --npe-border: transparent;
    --npe-code-bg: #f3f4f6;
    --npe-link: #e66f00;
    padding: 12px 44px 12px 16px;
    border: 0;
    border-left: 4px solid var(--npe-accent);
    border-radius: 0;
    transition: border-color 0.2s ease;
}

.niliu-post-expiry--style-01:hover {
    border-left-color: #e65100;
}

/* 02 · 彩色徽章 + 柔和底色 */
.niliu-post-expiry--style-02 {
    --npe-accent: #ff9800;
    --npe-text: #5d4037;
    --npe-bg: #fff8eb;
    --npe-border: #ffe0b2;
    --npe-code-bg: rgba(255, 152, 0, 0.14);
    --npe-link: #e65100;
    margin-top: 30px;
    padding-top: 22px;
    overflow: visible;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(255, 152, 0, 0.1);
}

.niliu-post-expiry--style-02::before {
    position: absolute;
    top: -11px;
    left: 18px;
    z-index: 3;
    padding: 2px 13px;
    color: #fff;
    background: var(--npe-accent);
    border-radius: 999px;
    box-shadow: 0 3px 8px rgba(255, 152, 0, 0.25);
    content: "↻ 提示";
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* 03 · 卡片毛玻璃效果 */
.niliu-post-expiry--style-03 {
    --npe-accent: #ff9800;
    --npe-text: #3f4650;
    --npe-bg: rgba(255, 255, 255, 0.66);
    --npe-border: rgba(255, 152, 0, 0.24);
    --npe-code-bg: rgba(255, 152, 0, 0.15);
    --npe-link: #ef6c00;
    padding: 18px 48px 18px 20px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.niliu-post-expiry--style-03:hover {
    border-color: #ffb74d;
    box-shadow: 0 14px 34px rgba(255, 152, 0, 0.12);
    transform: translateY(-1px);
}

/* 04 · 时间线式 */
.niliu-post-expiry--style-04 {
    --npe-accent: #b08968;
    --npe-text: #4f4037;
    --npe-bg: #faf9f7;
    --npe-border: #d4a373;
    --npe-code-bg: #efe5dc;
    --npe-link: #9c7655;
    padding: 16px 46px 16px 34px;
    border: 0;
    border-radius: 0;
}

.niliu-post-expiry--style-04::before {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 14px;
    width: 2px;
    background: var(--npe-border);
    border-radius: 2px;
    content: "";
}

.niliu-post-expiry--style-04::after {
    position: absolute;
    top: 18px;
    left: 9px;
    width: 10px;
    height: 10px;
    background: var(--npe-border);
    border: 2px solid var(--npe-bg);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--npe-border);
    content: "";
}

/* 05 · 霓虹警告灯 */
.niliu-post-expiry--style-05 {
    --npe-accent: #ff5757;
    --npe-text: #f4f4f5;
    --npe-bg: #18181b;
    --npe-border: #ff5757;
    --npe-code-bg: rgba(255, 87, 87, 0.2);
    --npe-link: #ffb36b;
    border: 2px solid var(--npe-border);
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(255, 87, 87, 0.28), inset 0 0 14px rgba(255, 87, 87, 0.05);
    animation: npe-neon-pulse 2.2s ease-in-out infinite alternate;
}

.niliu-post-expiry--style-05 .niliu-post-expiry-icon {
    animation: npe-icon-pulse 1.4s ease-in-out infinite;
    text-shadow: 0 0 12px currentColor;
}

/* 06 · 折叠便签纸 */
.niliu-post-expiry--style-06 {
    --npe-accent: #b8860b;
    --npe-text: #5f5138;
    --npe-bg: #fff9df;
    --npe-border: #eadba9;
    --npe-code-bg: #f4e9c8;
    --npe-link: #9f7110;
    padding: 19px 48px 17px 20px;
    border-radius: 3px 3px 3px 12px;
    box-shadow: 0 5px 12px rgba(83, 66, 23, 0.08);
}

.niliu-post-expiry--style-06::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-top: 28px solid rgba(181, 141, 40, 0.2);
    border-right: 28px solid transparent;
    content: "";
}

/* 07 · 科技感数据面板 */
.niliu-post-expiry--style-07 {
    --npe-accent: #58a6ff;
    --npe-text: #c9d1d9;
    --npe-bg: #0d1117;
    --npe-border: #30363d;
    --npe-code-bg: #161b22;
    --npe-link: #58a6ff;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 8px 20px rgba(0, 0, 0, 0.16);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.niliu-post-expiry--style-07::before {
    position: absolute;
    top: 10px;
    left: 12px;
    width: 6px;
    height: 6px;
    background: #3fb950;
    border-radius: 50%;
    box-shadow: 10px 0 0 #d29922, 20px 0 0 #f85149;
    content: "";
}

.niliu-post-expiry--style-07 {
    padding-top: 25px;
}

/* 08 · 极简空气泡 */
.niliu-post-expiry--style-08 {
    --npe-accent: #7b8fa1;
    --npe-text: #334e68;
    --npe-bg: #f2f6fc;
    --npe-border: transparent;
    --npe-code-bg: #e1e8f0;
    --npe-link: #3b6ea5;
    padding: 14px 48px 14px 22px;
    border: 0;
    border-radius: 30px 30px 30px 8px;
    box-shadow: 0 3px 9px rgba(15, 23, 42, 0.04);
}

/* 09 · 渐变色大边框 */
.niliu-post-expiry--style-09 {
    --npe-accent: rgba(255, 255, 255, 0.95);
    --npe-text: #ffffff;
    --npe-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --npe-border: transparent;
    --npe-code-bg: rgba(255, 255, 255, 0.18);
    --npe-link: #ffe082;
    padding: 19px 50px 19px 22px;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.3);
}

/* 10 · 日系和风 */
.niliu-post-expiry--style-10 {
    --npe-accent: #a68b77;
    --npe-text: #4d3e33;
    --npe-bg: #fcf8f0;
    --npe-border: #e6d8c5;
    --npe-code-bg: #ede5d8;
    --npe-link: #a97b22;
    background-color: var(--npe-bg);
    background-image:
        linear-gradient(0deg, transparent 24%, rgba(166, 139, 119, 0.06) 25%, rgba(166, 139, 119, 0.06) 26%, transparent 27%, transparent 74%, rgba(166, 139, 119, 0.06) 75%, rgba(166, 139, 119, 0.06) 76%, transparent 77%),
        linear-gradient(90deg, transparent 24%, rgba(166, 139, 119, 0.06) 25%, rgba(166, 139, 119, 0.06) 26%, transparent 27%, transparent 74%, rgba(166, 139, 119, 0.06) 75%, rgba(166, 139, 119, 0.06) 76%, transparent 77%);
    background-size: 40px 40px;
    overflow: visible;
    border-radius: 4px;
    box-shadow: inset 0 0 28px rgba(166, 139, 119, 0.08);
    font-family: Georgia, "Hiragino Mincho ProN", "Noto Serif CJK SC", serif;
}

.niliu-post-expiry--style-10::before {
    position: absolute;
    top: -9px;
    left: 20px;
    z-index: 3;
    padding: 0 6px;
    color: #b8a08a;
    background: #fcf8f0;
    content: "✽";
    font-size: 22px;
}

/* 11 · 杂志卡片 */
.niliu-post-expiry--style-11 {
    --npe-accent: #e17055;
    --npe-text: #333333;
    --npe-bg: #ffffff;
    --npe-border: #e5e7eb;
    --npe-code-bg: #fff1ec;
    --npe-link: #d65b42;
    padding: 22px 50px 18px 22px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.niliu-post-expiry--style-11::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--npe-accent);
    content: "";
}

.niliu-post-expiry--style-11:hover {
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* 12 · 立体浮雕 */
.niliu-post-expiry--style-12 {
    --npe-accent: #2980b9;
    --npe-text: #34495e;
    --npe-bg: linear-gradient(145deg, #eeeeee, #f7f7f7);
    --npe-border: transparent;
    --npe-code-bg: #e2e5e7;
    --npe-link: #2980b9;
    border: 0;
    border-radius: 16px;
    box-shadow: 8px 8px 16px #d4d4d4, -8px -8px 16px #ffffff, inset 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.niliu-post-expiry--style-12 .niliu-post-expiry-icon {
    border-radius: 50%;
    box-shadow: inset 2px 2px 4px rgba(255, 255, 255, 0.85), inset -2px -2px 5px rgba(0, 0, 0, 0.08);
}

/* 13 · 极简圆点装饰 */
.niliu-post-expiry--style-13 {
    --npe-accent: #94a3b8;
    --npe-text: #475569;
    --npe-bg: transparent;
    --npe-border: transparent;
    --npe-code-bg: #f1f5f9;
    --npe-link: #3b82f6;
    padding: 12px 44px 12px 22px;
    border: 0;
    border-radius: 0;
}

.niliu-post-expiry--style-13::before {
    position: absolute;
    top: 50%;
    left: 2px;
    width: 6px;
    height: 6px;
    background: #cbd5e1;
    border-radius: 50%;
    box-shadow: 0 -12px 0 #cbd5e1, 0 12px 0 #cbd5e1;
    content: "";
    transform: translateY(-50%);
}

/* 14 · 动态渐变背景 */
.niliu-post-expiry--style-14 {
    --npe-accent: #d65f5f;
    --npe-text: #3f3f46;
    --npe-bg: linear-gradient(-45deg, #ffecd2, #fcb69f, #e8d6ff, #a1c4fd);
    --npe-border: transparent;
    --npe-code-bg: rgba(255, 255, 255, 0.45);
    --npe-link: #8d4d88;
    background: var(--npe-bg);
    background-size: 400% 400%;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(90, 90, 130, 0.12);
    animation: npe-gradient-shift 8s ease infinite;
}

/* 15 · 拟物化信封 */
.niliu-post-expiry--style-15 {
    --npe-accent: #a67c52;
    --npe-text: #5c4938;
    --npe-bg: #fbf7f0;
    --npe-border: #dac5a6;
    --npe-code-bg: #efe5d6;
    --npe-link: #9b6f44;
    padding: 20px 48px 18px 22px;
    border: 2px solid var(--npe-border);
    border-radius: 6px;
    box-shadow: 0 4px 0 #b8a084, 0 8px 16px rgba(0, 0, 0, 0.06);
}

.niliu-post-expiry--style-15::before,
.niliu-post-expiry--style-15::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    height: 42%;
    content: "";
    pointer-events: none;
}

.niliu-post-expiry--style-15::before {
    background: linear-gradient(155deg, transparent 49.5%, rgba(190, 165, 128, 0.18) 50%);
}

.niliu-post-expiry--style-15::after {
    background: linear-gradient(205deg, transparent 49.5%, rgba(190, 165, 128, 0.13) 50%);
}

/* 16 · 柔和呼吸光晕 */
.niliu-post-expiry--style-16 {
    --npe-accent: #d6a800;
    --npe-text: #4b4b45;
    --npe-bg: rgba(255, 255, 255, 0.7);
    --npe-border: rgba(255, 215, 0, 0.34);
    --npe-code-bg: rgba(255, 215, 0, 0.14);
    --npe-link: #c68c00;
    border-radius: 20px;
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    animation: npe-soft-glow 3.4s ease-in-out infinite;
}

/* 17 · 呼吸渐变边框 */
.niliu-post-expiry--style-17 {
    --npe-accent: #ffd93d;
    --npe-text: #eeeeee;
    --npe-bg: #101014;
    --npe-border: transparent;
    --npe-code-bg: rgba(255, 255, 255, 0.08);
    --npe-link: #6bc7ff;
    background: linear-gradient(#101014, #101014) padding-box,
        linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #ff6b6b) border-box;
    background-size: 100% 100%, 300% 100%;
    border: 2px solid transparent;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: npe-border-breathe 5s linear infinite;
}

/* 18 · 气泡呼吸 */
.niliu-post-expiry--style-18 {
    --npe-accent: #6495ed;
    --npe-text: #385273;
    --npe-bg: rgba(230, 242, 255, 0.75);
    --npe-border: rgba(100, 149, 237, 0.28);
    --npe-code-bg: rgba(100, 149, 237, 0.12);
    --npe-link: #4169b1;
    padding: 14px 48px 14px 22px;
    border-radius: 50px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 13px rgba(100, 149, 237, 0.08);
    animation: npe-bubble-breathe 3.6s ease-in-out infinite;
}

/* 19 · 呼吸阴影浮动 */
.niliu-post-expiry--style-19 {
    --npe-accent: #ff7043;
    --npe-text: #424242;
    --npe-bg: #ffffff;
    --npe-border: #eceff1;
    --npe-code-bg: #f5f5f5;
    --npe-link: #ef5b2a;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    animation: npe-float-shadow 4s ease-in-out infinite;
}

/* 20 · 暗色系呼吸渐变 */
.niliu-post-expiry--style-20 {
    --npe-accent: #e94560;
    --npe-text: #e7e7ea;
    --npe-bg: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    --npe-border: rgba(255, 255, 255, 0.06);
    --npe-code-bg: rgba(255, 255, 255, 0.07);
    --npe-link: #ffd93d;
    background: var(--npe-bg);
    background-size: 220% 220%;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    animation: npe-dark-gradient 8s ease infinite;
}

/* 21 · 多彩呼吸线框 */
.niliu-post-expiry--style-21 {
    --npe-accent: #48dbfb;
    --npe-text: #f1f2f6;
    --npe-bg: #1e1e2f;
    --npe-border: #ff6b6b;
    --npe-code-bg: rgba(255, 255, 255, 0.08);
    --npe-link: #feca57;
    background: linear-gradient(#1e1e2f, #1e1e2f) padding-box,
        linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #ff6b6b) border-box;
    background-size: 100% 100%, 300% 300%;
    border: 2px solid transparent;
    border-radius: 12px;
    animation: npe-rainbow-frame 6s ease infinite;
}

/* 22 · 柔和霓虹（粉紫调） */
.niliu-post-expiry--style-22 {
    --npe-accent: #8e5aa3;
    --npe-text: #4b3155;
    --npe-bg: linear-gradient(-45deg, #ffdde1, #ee9ca7, #d6a4c4, #b8a9c9);
    --npe-border: transparent;
    --npe-code-bg: rgba(255, 255, 255, 0.34);
    --npe-link: #6f3d84;
    background: var(--npe-bg);
    background-size: 300% 300%;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(238, 156, 167, 0.28);
    animation: npe-soft-neon 7s ease infinite;
}

/* 23 · 简约呼吸下划线 */
.niliu-post-expiry--style-23 {
    --npe-accent: #ff6b6b;
    --npe-text: #3d3d3d;
    --npe-bg: transparent;
    --npe-border: #e5e7eb;
    --npe-code-bg: #f5f5f5;
    --npe-link: #0984e3;
    padding: 9px 44px 16px 0;
    border: 0;
    border-bottom: 2px solid var(--npe-border);
    border-radius: 0;
    overflow: visible;
}

.niliu-post-expiry--style-23::after {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 65%;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff);
    background-size: 300% 100%;
    content: "";
    animation: npe-line-breathe 4s ease infinite;
}

/* 24 · 玻璃态呼吸 */
.niliu-post-expiry--style-24 {
    --npe-accent: #7c5cff;
    --npe-text: #394152;
    --npe-bg: rgba(255, 255, 255, 0.28);
    --npe-border: rgba(255, 255, 255, 0.4);
    --npe-code-bg: rgba(255, 255, 255, 0.42);
    --npe-link: #6750d8;
    border-radius: 24px;
    backdrop-filter: blur(13px) saturate(120%);
    -webkit-backdrop-filter: blur(13px) saturate(120%);
    box-shadow: 0 10px 30px rgba(90, 80, 150, 0.13);
    animation: npe-glass-float 4.5s ease-in-out infinite;
}

/* 25 · 复古报纸 */
.niliu-post-expiry--style-25 {
    --npe-accent: #8b6f4c;
    --npe-text: #3d2c1e;
    --npe-bg: #f5efe0;
    --npe-border: #d2bba0;
    --npe-code-bg: #e3d5c0;
    --npe-link: #8d6e3f;
    padding: 16px 48px 16px 20px;
    border: 2px solid var(--npe-border);
    border-radius: 0;
    box-shadow: 4px 4px 0 #b8a084;
    font-family: Georgia, "Times New Roman", "Noto Serif CJK SC", serif;
}

.niliu-post-expiry--style-25::before {
    position: absolute;
    top: 8px;
    right: 40px;
    color: rgba(93, 64, 55, 0.12);
    content: "NEWS";
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* 26 · 多彩圆点背景 */
.niliu-post-expiry--style-26 {
    --npe-accent: #ff6b6b;
    --npe-text: #212529;
    --npe-bg: #f8f9fa;
    --npe-border: #dee2e6;
    --npe-code-bg: #e9ecef;
    --npe-link: #0d6efd;
    background-color: var(--npe-bg);
    background-image:
        radial-gradient(circle, rgba(255, 107, 107, 0.75) 1px, transparent 1.5px),
        radial-gradient(circle, rgba(254, 202, 87, 0.75) 1px, transparent 1.5px),
        radial-gradient(circle, rgba(72, 219, 251, 0.75) 1px, transparent 1.5px);
    background-position: 0 0, 15px 15px, 0 15px;
    background-size: 30px 30px;
    border-radius: 16px;
}

/* 27 · 折纸风格 */
.niliu-post-expiry--style-27 {
    --npe-accent: #6c5ce7;
    --npe-text: #3f3f46;
    --npe-bg: #ffffff;
    --npe-border: #e8e8ec;
    --npe-code-bg: #f1f1f5;
    --npe-link: #5d4bd2;
    padding: 18px 50px 18px 22px;
    border-radius: 8px 8px 8px 0;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.06);
}

.niliu-post-expiry--style-27::before {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 0;
    height: 0;
    border-top: 22px solid #ececf2;
    border-right: 22px solid transparent;
    content: "";
}

.niliu-post-expiry--style-27::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-top: 18px solid #ffffff;
    border-right: 18px solid transparent;
    content: "";
}

/* Dark mode: keep each style recognizable while restoring readable contrast. */
body.dark-theme .niliu-post-expiry--style-01,
body.dark-theme .niliu-post-expiry--style-13,
body.dark-theme .niliu-post-expiry--style-23 {
    --npe-text: #d4d4d8;
    --npe-code-bg: #27272a;
}

body.dark-theme .niliu-post-expiry--style-02 {
    --npe-text: #f4d7b0;
    --npe-bg: #302618;
    --npe-border: #62431c;
    --npe-code-bg: rgba(255, 152, 0, 0.16);
}

body.dark-theme .niliu-post-expiry--style-03,
body.dark-theme .niliu-post-expiry--style-16,
body.dark-theme .niliu-post-expiry--style-24 {
    --npe-text: #e4e4e7;
    --npe-bg: rgba(31, 41, 55, 0.72);
    --npe-border: rgba(255, 255, 255, 0.13);
    --npe-code-bg: rgba(255, 255, 255, 0.08);
}

body.dark-theme .niliu-post-expiry--style-04 {
    --npe-text: #ddd0c4;
    --npe-bg: #292522;
    --npe-border: #8d715d;
    --npe-code-bg: #3a312b;
}

body.dark-theme .niliu-post-expiry--style-06,
body.dark-theme .niliu-post-expiry--style-10,
body.dark-theme .niliu-post-expiry--style-15,
body.dark-theme .niliu-post-expiry--style-25 {
    --npe-text: #eadbc7;
    --npe-bg: #302a21;
    --npe-border: #655745;
    --npe-code-bg: #433a2e;
}

body.dark-theme .niliu-post-expiry--style-08 {
    --npe-text: #cad7e5;
    --npe-bg: #243140;
    --npe-code-bg: #314154;
}

body.dark-theme .niliu-post-expiry--style-11,
body.dark-theme .niliu-post-expiry--style-19,
body.dark-theme .niliu-post-expiry--style-27 {
    --npe-text: #e4e4e7;
    --npe-bg: #242428;
    --npe-border: #3f3f46;
    --npe-code-bg: #34343a;
}

body.dark-theme .niliu-post-expiry--style-12 {
    --npe-text: #dbe3ea;
    --npe-bg: #292d31;
    --npe-code-bg: #343a40;
    background: #292d31;
    box-shadow: 7px 7px 14px #1d2023, -5px -5px 12px #353a3f;
}

body.dark-theme .niliu-post-expiry--style-14,
body.dark-theme .niliu-post-expiry--style-22 {
    --npe-text: #2f2d35;
}

body.dark-theme .niliu-post-expiry--style-26 {
    --npe-text: #e4e4e7;
    --npe-bg: #24272b;
    --npe-border: #41464d;
    --npe-code-bg: #33383e;
}

body.dark-theme .niliu-post-expiry--style-27::after {
    border-top-color: #242428;
}

@keyframes npe-neon-pulse {
    from { border-color: #ff5757; box-shadow: 0 0 18px rgba(255, 87, 87, 0.25), inset 0 0 14px rgba(255, 87, 87, 0.05); }
    to { border-color: #ff9a44; box-shadow: 0 0 30px rgba(255, 154, 68, 0.5), inset 0 0 16px rgba(255, 154, 68, 0.05); }
}

@keyframes npe-icon-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.94); }
}

@keyframes npe-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes npe-soft-glow {
    0%, 100% { box-shadow: 0 5px 18px rgba(255, 204, 0, 0.08); }
    50% { box-shadow: 0 8px 30px rgba(255, 204, 0, 0.24); }
}

@keyframes npe-border-breathe {
    0% { background-position: 0 0, 0% 50%; }
    50% { background-position: 0 0, 100% 50%; }
    100% { background-position: 0 0, 0% 50%; }
}

@keyframes npe-bubble-breathe {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 13px rgba(100, 149, 237, 0.08); }
    50% { transform: scale(1.006); box-shadow: 0 7px 20px rgba(100, 149, 237, 0.16); }
}

@keyframes npe-float-shadow {
    0%, 100% { transform: translateY(0); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05); }
    50% { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.09); }
}

@keyframes npe-dark-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes npe-rainbow-frame {
    0% { background-position: 0 0, 0% 50%; }
    50% { background-position: 0 0, 100% 50%; }
    100% { background-position: 0 0, 0% 50%; }
}

@keyframes npe-soft-neon {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes npe-line-breathe {
    0%, 100% { width: 60%; background-position: 0% 0; }
    50% { width: 100%; background-position: 100% 0; }
}

@keyframes npe-glass-float {
    0%, 100% { transform: translateY(0); box-shadow: 0 10px 30px rgba(90, 80, 150, 0.12); }
    50% { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(90, 80, 150, 0.19); }
}

@media (max-width: 768px) {
    .niliu-post-expiry-notice {
        gap: 10px;
        margin: 18px 0 22px;
        padding: 14px 42px 14px 14px;
        border-radius: 12px;
        font-size: 13px;
        line-height: 1.7;
    }

    .niliu-post-expiry-icon {
        width: 25px;
        height: 25px;
        font-size: 18px;
    }

    .niliu-post-expiry-title {
        font-size: 13px;
    }

    .niliu-post-expiry-freshness {
        font-size: 12px;
    }

    .niliu-post-expiry-freshness code {
        white-space: normal;
    }

    .niliu-post-expiry--style-02 {
        margin-top: 28px;
        padding-top: 20px;
    }

    .niliu-post-expiry--style-04 {
        padding-left: 30px;
    }

    .niliu-post-expiry--style-04::before {
        left: 12px;
    }

    .niliu-post-expiry--style-04::after {
        left: 7px;
    }

    .niliu-post-expiry--style-08,
    .niliu-post-expiry--style-18 {
        border-radius: 20px 20px 20px 8px;
    }

    .niliu-post-expiry--style-12 {
        box-shadow: 5px 5px 10px #d7d7d7, -5px -5px 10px #ffffff;
    }

    body.dark-theme .niliu-post-expiry--style-12 {
        box-shadow: 5px 5px 10px #1d2023, -4px -4px 9px #353a3f;
    }

    .niliu-post-expiry--style-23 {
        padding-left: 0;
    }

    .niliu-post-expiry--style-25 {
        box-shadow: 3px 3px 0 #b8a084;
    }
}

@media (max-width: 390px) {
    .niliu-post-expiry-notice {
        gap: 8px;
        padding-right: 38px;
        padding-left: 12px;
    }

    .niliu-post-expiry-icon {
        width: 22px;
        font-size: 17px;
    }

    .niliu-expiry-close {
        top: 6px;
        right: 6px;
        width: 28px;
        height: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .niliu-post-expiry-notice,
    .niliu-post-expiry-icon,
    .niliu-expiry-close,
    .niliu-post-expiry--style-23::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}
