/* 文化页面专用样式 */

/* 文化英雄区域 */
.culture-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 30%, #0f3460 70%, #533483 100%);
    position: relative;
    padding: 150px 0 100px;
    text-align: center;
    overflow: hidden;
}

.culture-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(138, 43, 226, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    background: linear-gradient(45deg, #ffd700, #ff6b6b, #4ecdc4, #45b7d1);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-subtitle-bottom {
    font-size: 1.0rem;
    color: #f5e8e8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* 彩虹水晶装饰 */
.crystal-decoration {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
}

.crystal {
    width: 20px;
    height: 20px;
    transform: rotate(45deg);
    border-radius: 3px;
    animation: crystalFloat 3s ease-in-out infinite;
    box-shadow: 0 0 15px currentColor;
}

.crystal.red { 
    background: #ff4757; 
    animation-delay: 0s;
}
.crystal.orange { 
    background: #ff7675; 
    animation-delay: 0.2s;
}
.crystal.yellow { 
    background: #fdcb6e; 
    animation-delay: 0.4s;
}
.crystal.green { 
    background: #00b894; 
    animation-delay: 0.6s;
}
.crystal.blue { 
    background: #0984e3; 
    animation-delay: 0.8s;
}
.crystal.indigo { 
    background: #6c5ce7; 
    animation-delay: 1s;
}
.crystal.purple { 
    background: #a29bfe; 
    animation-delay: 1.2s;
}

@keyframes crystalFloat {
    0%, 100% { transform: rotate(45deg) translateY(0px); }
    50% { transform: rotate(45deg) translateY(-10px); }
}

/* 故事标签导航样式 */
.story-intro {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.6));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.story-description {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.story-navigation {
    margin-bottom: 30px;
}

.story-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

/* 豆瓣阅读推广区域样式 */
.reading-promotion {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 107, 0.08));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.reading-promotion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(76, 205, 196, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.promotion-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.promotion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.douban-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    animation: bookFloat 3s ease-in-out infinite;
}

@keyframes bookFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(2deg); }
}

.promotion-text h4 {
    color: #ffd700;
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.promotion-text p {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.promotion-text strong {
    color: #4ecdc4;
    font-weight: 600;
}

.promotion-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(76, 205, 196, 0.2));
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.promotion-action {
    text-align: center;
}

.douban-reading-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(145deg, #ff6b6b, #4ecdc4);
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.douban-reading-btn::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: left 0.5s ease;
}

.douban-reading-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.douban-reading-btn:hover::before {
    left: 100%;
}

.douban-reading-btn:hover .btn-arrow {
    transform: translateX(3px);
}

.btn-icon, .btn-arrow {
    transition: transform 0.3s ease;
}

.btn-arrow {
    font-size: 1.2rem;
}

.promotion-note {
    color: #b0b0c8;
    font-size: 0.85rem;
    margin: 8px 0 0 0;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .promotion-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    .promotion-features {
        justify-content: center;
    }
    
    .douban-reading-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* 田历年份导航样式 - 集成式控制条 */
.calendar-controls {
    margin-bottom: 15px;
}

.integrated-control-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.85), rgba(22, 33, 62, 0.7));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    padding: 12px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: fit-content;
}

.integrated-control-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.05), transparent);
    transition: left 0.6s ease;
}

.integrated-control-bar:hover::before {
    left: 100%;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.control-divider {
    width: 1px;
    height: 24px;
    background: linear-gradient(to bottom, transparent, rgba(255, 215, 0, 0.4), transparent);
    margin: 0 8px;
}

/* 统一的控制按钮样式 */
.control-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.1), rgba(76, 205, 196, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #ffd700;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 36px;
    justify-content: center;
}

.control-btn:hover {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.2), rgba(76, 205, 196, 0.1));
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(255, 215, 0, 0.3);
}

.control-btn:active {
    transform: translateY(0) scale(0.95);
}

.control-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.control-btn:hover .control-icon {
    transform: scale(1.2);
}

.control-text {
    font-size: 0.8rem;
    font-weight: 600;
}

/* 年份显示 */
.current-year-display {
    margin: 0 6px;
    text-align: center;
}

.year-value {
    color: #ffd700;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(45deg, #ffd700, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* 今天按钮特殊样式 */
.today-btn {
    background: linear-gradient(145deg, rgba(76, 205, 196, 0.15), rgba(255, 215, 0, 0.1));
    border-color: rgba(76, 205, 196, 0.4);
    color: #4ecdc4;
}

.today-btn:hover {
    background: linear-gradient(145deg, rgba(76, 205, 196, 0.25), rgba(255, 215, 0, 0.15));
    border-color: rgba(76, 205, 196, 0.6);
    color: #4ecdc4;
    box-shadow: 0 3px 12px rgba(76, 205, 196, 0.3);
}

/* 快捷键提示紧凑样式 */
.shortcuts-compact {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shortcuts-label {
    color: #b0b0c8;
    font-size: 0.75rem;
    opacity: 0.8;
    white-space: nowrap;
}

.shortcuts-items {
    display: flex;
    gap: 6px;
}

.shortcut-hint {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #e0e0e0;
    font-size: 0.7rem;
    opacity: 0.8;
}

.shortcut-hint kbd {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 3px;
    padding: 1px 4px;
    font-size: 0.65rem;
    font-family: monospace;
    color: #ffd700;
    min-width: 16px;
    text-align: center;
}

/* 今日信息 */
.today-info .calendar-info {
    color: #b0b0c8;
    font-size: 0.75rem;
    text-align: right;
    line-height: 1.2;
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .integrated-control-bar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 16px;
        justify-content: center;
    }
    
    .control-group {
        flex-shrink: 0;
    }
    
    .today-info {
        order: 1;
        width: 100%;
        margin-top: 8px;
    }
    
    .today-info .calendar-info {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .integrated-control-bar {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        justify-content: center;
        align-items: center;
    }
    
    .control-group {
        justify-content: center;
    }
    
    .year-controls,
    .month-controls,
    .action-controls {
        order: 1;
    }
    
    .shortcuts-display {
        order: 2;
    }
    
    .today-info {
        order: 3;
        margin-top: 0;
    }
    
    .control-divider {
        display: none;
    }
    
    .shortcuts-compact {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    
    .shortcuts-items {
        justify-content: center;
    }
}



.story-tab {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.6));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 12px 24px;
    color: #b0b0c8;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.story-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.story-tab::after {
    content: '\2192'; /* 右箭头符号 */
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #ffd700;
}

.story-tab:hover {
    color: #fff;
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
    padding-right: 32px; /* 为箭头预留空间 */
}

.story-tab:hover::before {
    left: 100%;
}

.story-tab:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(2px);
}

.story-tab.active {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.2), rgba(255, 107, 107, 0.1));
    color: #ffd700;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    padding-right: 32px;
}

.story-tab.active::after {
    opacity: 1;
    content: '\2713'; /* 对勾符号 */
    color: #4ecdc4;
}

/* 故事内容样式 */
.story-content {
    position: relative;
    display: none;
    scroll-margin-top: 120px; /* 为固定导航预留空间 */
}

.story-content.active {
    display: block;
    animation: fadeInUp 0.6s ease-out;
}

.story-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.7));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.story-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.story-header h3 {
    font-size: 2.2rem;
    background: linear-gradient(45deg, #ffd700, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.story-time {
    color: #b0b0c8;
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    margin: 0;
    font-style: italic;
}

/* 故事章节样式 */

.story-section {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.7), rgba(22, 33, 62, 0.5));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.story-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.02) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-section:hover::before {
    opacity: 1;
}

.story-section:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.story-section h4 {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.story-section p {
    color: #e0e0e0;
    line-height: 1.7;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.story-section p:last-child {
    margin-bottom: 0;
}

.story-section strong {
    color: #4ecdc4;
    font-weight: 600;
}

/* 文化主要内容区域 */
.culture-main {
    min-height: 100vh;
    background: linear-gradient(180deg, #0a0a1a 0%, #1a1a2e 100%);
    padding: 0;
}

/* 文化导航标签 */
.culture-nav {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.culture-tabs {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.culture-tabs li {
    flex: 1;
}

.tab-link {
    display: block;
    padding: 15px 20px;
    color: #b0b0c8;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-weight: 500;
}

.tab-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.tab-link.active {
    color: #ffd700;
    border-bottom-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

/* 文化内容区域 */
.culture-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.culture-section {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.culture-section.active {
    display: block;
}

.culture-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #ffd700, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* 地理网格 */
.geography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.geography-card {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.6));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.geography-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.geography-card:hover::before {
    opacity: 1;
}

.geography-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.3);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.geography-card h3 {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.geography-card p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: center;
}

.Rincatian-text {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 社会制度网格 */
.society-grid {
    display: grid;
    gap: 30px;
    margin-top: 2rem;
}

.society-card {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.6));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
}

.society-card h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* 角色列表 */
.character-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.character {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.character:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(5px);
}

.character-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
}

.character-info h4 {
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.character-info p {
    color: #e0e0e0;
    line-height: 1.6;
}

/* 守护者网格 */
.guardian-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 1rem;
}

.guardian {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.guardian:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-3px);
}

.guardian-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.guardian h4 {
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.guardian p {
    color: #e0e0e0;
    font-size: 0.9rem;
}

/* 机构列表 */
.institution-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.institution {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.institution:hover {
    background: rgba(255, 215, 0, 0.1);
}

.institution-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.institution-info h4 {
    color: #ffd700;
    margin-bottom: 0.3rem;
}

.institution-info p {
    color: #e0e0e0;
    line-height: 1.5;
}

/* 魔法系统 */
.magic-grid {
    display: grid;
    gap: 30px;
    margin-top: 2rem;
}

.magic-card {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.6));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
}

.magic-card h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* 彩虹水晶系统 */
.crystal-system {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 1rem;
}

.crystal-row {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.crystal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.crystal-gem {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: 0 0 15px currentColor;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.crystal-item:hover .crystal-gem {
    transform: scale(1.2);
}

.crystal-item.red .crystal-gem { background: #ff4757; }
.crystal-item.orange .crystal-gem { background: #ff7675; }
.crystal-item.yellow .crystal-gem { background: #fdcb6e; }
.crystal-item.green .crystal-gem { background: #00b894; }
.crystal-item.blue .crystal-gem { background: #0984e3; }
.crystal-item.indigo .crystal-gem { background: #6c5ce7; }
.crystal-item.purple .crystal-gem { background: #a29bfe; }

.crystal-item span {
    color: #e0e0e0;
    font-size: 0.8rem;
    text-align: center;
}

/* 武器列表 */
.weapon-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.weapon {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.weapon:hover {
    background: rgba(255, 215, 0, 0.1);
}

.weapon-icon {
    font-size: 2rem;
    width: 50px;
    text-align: center;
}

.weapon h4 {
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.weapon p {
    color: #e0e0e0;
    line-height: 1.5;
}

/* 法术分类 */
.spell-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.spell-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.spell-category h4 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.spell-category ul {
    list-style: none;
    padding: 0;
}

.spell-category li {
    color: #e0e0e0;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spell-category li:last-child {
    border-bottom: none;
}

/* 传说时间线 */
.legend-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 2rem;
}

.legend-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.6));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.legend-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
}

.legend-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    flex-shrink: 0;
}

.legend-content h3 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.legend-content p {
    color: #e0e0e0;
    line-height: 1.6;
}

/* 人物档案 */
.character-profiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.character-profile {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.6));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
}

.character-profile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border: 3px solid;
}

.character-profile.hero .profile-avatar { border-color: #ffd700; background: linear-gradient(45deg, #ffd700, #ff6b6b); }
.character-profile.ally .profile-avatar { border-color: #4ecdc4; background: linear-gradient(45deg, #4ecdc4, #45b7d1); }
.character-profile.neutral .profile-avatar { border-color: #95a5a6; background: linear-gradient(45deg, #95a5a6, #74b9ff); }
.character-profile.villain .profile-avatar { border-color: #e74c3c; background: linear-gradient(45deg, #e74c3c, #8e44ad); }
.character-profile.sage .profile-avatar { border-color: #9b59b6; background: linear-gradient(45deg, #9b59b6, #3498db); }

.profile-info h3 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.character-details p {
    color: #e0e0e0;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.character-details strong {
    color: #ffd700;
}

/* 历史时间线 */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 2rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #ffd700, #4ecdc4, #ff6b6b);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    position: relative;
}

.timeline-date {
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    color: #1a1a2e;
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    min-width: 100px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.6));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
}

.timeline-content h3 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: #e0e0e0;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .culture-tabs {
        flex-wrap: wrap;
    }
    
    .tab-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .geography-grid {
        grid-template-columns: 1fr;
    }
    
    .character-profiles {
        grid-template-columns: 1fr;
    }
    
    .character-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .timeline-date {
        align-self: flex-start;
        margin-left: 10px;
    }
    
    .crystal-row {
        flex-wrap: wrap;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 田历历法样式 */
.calendar-intro {
    margin-bottom: 2rem;
}

.calendar-description {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.6));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 2rem;
}

.calendar-description h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.calendar-description p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.calendar-rules {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
}

.calendar-rules h4 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.calendar-rules ul {
    list-style: none;
    padding: 0;
}

.calendar-rules li {
    color: #e0e0e0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-rules li:last-child {
    border-bottom: none;
}

.calendar-rules strong {
    color: #ffd700;
}

/* 日历容器 */
.calendar-container {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.6));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 2rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.calendar-nav {
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    color: #1a1a2e;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.calendar-title {
    text-align: center;
    flex: 1;
}

.calendar-title h3 {
    color: #ffd700;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.calendar-subtitle {
    color: #4ecdc4;
    font-size: 1rem;
    margin: 0;
    opacity: 0.8;
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-info {
    color: #e0e0e0;
    font-size: 0.9rem;
}

/* 日历网格 */
.calendar-grid {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: linear-gradient(45deg, #ffd700, #4ecdc4);
}

.weekday {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    color: #1a1a2e;
    font-size: 0.9rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 46, 0.8);
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.calendar-day:hover {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    transform: scale(1.05);
}

.calendar-day.today {
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    color: #1a1a2e;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.calendar-day.other-month {
    color: #666;
    background: rgba(26, 26, 46, 0.4);
}

.calendar-day.festival {
    background: linear-gradient(45deg, #9b59b6, #3498db);
    color: #fff;
}

.calendar-day.festival::after {
    content: '★';
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 0.7rem;
    color: #ffd700;
}

/* 图例 */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.legend-color.today {
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
}

.legend-color.current-month {
    background: rgba(26, 26, 46, 0.8);
}

.legend-color.other-month {
    background: rgba(26, 26, 46, 0.4);
}

.legend-color.festival {
    background: linear-gradient(45deg, #9b59b6, #3498db);
}

.legend-item span {
    color: #e0e0e0;
    font-size: 0.9rem;
}

/* 特殊日期 */
.calendar-festivals {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.6));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
}

.calendar-festivals h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.festivals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.festival-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #9b59b6;
    transition: all 0.3s ease;
}

.festival-item:hover {
    background: rgba(155, 89, 182, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.2);
}

.festival-date {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.festival-name {
    color: #4ecdc4;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.festival-desc {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 响应式设计 - 田历 */
@media (max-width: 768px) {
    .calendar-container {
        padding: 20px;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .calendar-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .calendar-title h3 {
        font-size: 1.5rem;
    }
    
    .calendar-controls {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .weekday {
        padding: 10px;
        font-size: 0.8rem;
    }
    
    .calendar-day {
        font-size: 0.9rem;
    }
    
    .calendar-legend {
        gap: 15px;
    }
    
    .festivals-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-description {
        padding: 20px;
    }
}

/* 日期详情模态框样式 */
.date-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.date-details-content {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.date-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.date-details-header h3 {
    color: #ffd700;
    font-size: 1.8rem;
    margin: 0;
}

.close-btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #1a1a2e;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
}

.date-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.date-info-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.date-info-item:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.3);
}

.date-info-item.festival-info {
    background: linear-gradient(145deg, rgba(155, 89, 182, 0.2), rgba(52, 152, 219, 0.2));
    border-color: rgba(155, 89, 182, 0.5);
}

.date-info-item.festival-info:hover {
    background: linear-gradient(145deg, rgba(155, 89, 182, 0.3), rgba(52, 152, 219, 0.3));
}

.info-label {
    color: #4ecdc4;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.info-value {
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.info-desc {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .date-details-content {
        padding: 20px;
        margin: 20px;
    }
    
    .date-details-header h3 {
        font-size: 1.5rem;
    }
    
    .date-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-value {
        font-size: 1rem;
    }
}
