/* ========== 新春主题样式 ==========
 * 从借鉴学习模板.html提取的新春主题设计
 * 包含：对联、灯笼、背景福字、金粉效果等
 */

/* ========== 新春主题变量 (覆盖版) ========== */
[data-theme="newyear"] {
    --primary-color: #c0392b; /* 中国红 */
    --primary-hover: #a93226;
    --secondary-color: #f1c40f; /* 流光金 */
    --background-color: #8e2118; /* 深红背景 */
    --section-background: #fff5f5; /* 暖白背景 */
    --text-primary: #2c3e50;
    --text-secondary: #5d4037;
    --white: #ffffff;
    --font-title: 'Ma Shan Zheng', cursive; /* 毛笔字体 */
    --font-body: 'Inter', sans-serif;
    --shadow-light: 0 4px 15px rgba(192, 57, 43, 0.3);
    
    /* 3D卡片新春色 */
    --card-gradient: linear-gradient(145deg, #b71c1c 0%, #f1c40f 100%);
    --pc-behind-glow-color: rgba(255, 215, 0, 0.6) !important; /* 金色光晕 */
}

/* ========== 新春背景大"福"字 ========== */
.bg-fu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 80vh;
    color: rgba(0,0,0,0.05); /* 原版下几乎不可见 */
    z-index: -1;
    pointer-events: none;
    transition: all 0.5s ease;
    opacity: 0; /* 默认隐藏 */
}

[data-theme="newyear"] .bg-fu {
    color: rgba(255, 215, 0, 0.1); /* 金色半透明 */
    transform: translate(-50%, -50%) rotate(5deg);
    opacity: 1;
}

/* ========== 换装按钮 ========== */
.theme-switch-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1c40f, #e67e22);
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    transition: transform 0.3s;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

.theme-switch-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.theme-switch-btn:hover {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.theme-switch-btn::after {
    content: '换装';
    position: absolute;
    bottom: -25px;
    font-size: 12px;
    color: var(--text-primary);
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.theme-switch-btn:hover::after {
    opacity: 1;
}

/* ========== 灯笼触发器 ========== */
.lantern-trigger {
    position: fixed;
    top: 80px; /* 改为导航栏下方悬挂 */
    z-index: 999;
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: none; /* 默认隐藏，新春模式显示 */
}

[data-theme="newyear"] .lantern-trigger {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-30px);
}

[data-theme="newyear"] .lantern-trigger.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lantern-trigger:hover {
    transform: scale(1.1) rotate(5deg);
}

.lantern-trigger.left {
    left: 10px;
}

.lantern-trigger.right {
    right: 10px;
}

.lantern-body {
    width: 70px;
    height: 60px;
    background: linear-gradient(135deg, #d63031 0%, #c0392b 50%, #a93226 100%);
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    box-shadow: 
        0 8px 20px rgba(214, 48, 49, 0.6),
        0 0 30px rgba(214, 48, 49, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    border: 3px solid #b71c1c;
}

.lantern-body::before {
    content: '福';
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    font-weight: bold;
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 28px;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(255, 215, 0, 0.5);
    animation: lanternGlow 2s ease-in-out infinite;
}

.lantern-trigger:hover .lantern-body {
    background: linear-gradient(135deg, #e74c3c 0%, #d63031 50%, #c0392b 100%);
    box-shadow: 
        0 12px 30px rgba(214, 48, 49, 0.8),
        0 0 40px rgba(214, 48, 49, 0.4),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* 灯笼上部提线 */
.lantern-line {
    width: 3px;
    height: 20px;
    background: linear-gradient(to bottom, #ffd700, #f39c12);
    margin: 0 auto;
    position: relative;
}

.lantern-line::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* 灯笼流苏 */
.lantern-tassel {
    width: 6px;
    height: 40px;
    background: linear-gradient(to bottom, #d63031, #c0392b);
    margin: 0 auto;
    border-radius: 3px;
    position: relative;
    animation: tasselSwing 3s ease-in-out infinite;
}

.lantern-tassel::before,
.lantern-tassel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 4px;
    height: 35px;
    background: linear-gradient(to bottom, #c0392b, #a93226);
    border-radius: 2px;
}

.lantern-tassel::before {
    left: -8px;
    animation: tasselSwing 3.5s ease-in-out infinite;
}

.lantern-tassel::after {
    right: -8px;
    animation: tasselSwing 2.5s ease-in-out infinite;
}

/* 灯笼光晕 */
.lantern-trigger::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(214, 48, 49, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: lanternPulse 2s ease-in-out infinite;
}

/* 灯笼动画 */
@keyframes lanternGlow {
    0%, 100% {
        filter: brightness(1);
        transform: scale(1);
    }
    50% {
        filter: brightness(1.2);
        transform: scale(1.02);
    }
}

@keyframes tasselSwing {
    0%, 100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

@keyframes lanternPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* ========== 对联容器 ========== */
.couplet-container {
    position: fixed;
    top: 220px; /* 继续下沉，避免被灯笼遮挡 */
    z-index: 998;
    width: 100px; /* 加大宽度，确保内容不被裁剪 */
    transition: height 1s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden; /* 隐藏溢出内容 */
    height: 0; /* 默认收起 */
}

.couplet-left {
    left: 20px; /* 向外移动，避免遮挡灯笼 */
}

.couplet-right {
    right: 20px;
}

.couplet-content {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    border: 3px solid #f1c40f;
    color: #f1c40f;
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 36px; /* 加大字体 */
    text-align: center;
    padding: 30px 10px; /* 减小左右padding，增加内部空间 */
    border-radius: 0 0 15px 15px;
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(241, 196, 15, 0.3);
    writing-mode: vertical-rl; /* 竖排文字 */
    letter-spacing: 15px;
    height: 550px; /* 增加高度，确保7个字完整显示 */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* 隐藏溢出内容 */
}

/* 对联装饰线 */
.couplet-content::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 5px;
    width: 2px;
    height: calc(100% - 40px);
    background: linear-gradient(to bottom, #f1c40f, transparent);
}

.couplet-content::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 5px;
    width: 2px;
    height: calc(100% - 40px);
    background: linear-gradient(to bottom, #f1c40f, transparent);
}

/* ========== 导航栏横批覆盖层 ========== */
.navbar-overlay-hengpi {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
    z-index: 1001; /* 高于导航栏 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* 横批激活时的纸张背景 */
.navbar-overlay-hengpi.active::before {
    content: '';
    position: absolute;
    left: 80px;
    right: 80px;
    top: 0;
    bottom: 0;
    background: linear-gradient(to right,
        rgba(255, 248, 220, 0.95) 0%,
        rgba(255, 250, 240, 0.98) 10%,
        rgba(255, 248, 220, 0.95) 90%,
        rgba(255, 248, 220, 0.95) 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease 0.8s;
    z-index: 1;
}

.navbar-overlay-hengpi.active::before {
    opacity: 1;
}

.navbar-overlay-hengpi.active {
    transform: translateY(0);
}

/* ========== 卷轴样式 ========== */
.scroll-left,
.scroll-right {
    position: absolute;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 25%, #cd853f 50%, #a0522d 75%, #8b4513 100%);
    border: 4px solid #f1c40f;
    transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 10;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.scroll-left {
    left: 0;
    border-radius: 0 8px 8px 0;
    box-shadow:
        4px 0 10px rgba(0, 0, 0, 0.3),
        inset 2px 0 4px rgba(255, 255, 255, 0.2);
}

.scroll-right {
    right: 0;
    border-radius: 8px 0 0 8px;
    box-shadow:
        -4px 0 10px rgba(0, 0, 0, 0.3),
        inset -2px 0 4px rgba(255, 255, 255, 0.2);
}

/* 横批激活时展开卷轴 */
.navbar-overlay-hengpi.active .scroll-left {
    width: 80px;
}

.navbar-overlay-hengpi.active .scroll-right {
    width: 80px;
}

/* 卷轴装饰纹理 */
.scroll-left::before,
.scroll-right::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid rgba(241, 196, 15, 0.5);
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.3) 0%, rgba(205, 133, 63, 0.2) 100%);
}

/* 卷轴上方的装饰圆点 */
.scroll-left::after,
.scroll-right::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, #ffd700 0%, #f1c40f 70%, #d4a017 100%);
    border-radius: 50%;
    box-shadow:
        0 0 15px rgba(241, 196, 15, 0.8),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
    border: 2px solid #fff;
}

.hengpi-text {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 3rem;
    color: #c0392b;
    letter-spacing: 15px;
    text-shadow:
        1px 1px 2px rgba(0, 0, 0, 0.1),
        0 0 10px rgba(192, 57, 43, 0.3);
    font-weight: bold;
    z-index: 5;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease 0.8s, transform 0.5s ease 0.8s;
    position: relative;
}

.navbar-overlay-hengpi.active .hengpi-text {
    opacity: 1;
    transform: scale(1);
}

/* ========== Hero区域新春样式 ========== */
[data-theme="newyear"] .hero-section {
    background: linear-gradient(135deg, #cb2d3e, #ef473a);
}

/* 金粉背景纹理 */
[data-theme="newyear"] .hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#ffd700 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.2;
}

[data-theme="newyear"] .welcome-title {
    font-size: 5rem;
    text-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}

/* ========== 倒计时翻页样式 ========== */
[data-theme="newyear"] .countdown-item {
    background: #fff;
    border: 4px solid #c0392b;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 0 #8e2118; /* 厚度感 */
    transform: translateY(-5px);
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 2rem;
    min-width: 140px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

[data-theme="newyear"] .countdown-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 0 #8e2118;
}

/* 模拟日历孔 */
[data-theme="newyear"] .countdown-item::before,
[data-theme="newyear"] .countdown-item::after {
    content: '';
    position: absolute;
    top: 15px;
    width: 12px;
    height: 12px;
    background: #8e2118;
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

[data-theme="newyear"] .countdown-item::before {
    left: 25px;
}

[data-theme="newyear"] .countdown-item::after {
    right: 25px;
}

/* 翻页效果容器 */
[data-theme="newyear"] .countdown-number {
    color: #c0392b;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    position: relative;
    z-index: 2;
    font-family: 'Ma Shan Zheng', cursive;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 数字变化动画 */
[data-theme="newyear"] .countdown-number.flip {
    animation: flipNumber 0.6s ease-in-out;
}

@keyframes flipNumber {
    0% {
        transform: rotateX(0deg);
        opacity: 1;
    }
    50% {
        transform: rotateX(90deg);
        opacity: 0.5;
    }
    100% {
        transform: rotateX(0deg);
        opacity: 1;
    }
}

/* 倒计时标签 */
[data-theme="newyear"] .countdown-label {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #8e2118;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 2;
}

/* 冒号样式 */
[data-theme="newyear"] .countdown-separator {
    color: #c0392b;
    font-size: 4rem;
    font-weight: 700;
    animation: separatorPulse 1s ease-in-out infinite;
}

@keyframes separatorPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

[data-theme="newyear"] .countdown-number {
    color: #c0392b;
}

[data-theme="newyear"] .countdown-separator {
    color: #c0392b;
}

/* ========== 节假日标签新春样式 ========== */
[data-theme="newyear"] .holiday-tab {
    border-color: #c0392b;
    color: #5d4037;
}

[data-theme="newyear"] .holiday-tab:hover,
[data-theme="newyear"] .holiday-tab.active {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}

/* ========== 每日激励新春样式 ========== */
[data-theme="newyear"] .motivation-section {
    background: linear-gradient(135deg, #c0392b, #8e44ad);
}

/* ========== 金粉雪花效果 ========== */
.golden-snowflake {
    position: fixed;
    top: -10px;
    z-index: 9999;
    pointer-events: none;
    border-radius: 50%;
    background: #ffd700;
    box-shadow: 0 0 5px gold;
    will-change: transform, opacity;
    transition: top 3s linear;
}

/* ========== 章节标题新春样式 ========== */
[data-theme="newyear"] .section-title {
    font-size: 3.5rem;
    color: #c0392b;
    font-family: 'Ma Shan Zheng', cursive;
}

[data-theme="newyear"] .section-title::after {
    background-color: #f1c40f;
}

/* ========== 导航栏新春样式 ========== */
[data-theme="newyear"] .navbar-brand a {
    font-size: 2rem;
    font-family: 'Ma Shan Zheng', cursive;
    color: #c0392b;
}

[data-theme="newyear"] .nav-link {
    color: #2c3e50;
}

[data-theme="newyear"] .nav-link:hover {
    color: #c0392b;
    background-color: rgba(192, 57, 43, 0.1);
}

[data-theme="newyear"] .nav-link::after {
    background-color: #c0392b;
}

/* ========== 3D卡片新春主题适配 ========== */
[data-theme="newyear"] .pc-inside {
    background-image: linear-gradient(145deg, #b71c1c 0%, #f1c40f 100%);
}

[data-theme="newyear"] .pc-details h3,
[data-theme="newyear"] .pc-details p {
    background-image: linear-gradient(to bottom, #fff, #f1c40f);
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== 响应式适配 ========== */
@media (max-width: 768px) {
    .couplet-container {
        display: none; /* 手机屏幕太窄不显示对联 */
    }

    .bg-fu {
        font-size: 50vh;
    }

    .theme-switch-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
        font-size: 20px;
    }

    .lantern-trigger {
        display: none; /* 移动端隐藏灯笼触发器 */
    }

    .hengpi-text {
        font-size: 1.8rem;
        letter-spacing: 5px;
    }

    .navbar-overlay-hengpi.active .scroll-left,
    .navbar-overlay-hengpi.active .scroll-right {
        width: 50px;
    }

    .couplet-content {
        font-size: 22px;
        height: 450px;
        padding: 20px 5px;
    }

    /* 倒计时适配 */
    [data-theme="newyear"] .countdown-item {
        min-width: 100px;
        min-height: 140px;
        padding: 1.5rem;
    }

    [data-theme="newyear"] .countdown-number {
        font-size: 3rem;
    }

    [data-theme="newyear"] .countdown-label {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .theme-switch-btn {
        width: 45px;
        height: 45px;
        bottom: 15px;
        left: 15px;
    }

    /* 灯笼在小屏幕隐藏 */
    .lantern-trigger {
        display: none !important;
    }

    /* 横批适配 */
    .hengpi-text {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }

    .navbar-overlay-hengpi.active .scroll-left,
    .navbar-overlay-hengpi.active .scroll-right {
        width: 40px;
    }

    /* 倒计时进一步缩小 */
    [data-theme="newyear"] .countdown-item {
        min-width: 80px;
        min-height: 120px;
        padding: 1rem;
    }

    [data-theme="newyear"] .countdown-number {
        font-size: 2.5rem;
    }

    [data-theme="newyear"] .countdown-label {
        font-size: 0.9rem;
    }

    /* 冒号适配 */
    [data-theme="newyear"] .countdown-separator {
        font-size: 3rem;
    }
}

/* ========== 翻页倒计时样式 (从 !DOCTYPE.html 提取) ========== */
:root {
    --flip-card-width: 140px; /* 增加宽度以适应三位数字 */
    --flip-card-height: 160px;
    --flip-card-font-size: 70px; /* 减小字体大小以容纳三位数字 */
    --flip-card-bg: #c0392b;
    --flip-card-text-color: #ffd700;
    --flip-speed: 0.6s;
}

/* 翻页卡片容器 */
.countdown-flip-card {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    width: var(--flip-card-width);
    height: var(--flip-card-height);
    font-size: var(--flip-card-font-size);
    line-height: var(--flip-card-height);
    border-radius: 10px;
    perspective: 400px;
}

/* 新春主题下翻页卡片外层容器 */
[data-theme="newyear"] .countdown-flip-card {
    border: 3px solid #ffd700;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.4), inset 0 0 20px rgba(255, 215, 0, 0.1);
}

/* 上下半部分的共有样式 */
.countdown-flip-card .top,
.countdown-flip-card .bottom,
.countdown-flip-card .leaf-front,
.countdown-flip-card .leaf-back {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: var(--flip-card-bg);
    color: var(--flip-card-text-color);
    overflow: hidden;
    text-align: center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.countdown-flip-card .top,
.countdown-flip-card .leaf-front {
    top: 0;
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid rgba(0,0,0,0.3);
    z-index: 2;
}

/* 新春主题下上半部分添加渐变 */
[data-theme="newyear"] .countdown-flip-card .top,
[data-theme="newyear"] .countdown-flip-card .leaf-front {
    background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
    border-bottom-color: rgba(139, 0, 0, 0.5);
}

/* 新春主题下翻页阴影改为金色高光 */
[data-theme="newyear"] .countdown-flip-card .top::after {
    background: linear-gradient(to bottom, rgba(255, 215, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.countdown-flip-card .bottom,
.countdown-flip-card .leaf-back {
    bottom: 0;
    border-radius: 0 0 10px 10px;
    line-height: 0; /* 让文字对齐下半部 */
    z-index: 1;
}

/* 新春主题下下半部分添加渐变 */
[data-theme="newyear"] .countdown-flip-card .bottom,
[data-theme="newyear"] .countdown-flip-card .leaf-back {
    background: linear-gradient(180deg, #c0392b 0%, #922b21 100%);
}

/* 翻转叶片容器 */
.countdown-flip-card .leaf {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    z-index: 3;
    transition: transform var(--flip-speed) ease-in;
    transform-origin: bottom;
    transform-style: preserve-3d;
}

/* 新春主题下翻转叶片添加光泽感 */
[data-theme="newyear"] .countdown-flip-card .leaf-front {
    box-shadow: inset 0 2px 10px rgba(255, 215, 0, 0.3);
}

[data-theme="newyear"] .countdown-flip-card .leaf-back {
    box-shadow: inset 0 -2px 10px rgba(255, 215, 0, 0.2);
}

.countdown-flip-card .leaf-back {
    transform: rotateX(-180deg); /* 初始状态背面向上 */
    height: 100%; /* 填满翻转容器 */
}

/* 动画激活状态 */
.countdown-flip-card.flipping .leaf {
    transform: rotateX(-180deg);
}

/* 阴影效果 */
.countdown-flip-card .top::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 100%);
}

/* ========== 新春主题下独立信息栏"联系我"按钮 ========== */
[data-theme="newyear"] .pc-info-contact {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #ffd700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

[data-theme="newyear"] .pc-info-contact:hover {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* ========== 新春主题下"换一句"按钮 ========== */
[data-theme="newyear"] .refresh-quote {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #ffd700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

[data-theme="newyear"] .refresh-quote:hover {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* ========== 新春主题下个人信息链接样式 ========== */
/* 3D卡片内的链接按钮 */
[data-theme="newyear"] .pc-details-content .profile-link {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #ffd700;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.4);
}

[data-theme="newyear"] .pc-details-content .profile-link:hover {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

/* 3D卡片内联系按钮 */
[data-theme="newyear"] .pc-details-content .contact-btn {
    background: linear-gradient(135deg, #c0392b, #8e44ad);
    color: #ffd700;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.4);
}

[data-theme="newyear"] .pc-details-content .contact-btn:hover {
    background: linear-gradient(135deg, #e74c3c, #9b59b6);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

/* 响应式调整 */
@media (max-width: 600px) {
    .countdown-flip-card {
        width: 90px; /* 移动端增加宽度以适应三位数字 */
        height: 100px;
        font-size: 40px; /* 减小字体大小 */
        line-height: 100px;
    }
}
