/* 全局样式 */
:root {
    --bronze-light: #f3bb7a;
    --bronze-dark: #8e6343;
    --silver-light: #e8e8e8;
    --silver-dark: #7a7a7a;
    --gold-light: #ffd700;
    --gold-dark: #b8860b;
    --ultimate-light: #ff7f50;
    --ultimate-dark: #b22222;
    --bonus-light: #ff69b4;
    --bonus-dark: #8b008b;
}

@font-face {
    font-family: 'YouSheBiaoTiHei';
    src: url('https://cdn.jsdelivr.net/gh/googlefonts/noto-cjk@main/Sans/OTF/Chinese-Simplified/NotoSansCJKsc-Bold.otf') format('opentype');
    font-weight: bold;
    font-display: swap;
}

@font-face {
    font-family: 'ZhenyanGB';
    src: url('https://cdn.jsdelivr.net/gh/googlefonts/noto-cjk@main/Sans/OTF/Chinese-Simplified/NotoSansCJKsc-Medium.otf') format('opentype');
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'MiSans', 'ZhenyanGB', 'ZCOOL QingKe HuangYou', '微软雅黑', sans-serif;
    background: #121212;
    color: white;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    letter-spacing: 0.5px;
}

/* 星空背景 */
.stars, .twinkling {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.stars {
    background: #000 url('https://i.imgur.com/YKY28eT.png') repeat top center;
    z-index: -2;
}

.twinkling {
    background: transparent url('https://i.imgur.com/XYMF4ca.png') repeat top center;
    z-index: -1;
    animation: move-twink-back 200s linear infinite;
}

@keyframes move-twink-back {
    from {background-position: 0 0;}
    to {background-position: -10000px 5000px;}
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
    position: relative;
}

.main-title {
    font-family: 'YouSheBiaoTiHei', '华文琥珀', 'STHupo', sans-serif;
    font-size: 4.2rem;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    letter-spacing: 3px;
    font-weight: 500;
}

/* 标语样式 */
.slogan {
    font-family: 'MiSans', 'ZhenyanGB', '楷体', 'KaiTi', sans-serif;
    font-size: 1.2rem;
    margin-top: -10px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.slogan::before,
.slogan::after {
    content: '';
    position: absolute;
    height: 1px;
    width: 30px;
    background: rgba(255, 255, 255, 0.3);
    top: 50%;
    transform: translateY(-50%);
}

.slogan::before {
    left: -40px;
}

.slogan::after {
    right: -40px;
}

/* 奖励分类样式 */
.rewards-category {
    margin-bottom: 50px;
    padding: 25px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.rewards-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.rewards-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: -1;
}

.rewards-category.bronze {
    background: linear-gradient(135deg, rgba(141, 99, 67, 0.9), rgba(243, 187, 122, 0.9));
    border: 2px solid var(--bronze-light);
}

.rewards-category.silver {
    background: linear-gradient(135deg, rgba(122, 122, 122, 0.9), rgba(232, 232, 232, 0.9));
    border: 2px solid var(--silver-light);
}

.rewards-category.gold {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.9), rgba(255, 215, 0, 0.9));
    border: 2px solid var(--gold-light);
}

.rewards-category.ultimate {
    /* background: linear-gradient(135deg, rgba(178, 34, 34, 0.9), rgba(255, 127, 80, 0.9)); */
    background: linear-gradient(145deg, #2a0a5e, #5a1a7e 30%, #9c27b0 60%, #E040FB 100%);
    border-top-color: var(--ultimate-light);
    box-shadow: 0 10px 40px rgba(var(--ultimate-rgb, 224, 64, 251), 0.4);
    position: relative; /* For pseudo-elements */
    overflow: visible; /* Allow glows to extend */
}

.rewards-category.ultimate::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--ultimate-light), var(--gold-light), var(--ultimate-light));
    z-index: -1;
    filter: blur(15px);
    opacity: 0.7;
    animation: ultimate-glow-border 4s linear infinite;
}

@keyframes ultimate-glow-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.rewards-category.ultimate .category-header h2 {
    font-family: '华文琥珀', 'STHupo', sans-serif;
    font-size: 3rem; /* Larger title */
    color: #fff;
    text-shadow: 0 0 10px #fff, 0 0 20px var(--ultimate-light), 0 0 30px var(--ultimate-dark);
}

.rewards-category.ultimate .category-header i {
    color: var(--ultimate-light);
    font-size: 2.8rem; /* Larger icon */
    text-shadow: 0 0 10px var(--ultimate-light);
}

.rewards-category.ultimate .subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Special styling for ultimate achievement cards */
.rewards-category.ultimate .reward-card.special {
    background: rgba(0, 0, 0, 0.65); 
    border: 2px solid var(--ultimate-light);
    box-shadow: 0 0 25px rgba(var(--ultimate-rgb, 224, 64, 251), 0.5), 
                inset 0 0 15px rgba(var(--ultimate-rgb, 224, 64, 251), 0.3);
    transform: scale(1.02); /* Slightly larger by default */
    transition: all 0.4s ease;
    min-height: 290px; /* Explicitly set a taller min-height */
    display: flex; /* Enable flexbox for content alignment */
    flex-direction: column; /* Stack content vertically */
    justify-content: center; /* Vertically center the content block */
}

.rewards-category.ultimate .reward-card.special:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 0 35px rgba(var(--ultimate-rgb, 224, 64, 251), 0.7), 
                inset 0 0 20px rgba(var(--ultimate-rgb, 224, 64, 251), 0.4);
    border-color: var(--gold-light); /* Change border color on hover for more pop */
}

.rewards-category.ultimate .reward-card.special .achievement-badge {
    z-index: 3;
    background: var(--ultimate-light);
    border: 1px solid #fff;
    color: #fff;
    font-size: 0.9rem;
    padding: 6px 15px;
    border-radius: 20px 0 20px 0;
    box-shadow: 0 0 10px var(--ultimate-light);
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'YouSheBiaoTiHei', sans-serif;
}

.rewards-category.ultimate .reward-card.special .reward-minutes {
    font-size: 1rem;
    color: #fff;
    background: rgba(var(--ultimate-rgb, 224, 64, 251), 0.25);
    border: 1px solid rgba(var(--ultimate-rgb, 224, 64, 251), 0.5);
    padding: 7px 14px;
    font-weight: 500;
    text-shadow: 0 0 4px rgba(0,0,0,0.7);
    position: absolute;
    top: 75px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 15px;
    z-index: 1;
}

.rewards-category.ultimate .reward-card.special .reward-content {
    padding-top: 85px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.rewards-category.ultimate .reward-card.special .reward-content::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
    z-index: -1;
    border-radius: 0 0 10px 10px;
}

.rewards-category.ultimate .reward-card.special .reward-content h4 {
    font-size: 1.8rem;
    color: var(--gold-light);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.9);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    font-weight: bold;
}

.rewards-category.ultimate .reward-card.special .reward-content p {
    font-size: 1rem;
    color: rgba(255,255,255,0.95);
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.9);
}

.rewards-category.bonus {
    background: linear-gradient(135deg, rgba(139, 0, 139, 0.9), rgba(255, 105, 180, 0.9));
    border: 2px solid var(--bonus-light);
    border-top-color: var(--bonus-light);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.category-header h2 {
    font-family: 'YouSheBiaoTiHei', '华文琥珀', 'STHupo', sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 5px;
    margin-left: 45px;
}

.sub-category {
    margin-bottom: 30px;
}

.sub-category h3 {
    font-family: 'YouSheBiaoTiHei', '华文细黑', 'STXihei', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 500;
    position: relative;
    padding-left: 15px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.sub-category h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
}

/* 奖励卡片网格 */
.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}

/* 奖励卡片样式 */
.reward-card {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reward-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.1);
    transition: all 0.5s ease;
}

.reward-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.reward-card:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* 卡片发光效果 */
.card-glow {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 15px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reward-card:hover .card-glow {
    opacity: 1;
}

.reward-minutes {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.4);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold-light);
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    font-family: 'YouSheBiaoTiHei', 'Arial', sans-serif;
}

.reward-content {
    padding-top: 30px;
}

.reward-content h4 {
    font-family: 'YouSheBiaoTiHei', '黑体', 'SimHei', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: white;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.reward-content p {
    font-family: 'MiSans', 'ZhenyanGB', 'ZCOOL QingKe HuangYou', '微软雅黑', sans-serif;
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.7;
    margin-top: 5px;
}

/* 特殊卡片样式 */
.reward-card.special {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-blend-mode: overlay !important;
}

/* 为终身成就奖区域的三张特殊卡片添加背景图像 */
.rewards-category.ultimate .reward-card.special:nth-child(1) {
    background-image: url('images/switch.jpg') !important;
    background-color: rgba(0, 0, 0, 0.75);
    background-blend-mode: multiply !important;
}

.rewards-category.ultimate .reward-card.special:nth-child(2) {
    background-image: url('images/hotel.jpg') !important;
    background-color: rgba(0, 0, 0, 0.75);
    background-blend-mode: multiply !important;
}

.rewards-category.ultimate .reward-card.special:nth-child(3) {
    background-image: url('images/rog.png') !important;
    background-color: rgba(0, 0, 0, 0.75);
    background-blend-mode: multiply !important;
}

.reward-card.special:hover {
    background-color: rgba(0, 0, 0, 0.65) !important;
}

/* 成就与特殊徽章 */
.achievement-badge, .bonus-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 15px;
    font-family: 'YouSheBiaoTiHei', sans-serif;
    letter-spacing: 1px;
    z-index: 2;
}

.achievement-badge {
    background: rgba(255, 215, 0, 0.3);
    border: 1px solid var(--gold-light);
    color: var(--gold-light);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.bonus-badge {
    background: rgba(255, 105, 180, 0.3);
    border: 1px solid var(--bonus-light);
    color: var(--bonus-light);
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

/* 页脚样式 */
.page-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    padding: 12px 20px;
    text-align: center;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    z-index: 99;
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.progress-tracker {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 500;
    letter-spacing: 1px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 500px;
}

.progress-title {
    font-family: 'YouSheBiaoTiHei', '华文琥珀', 'STHupo', sans-serif;
    color: #fff;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.7);
    letter-spacing: 2px;
}

.progress-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.current-minutes, .target-minutes {
    font-family: 'YouSheBiaoTiHei', sans-serif;
    font-size: 1.1rem;
    color: var(--gold-light);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 2px;
}

.unit {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 5px;
}

.progress-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 26px;
    margin: 5px 0;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5), 0 1px 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, 
        var(--bronze-light), 
        var(--silver-light) 30%, 
        var(--gold-light) 60%, 
        var(--ultimate-light) 90%);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: glow-animation 2s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    animation: shine-animation 3s ease-in-out infinite;
    opacity: 0.7;
}

/* 里程碑标记样式 */
.milestone {
    position: absolute;
    top: -8px;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 
                0 0 8px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.milestone::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 7px;
    background: rgba(255, 255, 255, 0.3);
}

.milestone .milestone-icon {
    font-size: 0.8rem;
    line-height: 1;
}

.milestone.bronze {
    left: calc(900 / 8000 * 100%);
    border: 1px solid var(--bronze-light);
}

.milestone.silver {
    left: calc(2000 / 8000 * 100%);
    border: 1px solid var(--silver-light);
}

.milestone.gold {
    left: calc(4000 / 8000 * 100%);
    border: 1px solid var(--gold-light);
}

.milestone.ultimate {
    left: calc(6000 / 8000 * 100%);
    border: 1px solid var(--ultimate-light);
}

.milestone.ultimate-max {
    left: calc(8000 / 8000 * 100%);
    border: 1px solid var(--bonus-light);
}

.milestone:hover {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.milestone.reached {
    background: rgba(0, 0, 0, 0.8);
}

.milestone.bronze.reached {
    box-shadow: 0 0 10px var(--bronze-light);
}

.milestone.silver.reached {
    box-shadow: 0 0 10px var(--silver-light);
}

.milestone.gold.reached {
    box-shadow: 0 0 15px var(--gold-light);
}

.milestone.ultimate.reached, 
.milestone.ultimate-max.reached {
    box-shadow: 0 0 20px var(--ultimate-light);
}

/* 冒险家角色 */
.progress-character {
    position: absolute;
    bottom: 7px;
    left: 0%;
    transform: translateX(-50%);
    transition: left 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 5;
}

.character {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.7));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes glow-animation {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes shine-animation {
    0% { left: -100%; opacity: 0; }
    20% { opacity: 0.7; }
    100% { left: 100%; opacity: 0; }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .main-title {
        font-size: 3rem;
    }
    
    .rewards-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }
    
    .category-header h2 {
        font-size: 2rem;
    }
    
    .floating-coins {
        right: 20px;
    }
    
    .reward-card {
        min-height: 180px;
    }
    
    .progress-container {
        max-width: 450px;
    }
    
    .slogan::before,
    .slogan::after {
        width: 20px;
    }
    
    .slogan::before {
        left: -30px;
    }
    
    .slogan::after {
        right: -30px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.3rem;
    }
    
    .rewards-grid {
        grid-template-columns: 1fr;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .category-header i {
        margin-bottom: 10px;
    }
    
    .floating-coins {
        display: none;
    }
    
    .progress-container {
        max-width: 300px;
    }
    
    .progress-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .milestone .milestone-icon {
        font-size: 0.7rem;
    }
    
    .milestone {
        width: 18px;
        height: 18px;
    }
    
    .slogan {
        font-size: 1rem;
    }
    
    .slogan::before,
    .slogan::after {
        display: none;
    }
    
    .treasure-chest {
        width: 60px;
        height: 60px;
    }
}

/* 新增炫酷效果 */
.rewards-category::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    transform: translate(-25%, -25%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.rewards-category:hover::after {
    opacity: 1;
    animation: shine 2s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% {
        opacity: 0;
        transform: translate(-25%, -25%) scale(0.8);
    }
    50% {
        opacity: 0.3;
        transform: translate(-25%, -25%) scale(1);
    }
}

.rewards-category.gold .category-header i {
    color: var(--gold-light);
}

.reward-card.special:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.reward-card.special .reward-minutes {
    background: rgba(var(--gold-rgb, 255, 215, 0), 0.25);
    color: var(--gold-light);
    font-weight: 600;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.reward-card.special .reward-content h4 {
    background: linear-gradient(to right, var(--gold-light), #ffc87c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

.reward-card.bonus {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 105, 180, 0.5);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
    padding-top: 20px;
}

.reward-card.bonus .reward-content h4 {
    background: linear-gradient(to right, var(--bonus-light), #ff9ed7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

/* 里程碑提示样式 */
.milestone-tooltip {
    position: fixed;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    width: auto;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 215, 0, 0.2);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.milestone-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(0, 0, 0, 0.85);
}

.tooltip-title {
    font-family: 'YouSheBiaoTiHei', '华文琥珀', 'STHupo', sans-serif;
    color: var(--gold-light);
    font-size: 0.9rem;
    margin-bottom: 4px;
    text-shadow: 0 0 3px rgba(255, 215, 0, 0.5);
}

.tooltip-value {
    font-family: 'MiSans', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    margin-bottom: 3px;
}

.tooltip-progress {
    font-family: 'MiSans', sans-serif;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 3px;
}

.tooltip-progress:contains('已达成') {
    color: #ffffff;
    background-color: rgba(var(--gold-rgb, 255, 215, 0), 0.3);
    border: 1px solid var(--gold-light);
}

.tooltip-progress:contains('未达成') {
    color: rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 里程碑达成庆祝动画 */
.milestone-celebration {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
}

.celebration-particle {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 1001;
    filter: blur(1px);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* 成就通知样式 */
.achievement-notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 20, 30, 0.9) 100%);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-top-width: 1px;
    border-bottom-width: 3px;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 215, 0, 0.3);
    z-index: 1200;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.achievement-notification.show {
    top: 30px;
    animation: notification-bounce 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.achievement-notification.hide {
    top: -100px;
}

.notification-icon {
    font-size: 2.5rem;
    margin-right: 15px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-family: 'YouSheBiaoTiHei', '华文琥珀', 'STHupo', sans-serif;
    font-size: 1.3rem;
    color: var(--gold-light);
    margin-bottom: 5px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    letter-spacing: 2px;
}

.notification-description {
    font-family: 'MiSans', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

@keyframes notification-bounce {
    0% { top: -100px; }
    70% { top: 40px; }
    85% { top: 25px; }
    100% { top: 30px; }
}

/* 修复:contains选择器的兼容性问题 */
.tooltip-progress {
    color: rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tooltip-progress:has(.tooltip-reached) {
    color: #ffffff;
    background-color: rgba(255, 215, 0, 0.3);
    border: 1px solid var(--gold-light);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .achievement-notification {
        min-width: 250px;
        max-width: 80%;
        padding: 12px;
    }
    
    .notification-icon {
        font-size: 2rem;
        margin-right: 10px;
    }
    
    .notification-title {
        font-size: 1.1rem;
    }
    
    .notification-description {
        font-size: 0.9rem;
    }
}

/* 已达成和未达成状态样式 */
.tooltip-reached {
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 0 3px rgba(255, 215, 0, 0.5);
}

.tooltip-not-reached {
    color: rgba(255, 255, 255, 0.7);
}

.tooltip-progress:has(.tooltip-reached) {
    background-color: rgba(255, 215, 0, 0.3);
    border: 1px solid var(--gold-light);
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.tooltip-progress:has(.tooltip-not-reached) {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .achievement-notification {
        min-width: 250px;
        max-width: 80%;
        padding: 12px;
    }
    
    .notification-icon {
        font-size: 2rem;
        margin-right: 10px;
    }
    
    .notification-title {
        font-size: 1.1rem;
    }
    
    .notification-description {
        font-size: 0.9rem;
    }
} 