/**
 * 蛋仔派对 - 成就/攻略系统样式
 * 蛋仔橙黄主题 + 磨砂玻璃效果
 */

.danzi-achievement-guide {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    color: #333;
    position: relative;
    min-height: 100vh;
}

/* 蛋仔主题背景 */
.danzi-achievement-guide::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(255, 209, 0, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 149, 0, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 107, 107, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, #FFF9E6 0%, #FFF5E6 30%, #FFFEF7 100%);
    z-index: -1;
    pointer-events: none;
}

.danzi-achievement-guide::after {
    content: '🥚';
    position: fixed;
    top: 30px;
    right: 50px;
    font-size: 60px;
    opacity: 0.15;
    z-index: -1;
    animation: floatEggy 4s ease-in-out infinite;
}

@keyframes floatEggy {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* 头部标题 */
.dagi-header {
    text-align: center;
    margin-bottom: 40px;
}

.dagi-title-section {
    display: inline-block;
    padding: 30px 50px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    box-shadow:
        0 12px 40px rgba(255, 149, 0, 0.15),
        0 0 0 3px rgba(255, 209, 0, 0.2) inset;
}

.dagi-logo {
    font-size: 80px;
    display: block;
    margin-bottom: 10px;
    animation: bounceSlow 2s ease-in-out infinite;
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
}

.dagi-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #FFD100 0%, #FF9500 50%, #FF6B6B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(255, 149, 0, 0.2));
}

.dagi-subtitle {
    font-size: 16px;
    color: #CC7A00;
    margin: 0;
    font-weight: 500;
}

/* 统计卡片 */
.dagi-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.dagi-stat-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow:
        0 8px 32px rgba(255, 149, 0, 0.12),
        0 0 0 3px rgba(255, 209, 0, 0.15) inset;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.dagi-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 209, 0, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.dagi-stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 16px 48px rgba(255, 149, 0, 0.2),
        0 0 0 3px rgba(255, 209, 0, 0.25) inset;
}

.dagi-stat-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.dagi-stat-info {
    flex: 1;
}

.dagi-stat-value {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD100 0%, #FF9500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.dagi-stat-total {
    font-size: 20px;
    color: #999;
    font-weight: 500;
}

.dagi-stat-label {
    font-size: 14px;
    color: #CC7A00;
    font-weight: 600;
    margin-bottom: 8px;
}

.dagi-stat-progress {
    margin-top: 12px;
}

.dagi-progress-bar {
    height: 10px;
    background: rgba(255, 209, 0, 0.15);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
}

.dagi-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD100, #FF9500);
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dagi-progress-fill.egg-progress {
    background: linear-gradient(90deg, #FF6B6B, #FF9500);
}

.dagi-progress-text {
    font-size: 12px;
    font-weight: 700;
    color: #CC7A00;
}

/* 导航标签 */
.dagi-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.dagi-tab-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow:
        0 4px 15px rgba(255, 149, 0, 0.1),
        0 0 0 2px rgba(255, 209, 0, 0.15) inset;
}

.dagi-tab-btn:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(255, 149, 0, 0.18),
        0 0 0 2px rgba(255, 209, 0, 0.3) inset;
    color: #CC7A00;
}

.dagi-tab-btn.active {
    background: linear-gradient(135deg, #FFD100 0%, #FF9500 100%);
    color: #333;
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 8px 25px rgba(255, 149, 0, 0.35),
        0 2px 0 rgba(204, 122, 0, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.3) inset;
}

.tab-icon {
    font-size: 18px;
}

/* 搜索框 */
.dagi-search-box {
    margin-bottom: 24px;
    text-align: center;
}

#dagi-search {
    width: 100%;
    max-width: 500px;
    padding: 16px 28px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow:
        0 6px 20px rgba(255, 149, 0, 0.12),
        0 0 0 3px rgba(255, 209, 0, 0.2) inset;
    color: #444;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#dagi-search::placeholder {
    color: rgba(204, 122, 0, 0.5);
}

#dagi-search:focus {
    outline: none;
    transform: scale(1.02);
    box-shadow:
        0 12px 35px rgba(255, 149, 0, 0.2),
        0 0 0 3px rgba(255, 209, 0, 0.35) inset;
}

/* 筛选器 */
.dagi-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #CC7A00;
}

.dagi-filter-select {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 4px 12px rgba(255, 149, 0, 0.1),
        0 0 0 2px rgba(255, 209, 0, 0.15) inset;
}

.dagi-filter-select:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 6px 18px rgba(255, 149, 0, 0.15),
        0 0 0 2px rgba(255, 209, 0, 0.25) inset;
}

.dagi-filter-select:focus {
    outline: none;
    box-shadow:
        0 6px 18px rgba(255, 149, 0, 0.15),
        0 0 0 3px rgba(255, 209, 0, 0.4) inset;
}

/* 内容面板 */
.dagi-tab-panel {
    display: none;
}

.dagi-tab-panel.active {
    display: block;
    animation: fadeInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* 成就卡片网格 */
.dagi-achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 8px 32px rgba(255, 149, 0, 0.1),
        0 0 0 3px rgba(255, 209, 0, 0.12) inset;
    position: relative;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD100, #FF9500, #FF6B6B, #FFD100);
    background-size: 300% 100%;
    animation: rainbowFlow 4s linear infinite;
}

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

.achievement-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 50px rgba(255, 149, 0, 0.18),
        0 0 0 3px rgba(255, 209, 0, 0.2) inset;
}

.achievement-card.completed {
    background: linear-gradient(135deg, rgba(255, 209, 0, 0.2) 0%, rgba(255, 149, 0, 0.15) 100%);
}

.achievement-card.completed::after {
    content: '✓ 已完成';
    position: absolute;
    top: 20px;
    right: 60px;
    background: linear-gradient(135deg, #FFD100 0%, #FF9500 100%);
    color: #333;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

.ach-card-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid rgba(255, 209, 0, 0.1);
}

.ach-icon {
    font-size: 36px;
}

.ach-rarity-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ach-complete-btn {
    margin-left: auto;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 209, 0, 0.2);
    color: #CC7A00;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ach-complete-btn:hover {
    background: linear-gradient(135deg, #FFD100 0%, #FF9500 100%);
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

.achievement-card.completed .ach-complete-btn {
    background: linear-gradient(135deg, #FFD100 0%, #FF9500 100%);
    color: #fff;
}

.ach-card-body {
    padding: 20px;
}

.ach-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #333;
}

.ach-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 14px 0;
    line-height: 1.5;
}

.ach-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ach-category {
    font-size: 12px;
    font-weight: 600;
    color: #CC7A00;
    background: rgba(255, 209, 0, 0.15);
    padding: 4px 10px;
    border-radius: 12px;
}

.ach-difficulty {
    font-size: 12px;
    color: #888;
}

.ach-guide {
    background: rgba(255, 209, 0, 0.1);
    padding: 12px;
    border-radius: 12px;
    margin-top: 12px;
}

.guide-label {
    font-size: 12px;
    font-weight: 700;
    color: #CC7A00;
    display: block;
    margin-bottom: 4px;
}

.ach-guide p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* 关卡卡片网格 */
.dagi-levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.level-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 8px 32px rgba(255, 149, 0, 0.1),
        0 0 0 3px rgba(255, 209, 0, 0.12) inset;
    position: relative;
}

.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD100, #FF9500, #FF6B6B, #FFD100);
    background-size: 300% 100%;
    animation: rainbowFlow 4s linear infinite;
}

.level-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 50px rgba(255, 149, 0, 0.18),
        0 0 0 3px rgba(255, 209, 0, 0.2) inset;
}

.level-card-cover {
    height: 140px;
    background: linear-gradient(135deg,
        rgba(255, 209, 0, 0.3) 0%,
        rgba(255, 149, 0, 0.25) 50%,
        rgba(255, 107, 107, 0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.level-card-cover::before {
    content: '🥚';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    opacity: 0.15;
}

.level-type-badge {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #CC7A00;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.level-difficulty-stars {
    align-self: flex-end;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 10px;
    border-radius: 12px;
}

.level-card-body {
    padding: 20px;
}

.level-name {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #333;
}

.level-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 14px 0;
    line-height: 1.5;
}

.level-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
}

.meta-item {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.level-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.level-tag {
    background: rgba(255, 209, 0, 0.15);
    color: #CC7A00;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.level-detail-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #FFD100 0%, #FF9500 100%);
    color: #333;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 4px 15px rgba(255, 149, 0, 0.3),
        0 2px 0 rgba(204, 122, 0, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.3) inset;
}

.level-detail-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 10px 30px rgba(255, 149, 0, 0.4),
        0 3px 0 rgba(204, 122, 0, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.4) inset;
}

.level-detail-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* 隐藏蛋卡片网格 */
.dagi-eggs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.egg-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 8px 32px rgba(255, 149, 0, 0.1),
        0 0 0 3px rgba(255, 209, 0, 0.12) inset;
    position: relative;
}

.egg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B6B, #FF9500, #FFD100, #FF6B6B);
    background-size: 300% 100%;
    animation: rainbowFlow 4s linear infinite;
}

.egg-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 50px rgba(255, 149, 0, 0.18),
        0 0 0 3px rgba(255, 209, 0, 0.2) inset;
}

.egg-card.collected {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 209, 0, 0.1) 100%);
}

.egg-card.collected::after {
    content: '✓ 已收集';
    position: absolute;
    top: 20px;
    right: 60px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF9500 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.egg-card-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid rgba(255, 107, 107, 0.1);
}

.egg-icon {
    font-size: 42px;
    animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-3deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

.egg-rarity-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.egg-collect-btn {
    margin-left: auto;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.2);
    color: #FF6B6B;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.egg-collect-btn:hover {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF9500 100%);
    color: #fff;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.egg-card.collected .egg-collect-btn {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF9500 100%);
    color: #fff;
}

.egg-card-body {
    padding: 20px;
}

.egg-name {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 14px 0;
    color: #333;
}

.egg-level {
    margin-bottom: 12px;
}

.egg-level-label {
    font-size: 12px;
    font-weight: 700;
    color: #CC7A00;
    margin-right: 6px;
}

.egg-level-name {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    background: rgba(255, 209, 0, 0.15);
    padding: 4px 10px;
    border-radius: 12px;
}

.egg-location,
.egg-how-to {
    margin-bottom: 12px;
}

.egg-location-label,
.egg-how-to-label,
.egg-difficulty-label {
    font-size: 12px;
    font-weight: 700;
    color: #CC7A00;
    display: block;
    margin-bottom: 6px;
}

.egg-location-desc,
.egg-how-to-desc {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.6;
    background: rgba(255, 209, 0, 0.08);
    padding: 10px 12px;
    border-radius: 12px;
}

.egg-difficulty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.egg-difficulty-stars {
    font-size: 14px;
}

/* 模态框 */
.dagi-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dagi-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dagi-modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 32px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    animation: modalBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.2),
        0 0 0 4px rgba(255, 209, 0, 0.2) inset;
}

@keyframes modalBounce {
    0% { transform: scale(0.8) translateY(30px); opacity: 0; }
    60% { transform: scale(1.03) translateY(-5px); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.dagi-modal-content::before {
    content: '🥚';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 70px;
    filter: drop-shadow(0 4px 8px rgba(255, 209, 0, 0.3));
}

.dagi-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 209, 0, 0.2);
    color: #CC7A00;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px rgba(255, 209, 0, 0.2) inset;
}

.dagi-modal-close:hover {
    background: rgba(255, 107, 107, 0.25);
    color: #FF6B6B;
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.3) inset;
}

/* 关卡详情内容 */
.level-detail-header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.level-detail-name {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 12px 0;
    background: linear-gradient(135deg, #FFD100 0%, #FF9500 50%, #FF6B6B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.level-detail-type {
    display: inline-block;
    background: linear-gradient(135deg, #FFD100 0%, #FF9500 100%);
    color: #333;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.level-detail-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.level-detail-meta .meta-item {
    font-size: 14px;
    color: #888;
    font-weight: 600;
}

.level-detail-section {
    background: rgba(255, 209, 0, 0.08);
    padding: 24px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.level-detail-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: #CC7A00;
    margin: 0 0 12px 0;
}

.level-detail-section p {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.7;
}

.level-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.level-detail-tag {
    background: rgba(255, 209, 0, 0.15);
    color: #CC7A00;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.level-detail-video {
    margin-top: 20px;
    text-align: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    color: #999;
    font-size: 14px;
}

/* 无结果提示 */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    margin: 20px 0;
    box-shadow:
        0 8px 32px rgba(255, 149, 0, 0.08),
        0 0 0 3px rgba(255, 209, 0, 0.1) inset;
}

.no-results-icon {
    font-size: 60px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #CC7A00;
}

.no-results p {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* 无障碍焦点 */
.dagi-tab-btn:focus-visible,
.dagi-filter-select:focus-visible,
#dagi-search:focus-visible,
.ach-complete-btn:focus-visible,
.egg-collect-btn:focus-visible,
.level-detail-btn:focus-visible,
.dagi-modal-close:focus-visible {
    outline: 3px solid #FFD100;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(255, 209, 0, 0.2);
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 响应式适配 */
@media (max-width: 768px) {
    .dagi-stats-grid {
        grid-template-columns: 1fr;
    }

    .dagi-title {
        font-size: 26px;
    }

    .dagi-logo {
        font-size: 60px;
    }

    .dagi-tabs {
        gap: 8px;
    }

    .dagi-tab-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .dagi-achievements-grid,
    .dagi-levels-grid,
    .dagi-eggs-grid {
        grid-template-columns: 1fr;
    }

    .dagi-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        justify-content: space-between;
    }

    .dagi-filter-select {
        flex: 1;
    }

    .dagi-modal-content {
        padding: 30px 20px;
    }

    .level-detail-name {
        font-size: 22px;
    }

    .danzi-achievement-guide::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .danzi-achievement-guide {
        padding: 20px 15px;
    }

    .dagi-title-section {
        padding: 20px 30px;
    }

    .dagi-stat-card {
        flex-direction: column;
        text-align: center;
    }
}
