/* ==================== 全局样式 ==================== */
:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --text-color: #e0e0e0;
    --text-light: #b8c2cc;
    --text-dark: #8a94a6;
    --bg-dark: rgba(10, 10, 20, 0.7);
    --bg-light: rgba(20, 20, 30, 0.7);
    --border-color: rgba(106, 17, 203, 0.3);
    
    /* 愿望卡片等级颜色 */
    --level-1: rgba(20, 20, 30, 0.7);
    --level-2: rgba(26, 58, 95, 0.7);
    --level-3: rgba(93, 64, 55, 0.7);
    --level-4: rgba(127, 0, 0, 0.7);
    --level-5: rgba(150, 110, 20, 0.8);
    
    /* 能量条等级颜色 */
    --bar-1: #6a11cb;
    --bar-2: #2575fc;
    --bar-3: #d35400;
    --bar-4: #c0392b;
    --bar-5: #f1c40f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #000000;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== 背景动画 ==================== */
@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center, 
        rgba(106, 17, 203, 0.15) 0%, 
        rgba(10, 10, 20, 0.95) 100%
    );
    z-index: -1;
    opacity: 0.8;
}

/* ==================== 主内容容器 ==================== */
.content-container {
    max-width: 1200px;
    margin: 30px auto 80px;
    padding: 50px 60px;
    background: #1a237e;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    background-image: url('../images/dragon.gif');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: auto;
}

.content-container:hover {
    box-shadow: 0 15px 40px rgba(106, 17, 203, 0.4);
    /* 确保背景颜色不变 */
    background-color: #1a237e;
    background-image: url('../images/dragon.gif');
}

.content-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.1) 0%, rgba(37, 117, 252, 0.05) 100%);
    z-index: -1;
}

/* ==================== 标题区域 ==================== */
.content-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.content-title h1 {
    font-size: 4.5rem;
    font-family: 'Ma Shan Zheng', cursive;
    font-weight: 800;
    color: white;
    padding: 20px 50px;
    display: inline-block;

    text-shadow: 0 2px 10px rgba(106, 17, 203, 0.5);
    margin-bottom: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.content-title h1:hover {
    transform: translateY(-5px) rotate(1deg);

}

.content-title h1::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;

    transform: rotate(30deg);
    animation: shine 5s infinite;
}

@keyframes shine {
    0% { left: -50%; }
    100% { left: 150%; }
}

.content-title p {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    position: relative;
    padding: 15px 0;
}

.content-title p::before,
.content-title p::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.content-title p::before {
    top: 0;
}

.content-title p::after {
    bottom: 0;
}

/* ==================== 章节标题 ==================== */
.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
}

.section-header i {
    font-size: 1.8rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(106, 17, 203, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    padding-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    animation: expand 3s infinite;
}

@keyframes expand {
    0%, 100% { width: 50px; }
    50% { width: 80px; }
}

/* ==================== 卡片基础样式 ==================== */
.card {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(106, 17, 203, 0.5);
    background: var(--bg-light) !important;
    
    &::after {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        border-radius: 12px;
        background: var(--bg-light) !important;
        z-index: -1;
        filter: blur(5px);
        opacity: 0.7;
    }
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(106, 17, 203, 0.1) 0%,
        rgba(37, 117, 252, 0.05) 100%
    );
    z-index: -1;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
}

.card:hover .card-title::after {
    width: 80px;
}

.card-content {
    padding: 20px 0;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ==================== 命缘池介绍区域 ==================== */
.mingyuan-intro {
    display: flex;
    gap: 30px;
    align-items: center;
}

.mingyuan-intro .intro-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
}

.mingyuan-intro .intro-text p {
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.mingyuan-intro .intro-text p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.mingyuan-intro .intro-image {
    flex: 0 0 400px;
}

.energy-chart {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    height: 250px;
    position: relative;
}

.energy-chart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><path d="M0 0 L20 20 M20 0 L0 20" stroke="rgba(106,17,203,0.1)" stroke-width="1"/></svg>');
    opacity: 0.3;
    z-index: -1;
}

/* ==================== 愿望等级条 ==================== */
.wish-levels {
    margin-top: 40px;
}

.wish-levels h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.level-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.level-bar {
    display: flex;
    align-items: center;
    gap: 20px;
}

.level-bar .bar-fill {
    height: 20px;
    width: 0;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: width 1s ease;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
}

.level-bar .bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.1) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0.1) 100%);
    animation: shine 2s infinite;
}

.level-bar[data-level="1"] .bar-fill { 
    width: 20%; 
    background: var(--bar-1);
}
.level-bar[data-level="2"] .bar-fill { 
    width: 40%; 
    background: var(--bar-2);
}
.level-bar[data-level="3"] .bar-fill { 
    width: 60%; 
    background: var(--bar-3);
}
.level-bar[data-level="4"] .bar-fill { 
    width: 80%; 
    background: var(--bar-4);
}
.level-bar[data-level="5"] .bar-fill { 
    width: 100%; 
    background: var(--bar-5);
}

.level-bar span {
    min-width: 120px;
    color: var(--text-light);
}

/* ==================== 许愿表单 ==================== */

.form-group {
    margin-bottom: 25px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

input[type="text"],
textarea,
select,
input[type="date"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Noto Serif SC', serif;
}

/* 专门针对select下拉框的跨浏览器兼容性样式 */
select {
    /* 移除默认样式 */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* 添加自定义下拉箭头 */
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23ffffff" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    
    /* 确保文字不与箭头重叠 */
    padding-right: 40px;
    
    /* 强制字体大小，防止移动端自动缩放 */
    font-size: 16px;
    
    /* 移动端优化 */
    -webkit-tap-highlight-color: transparent;
    
    /* 确保在所有浏览器中都有一致的高度 */
    min-height: 44px;
    line-height: 1.4;
    
    /* Safari特殊处理 */
    -webkit-border-radius: 6px;
}

/* Firefox特殊处理 */
select::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/* IE/Edge特殊处理 */
select::-ms-expand {
    display: none;
}

/* 选中状态的option样式 */
select option {
    background: rgba(20, 20, 30, 0.95);
    color: var(--text-color);
    padding: 8px 12px;
    font-family: 'Noto Serif SC', serif;
    font-size: 16px;
}

select option:checked {
    background: var(--primary-color);
    color: white;
}

/* 移动端特殊优化 */
@media screen and (max-width: 768px) {
    select {
        /* 移动端确保字体大小至少16px，防止iOS自动缩放 */
        font-size: 16px !important;
        
        /* 增加触摸区域 */
        min-height: 48px;
        
        /* 优化移动端显示 */
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        
        /* 移动端背景调整 */
        background-color: rgba(0, 0, 0, 0.4);
        
        /* 移动端边框加强 */
        border: 2px solid rgba(255, 255, 255, 0.2);
    }
    
    select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.3);
    }
}

/* 超小屏幕优化 */
@media screen and (max-width: 480px) {
    select {
        padding: 14px 40px 14px 16px;
        font-size: 16px;
        min-height: 50px;
    }
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input[type="text"]:focus,
textarea:focus,
select:focus,
input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(106, 17, 203, 0.3);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-top: 8px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option:hover .radio-custom {
    transform: scale(1.1);
    box-shadow: 0 0 5px rgba(106, 17, 203, 0.5);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.form-actions {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
}

/* ==================== 按钮样式 ==================== */
.btn-mingyuan {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-mingyuan:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(106, 17, 203, 0.4);
}

.btn-mingyuan::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: all 0.5s ease;
}

.btn-mingyuan:hover::before {
    left: 100%;
}

/* ==================== 筛选控件 ==================== */
.filter-controls {
    display: flex;
    gap: 15px;
    margin-left: auto;
}

.filter-controls select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 6px;
    font-family: inherit;
    transition: all 0.3s ease;
    
    /* 跨浏览器兼容性 */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* 添加自定义下拉箭头 */
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23ffffff" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    
    /* 确保文字不与箭头重叠 */
    padding-right: 35px;
    
    /* 移动端优化 */
    font-size: 16px;
    min-height: 36px;
    -webkit-tap-highlight-color: transparent;
}

.filter-controls select option {
    background: rgba(20, 20, 30, 0.95);
    color: var(--text-color);
    padding: 6px 8px;
    font-size: 16px;
}

.filter-controls select option:checked {
    background: var(--primary-color);
    color: white;
}

/* filter-controls移动端优化 */
@media screen and (max-width: 768px) {
    .filter-controls select {
        font-size: 16px !important;
        min-height: 40px;
        padding: 10px 35px 10px 12px;
    }
}

@media screen and (max-width: 480px) {
    .filter-controls select {
        min-height: 44px;
        padding: 12px 35px 12px 12px;
    }
    
    /* 超小屏幕用户区域优化 */
     .user-area {
         position: static;
         top: auto;
         right: auto;
         width: 85%;
         max-width: 320px;
         margin: 10px auto;
         justify-content: center;
         flex-wrap: wrap;
         gap: 4px;
         padding: 8px;
         background: rgba(0, 0, 0, 0.4);
         border-radius: 8px;
         order: 1;
     }
    
    .user-area .login-btn,
    .user-area .logout-btn,
    .user-area .recharge-btn,
    .user-area .manage-btn {
        font-size: 0.75rem;
        padding: 8px 10px;
        margin: 2px;
        flex: 1;
        min-width: 65px;
        max-width: 100px;
        text-align: center;
        border-radius: 15px;
    }
    
    .user-balance {
        width: 100%;
        text-align: center;
        margin: 8px 0 5px 0;
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .user-welcome {
         width: 100%;
         text-align: center;
         margin-bottom: 8px;
         font-size: 0.8rem;
     }
     
     /* 为包含农历信息的卡片添加flex布局 */
     .card {
         display: flex;
         flex-direction: column;
     }
     
     .lunar-date-info {
          order: 2;
          margin: 15px 0 8px;
      }
      
      .mingyuan-intro {
          order: 3;
      }
 }

.filter-controls select:hover {
    border-color: var(--primary-color);
}

.filter-controls select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(106, 17, 203, 0.3);
}

/* ==================== 愿望池 ==================== */
.wish-pool {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* ==================== 愿望卡片美化 ==================== */
.wish-card {
    background: rgba(30, 30, 40, 0.85);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(106, 17, 203, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.wish-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.05) 0%, 
        rgba(255,255,255,0) 50%, 
        rgba(0,0,0,0.1) 100%);
    border-radius: 12px;
    z-index: -1;
}

.wish-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 15px 35px rgba(106, 17, 203, 0.3);
    border-color: rgba(106, 17, 203, 0.6);
    /* 确保背景颜色不变 */
    background: rgba(30, 30, 40, 0.85);
}

.wish-card[data-level="1"] { 
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.9), rgba(40, 40, 60, 0.9));
    border-color: rgba(106, 17, 203, 0.4);
}
.wish-card[data-level="2"] { 
    background: linear-gradient(135deg, rgba(26, 58, 95, 0.9), rgba(36, 78, 125, 0.9));
    border-color: rgba(37, 117, 252, 0.4);
}
.wish-card[data-level="3"] { 
    background: linear-gradient(135deg, rgba(93, 64, 55, 0.9), rgba(123, 84, 75, 0.9));
    border-color: rgba(211, 84, 0, 0.4);
}
.wish-card[data-level="4"] { 
    background: linear-gradient(135deg, rgba(127, 0, 0, 0.9), rgba(157, 30, 30, 0.9));
    border-color: rgba(231, 76, 60, 0.4);
}
.wish-card[data-level="5"] { 
    background: linear-gradient(135deg, rgba(150, 110, 20, 0.9), rgba(180, 140, 50, 0.9));
    border-color: rgba(241, 196, 15, 0.6);
}

.wish-card.level-up {
    animation: levelUp 0.8s ease;
}

@keyframes levelUp {
    0% { transform: translateY(0) scale(1); box-shadow: 0 0 0 rgba(106, 17, 203, 0); }
    20% { transform: translateY(-15px) scale(1.05); box-shadow: 0 10px 30px rgba(106, 17, 203, 0.5); }
    40% { transform: translateY(0) scale(1); box-shadow: 0 0 0 rgba(106, 17, 203, 0); }
    60% { transform: translateY(-10px) scale(1.03); box-shadow: 0 8px 25px rgba(106, 17, 203, 0.4); }
    100% { transform: translateY(0) scale(1); box-shadow: 0 10px 30px rgba(106, 17, 203, 0.2); }
}

.wish-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.wish-card::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(106,17,203,0.3) 0%, transparent 70%);
    border-radius: 50%;
}

/* 卡片头部样式 */
.wish-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.wish-user {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    order: 1;
    flex: 1 1 100%;
}

.wish-user .fa-user {
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(106, 17, 203, 0.5);
}

.user-name {
    font-weight: 500;
    color: white;
}

.wish-type {
    background: rgba(106, 17, 203, 0.3);
    padding: 3px 12px;
    border-radius: 20px;
    color: white;
    order: 2;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.wish-time {
    color: rgba(255,255,255,0.7);
    order: 3;
    font-size: 0.8rem;
}

/* 愿望内容样式 */
.wish-content {
    margin-bottom: 20px;
    min-height: 80px;
    flex: 1;
    position: relative;
    z-index: 2;
}

.wish-text {
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

.wish-hidden {
    color: rgba(255,255,255,0.6);
    font-style: italic;
    display: none;
    text-align: center;
    padding: 20px 0;
}

/* 卡片底部元信息 */
.wish-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    position: relative;
    z-index: 2;
}

.wish-bazi {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    background: rgba(0,0,0,0.3);
    padding: 3px 8px;
    border-radius: 4px;
}

.wish-bazi i {
    color: var(--primary-color);
}

.wish-stats {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* 卡片按钮样式 */
.wish-actions {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.btn-bless, .btn-fulfill {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-bless {
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.5), rgba(106, 17, 203, 0.3));
    color: white;
}

.btn-bless:hover {
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.7), rgba(106, 17, 203, 0.5));
    transform: translateY(-2px);
}

.btn-fulfill {
    background: linear-gradient(135deg, rgba(37, 117, 252, 0.5), rgba(37, 117, 252, 0.3));
    color: white;
}

.btn-fulfill:hover {
    background: linear-gradient(135deg, rgba(37, 117, 252, 0.7), rgba(37, 117, 252, 0.5));
    transform: translateY(-2px);
}

.btn-bless::after, .btn-fulfill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: all 0.6s ease;
}

.btn-bless:hover::after, .btn-fulfill:hover::after {
    left: 100%;
}

/* 能量条样式 */
.wish-energy {
    margin-top: 15px;
    height: 6px;
    background: rgba(0,0,0,0.3);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.energy-level {
    height: 100%;
    width: 0;
    transition: width 0.7s cubic-bezier(0.65, 0, 0.35, 1);
    position: relative;
}

.energy-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.1) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0.1) 100%);
    animation: shine 2s infinite;
}

.wish-card[data-level="1"] .energy-level { 
    width: 20%; 
    background: linear-gradient(90deg, var(--bar-1), #8a4ce6);
}
.wish-card[data-level="2"] .energy-level { 
    width: 40%; 
    background: linear-gradient(90deg, var(--bar-2), #4a8cf7);
}
.wish-card[data-level="3"] .energy-level { 
    width: 60%; 
    background: linear-gradient(90deg, var(--bar-3), #e67e22);
}
.wish-card[data-level="4"] .energy-level { 
    width: 80%; 
    background: linear-gradient(90deg, var(--bar-4), #e74c3c);
}
.wish-card[data-level="5"] .energy-level { 
    width: 100%; 
    background: linear-gradient(90deg, var(--bar-5), #f1c40f);
    animation: rainbow 3s linear infinite;
}

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.wish-card.max-blessed {
    border: 1px solid #00b894;
    box-shadow: 0 0 25px rgba(0, 184, 148, 0.4);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 15px rgba(0, 184, 148, 0.4); }
    to { box-shadow: 0 0 30px rgba(0, 184, 148, 0.6); }
}

/* ==================== 加载状态 ==================== */
.wish-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: var(--text-dark);
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(106, 17, 203, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== 分页 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.pagination button {
    background: rgba(106, 17, 203, 0.3);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination button:hover {
    background: rgba(106, 17, 203, 0.5);
    color: white;
    transform: scale(1.1);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#pageInfo {
    color: var(--text-light);
}

/* ==================== 统计卡片 ==================== */
.stat-card {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.2);
    /* 确保背景颜色不变 */
    background: rgba(0, 0, 0, 0.3);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 3px;
    position: relative;
    line-height: 1.2;
}

.stat-label {
    color: var(--text-dark);
    font-size: 0.85rem;
    line-height: 1.3;
}

.wish-chart {
    height: 250px;
}

/* ==================== 用户信息弹窗 ==================== */
.user-info-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.user-info-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(106, 17, 203, 0.2);
}

.user-info-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-label {
    width: 120px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.info-value {
    flex: 1;
    color: var(--text-color);
    font-size: 1.05rem;
}

.recharge-btn-small {
    margin-left: 15px;
    padding: 5px 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recharge-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.4);
}

/* ==================== 模态框 ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-light);
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    position: relative;
    border: 1px solid rgba(106, 17, 203, 0.5);
    box-shadow: 0 5px 30px rgba(106, 17, 203, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: white;
    transform: rotate(90deg);
}

.modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fulfill-options {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 25px 0;
    justify-content: center;
}

/* 所有金额选项并排排列 */
.fulfill-option {
    width: calc(25% - 7.5px);
    min-width: 60px;
}

.fulfill-option {
    padding: 15px;
    background: rgba(106, 17, 203, 0.2);
    border: 1px solid rgba(106, 17, 203, 0.3);
    border-radius: 6px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.fulfill-option:hover {
    background: rgba(106, 17, 203, 0.4);
    color: white;
    transform: translateY(-3px);
}

.fulfill-option.selected {
    background: rgba(106, 17, 203, 0.6);
    color: white;
    transform: translateY(-3px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* 确认支付按钮居中 */
.payment-confirm-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#confirmPaymentBtn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #9c27b0, #673ab7);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#confirmPaymentBtn:hover:not(:disabled) {
    background: linear-gradient(135deg, #8e24aa, #5e35b1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

#confirmPaymentBtn:disabled,
#confirmPaymentBtn.disabled {
    background: #9e9e9e;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.fulfill-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: all 0.5s ease;
}

.fulfill-option:hover::before {
    left: 100%;
}

.fulfill-note {
    font-size: 0.9rem;
    color: var(--text-dark);
    text-align: center;
}

/* ==================== 页脚 ==================== */
.main-footer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9));
    color: var(--text-light);
    padding: 50px 0 30px;
    text-align: center;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(106,17,203,0.3)"/></svg>') repeat;
    opacity: 0.05;
    z-index: 0;
}

.main-footer .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-footer p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-navigation {
    margin-bottom: 10px;
}

.footer-navigation a {
    color: #8a5cf5;
    text-decoration: none;
    font-weight: 500;
}

.footer-navigation a:hover {
    text-decoration: underline;
    color: #7a4ce5;
}

/* ==================== Toast消息 ==================== */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    background: rgba(10, 10, 20, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.toast.success {
    color: white;
    border-color: rgba(106, 17, 203, 0.5);
}

.toast.error {
    color: white;
    border-color: rgba(255, 107, 107, 0.5);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.fa-spinner.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wish-loading .btn-mingyuan {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 1rem;
}

.wish-loading i.fa-water {
    animation: pulse 2s infinite;
}

/* ==================== 六字真言特效 ==================== */

.mantra-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(2.0); /* 缩放至70%大小 */
    width: 100%;
    height: 100%;
    background: url('../images/6words.jpg') center/contain no-repeat;
    opacity: 0.5;
    z-index: -1;
}
.mantra-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.95) 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-out;
    overflow: hidden;
}

.mantra-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mantra-container {
    position: relative;
    width: 90%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.mantra-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

.mantra-text {
    font-size: 8vw;
    font-weight: 900;
    color: transparent;
    background: linear-gradient(45deg, 
        #6a11cb 0%, #2575fc 20%, 
        #00b894 40%, #fdcb6e 60%, 
        #e17055 80%, #6a11cb 100%);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: mantraGradient 6s ease infinite, 
               mantraFloat 4s ease-in-out infinite alternate;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    margin: 15px 0;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    filter: drop-shadow(0 0 10px currentColor);
}

.mantra-text.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@keyframes mantraGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes mantraFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.mantra-particle {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(106,17,203,0.8) 70%);
    pointer-events: none;
    z-index: 1;
    box-shadow: 0 0 15px 5px rgba(106, 17, 203, 0.5);
}

.mantra-symbol {
    position: absolute;
    font-size: 4rem;
    opacity: 0;
    z-index: 0;
    color: rgba(255,255,255,0.15);
    filter: drop-shadow(0 0 5px rgba(106, 17, 203, 0.7));
}

.mantra-beam {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to top, 
        transparent 0%, 
        rgba(106, 17, 203, 0.5) 30%, 
        transparent 100%);
    top: 0;
    z-index: 0;
    animation: beamScan 8s linear infinite;
}

.mantra-circle {
    position: absolute;
    border: 2px solid rgba(106, 17, 203, 0.5);
    border-radius: 50%;
    animation: circlePulse 6s ease-out infinite;
}

@keyframes beamScan {
    0% { transform: rotate(0deg); left: 0; }
    100% { transform: rotate(360deg); left: 100%; }
}

@keyframes circlePulse {
    0% { transform: scale(0.5); opacity: 0; }
    50% { opacity: 0.7; }
    100% { transform: scale(3); opacity: 0; }
}

@keyframes symbolFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    20% { opacity: 0.3; }
    80% { opacity: 0.3; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* ==================== 用户卡片浮窗 ==================== */
.user-cards-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.user-cards-modal.active {
    opacity: 1;
    visibility: visible;
}

.user-cards-container {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(138, 92, 245, 0.3);
    backdrop-filter: blur(10px);
    transform: translateY(20px);
    transition: all 0.3s;
    overflow-y: auto;
}

.user-cards-modal.active .user-cards-container {
    transform: translateY(0);
}

.user-cards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-cards-header h3 {
    color: #8a5cf5;
    margin: 0;
}

.close-cards {
    color: #b0b0b0;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-cards:hover {
    color: #f0f0f0;
    background: rgba(255, 255, 255, 0.1);
}

.user-cards-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    padding: 5px;
}

.user-card-item {
    background: rgba(42, 42, 42, 0.7);
    border-radius: 10px;
    padding: 15px;
    position: relative;
    border-left: 3px solid #8a5cf5;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.user-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-left-color: #9b71f7;
    /* 确保背景颜色不变 */
    background: rgba(42, 42, 42, 0.7);
}

.card-status {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(138, 92, 245, 0.2);
    color: #8a5cf5;
}

.wish-type-badge {
    background: rgba(138, 92, 245, 0.1);
    color: #8a5cf5;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 8px;
}

.card-progress {
    margin: 10px 0;
}

.card-energy-level {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 8px 0;
    overflow: hidden;
}

.card-energy-level-fill {
    height: 100%;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    width: 0%;
    transition: width 0.5s ease;
}

.level-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #b0b0b0;
    margin-top: 5px;
}

.user-card-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(138, 92, 245, 0.2);
}

.btn-delete, .btn-fulfill-small {
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
    margin-left: 8px;
}

.btn-delete {
    background: #ff6b6b;
    color: white;
}

.btn-delete:hover {
    background: #e74c3c;
}

.btn-fulfill-small {
    background: rgba(85, 239, 196, 0.2);
    color: #55efc4;
}

.btn-fulfill-small:hover {
    background: rgba(85, 239, 196, 0.4);
}

.add-new-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #8a5cf5;
    cursor: pointer;
}

.add-new-card i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.new-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(138, 92, 245, 0.05);
    border: 1px dashed rgba(138, 92, 245, 0.3);
}

.new-card-btn:hover {
    background: rgba(138, 92, 245, 0.1);
    transform: none;
}

.retry-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.retry-buttons button {
    padding: 8px 15px;
}

/* ==================== 用户信息区域 ==================== */
.user-area {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin: 20px 0;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(106, 17, 203, 0.3);
}

.user-welcome {
    color: #f0f0f0;
    font-size: 0.9rem;
    background: rgba(30, 30, 30, 0.8);
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: none;
}

.login-btn, .logout-btn, .manage-btn {
    background: #8a5cf5;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Noto Serif SC', serif;
    font-size: 0.85rem;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.login-btn:hover, .logout-btn:hover, .manage-btn:hover {
    background: #7a4ce5;
    transform: translateY(-2px);
}

.logout-btn {
    background: #ff6b6b;
}

.logout-btn:hover {
    background: #e74c3c;
}

.manage-btn {
    background: #17a2b8;
}

.manage-btn:hover {
    background: #138496;
}

/* ==================== 登录注册弹窗 ==================== */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
}

.auth-container {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(138, 92, 245, 0.3);
    backdrop-filter: blur(10px);
    transform: translateY(20px);
    transition: all 0.3s;
}

.auth-modal.active .auth-container {
    transform: translateY(0);
}

.auth-header {
    text-align: center;
    margin-bottom: 25px;
}

.auth-header h2 {
    color: #8a5cf5;
    margin-bottom: 10px;
}

.auth-header p {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    color: #b0b0b0;
    transition: all 0.3s;
    font-weight: 500;
}

.auth-tab.active {
    color: #8a5cf5;
    border-bottom: 2px solid #8a5cf5;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #f0f0f0;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(42, 42, 42, 0.7);
    border: 1px solid #333;
    border-radius: 8px;
    color: #f0f0f0;
    font-family: 'Noto Serif SC', serif;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #8a5cf5;
    box-shadow: 0 0 0 3px rgba(138, 92, 245, 0.2);
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: #8a5cf5;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Noto Serif SC', serif;
    font-size: 1rem;
    transition: all 0.3s;
    margin-top: 10px;
}

.auth-btn:hover {
    background: #7a4ce5;
}

.auth-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.auth-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 0.9rem;
    display: none;
}

.auth-message.error {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
}

.auth-message.success {
    background: rgba(85, 239, 196, 0.2);
    color: #55efc4;
    border: 1px solid #55efc4;
}

.close-auth {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #b0b0b0;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-auth:hover {
    color: #f0f0f0;
    background: rgba(255, 255, 255, 0.1);
}

.forgot-password {
    text-align: right;
    margin-top: 5px;
    margin-bottom: 15px;
}

.forgot-password a {
    color: white;
    font-size: 0.9rem;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* ==================== 搜索框样式 ==================== */
.wish-search-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.wish-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.wish-search-container {
    position: relative;
    display: flex;
    align-items: center;
    flex: 3;
    min-width: 200px;
}

.wish-search-input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-family: 'Noto Serif SC', serif;
    width: 100%;
    transition: all 0.3s;
}

.wish-search-input:focus {
    outline: none;
    border-color: #6a11cb;
    box-shadow: 0 0 5px rgba(106, 17, 203, 0.3);
}

.wish-search-btn, .wish-clear-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    position: absolute;
    right: 10px;
    transition: all 0.3s;
}

.wish-clear-search-btn {
    right: 35px;
    display: none;
}

.wish-search-btn:hover, .wish-clear-search-btn:hover {
    color: #6a11cb;
}

#wishFilter, #sortFilter {
    flex: 1;
    min-width: 120px;
    max-width: 140px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 992px) {
    .content-container {
        padding: 40px;
    }
    
    .mingyuan-intro {
        flex-direction: column;
    }
    
    .mingyuan-intro .intro-image {
        flex: 1;
        width: 100%;
    }
    
    .mingyuan-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .content-container {
        padding: 30px;
        margin: 20px auto;
        border-radius: 15px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .wish-pool {
        grid-template-columns: 1fr;
    }
    
    .filter-controls {
        margin-top: 15px;
        width: 100%;
        justify-content: space-between;
    }
    
    .fulfill-options {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }

    .mantra-text {
        font-size: 10vw;
    }

    .wish-search-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .wish-search-container, 
    #wishFilter, 
    #sortFilter {
        width: 100%;
        max-width: 100%;
    }

    .user-cards-list {
        grid-template-columns: 1fr;
    }
    
    .user-card-item {
        padding: 12px;
    }
    
    /* 为包含农历信息的卡片添加flex布局 */
    .card {
        display: flex;
        flex-direction: column;
    }
    
    .lunar-date-info {
        order: 2;
        margin: 15px 0 8px;
    }
    
    .mingyuan-intro {
        order: 3;
    }
}

@media (max-width: 576px) {
    .content-container {
        padding: 20px;
        margin: 10px auto;
        border-radius: 10px;
    }
    
    .content-title h1 {
        font-size: 1.8rem;
        padding: 15px 30px;
    }
    
    .content-title p {
        font-size: 1rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-content {
        margin: 20% auto;
        width: 90%;
    }

    .mantra-text {
        font-size: 12vw;
    }

    .user-area {
        position: static;
        top: auto;
        right: auto;
        width: 90%;
        max-width: 350px;
        margin: 15px auto;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 8px;
        order: 1;
    }
    
    .user-welcome {
        display: none;
    }
    
    .user-area .login-btn,
    .user-area .logout-btn,
    .user-area .recharge-btn,
    .user-area .manage-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin: 2px;
        flex: 1;
        min-width: 70px;
        max-width: 120px;
        text-align: center;
    }
    
    .user-balance {
        width: 100%;
        text-align: center;
        margin: 5px 0;
        font-size: 0.85rem;
    }
    
    .auth-container {
        padding: 20px;
        width: 95%;
    }
}

/* 许愿表单两栏布局样式 */
.mingyuan-form .form-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.mingyuan-form .form-column {
    flex: 1;
    min-width: 300px;
}

/* 左侧列样式 */
.mingyuan-form .left-column {
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* 右侧列样式 */
.mingyuan-form .right-column {
    padding-left: 15px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .mingyuan-form .form-columns {
        flex-direction: column;
    }
    
    .mingyuan-form .left-column {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .mingyuan-form .right-column {
        padding-left: 0;
    }
}

/* 保持原有表单元素样式不变 */
.mingyuan-form .form-group {
    margin-bottom: 20px;
}

.mingyuan-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #e0e0e0;
}

.mingyuan-form input[type="text"],
.mingyuan-form input[type="date"],
.mingyuan-form input[type="password"],
.mingyuan-form input[type="email"],
.mingyuan-form select,
.mingyuan-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-family: 'Noto Serif SC', serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

/* mingyuan-form中的select特殊样式 */
.mingyuan-form select {
    /* 移除默认样式 */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* 添加自定义下拉箭头 */
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23ffffff" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    
    /* 确保文字不与箭头重叠 */
    padding-right: 40px;
    
    /* 确保在所有浏览器中都有一致的高度 */
    min-height: 44px;
    line-height: 1.4;
    
    /* 移动端优化 */
    -webkit-tap-highlight-color: transparent;
}

/* mingyuan-form中select的option样式 */
.mingyuan-form select option {
    background: rgba(20, 20, 30, 0.95);
    color: #ffffff;
    padding: 8px 12px;
    font-family: 'Noto Serif SC', serif;
    font-size: 16px;
}

.mingyuan-form select option:checked {
    background: #6a11cb;
    color: white;
}

/* mingyuan-form移动端优化 */
@media screen and (max-width: 768px) {
    .mingyuan-form select {
        font-size: 16px !important;
        min-height: 48px;
        padding: 14px 40px 14px 16px;
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .mingyuan-form select:focus {
        border-color: #6a11cb;
        box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.3);
    }
}

@media screen and (max-width: 480px) {
    .mingyuan-form select {
        min-height: 50px;
        padding: 15px 40px 15px 16px;
    }
}

.mingyuan-form textarea {
    min-height: 120px;
    resize: vertical;
}

.mingyuan-form input:focus,
.mingyuan-form select:focus,
.mingyuan-form textarea:focus {
    outline: none;
    border-color: #6a11cb;
    box-shadow: 0 0 0 2px rgba(106, 17, 203, 0.3);
}

.mingyuan-form .form-hint {
    margin-top: 6px;
    font-size: 13px;
    color: #a0a0a0;
}

/* 单选按钮组样式保持不变 */
.mingyuan-form .radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.mingyuan-form .radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.mingyuan-form .radio-option input {
    margin-right: 8px;
}

.mingyuan-form .radio-custom {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
}

.mingyuan-form .radio-option input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6a11cb;
}

.mingyuan-form .radio-label {
    font-size: 15px;
    color: #e0e0e0;
}


.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    z-index: 2;
}

.password-toggle:hover {
    color: #333;
}

.manage-btn {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Noto Serif SC', serif;
    font-size: 0.85rem;
    margin: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.manage-btn:hover {
    background: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.manage-btn i {
    margin-right: 5px;
}

/* 生肖字体图标样式 */
.wish-card-bg-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 250px; /* 调整为卡片大小的70% */
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

/* 定义生肖字体图标 - 这里需要替换为您实际使用的字体图标类名 */
.icon-rat:before { content: "🐀"; }
.icon-ox:before { content: "🐂"; }
.icon-tiger:before { content: "🐅"; }
.icon-rabbit:before { content: "🐇"; }
.icon-dragon:before { content: "🐉"; }
.icon-snake:before { content: "🐍"; }
.icon-horse:before { content: "🐎"; }
.icon-goat:before { content: "🐐"; }
.icon-monkey:before { content: "🐒"; }
.icon-rooster:before { content: "🐓"; }
.icon-dog:before { content: "🐕"; }
.icon-pig:before { content: "🐖"; }

/* 确保卡片有相对定位以便绝对定位的背景图标 */
.wish-card {
    position: relative;
    overflow: hidden;
    /* 保持原有的背景颜色和其他样式 */
}


  /* 新增的农历日期信息样式 */
        .lunar-date-info {
            margin: 45px 0 35px;
            font-size: 0.95rem;
            color: #b8c2cc;
        }
        
        .lunar-date-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 15px;
            background: rgba(106, 17, 203, 0.1);
            padding: 10px 15px;
            border-radius: 8px;
            border: 1px solid rgba(106, 17, 203, 0.3);
        }
        
        .lunar-date {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .lunar-yiji {
            display: flex;
            gap: 15px;
        }
        
        .lunar-yiji .yi {
            color: #00b894;
        }
        
        .lunar-yiji .ji {
            color: #ff7675;
        }
        
        .lunar-date i,
        .lunar-yiji i {
            font-size: 0.9em;
        }
        
        @media (max-width: 768px) {
            .lunar-date-container {
                flex-direction: column;
                gap: 8px;
                align-items: center;
            }
            
            .lunar-yiji {
                gap: 10px;
            }
            
            /* 为包含农历信息的卡片添加flex布局 */
            .card {
                display: flex;
                flex-direction: column;
            }
            
            .lunar-date-info {
                 order: 1;
                 margin: 20px 0 10px;
             }
             
             .mingyuan-intro {
                 order: 3;
             }
        }

        .energy-chart-label {
            text-align: center;
            font-size: 12px;
            color: #b8c2cc;
            margin-top: 20px;
            font-family: 'Noto Serif SC', serif;
            width: 100%;  /* 确保容器宽度足够 */
            display: block; /* 确保文本可以居中 */
        }

/* 用户余额和充值按钮样式 */
.user-balance {
    background: rgba(106, 17, 203, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(106, 17, 203, 0.3);
    color: var(--text-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.user-balance i {
    color: #f1c40f;
    margin-right: 5px;
}

.recharge-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.recharge-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(106, 17, 203, 0.3);
}

/* 充值弹窗样式 */
.recharge-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.recharge-container {
    background: rgba(20, 40, 80, 0.95);
    margin: 10% auto;
    padding: 30px;
    border: 2px solid #f1c40f;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(106, 17, 203, 0.3);
}

.recharge-header {
    text-align: center;
    margin-bottom: 20px;
}

.recharge-header h2 {
    color: #ffffff;
    margin-bottom: 5px;
    text-shadow: 0 0 5px rgba(106, 17, 203, 0.8);
}

.recharge-header p {
    color: #e0e0e0;
}

.close-recharge {
    color: #ffffff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(106, 17, 203, 0.8);
}

.close-recharge:hover {
    color: #f1c40f;
}

.recharge-form .form-group {
    margin-bottom: 20px;
}

.recharge-form label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 500;
}

.recharge-form input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: #ffffff;
    font-family: 'Noto Serif SC', serif;
    transition: all 0.3s ease;
}

.recharge-form input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(106, 17, 203, 0.3);
}

.payment-methods {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.payment-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    padding: 15px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 150px;
    border: 1px solid gold; /* 添加金色外框 */
}

.payment-option[for="alipay"] {
    background: #007AFF !important;
    border: 2px solid #f1c40f !important;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.5) !important;
}

.payment-option[for="wechat"] {
    background: #09BB07 !important;
    border: 2px solid #f1c40f !important;
    box-shadow: 0 0 0 2px rgba(9, 187, 7, 0.5) !important;
}

.payment-option[for="alipay"]:hover {
    background: #0066CC;
    transform: translateY(-3px);
    border: 2px solid #f8d64e;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.5);
}

.payment-option[for="wechat"]:hover {
    background: #07A305;
    transform: translateY(-3px);
    border: 2px solid #f8d64e;
    box-shadow: 0 5px 15px rgba(7, 163, 5, 0.5);
}

.payment-option i {
    font-size: 24px;
    color: #ffffff;
}

.payment-option input[type="radio"] {
    margin-right: 5px;
}

.payment-tag {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 5px;
}

.recharge-form .recharge-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 30px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-page .recharge-btn {
    width: auto;
    padding: 12px 30px;
    margin-left: auto;
}

.recharge-form .recharge-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(106, 17, 203, 0.4);
}

.recharge-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 0.9rem;
}

.liuyao-link {
            position: absolute;
            top: 5px;
            right: 5px;
            background: linear-gradient(145deg, #d4af37, #b8971a);
            color: #1a1a2e;
            padding: 8px 16px;
            border-radius: 20px;
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .liuyao-link:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
            background: linear-gradient(145deg, #e6c34d, #c9a41f);
        }
