/* 通用样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1b26, #24273a);
    color: #e0e0e0;
    min-height: 100vh;
}

/* 游戏容器 */
.game-container {
    display: flex;
    min-height: 100vh;
    max-width: 100%;
}

/* 侧边栏 */
.sidebar {
    width: 260px;
    background: rgba(20, 20, 25, 0.9);
    border-right: 1px solid #2a2a35;
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.game-logo {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2a2a35;
}

.game-logo h1 {
    margin: 0;
    color: #d4b48c;
    font-size: 24px;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 12px;
    color: #888;
    font-style: italic;
}

/* 玩家信息 */
.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2a2a35;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #2a2a35;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-details {
    flex: 1;
}

.player-name {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #d4b48c;
}

.player-level {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 8px;
}

.cultivation-bar {
    height: 8px;
    background: #1a1a22;
    border-radius: 4px;
    position: relative;
    margin-bottom: 5px;
    overflow: hidden;
}

.cultivation-bar .progress {
    height: 100%;
    background: linear-gradient(to right, #594a2d, #7a6a4d);
    border-radius: 4px;
}

.cultivation-bar span {
    font-size: 12px;
    color: #aaa;
}

/* 主导航 */
.main-nav {
    flex: 1;
    margin-bottom: 20px;
    overflow-y: auto;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav li {
    margin-bottom: 5px;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    text-decoration: none;
    color: #aaa;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    background: rgba(40, 40, 50, 0.5);
    color: #d4b48c;
}

.main-nav li.active a {
    background: linear-gradient(to right, #2a2a35, #1a1a25);
    color: #d4b48c;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.main-nav i {
    width: 20px;
    text-align: center;
}

/* 资源区域 */
.resources {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background: rgba(25, 25, 30, 0.7);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #2a2a35;
}

.resource {
    font-size: 13px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 5px;
}

.resource i {
    width: 16px;
    text-align: center;
    color: #d4b48c;
}

/* 主内容区 */
.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    position: relative;
    background: rgba(26, 27, 38, 0.95);
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 20, 0.3);
    pointer-events: none;
}

.header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a2a35;
}

.current-location {
    font-size: 14px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: rgba(30, 30, 40, 0.7);
    border: 1px solid #2a2a35;
    color: #aaa;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: rgba(40, 40, 50, 0.7);
    color: #d4b48c;
}

.dashboard {
    position: relative;
    z-index: 1;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-header h2 {
    margin: 0;
    color: #d4b48c;
    font-size: 22px;
}

.game-time {
    font-size: 14px;
    color: #aaa;
}

/* 通用组件 */
.progress-bar {
    height: 10px;
    background: rgba(30, 30, 40, 0.7);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #5a7a9a, #3a5a7a);
    border-radius: 5px;
}

/* 进度类样式 */
.progress-fill-28 { width: 28%; }
.progress-fill-35 { width: 35%; }
.progress-fill-40 { width: 40%; }
.progress-fill-45 { width: 45%; }
.progress-fill-48 { width: 48%; }
.progress-fill-60 { width: 60%; }
.progress-fill-65 { width: 65%; }
.progress-fill-72 { width: 72%; }

/* 列表样式 */
.requirement-list {
    padding-left: 20px;
}

.requirement-list li {
    padding: 8px 0;
    color: #7f8c8d;
}

/* 统计卡片 */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: rgba(30, 30, 40, 0.7);
    border: 1px solid #2a2a35;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 15px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(40, 40, 50, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4b48c;
    font-size: 18px;
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    margin: 0 0 10px 0;
    color: #d4b48c;
    font-size: 16px;
}

.stat-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stat-info li {
    color: #aaa;
    margin-bottom: 5px;
    font-size: 14px;
}

.current-activity {
    margin-top: 10px;
}

.current-activity p {
    margin: 5px 0;
    color: #aaa;
    font-size: 14px;
}

.highlight {
    color: #d4b48c;
    font-weight: bold;
}

/* 章节标题 */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 25px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a2a35;
    color: #d4b48c;
    font-size: 18px;
}

.section-title i {
    color: #d4b48c;
}

/* 任务系统 */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.task-card {
    background: rgba(30, 30, 40, 0.7);
    border: 1px solid #2a2a35;
    border-radius: 8px;
    padding: 15px;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.task-type {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
}

.task-type.daily {
    background: #3498db;
}

.task-type.main {
    background: #e74c3c;
}

.task-type.event {
    background: #9b59b6;
}

.task-progress {
    font-size: 12px;
    color: #aaa;
}

.task-card h4 {
    margin: 0 0 8px 0;
    color: #d4b48c;
    font-size: 16px;
}

.task-card p {
    margin: 0 0 12px 0;
    color: #aaa;
    font-size: 14px;
    line-height: 1.4;
}

.task-rewards {
    display: flex;
    gap: 12px;
}

.task-rewards span {
    font-size: 12px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 5px;
}

.task-rewards i {
    color: #d4b48c;
}

/* 最新动态 */
.news-list {
    background: rgba(30, 30, 40, 0.7);
    border: 1px solid #2a2a35;
    border-radius: 8px;
    overflow: hidden;
}

.news-item {
    display: flex;
    padding: 12px 15px;
    border-bottom: 1px solid #2a2a35;
}

.news-item:last-child {
    border-bottom: none;
}

.news-time {
    font-size: 12px;
    color: #888;
    width: 60px;
    flex-shrink: 0;
}

.news-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
    font-size: 14px;
}

.news-icon {
    color: #d4b48c;
    width: 16px;
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .game-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 10px;
    }
    
    .resources {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .resources {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .game-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .tasks-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .news-time {
        width: auto;
    }
} 