* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #000;
    color: #333;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.container {
    text-align: center;
    background: transparent;
    border-radius: 10px;
    padding: 5px;
    max-width: 140px;
    width: auto;
    position: fixed;
    top: 10px;
    right: 80px;
    z-index: 100;
    box-sizing: border-box;
}

header h1 {
    font-size: 0.8rem;
    color: white;
    margin-bottom: 3px;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.countdown-section {
    margin: 10px 0;
}

.countdown-title {
    font-size: 0.6rem;
    color: white;
    margin-bottom: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.countdown {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 3px;
    margin: 5px 0;
}

.count-unit {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 3px;
}

.count-number {
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background: rgba(255, 107, 107, 0.3); /* 半透明背景 */
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    -webkit-backdrop-filter: blur(10px); /* Safari 支持 */
    padding: 6px 9px;
    border-radius: 5px;
    -webkit-box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    min-width: 35px;
    text-align: center;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-animation: countNumber 0.5s ease-in-out;
    -moz-animation: countNumber 0.5s ease-in-out;
    -o-animation: countNumber 0.5s ease-in-out;
    animation: countNumber 0.5s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.2); /* 边框增强毛玻璃效果 */
}

.count-number.animate {
    -webkit-animation: countNumber 0.5s ease-in-out;
    -moz-animation: countNumber 0.5s ease-in-out;
    -o-animation: countNumber 0.5s ease-in-out;
    animation: countNumber 0.5s ease-in-out;
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
    -webkit-box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

@-webkit-keyframes countNumber {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
        -webkit-box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }
}

@keyframes countNumber {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
        -webkit-box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }
}

.time-label {
    font-size: 0.4rem;
    color: #8e44ad;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.time-separator {
    font-size: 1rem;
    color: #e74c3c;
    font-weight: bold;
    -webkit-animation: pulse 1s infinite;
    -moz-animation: pulse 1s infinite;
    -o-animation: pulse 1s infinite;
    animation: pulse 1s infinite;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    -webkit-box-align: center;
    -ms-flex-item-align: center;
    align-self: center;
    margin: 0 1px;
}

@-webkit-keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.wedding-date {
    font-size: 0.5rem;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

/* Canvas效果 */
#effectsCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* 浪漫桃心装饰 */
.romantic-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 105, 180, 0.6);
    transform: rotate(45deg);
    animation: floatHeart 15s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.8);
}

.heart::before,
.heart::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 105, 180, 0.6);
    border-radius: 50%;
}

.heart::before {
    top: -10px;
    left: 0;
}

.heart::after {
    top: 0;
    left: -10px;
}

@keyframes floatHeart {
    0%, 100% { 
        transform: rotate(45deg) translateY(0px) scale(1);
        opacity: 0.6;
    }
    25% { 
        transform: rotate(45deg) translateY(-50px) scale(1.2);
        opacity: 0.9;
    }
    50% { 
        transform: rotate(45deg) translateY(-100px) scale(1);
        opacity: 0.6;
    }
    75% { 
        transform: rotate(45deg) translateY(-50px) scale(0.8);
        opacity: 0.3;
    }
}

@-webkit-keyframes floatHeart {
    0%, 100% { 
        -webkit-transform: rotate(45deg) translateY(0px) scale(1);
        transform: rotate(45deg) translateY(0px) scale(1);
        opacity: 0.6;
    }
    25% { 
        -webkit-transform: rotate(45deg) translateY(-50px) scale(1.2);
        transform: rotate(45deg) translateY(-50px) scale(1.2);
        opacity: 0.9;
    }
    50% { 
        -webkit-transform: rotate(45deg) translateY(-100px) scale(1);
        transform: rotate(45deg) translateY(-100px) scale(1);
        opacity: 0.6;
    }
    75% { 
        -webkit-transform: rotate(45deg) translateY(-50px) scale(0.8);
        transform: rotate(45deg) translateY(-50px) scale(0.8);
        opacity: 0.3;
    }
}

/* 卡牌式控制区 */
.card-controls {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    /* 清除浮动和其他样式 */
    float: none !important;
    clear: both !important;
}

/* 福袋样式 */
/* 福袋样式 - 传统中国风设计 */
.card-pouch {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 100px !important;
    height: 100px !important;
    cursor: pointer !important;
    z-index: 10000 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    /* 确保display:flex在所有浏览器中工作 */
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
    -ms-flex-direction: column !important;
    flex-direction: column !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
}

/* 福袋装饰 */
















/* 福袋图片样式 */
.pouch-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transition: all 0.3s ease !important;
    /* 添加浮动动画 */
    animation: pouchFloat 2s ease-in-out infinite !important;
}

/* 福袋浮动动画 */
@keyframes pouchFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* 福袋标签 */
.pouch-label {
    font-size: 16px !important;
    color: #ffd700 !important;
    font-weight: bold !important;
    text-align: center !important;
    line-height: 1 !important;
    display: block !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7) !important;
    margin-top: 5px !important;
    position: relative !important;
    z-index: 2 !important;
    font-family: 'Microsoft YaHei', 'SimHei', system-ui, sans-serif !important;
    /* 添加文字发光效果 */
    text-shadow: 
        0 0 5px rgba(255, 215, 0, 0.8),
        0 0 10px rgba(255, 215, 0, 0.5),
        1px 1px 3px rgba(0, 0, 0, 0.7) !important;
    /* 浮动动画 */
    animation: labelFloat 2s ease-in-out infinite !important;
}

/* 标签浮动动画 */
@keyframes labelFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

/* 福袋悬停效果 */
.card-pouch:hover {
    transform: scale(1.2) translateY(-10px) !important;
    -webkit-transform: scale(1.2) translateY(-10px) !important;
    -moz-transform: scale(1.2) translateY(-10px) !important;
    -ms-transform: scale(1.2) translateY(-10px) !important;
    -o-transform: scale(1.2) translateY(-10px) !important;
}

/* 福袋点击效果 */
.card-pouch:active {
    transform: scale(1.1) translateY(-5px) !important;
    -webkit-transform: scale(1.1) translateY(-5px) !important;
    -moz-transform: scale(1.1) translateY(-5px) !important;
    -ms-transform: scale(1.1) translateY(-5px) !important;
    -o-transform: scale(1.1) translateY(-5px) !important;
}

/* 卡牌容器 */
.cards-container {
    position: fixed !important;
    bottom: 120px !important;
    right: 20px !important;
    display: flex !important;
    gap: 10px !important;
    transform: translateY(100px) !important;
    -webkit-transform: translateY(100px) !important;
    -moz-transform: translateY(100px) !important;
    -ms-transform: translateY(100px) !important;
    -o-transform: translateY(100px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.4s ease !important;
    z-index: 9999 !important;
    /* 确保display:flex在所有浏览器中工作 */
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-orient: horizontal !important;
    -webkit-box-direction: normal !important;
    -ms-flex-direction: row !important;
    flex-direction: row !important;
    -webkit-box-align: end !important;
    -ms-flex-align: end !important;
    align-items: flex-end !important;
    -ms-flex-wrap: nowrap !important;
    flex-wrap: nowrap !important;
    -webkit-box-pack: end !important;
    -ms-flex-pack: end !important;
    justify-content: flex-end !important;
    /* 炉石风格的叠加效果 */
    padding-right: 20px !important;
}

/* 展开状态 */
.cards-container.expanded {
    transform: translateY(0) !important;
    -webkit-transform: translateY(0) !important;
    -moz-transform: translateY(0) !important;
    -ms-transform: translateY(0) !important;
    -o-transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 为每个卡牌添加入场动画和延迟 */
.card-btn {
    /* 添加入场动画 */
    animation: cardEnter 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
    animation-delay: 0s !important;
    /* 初始状态：缩放为0，透明度为0，位于福袋位置 */
    transform: translateY(20px) translateX(0) scale(0) !important;
    -webkit-transform: translateY(20px) translateX(0) scale(0) !important;
    -moz-transform: translateY(20px) translateX(0) scale(0) !important;
    -ms-transform: translateY(20px) translateX(0) scale(0) !important;
    -o-transform: translateY(20px) translateX(0) scale(0) !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* 展开时显示卡牌 */
.cards-container.expanded .card-btn {
    opacity: 1 !important;
    visibility: visible !important;
}

/* 卡牌入场动画 */
@keyframes cardEnter {
    0% {
        transform: translateY(20px) translateX(0) scale(0) !important;
        -webkit-transform: translateY(20px) translateX(0) scale(0) !important;
        -moz-transform: translateY(20px) translateX(0) scale(0) !important;
        -ms-transform: translateY(20px) translateX(0) scale(0) !important;
        -o-transform: translateY(20px) translateX(0) scale(0) !important;
        opacity: 0 !important;
    }
    80% {
        transform: translateY(-20px) translateX(0) scale(1.05) !important;
        -webkit-transform: translateY(-20px) translateX(0) scale(1.05) !important;
        -moz-transform: translateY(-20px) translateX(0) scale(1.05) !important;
        -ms-transform: translateY(-20px) translateX(0) scale(1.05) !important;
        -o-transform: translateY(-20px) translateX(0) scale(1.05) !important;
        opacity: 1 !important;
    }
    100% {
        transform: translateY(0) translateX(0) scale(1) !important;
        -webkit-transform: translateY(0) translateX(0) scale(1) !important;
        -moz-transform: translateY(0) translateX(0) scale(1) !important;
        -ms-transform: translateY(0) translateX(0) scale(1) !important;
        -o-transform: translateY(0) translateX(0) scale(1) !important;
        opacity: 1 !important;
    }
}

/* 为每个卡牌添加不同的入场延迟，实现依次放出效果 */
.cards-container.expanded .card-btn:nth-child(1) {
    animation-delay: 0.1s !important;
    z-index: 100 !important;
}

.cards-container.expanded .card-btn:nth-child(2) {
    animation-delay: 0.2s !important;
    z-index: 101 !important;
}

.cards-container.expanded .card-btn:nth-child(3) {
    animation-delay: 0.3s !important;
    z-index: 102 !important;
}

.cards-container.expanded .card-btn:nth-child(4) {
    animation-delay: 0.4s !important;
    z-index: 103 !important;
}

/* 为非展开状态添加退场动画 */
.cards-container:not(.expanded) .card-btn {
    animation: cardExit 0.4s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards !important;
}

/* 卡牌退场动画 */
@keyframes cardExit {
    0% {
        transform: translateY(0) translateX(0) scale(1) !important;
        -webkit-transform: translateY(0) translateX(0) scale(1) !important;
        -moz-transform: translateY(0) translateX(0) scale(1) !important;
        -ms-transform: translateY(0) translateX(0) scale(1) !important;
        -o-transform: translateY(0) translateX(0) scale(1) !important;
        opacity: 1 !important;
    }
    100% {
        transform: translateY(20px) translateX(0) scale(0) !important;
        -webkit-transform: translateY(20px) translateX(0) scale(0) !important;
        -moz-transform: translateY(20px) translateX(0) scale(0) !important;
        -ms-transform: translateY(20px) translateX(0) scale(0) !important;
        -o-transform: translateY(20px) translateX(0) scale(0) !important;
        opacity: 0 !important;
    }
}

/* 为非展开状态的卡牌添加不同的退场延迟，实现依次收入 */
.cards-container:not(.expanded) .card-btn:nth-child(1) {
    animation-delay: 0.4s !important;
}

.cards-container:not(.expanded) .card-btn:nth-child(2) {
    animation-delay: 0.3s !important;
}

.cards-container:not(.expanded) .card-btn:nth-child(3) {
    animation-delay: 0.2s !important;
}

.cards-container:not(.expanded) .card-btn:nth-child(4) {
    animation-delay: 0.1s !important;
}

/* 卡牌按钮样式 - 炉石传说风格 */
.card-btn {
    width: 130px !important;
    height: 190px !important;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    background-color: #1a1a2e !important;
    /* 金色渐变边框 */
    border: 3px solid #ffd700 !important;
    /* 炉石风格的大圆角 */
    border-radius: 10px !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    /* 炉石风格的阴影效果 */
    box-shadow: 
        0 12px 20px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.5) !important;
    color: white !important;
    text-align: center !important;
    /* 确保display:flex在所有浏览器中工作 */
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
    -ms-flex-direction: column !important;
    flex-direction: column !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    /* 确保边框和内边距不影响宽度 */
    box-sizing: border-box !important;
    /* 确保按钮在不同浏览器中样式一致 */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    /* 添加文字渲染优化 */
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    /* 添加触摸反馈 */
    -webkit-tap-highlight-color: transparent !important;
    /* 炉石风格的叠加效果 - 每个卡牌有不同的z-index和偏移 */
    transform: translateY(0) translateX(0) !important;
    -webkit-transform: translateY(0) translateX(0) !important;
    -moz-transform: translateY(0) translateX(0) !important;
    -ms-transform: translateY(0) translateX(0) !important;
    -o-transform: translateY(0) translateX(0) !important;
    /* 确保z-index层级关系 */
    z-index: 100 !important;
    /* 添加装饰纹理 */
    background-image: 
        linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(0, 0, 0, 0) 50%),
        linear-gradient(45deg, rgba(255, 215, 0, 0.1) 0%, rgba(0, 0, 0, 0) 50%) !important;
}

/* 为每个卡牌添加不同的偏移和z-index，实现叠加效果 */
.card-btn:nth-child(1) {
    transform: translateY(5px) translateX(10px) !important;
    -webkit-transform: translateY(5px) translateX(10px) !important;
    -moz-transform: translateY(5px) translateX(10px) !important;
    -ms-transform: translateY(5px) translateX(10px) !important;
    -o-transform: translateY(5px) translateX(10px) !important;
    z-index: 100 !important;
}

.card-btn:nth-child(2) {
    transform: translateY(3px) translateX(5px) !important;
    -webkit-transform: translateY(3px) translateX(5px) !important;
    -moz-transform: translateY(3px) translateX(5px) !important;
    -ms-transform: translateY(3px) translateX(5px) !important;
    -o-transform: translateY(3px) translateX(5px) !important;
    z-index: 101 !important;
}

.card-btn:nth-child(3) {
    transform: translateY(1px) translateX(0) !important;
    -webkit-transform: translateY(1px) translateX(0) !important;
    -moz-transform: translateY(1px) translateX(0) !important;
    -ms-transform: translateY(1px) translateX(0) !important;
    -o-transform: translateY(1px) translateX(0) !important;
    z-index: 102 !important;
}

.card-btn:nth-child(4) {
    transform: translateY(0) translateX(-5px) !important;
    -webkit-transform: translateY(0) translateX(-5px) !important;
    -moz-transform: translateY(0) translateX(-5px) !important;
    -ms-transform: translateY(0) translateX(-5px) !important;
    -o-transform: translateY(0) translateX(-5px) !important;
    z-index: 103 !important;
}

/* 悬停时取消叠加偏移，统一位置 */
.card-btn:hover {
    transform: translateY(-15px) translateX(0) !important;
    -webkit-transform: translateY(-15px) translateX(0) !important;
    -moz-transform: translateY(-15px) translateX(0) !important;
    -ms-transform: translateY(-15px) translateX(0) !important;
    -o-transform: translateY(-15px) translateX(0) !important;
    z-index: 200 !important;
}

/* 炉石风格的卡牌顶部装饰条 */
.card-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 25px !important;
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%) !important;
    border-radius: 8px 8px 0 0 !important;
    z-index: 1 !important;
    opacity: 0.8 !important;
}

/* 炉石风格的卡牌底部装饰条 */
.card-btn::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 25px !important;
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%) !important;
    border-radius: 0 0 8px 8px !important;
    z-index: 1 !important;
    opacity: 0.8 !important;
}

.card-btn:hover {
    /* 炉石风格：只上浮，不缩放 */
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(255, 215, 0, 0.4) !important;
    border-color: #ffed4e !important;
}

.card-btn:active {
    /* 炉石风格：点击效果 */
    transform: translateY(-8px) translateX(0) !important;
    -webkit-transform: translateY(-8px) translateX(0) !important;
    -moz-transform: translateY(-8px) translateX(0) !important;
    -ms-transform: translateY(-8px) translateX(0) !important;
    -o-transform: translateY(-8px) translateX(0) !important;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 15px rgba(255, 215, 0, 0.3) !important;
}

.card-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
    -o-transform: none !important;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    border-color: #666 !important;
}

/* 卡牌内部元素 - 炉石传说风格 */
.card-icon {
    font-size: 52px !important;
    margin-bottom: 15px !important;
    display: block !important;
    position: relative !important;
    z-index: 2 !important;
    line-height: 1 !important;
    animation: iconFloat 2.5s ease-in-out infinite !important;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)) !important;
    /* 炉石风格的发光效果 */
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5) !important;
}

/* 图标浮动动画 - 炉石风格 */
@keyframes iconFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

.card-title {
    font-size: 19px !important;
    font-weight: bold !important;
    margin-bottom: 8px !important;
    display: block !important;
    position: relative !important;
    z-index: 2 !important;
    line-height: 1.2 !important;
    /* 炉石风格的文字：纯白+阴影 */
    color: #fff !important;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 215, 0, 0.6) !important;
    font-family: 'Microsoft YaHei', system-ui, sans-serif !important;
    font-style: italic !important;
    letter-spacing: 0.5px !important;
    /* 移除渐变文字，使用纯白 */
    background: none !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: #fff !important;
    background-clip: text !important;
}

.card-desc {
    font-size: 14px !important;
    color: #e0e0e0 !important;
    display: block !important;
    position: relative !important;
    z-index: 2 !important;
    line-height: 1.4 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9) !important;
    font-family: 'Microsoft YaHei', system-ui, sans-serif !important;
    margin-top: auto !important;
    margin-bottom: 15px !important;
    padding: 8px 12px !important;
    /* 炉石风格的描述框 */
    background: rgba(0, 0, 0, 0.4) !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    /* 炉石风格的描述文字 */
    font-style: italic !important;
    width: 90% !important;
    text-align: center !important;
}

/* 卡片余量显示样式 */
.card-count {
    font-size: 12px !important;
    color: #ffd700 !important;
    display: block !important;
    position: relative !important;
    z-index: 2 !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8) !important;
    font-family: 'Microsoft YaHei', system-ui, sans-serif !important;
    font-weight: bold !important;
    margin-bottom: 25px !important;
    margin-top: 15px !important;
}

.card-count .count-value {
    color: #ffffff !important;
    font-size: 14px !important;
}

/* 空白卡片样式 */
.empty-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    background-color: #1a1a2e !important;
    border: 3px solid #666 !important;
    opacity: 0.8 !important;
    cursor: default !important;
    pointer-events: none !important;
}

.empty-card:hover {
    transform: translateX(-50%) scale(1) !important;
    -webkit-transform: translateX(-50%) scale(1) !important;
    -moz-transform: translateX(-50%) scale(1) !important;
    -ms-transform: translateX(-50%) scale(1) !important;
    -o-transform: translateX(-50%) scale(1) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7) !important;
    border-color: #666 !important;
}

.empty-card:active {
    transform: translateX(-50%) scale(1) !important;
    -webkit-transform: translateX(-50%) scale(1) !important;
    -moz-transform: translateX(-50%) scale(1) !important;
    -ms-transform: translateX(-50%) scale(1) !important;
    -o-transform: translateX(-50%) scale(1) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7) !important;
}

/* 隐藏卡片 */
.card-btn.hidden {
    display: none !important;
}

/* 卡片容器 - 确保空白卡片居中 */
.cards-container.empty {
    justify-content: center !important;
}

/* 响应式设计 */
@media (max-width: 576px) {
    .container {
        padding: 30px 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .countdown {
        gap: 5px;
    }
    
    .count-unit {
        padding: 15px 10px;
        min-width: 60px;
    }
    
    .count-number {
        font-size: 2rem;
    }
    
    .time-label {
        font-size: 0.8rem;
    }
    
    .time-separator {
        font-size: 2rem;
    }
    
    .controls {
        position: fixed;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
        -moz-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        -o-transform: translateY(-50%);
        z-index: 1000;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        gap: 8px;
        max-width: 200px;
        width: auto;
    }
    
    .control-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}

/* 登录注册样式 */
.auth-container {
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    /* 添加浏览器前缀支持 */
    -webkit-backdrop-filter: blur(10px);
    -moz-backdrop-filter: blur(10px);
    -ms-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    /* 为不支持backdrop-filter的浏览器提供备选方案 */
    background: rgba(0, 0, 0, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* 添加box-sizing确保padding不影响宽度 */
    box-sizing: border-box;
}

.auth-form {
    text-align: center;
}

.auth-form h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* 确保字体在不同浏览器中显示一致 */
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
}

.form-group {
    margin-bottom: 15px;
    /* 确保表单元素对齐 */
    text-align: left;
}

.auth-input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    /* 添加浏览器前缀支持 */
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    outline: none;
    /* 确保表单元素在不同浏览器中样式一致 */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    /* 防止文本选择问题 */
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 确保占位符在不同浏览器中显示一致 */
.auth-input::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.auth-input::-moz-placeholder {
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.auth-input:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.auth-input::-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.auth-input:focus {
    border-color: rgba(255, 107, 107, 0.8);
    background: rgba(255, 255, 255, 0.15);
    /* 添加浏览器前缀支持 */
    -webkit-box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
    -moz-box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
    /* 移除默认轮廓 */
    outline: none;
}

/* 为旧版IE添加焦点样式 */
.auth-input:focus {
    outline: 2px solid rgba(255, 107, 107, 0.5);
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 107, 107, 0.7);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    /* 添加浏览器前缀支持 */
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    margin: 10px 0;
    /* 确保按钮在不同浏览器中样式一致 */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    /* 添加触摸反馈 */
    -webkit-tap-highlight-color: transparent;
}

.auth-btn:hover {
    background: rgba(255, 107, 107, 0.9);
    /* 添加浏览器前缀支持 */
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    /* 添加浏览器前缀支持 */
    -webkit-box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    -moz-box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.auth-btn:active {
    /* 添加浏览器前缀支持 */
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    /* 按下效果 */
    background: rgba(255, 107, 107, 1);
}

/* 禁用状态样式 */
.auth-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    /* 移除交互效果 */
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.form-message {
    min-height: 20px;
    margin: 10px 0;
    font-size: 14px;
    color: #e74c3c;
    /* 确保文本换行 */
    word-wrap: break-word;
    /* 确保文本对齐 */
    text-align: center;
}

.form-message.success {
    color: #2ecc71;
}

.auth-switch {
    margin-top: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    /* 确保文本对齐 */
    text-align: center;
}

.auth-switch a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
    /* 添加浏览器前缀支持 */
    -webkit-transition: color 0.3s ease;
    -moz-transition: color 0.3s ease;
    -ms-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
    transition: color 0.3s ease;
    /* 添加触摸反馈 */
    -webkit-tap-highlight-color: transparent;
}

.auth-switch a:hover {
    color: #c0392b;
    text-decoration: underline;
}

.auth-switch a:active {
    color: #a93226;
}

/* 用户信息样式 */
.user-info {
    text-align: center;
    color: white;
}

.user-greeting {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* 确保字体在不同浏览器中显示一致 */
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
}

.username-display {
    color: #e74c3c;
}

.logout-btn {
    padding: 10px 20px;
    background: rgba(231, 76, 60, 0.7);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    /* 添加浏览器前缀支持 */
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    /* 确保按钮在不同浏览器中样式一致 */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    /* 添加触摸反馈 */
    -webkit-tap-highlight-color: transparent;
}

.logout-btn:hover {
    background: rgba(231, 76, 60, 0.9);
    /* 添加浏览器前缀支持 */
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    /* 添加浏览器前缀支持 */
    -webkit-box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    -moz-box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.logout-btn:active {
    /* 添加浏览器前缀支持 */
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    /* 按下效果 */
    background: rgba(231, 76, 60, 1);
}

/* 响应式设计 - 登录注册 */
@media (max-width: 576px) {
    .auth-container {
        padding: 20px;
        width: 95%;
    }
    
    .auth-form h2 {
        font-size: 1.5rem;
    }
    
    .auth-input {
        padding: 10px;
        font-size: 14px;
    }
    
    .auth-btn {
        padding: 10px;
        font-size: 14px;
    }
    
    .user-greeting {
        font-size: 1.2rem;
    }
    
    .login-toggle-btn {
        bottom: 15px;
        right: 15px;
        padding: 8px 15px;
        font-size: 14px;
    }
}

/* 下方中间登录按钮样式 */
.login-toggle-btn {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    padding: 12px 24px;
    background: rgba(255, 107, 107, 0.8);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    /* 添加浏览器前缀支持 */
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    /* 确保按钮在不同浏览器中样式一致 */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    /* 添加触摸反馈 */
    -webkit-tap-highlight-color: transparent;
}

/* 下方正中间桃心召唤流星按钮样式 */
.heart-meteor-btn {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.9), rgba(255, 0, 128, 0.9));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 998;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
    /* 添加浏览器前缀支持 */
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    /* 确保按钮在不同浏览器中样式一致 */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    /* 添加触摸反馈 */
    -webkit-tap-highlight-color: transparent;
}

/* 桃心图标样式 */
.heart-meteor-btn span {
    font-size: 24px;
}

/* 按钮文字样式 */
.heart-btn-text {
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
}

/* 悬停效果 */
.heart-meteor-btn:hover {
    transform: translateX(-50%) scale(1.05);
    -webkit-transform: translateX(-50%) scale(1.05);
    -moz-transform: translateX(-50%) scale(1.05);
    -ms-transform: translateX(-50%) scale(1.05);
    -o-transform: translateX(-50%) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.6);
}

/* 点击效果 */
.heart-meteor-btn:active {
    transform: translateX(-50%) scale(0.95);
    -webkit-transform: translateX(-50%) scale(0.95);
    -moz-transform: translateX(-50%) scale(0.95);
    -ms-transform: translateX(-50%) scale(0.95);
    -o-transform: translateX(-50%) scale(0.95);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.5);
}



/* 新的弹幕系统样式 */
#notification-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    z-index: 10000;
    pointer-events: none;
    width: 80%;
    max-width: 500px;
    text-align: center;
}

.notification {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 15px 25px;
    border-radius: 50px;
    margin-bottom: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transform: translateY(-10px);
    -webkit-transform: translateY(-10px);
    -moz-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    -o-transform: translateY(-10px);
    transition: all 0.5s ease;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    border: 2px solid #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
}

.notification.fade-out {
    opacity: 0;
    transform: translateY(10px);
    -webkit-transform: translateY(10px);
    -moz-transform: translateY(10px);
    -ms-transform: translateY(10px);
    -o-transform: translateY(10px);
}

/* 不同类型道具的样式 */
.notification.meteorShower {
    background: rgba(135, 206, 235, 0.9);
    border-color: #87ceeb;
}

.notification.firework {
    background: rgba(255, 165, 0, 0.9);
    border-color: #ffa500;
}

.notification.jixiangMantang {
    background: rgba(255, 105, 180, 0.9);
    border-color: #ff69b4;
}

.login-toggle-btn:hover {
    background: rgba(255, 107, 107, 1);
    /* 添加浏览器前缀支持 */
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.login-toggle-btn:active {
    /* 添加浏览器前缀支持 */
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

/* 登录成功后隐藏登录按钮 */
.user-logged-in .login-toggle-btn {
    display: none;
}

/* 左上角个人头像样式 */
.user-avatar-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e74c3c, #8e44ad);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    overflow: hidden;
    /* 确保头像为矢量 */
    background-attachment: fixed;
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* 个人中心文字样式 */
.avatar-text {
    font-size: 0.6rem;
    color: white;
    margin-top: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    /* 确保文字为矢量 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 生成随机几何图案的类 */
.avatar-pattern-1 {
    background: linear-gradient(135deg, #e74c3c, #8e44ad);
}

.avatar-pattern-2 {
    background: linear-gradient(135deg, #3498db, #2ecc71);
}

.avatar-pattern-3 {
    background: linear-gradient(135deg, #f39c12, #e74c3c);
}

.avatar-pattern-4 {
    background: linear-gradient(135deg, #9b59b6, #3498db);
}

.avatar-pattern-5 {
    background: linear-gradient(135deg, #1abc9c, #f1c40f);
}

/* 个人中心弹窗样式 */
.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.profile-content {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.profile-header h2 {
    color: white;
    font-size: 2rem;
    margin: 0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
}

.theme-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    margin-left: 20px;
}

.theme-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: bold;
}

.theme-select {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-select:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.theme-select option {
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

.close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.profile-body {
    color: white;
    position: relative;
}

.profile-theme {
    display: block;
}

/* 主题1: 卡片式布局 */
.card-theme {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    animation: cardFadeIn 0.5s ease;
}

@keyframes cardFadeIn {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    border-radius: 2px;
}

/* 个人信息卡片 */
.info-card {
    text-align: center;
}

.profile-info {
    text-align: center;
    margin-bottom: 0;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e74c3c, #8e44ad);
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 48px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.profile-avatar-large:hover {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.profile-name {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.profile-phone {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.profile-bio {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 统计数据卡片 */
.stats-card .profile-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    gap: 10px;
}

.stats-card .stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    flex: 1;
}

.stats-card .stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #f39c12;
    display: block;
    text-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #e74c3c;
    text-shadow: 0 0 15px rgba(231, 76, 60, 0.5);
    animation: countUp 1s ease;
}

@keyframes countUp {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* 成就卡片 */
.achievements-card .achievements-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    margin-bottom: 0;
}

.achievement-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.achievement-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.achievement-item:hover::before {
    left: 100%;
}

.achievement-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.achievement-icon {
    font-size: 35px;
    margin-bottom: 12px;
    color: #f39c12;
    text-shadow: 0 0 15px rgba(243, 156, 18, 0.5);
    display: block;
}

.achievement-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.achievement-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* 活动卡片 */
.activity-card .activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 0;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.activity-icon {
    font-size: 24px;
    color: #3498db;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 4px;
    color: white;
}

.activity-time {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* 主题2: 仪表盘布局 */
.dashboard-theme {
    display: none;
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
}

.dashboard-avatar .profile-avatar-large {
    margin: 0;
}

.dashboard-user-info {
    flex: 1;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    margin-bottom: 25px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.dashboard-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-dashboard-card {
    text-align: center;
    grid-row: 1;
}

.achievements-dashboard-card {
    grid-column: 1 / -1;
    grid-row: 2;
}

.activity-dashboard-card {
    grid-column: 1 / -1;
    grid-row: 3;
}

.dashboard-card-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
}

.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 主题3: 沉浸式布局 */
.immersive-theme {
    display: none;
    background: radial-gradient(circle at center, rgba(231, 76, 60, 0.1), transparent 70%);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.immersive-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.immersive-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #e74c3c, transparent);
    border-radius: 2px;
}

.immersive-avatar {
    margin: 0 auto 20px;
    position: relative;
}

.immersive-avatar::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(231, 76, 60, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.2); opacity: 0; }
}

.immersive-user-info {
    text-align: center;
}

.immersive-stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.immersive-stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    flex: 1;
    min-width: 120px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.immersive-stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.immersive-achievements,
.immersive-activity {
    margin-bottom: 30px;
}

.immersive-achievements h3,
.immersive-activity h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.achievements-3d {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    perspective: 1000px;
}

.achievements-3d .achievement-item {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.achievements-3d .achievement-item:hover {
    transform: rotateY(15deg) rotateX(10deg) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.activity-stream {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.activity-stream::-webkit-scrollbar {
    width: 6px;
}

.activity-stream::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.activity-stream::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.activity-stream::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 通用按钮样式 */
.theme-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.7), rgba(192, 57, 43, 0.9));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 25px;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.theme-btn:hover {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.9), rgba(192, 57, 43, 1));
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.5);
    letter-spacing: 2px;
}

.theme-btn:active {
    transform: translateY(0);
}

/* 响应式设计 - 个人中心 */
@media (max-width: 768px) {
    .profile-content {
        max-width: 95%;
        padding: 20px;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .theme-switcher {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    
    .theme-select {
        flex: 1;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, auto);
    }
    
    .dashboard-card {
        grid-column: 1;
    }
    
    .stats-card .profile-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .immersive-stats {
        flex-direction: column;
    }
    
    .achievements-3d {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 576px) {
    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .profile-content {
        padding: 15px;
        width: 98%;
    }
    
    .profile-header h2 {
        font-size: 1.5rem;
    }
    
    .profile-avatar-large {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
    
    .achievements-card .achievements-list,
    .achievements-3d {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }
}