/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: #fff;
    overflow-x: hidden;
    background: linear-gradient(180deg, #0c1445 0%, #1a2456 50%, #2d3561 100%);
    min-height: 100vh;
    position: relative;
}

/* 星空背景 */
.stars, .stars2, .stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.stars {
    background: transparent;
    box-shadow:
        100px 100px #fff, 200px 150px #fff, 300px 50px #fff,
        400px 200px #fff, 500px 100px #fff, 600px 250px #fff,
        700px 150px #fff, 800px 50px #fff, 900px 200px #fff,
        1000px 100px #fff, 1100px 250px #fff, 1200px 150px #fff;
    width: 1px;
    height: 1px;
    animation: animateStars 50s linear infinite;
}

.stars2 {
    background: transparent;
    box-shadow:
        150px 200px #fff, 250px 100px #fff, 350px 250px #fff,
        450px 150px #fff, 550px 50px #fff, 650px 200px #fff,
        750px 100px #fff, 850px 250px #fff, 950px 150px #fff;
    width: 2px;
    height: 2px;
    animation: animateStars 100s linear infinite;
}

.stars3 {
    background: transparent;
    box-shadow:
        200px 50px #fff, 300px 200px #fff, 400px 100px #fff,
        500px 250px #fff, 600px 150px #fff, 700px 50px #fff;
    width: 3px;
    height: 3px;
    animation: animateStars 150s linear infinite;
}

@keyframes animateStars {
    from { transform: translateY(0px); }
    to { transform: translateY(-2000px); }
}

/* 月亮效果 */
.moon {
    position: fixed;
    top: 10%;
    right: 15%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at 30% 30%, #fff, #e0e0e0);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.8),
                0 0 100px rgba(255, 255, 255, 0.5);
    animation: moonGlow 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes moonGlow {
    0%, 100% {
        box-shadow: 0 0 60px rgba(255, 255, 255, 0.8),
                   0 0 100px rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 80px rgba(255, 255, 255, 1),
                   0 0 120px rgba(255, 255, 255, 0.7);
    }
}

/* 萤火虫效果 */
.firefly {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #ffeb3b;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffeb3b;
    animation: fly 10s infinite;
    z-index: 1;
    opacity: 0;
}

@keyframes fly {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
    50% {
        transform: translate(100px, -100px);
    }
}

/* 顶部导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(12, 20, 69, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid rgba(255, 235, 59, 0.3);
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.nav-logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffeb3b;
    text-shadow: 0 0 20px rgba(255, 235, 59, 0.6);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-menu li a:hover {
    background: rgba(255, 235, 59, 0.1);
    transform: translateY(-2px);
}

.nav-menu li a.active {
    background: rgba(255, 235, 59, 0.15);
    border-bottom: 2px solid #ffeb3b;
}

/* 主体容器 */
.main-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 80px auto 0;
    display: flex;
    gap: 20px;
    padding: 20px;
}

/* 侧边栏 */
.sidebar {
    width: 250px;
    background: rgba(26, 36, 86, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    position: sticky;
    top: 100px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 侧边栏滚动条样式 */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(45, 53, 97, 0.3);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 235, 59, 0.5);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 235, 59, 0.7);
}

.sidebar-section h3 {
    color: #ffeb3b;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid rgba(255, 235, 59, 0.3);
    padding-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section ul li {
    margin-bottom: 10px;
}

.sidebar-section ul li a {
    color: #ccc;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sidebar-section ul li a:hover {
    background: rgba(255, 235, 59, 0.2);
    color: #fff;
    transform: translateX(5px);
}

.sidebar-section ul li a.active {
    background: rgba(255, 235, 59, 0.3);
    color: #fff;
}

/* 内容区域 */
.content {
    flex: 1;
    background: rgba(26, 36, 86, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 30px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-height: 600px;
}

.content h1 {
    color: #ffeb3b;
    margin-bottom: 20px;
    font-size: 32px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.8),
                 0 0 60px rgba(255, 235, 59, 0.5);
}

.content h2 {
    color: #ffd54f;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 24px;
    border-left: 4px solid #ffeb3b;
    padding-left: 15px;
    text-shadow: 0 0 15px rgba(255, 235, 59, 0.5);
}

.content h3 {
    color: #ffe082;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 20px;
}

.content p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #ddd;
}

.content ul, .content ol {
    margin-left: 30px;
    margin-bottom: 15px;
    color: #ddd;
}

.content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.content table th,
.content table td {
    border: 1px solid rgba(255, 235, 59, 0.3);
    padding: 12px;
    text-align: left;
}

.content table th {
    background: rgba(255, 235, 59, 0.2);
    color: #ffeb3b;
    font-weight: bold;
}

.content table tr:hover {
    background: rgba(255, 235, 59, 0.05);
}

/* 卡片样式 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.card {
    background: rgba(45, 53, 97, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 235, 59, 0.2);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 235, 59, 0.2);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(255, 235, 59, 0.3);
    border-color: #ffeb3b;
}

.card-title {
    color: #ffeb3b;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
    text-shadow: 0 0 8px rgba(255, 235, 59, 0.5);
}

.card-content {
    color: #ddd;
    line-height: 1.6;
    font-size: 14px;
}

.card-icon {
    font-size: 40px;
    margin-bottom: 15px;
    text-align: center;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, #ffeb3b, #ffd54f);
    box-shadow: 0 4px 15px rgba(255, 235, 59, 0.3);
    color: #0c1445;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 235, 59, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, #ffe082, #ffecb3);
    box-shadow: 0 4px 15px rgba(255, 224, 130, 0.3);
    color: #0c1445;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 224, 130, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid #ffeb3b;
    color: #ffeb3b;
}

.btn-outline:hover {
    background: rgba(255, 235, 59, 0.2);
    transform: translateY(-2px);
}

.btn-glow {
    background: linear-gradient(135deg, #ffeb3b, #ffd54f);
    color: #0c1445;
    box-shadow:
        0 0 20px rgba(255, 235, 59, 0.6),
        0 0 40px rgba(255, 235, 59, 0.4);
    animation: pulseYellow 2s infinite;
}

@keyframes pulseYellow {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(255, 235, 59, 0.6),
            0 0 40px rgba(255, 235, 59, 0.4);
    }
    50% {
        box-shadow:
            0 0 30px rgba(255, 235, 59, 0.8),
            0 0 60px rgba(255, 235, 59, 0.6);
    }
}

/* 徽章/标签样式 */
.badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 235, 59, 0.3);
    border: 1px solid rgba(255, 235, 59, 0.5);
    border-radius: 20px;
    font-size: 12px;
    color: #ffeb3b;
    font-weight: bold;
}

.badge-rare {
    background: rgba(65, 105, 225, 0.3);
    border-color: rgba(65, 105, 225, 0.6);
    color: #4169e1;
}

.badge-epic {
    background: rgba(147, 51, 234, 0.3);
    border-color: rgba(147, 51, 234, 0.6);
    color: #9333ea;
}

.badge-legendary {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 140, 0, 0.3));
    border-color: #ffa500;
    color: #ffd700;
}

.badge-hot {
    background: rgba(255, 69, 0, 0.3);
    border-color: rgba(255, 69, 0, 0.6);
    color: #ff4500;
}

/* 提示框样式 */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid;
}

.alert-info {
    background: rgba(255, 235, 59, 0.1);
    border-color: #ffeb3b;
    color: #ddd;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
    color: #ddd;
}

.alert-warning {
    background: rgba(255, 152, 0, 0.15);
    border-color: #ff9800;
    color: #ddd;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ddd;
}

/* 进度条样式 */
.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(45, 53, 97, 0.4);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 235, 59, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffeb3b, #ffd54f);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
}

.progress-success {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.progress-warning {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

/* 时间轴样式 */
.timeline {
    margin: 20px 0;
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 25px;
    border-left: 2px solid rgba(255, 235, 59, 0.5);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffeb3b;
    box-shadow: 0 0 10px rgba(255, 235, 59, 0.8);
}

.timeline-item h3 {
    color: #ffd54f;
    margin-bottom: 8px;
}

.timeline-item p {
    color: #ccc;
    margin: 0;
}

/* 发光文字效果 */
.glow-text {
    color: #ffeb3b;
    font-size: 24px;
    font-weight: bold;
    text-shadow:
        0 0 10px rgba(255, 235, 59, 0.8),
        0 0 20px rgba(255, 235, 59, 0.6),
        0 0 30px rgba(255, 235, 59, 0.4);
}

/* 分隔线样式 */
.divider {
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 235, 59, 0.8),
        transparent
    );
    margin: 30px 0;
}

/* 工具提示样式 */
.tooltip {
    position: relative;
    cursor: help;
    color: #ffeb3b;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: rgba(26, 36, 86, 0.95);
    border: 1px solid rgba(255, 235, 59, 0.5);
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    font-size: 12px;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
}

/* 加载动画样式 */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 235, 59, 0.3);
    border-top-color: #ffeb3b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 任务卡片样式 */
.quest-card {
    background: rgba(45, 53, 97, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 235, 59, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 235, 59, 0.2);
}

.quest-card:hover {
    border-color: #ffeb3b;
    box-shadow: 0 5px 25px rgba(255, 235, 59, 0.3);
    transform: translateX(5px);
}

.quest-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 235, 59, 0.3);
}

.quest-icon {
    font-size: 36px;
    min-width: 50px;
    text-align: center;
}

.quest-title {
    flex: 1;
}

.quest-title h3 {
    color: #ffeb3b;
    font-size: 1.5em;
    margin: 0 0 5px 0;
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
}

.quest-type {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255, 235, 59, 0.2);
    border: 1px solid rgba(255, 235, 59, 0.4);
    border-radius: 12px;
    font-size: 12px;
    color: #ffd54f;
}

.quest-description {
    color: #d0d0d0;
    line-height: 1.8;
    margin-bottom: 15px;
}

.quest-steps {
    margin: 15px 0;
}

.quest-steps h4 {
    color: #ffe082;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.quest-steps ul {
    list-style: none;
    padding-left: 0;
}

.quest-steps li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 8px;
    color: #d0d0d0;
}

.quest-steps li::before {
    content: '▸';
    position: absolute;
    left: 5px;
    color: #ffeb3b;
}

.quest-rewards {
    background: rgba(255, 235, 59, 0.1);
    border-left: 4px solid #ffeb3b;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.quest-rewards h4 {
    color: #ffeb3b;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.quest-rewards-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.reward-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(45, 53, 97, 0.6);
    border: 1px solid rgba(255, 235, 59, 0.3);
    border-radius: 15px;
    font-size: 14px;
    color: #ffd54f;
}

/* NPC卡片样式 */
.npc-card {
    background: rgba(45, 53, 97, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 235, 59, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.npc-card:hover {
    border-color: #ffeb3b;
    box-shadow: 0 5px 20px rgba(255, 235, 59, 0.2);
    transform: translateX(5px);
}

.npc-card h4 {
    color: #ffeb3b;
    font-size: 1.3em;
    margin-bottom: 10px;
}

/* 副本卡片样式 */
.dungeon-card {
    background: rgba(45, 53, 97, 0.6);
    border: 2px solid rgba(255, 235, 59, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.dungeon-card:hover {
    border-color: #ffeb3b;
    box-shadow: 0 5px 25px rgba(255, 235, 59, 0.3);
    transform: translateY(-3px);
}

.dungeon-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 235, 59, 0.3);
}

.dungeon-icon {
    font-size: 40px;
}

.dungeon-title h3 {
    color: #ffeb3b;
    font-size: 1.6em;
    margin: 0;
}

.dungeon-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.dungeon-info-item {
    padding: 8px 12px;
    background: rgba(255, 235, 59, 0.1);
    border-radius: 6px;
    font-size: 14px;
}

/* 文字颜色类 */
.text-gray {
    color: #9ca3af;
}

.text-yellow {
    color: #ffeb3b;
}

.text-orange {
    color: #ff9800;
}

.text-red {
    color: #ef4444;
}

.text-green {
    color: #22c55e;
}

.text-cyan {
    color: #06b6d4;
}

.text-blue {
    color: #4169e1;
}

.text-purple {
    color: #9333ea;
}

.text-gold {
    color: #ffd700;
}

.text-white {
    color: #ffffff;
}

/* 背景高亮类 */
.bg-yellow {
    background: rgba(255, 235, 59, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

.bg-orange {
    background: rgba(255, 152, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

.bg-red {
    background: rgba(239, 68, 68, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

.bg-green {
    background: rgba(34, 197, 94, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

/* 难度卡片样式 */
.difficulty-easy {
    border-left: 4px solid #22c55e;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(26, 36, 86, 0.7) 100%);
}

.difficulty-easy:hover {
    border-left-color: #16a34a;
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3);
}

.difficulty-medium {
    border-left: 4px solid #ff9800;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(26, 36, 86, 0.7) 100%);
}

.difficulty-medium:hover {
    border-left-color: #f57c00;
    box-shadow: 0 8px 32px rgba(255, 152, 0, 0.3);
}

.difficulty-hard {
    border-left: 4px solid #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(26, 36, 86, 0.7) 100%);
}

.difficulty-hard:hover {
    border-left-color: #dc2626;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
}

.difficulty-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    font-size: 14px;
    color: #e0e0e0;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

/* 副本列表样式 */
.dungeon-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

/* 副本项目样式 */
.dungeon-item {
    background: rgba(26, 36, 86, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    transition: all 0.3s ease;
}

.dungeon-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(255, 235, 59, 0.2);
    border-color: rgba(255, 235, 59, 0.3);
}

.dungeon-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.dungeon-name {
    font-size: 18px;
    font-weight: bold;
    color: #ffeb3b;
}

.dungeon-level {
    background: rgba(255, 235, 59, 0.2);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    color: #ffeb3b;
    font-weight: bold;
}

.dungeon-desc {
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.dungeon-desc p {
    margin: 0 0 8px 0;
    word-wrap: break-word;
    word-break: break-word;
}

.dungeon-desc p:last-child {
    margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }

    .card-container {
        grid-template-columns: 1fr;
    }
}
