/* =================================
   塞尔达主题特定样式
   ================================= */

/* =================================
   顶部导航栏
   ================================= */
.top-navbar {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.navbar-left,
.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-btn {
    background: transparent;
    border: 1px solid var(--color-accent-cyan);
    color: var(--color-accent-cyan);
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.menu-btn:hover {
    background: var(--color-accent-cyan);
    color: var(--color-bg-primary);
    box-shadow: var(--glow-cyan);
}

/* 三力标志 */
.triforce-icons {
    display: flex;
    gap: 0.3rem;
    margin-left: 1rem;
}

.triforce {
    color: var(--color-accent-gold);
    font-size: 1.2rem;
    filter: drop-shadow(var(--glow-gold));
    animation: triforce-glow 2s ease-in-out infinite;
}

.triforce-1 {
    animation-delay: 0s;
}

.triforce-2 {
    animation-delay: 0.3s;
}

.triforce-3 {
    animation-delay: 0.6s;
}

@keyframes triforce-glow {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* 图标按钮 */
.icon-btn {
    background: transparent;
    border: 1px solid var(--color-accent-cyan);
    color: var(--color-accent-cyan);
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.icon-btn:hover {
    background: var(--color-accent-cyan);
    color: var(--color-bg-primary);
    box-shadow: var(--glow-cyan);
    transform: scale(1.05);
}

/* =================================
   Tab导航栏
   ================================= */
.tabs-navbar {
    background: rgba(30, 30, 50, 0.8);
    backdrop-filter: blur(5px);
    padding: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 73px;
    z-index: 99;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-accent-cyan);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.tab-btn.active {
    background: rgba(0, 217, 255, 0.2);
    color: var(--color-accent-cyan);
}

.tab-btn.active::after {
    width: 80%;
}

.tab-btn:hover {
    background: rgba(0, 217, 255, 0.1);
    color: var(--color-accent-cyan);
}

/* =================================
   加载动画遮罩
   ================================= */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity var(--transition-slow);
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.triforce-loader {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
}

.triforce-loader .triforce {
    position: absolute;
    color: var(--color-accent-gold);
    font-size: 2rem;
    animation: pulse-triforce 1.5s ease-in-out infinite;
}

.triforce-loader-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.triforce-loader-2 {
    bottom: 0;
    left: 25%;
    transform: translateX(-50%);
    animation-delay: 0.3s;
}

.triforce-loader-3 {
    bottom: 0;
    right: 25%;
    transform: translateX(50%);
    animation-delay: 0.6s;
}

@keyframes pulse-triforce {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2);
        filter: drop-shadow(var(--glow-gold));
    }
}

.loading-text {
    color: var(--color-text-secondary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 1rem auto;
}

.loading-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent-cyan), var(--color-accent-gold));
    width: 0%;
    transition: width 0.3s ease;
}

.loading-percent {
    color: var(--color-accent-cyan);
    font-family: var(--font-heading);
    font-size: 1rem;
}

/* =================================
   粒子动画样式 (旧版已废弃，现使用 Canvas)
   ================================= */
.particle {
    display: none;
}

/* =================================
   二级Tab导航（用于进化历程Tab的子Tab）
   ================================= */
.sub-tabs-navbar {
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.sub-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
}

.sub-tab-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-accent-gold);
    border-color: rgba(212, 175, 55, 0.3);
}

.sub-tab-btn.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(226, 232, 240, 0.1));
    color: var(--color-accent-gold);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.sub-tab-content {
    display: none;
    opacity: 0;
    animation: fadeInSub 0.4s ease forwards;
}

.sub-tab-content.active {
    display: block;
}

@keyframes fadeInSub {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =================================
   书籍模块样式
   ================================= */
.books-section {
    padding: 2rem;
}

.books-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.books-stats .stat-card {
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 1.5rem;
    text-align: center;
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.books-stats .stat-card:hover {
    border-color: rgba(212, 175, 55, 0.6);
    transform: translateY(-5px);
}

.books-stats .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent-gold);
    display: block;
}

.books-stats .stat-label {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-top: 0.5rem;
}

/* 书籍筛选器 */
.books-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.books-filter .filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(15, 15, 20, 0.8);
    color: var(--color-text-primary);
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.books-filter .filter-select:hover {
    border-color: rgba(212, 175, 55, 0.5);
}

.books-filter .filter-select:focus {
    outline: none;
    border-color: var(--color-accent-gold);
}

.books-filter .filter-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(15, 15, 20, 0.6);
    color: var(--color-text-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
}

.books-filter .filter-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
}

.books-filter .filter-btn.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--color-accent-gold);
    color: var(--color-accent-gold);
}

.books-filter .books-search {
    flex: 1;
    min-width: 200px;
}

/* 书籍网格 */
.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.book-card {
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.book-cover {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.book-title {
    font-size: 1.1rem;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.book-author {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.book-rating {
    color: var(--color-accent-gold);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.book-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.book-status.read {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.book-status.reading {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
}

.book-status.to-read {
    background: rgba(156, 163, 175, 0.2);
    color: #9CA3AF;
}

.book-detail-btn {
    margin-top: auto;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: transparent;
    color: var(--color-accent-gold);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
}

.book-detail-btn:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* 书籍详情弹窗 */
.book-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.book-detail-content {
    background: rgba(15, 15, 20, 0.95);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0.5rem;
}

.modal-close:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* =================================
   理财模块样式
   ================================= */
.finance-section {
    padding: 2rem;
}

.finance-overview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.overview-card {
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-fast);
}

.overview-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
}

.overview-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent-gold);
    margin-bottom: 0.5rem;
}

.overview-value.positive {
    color: #10B981;
}

.overview-value.negative {
    color: #EF4444;
}

.overview-label {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* 资产配置图 */
.asset-chart-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.asset-chart {
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 2rem;
}

.pie-chart {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    transition: transform var(--transition-fast);
}

.pie-chart:hover {
    transform: scale(1.05);
}

.chart-legend {
    margin-top: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* 持仓列表表格 */
.portfolio-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
}

.portfolio-table th,
.portfolio-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.portfolio-table th {
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-accent-gold);
    font-weight: 600;
    font-family: var(--font-primary);
}

.portfolio-table td {
    color: var(--color-text-primary);
}

.portfolio-change {
    font-weight: 600;
}

.portfolio-change.positive {
    color: #10B981;
}

.portfolio-change.negative {
    color: #EF4444;
}

/* 财务目标 */
.goals-section {
    margin-bottom: 2rem;
}

.goal-item {
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all var(--transition-fast);
}

.goal-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

.goal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.goal-name {
    color: var(--color-text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.goal-deadline {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.goal-progress-bar {
    height: 8px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.goal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent-gold), #F4E4BA);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.goal-statistics {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* 交易记录时间轴 */
.transactions-section {
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 2rem;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: all var(--transition-fast);
}

.transaction-item:hover {
    background: rgba(212, 175, 55, 0.05);
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-info {
    flex: 1;
}

.transaction-date {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.transaction-asset {
    color: var(--color-text-primary);
    font-weight: 600;
}

.transaction-amount {
    text-align: right;
}

.transaction-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.transaction-value.buy {
    color: #10B981;
}

.transaction-value.sell {
    color: #EF4444;
}

.transaction-value.dividend {
    color: var(--color-accent-gold);
}

/* =================================
   响应式设计
   ================================= */
@media (max-width: 1024px) {
    .books-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .asset-chart-section {
        grid-template-columns: 1fr;
    }

    .finance-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .books-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .books-filter {
        flex-direction: column;
        gap: 0.75rem;
    }

    .books-filter .books-search {
        width: 100%;
    }
    
    .finance-overview {
        grid-template-columns: 1fr;
    }

    .portfolio-table {
        font-size: 0.85rem;
    }

    .portfolio-table th,
    .portfolio-table td {
        padding: 0.75rem 0.5rem;
    }

    .book-detail-modal {
        padding: 1rem;
    }

    .book-detail-content {
        padding: 1.5rem;
        max-width: 100%;
    }

    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .transaction-amount {
        text-align: left;
    }
}

/* =================================
   魔法主题样式
   ================================= */

/* 魔法称号 */
.profile-magic-title {
    color: var(--color-accent-gold);
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.5rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* 魔法等级徽章 */
.magic-badge {
    display: inline-block;
    position: static;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(52, 211, 153, 0.7));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    margin-top: 0.5rem;
}

/* 魔法经验条 */
.magic-exp-container {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
}

.magic-exp-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
    font-size: 0.9rem;
}

.magic-exp-bar {
    height: 8px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.magic-exp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent-gold), #F4E4BA);
    border-radius: 4px;
    transition: width 1s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* 魔力数值显示 */
.magic-power-display {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.power-item {
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all var(--transition-fast);
}

.power-item:hover {
    border-color: rgba(212, 175, 55, 0.6);
    transform: translateY(-3px);
}

.power-emoji {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.power-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-accent-gold);
}

.power-label {
    display: block;
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* 魔法技能区域 */
.magic-skills-section {
    margin-top: 1.5rem;
}

.magic-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.magic-skill-card {
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: all var(--transition-fast);
}

.magic-skill-card.unlocked {
    border-color: rgba(212, 175, 55, 0.5);
}

.magic-skill-card.unlocked:hover {
    border-color: rgba(212, 175, 55, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.magic-skill-card.locked {
    opacity: 0.7;
    background: rgba(15, 15, 20, 0.4);
    border-style: dashed;
}

.magic-skill-icon {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.magic-skill-name {
    color: var(--color-text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.magic-skill-name .legendary {
    color: var(--color-accent-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.magic-skill-desc {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.magic-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lock-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.unlock-level {
    color: var(--color-accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
}

/* 魔法徽章区域 */
.magic-badges-section {
    margin-top: 1.5rem;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.badge-card {
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-fast);
}

.badge-card.unlocked {
    border-color: rgba(212, 175, 55, 0.6);
}

.badge-card.unlocked:hover {
    border-color: rgba(212, 175, 55, 0.9);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.badge-card.locked {
    opacity: 0.8;
}

.badge-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.badge-name {
    color: var(--color-text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.badge-desc {
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.badge-progress {
    margin-top: 1rem;
}

.badge-progress .progress-bar {
    height: 6px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.badge-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent-gold), #F4E4BA);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.badge-progress .progress-text {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-top: 0.25rem;
}

.badge-unlocked-mark {
    display: block;
    color: #10B981;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

/* 升级目标区域 */
.magic-goals-section {
    margin-top: 1.5rem;
}

.goals-container {
    margin-top: 1.5rem;
}

.goal-item {
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all var(--transition-fast);
}

.goal-item:hover {
    border-color: rgba(212, 175, 55, 0.5);
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.goal-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.goal-emoji {
    font-size: 1.25rem;
}

.goal-title {
    color: var(--color-text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.goal-exp {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(34, 197, 94, 0.2));
    color: var(--color-accent-gold);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.goal-progress {
    margin-top: 0.75rem;
}

.goal-progress-bar {
    height: 6px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.goal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent-gold), #10B981);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.goal-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.goal-percent {
    font-weight: 600;
    color: var(--color-accent-gold);
}

.upgrade-tips {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(34, 197, 94, 0.1));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    text-align: center;
}

.upgrade-tips h3 {
    color: var(--color-accent-gold);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.upgrade-tips p {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

.no-goals {
    color: var(--color-text-secondary);
    text-align: center;
    padding: 2rem;
    font-style: italic;
}

/* 魔法主题响应式适配 */
@media (max-width: 768px) {
    .magic-power-display {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .magic-skills-grid {
        grid-template-columns: 1fr;
    }

    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .magic-exp-label {
        flex-direction: column;
        gap: 0.25rem;
    }

    .goal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.no-magic-skills {
    color: var(--color-text-secondary);
    text-align: center;
    padding: 2rem;
    font-style: italic;
}
