* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: #e94560;
    min-height: 100vh;
    overflow-x: hidden;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid #e94560;
    margin-bottom: 30px;
}

.header-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

/* 确保资源区域在第二行完整显示 */
.game-header {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.game-header h1 {
    margin-bottom: 10px;
}

.restart-btn {
    padding: 8px 16px;
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* 保存游戏菜单样式 */
.save-menu-container {
    position: relative;
    display: inline-block;
}

.save-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #e94560;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 1000;
    display: none;
    min-width: 150px;
    animation: slideDown 0.2s ease-out;
}

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

.save-menu.show {
    display: block;
}

.save-menu-item {
    display: block;
    width: 100%;
    padding: 12px 15px;
    background: transparent;
    color: #e94560;
    border: none;
    border-bottom: 1px solid rgba(233, 69, 96, 0.3);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

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

.save-menu-item:hover {
    background: rgba(233, 69, 96, 0.2);
    transform: translateX(5px);
}

.resources {
    display: flex;
    gap: 20px;
}

.game-header h1 {
    font-size: 2.5rem;
    text-shadow: 0 0 20px #e94560;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px #e94560; }
    to { text-shadow: 0 0 30px #e94560, 0 0 40px #e94560; }
}

.resource {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 13px;
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid #e94560;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-width: 52px;
    justify-content: center;
    box-shadow: 0 1px 5px rgba(233, 69, 96, 0.15);
}

.resource:hover {
    background: rgba(233, 69, 96, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.3);
}

.resource-icon {
    font-size: 0.9rem;
    filter: drop-shadow(0 0 1px rgba(233, 69, 96, 0.5));
}

.resource-amount {
    font-weight: bold;
    font-size: 0.8rem;
    text-shadow: 0 0 2px rgba(233, 69, 96, 0.5);
}

/* 不同资源类型的颜色区分 */
.resource#wood-display {
    border-color: #8B4513;
    background: rgba(139, 69, 19, 0.15);
}

.resource#wood-display:hover {
    background: rgba(139, 69, 19, 0.25);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.resource#food-display {
    border-color: #2E8B57;
    background: rgba(46, 139, 87, 0.15);
}

.resource#food-display:hover {
    background: rgba(46, 139, 87, 0.25);
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.3);
}

.resource#stone-display {
    border-color: #696969;
    background: rgba(105, 105, 105, 0.15);
}

.resource#stone-display:hover {
    background: rgba(105, 105, 105, 0.25);
    box-shadow: 0 5px 15px rgba(105, 105, 105, 0.3);
}

.resource#population-display {
    border-color: #FF6B6B;
    background: rgba(255, 107, 107, 0.15);
}

.resource#population-display:hover {
    background: rgba(255, 107, 107, 0.25);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.resource#iron-display {
    border-color: #4682B4;
    background: rgba(70, 130, 180, 0.15);
}

.resource#iron-display:hover {
    background: rgba(70, 130, 180, 0.25);
    box-shadow: 0 5px 15px rgba(70, 130, 180, 0.3);
}

.resource#tools-display {
    border-color: #FFA500;
    background: rgba(255, 165, 0, 0.15);
}

.resource#tools-display:hover {
    background: rgba(255, 165, 0, 0.25);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.3);
}

.resource#leather-display {
    border-color: #8B4513;
    background: rgba(139, 69, 19, 0.15);
}

.resource#leather-display:hover {
    background: rgba(139, 69, 19, 0.25);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.resource#herbs-display {
    border-color: #32CD32;
    background: rgba(50, 205, 50, 0.15);
}

.resource#herbs-display:hover {
    background: rgba(50, 205, 50, 0.25);
    box-shadow: 0 5px 15px rgba(50, 205, 50, 0.3);
}

.resource#gold-display {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.15);
}

.resource#gold-display:hover {
    background: rgba(255, 215, 0, 0.25);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* 资源容器样式优化 */
.resources {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.game-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    min-height: 60vh;
}

.story-panel {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #e94560;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

/* 天气显示样式 */
.weather-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid #e94560;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 20px;
    animation: weatherGlow 2s ease-in-out infinite alternate;
    justify-content: center;
}

/* 天气特效样式 */
.weather-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2100;
    overflow: hidden;
}

/* 下雨特效 */
.weather-effects.rainy {
    background: linear-gradient(to bottom, rgba(174, 194, 224, 0.2) 0%, rgba(174, 194, 224, 0.5) 100%);
}

.rainy .drop {
    position: absolute;
    background: rgba(174, 194, 224, 0.6);
    border-radius: 50%;
    width: 2px;
    height: 15px;
    animation: rain 0.5s linear infinite;
}

@keyframes rain {
    0% {
        transform: translateY(-10px);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* 下雪特效 */
.weather-effects.snowy {
    background: rgba(255, 255, 255, 0.1);
}

.snowy .flake {
    position: absolute;
    background: white;
    border-radius: 50%;
    width: 4px;
    height: 4px;
    animation: snow 3s linear infinite;
}

@keyframes snow {
    0% {
        transform: translateY(-10px) translateX(0px);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(50px);
        opacity: 0;
    }
}

/* 暴雪特效 - 雪花更多更密集 */
.weather-effects.stormy {
    background: rgba(255, 255, 255, 0.2);
}

.stormy .flake {
    position: absolute;
    background: white;
    border-radius: 50%;
    width: 6px;
    height: 6px;
    animation: stormy 2s linear infinite;
}

@keyframes stormy {
    0% {
        transform: translateY(-10px) translateX(0px);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(-100px);
        opacity: 0;
    }
}

/* 多云特效 */
.weather-effects.cloudy {
    background: rgba(200, 200, 200, 0.3);
}

.cloudy .cloud {
    position: absolute;
    background: rgba(200, 200, 200, 0.8);
    border-radius: 50px;
    width: 100px;
    height: 50px;
    animation: cloudy 20s linear infinite;
}

@keyframes cloudy {
    0% {
        transform: translateX(-100px) translateY(100px);
    }
    100% {
        transform: translateX(100vw) translateY(100px);
    }
}

/* 雾天特效 */
.weather-effects.foggy {
    background: linear-gradient(to bottom, rgba(174, 194, 224, 0.3) 0%, rgba(174, 194, 224, 0.6) 50%, rgba(174, 194, 224, 0.3) 100%);
    animation: fog 5s ease-in-out infinite alternate;
}

@keyframes fog {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 0.8;
    }
}

/* 晴天特效 */
.weather-effects.clear {
    background: radial-gradient(circle at 50% -20%, rgba(255, 255, 0, 0.2) 0%, transparent 50%);
}

/* 阳光动画 */
@keyframes sunshine {
    from { transform: scale(1); opacity: 0.8; }
    to { transform: scale(1.1); opacity: 1; }
}

@keyframes weatherGlow {
    from { box-shadow: 0 0 5px rgba(233, 69, 96, 0.2); }
    to { box-shadow: 0 0 15px rgba(233, 69, 96, 0.4); }
}

.weather-icon {
    font-size: 2rem;
    line-height: 1;
}

.weather-details {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.season-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e94560;
}

.weather-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e94560;
}

.weather-temp {
    font-size: 1rem;
    color: #c8e6c9;
    opacity: 0.9;
    font-weight: bold;
}

.game-day {
    font-size: 1rem;
    color: #c8e6c9;
    opacity: 0.9;
}

/* 健康状态样式 */
.health-container {
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid #e94560;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.health-title {
    font-weight: bold;
    margin-bottom: 15px;
    color: #e94560;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.health-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.health-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.stat-label {
    opacity: 0.8;
    color: #c8e6c9;
}

.stat-value {
    font-weight: bold;
    color: #e94560;
}

/* 故事线面板样式 */
.storyline-panel {
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid #e94560;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.storyline-panel h3 {
    color: #e94560;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.storyline-content {
    font-size: 0.95rem;
    line-height: 1.5;
}

.current-task {
    margin-bottom: 8px;
    font-weight: bold;
    color: #4a90e2;
}

.task-description {
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    border-left: 3px solid #4a90e2;
    color: #c8e6c9;
}

.task-conditions {
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    border-left: 3px solid #4caf50;
    color: #c8e6c9;
}

.condition-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.condition-item:last-child {
    margin-bottom: 0;
}

.condition-label {
    opacity: 0.8;
}

.condition-progress {
    color: #4caf50;
    font-weight: bold;
}

.condition-progress.completed {
    color: #ffc107;
}

.branch-info {
    margin-top: 10px;
    padding: 8px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 5px;
    color: #64b5f6;
    font-weight: bold;
}

/* 任务面板样式 */
.task-panel {
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid #e94560;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.task-panel h3 {
    color: #e94560;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.no-tasks {
    color: #c8e6c9;
    text-align: center;
    opacity: 0.7;
    font-style: italic;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(233, 69, 96, 0.3);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.task-item:hover {
    background: rgba(233, 69, 96, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.task-name {
    color: #e94560;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.task-description {
    color: #c8e6c9;
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.task-progress {
    color: #81c784;
    font-size: 0.85rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.task-rewards {
    color: #ffb74d;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 15px;
}

/* 任务操作按钮样式 */
.task-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(233, 69, 96, 0.3);
}

.task-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    flex: 1;
    min-width: 80px;
}

.accept-btn {
    background: linear-gradient(45deg, #4caf50, #8bc34a);
    color: white;
}

.reject-btn {
    background: linear-gradient(45deg, #f44336, #ef5350);
    color: white;
}

.task-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* 任务面板标题样式 */
.task-panel h4 {
    color: #e94560;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.task-panel h4:first-of-type {
    margin-top: 20px;
}

.story-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(233, 69, 96, 0.05) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.story-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    animation: typewriter 2s ease-in-out;
}

@keyframes typewriter {
    from { width: 0; overflow: hidden; }
    to { width: 100%; }
}

.fire-container {
    text-align: center;
    position: relative;
    z-index: 1;
}

.fire {
    font-size: 4rem;
    display: inline-block;
    animation: flicker 1.5s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 20px orange);
}

@keyframes flicker {
    0% { transform: scale(1) rotate(-2deg); opacity: 0.8; }
    50% { transform: scale(1.1) rotate(1deg); opacity: 1; }
    100% { transform: scale(0.95) rotate(-1deg); opacity: 0.9; }
}

.fire-status {
    margin-top: 15px;
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.8;
}

.village-panel {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(233, 69, 96, 0.3);
}

.village-panel h3 {
    color: #e94560;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.village-info {
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid #e94560;
    border-radius: 8px;
    padding: 15px;
}

.villager-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(233, 69, 96, 0.3);
}

.villager-type:last-child {
    border-bottom: none;
}

.villager-type span:first-child {
    color: #c8e6c9;
}

.villager-type span:last-child {
    color: #f27121;
    font-weight: bold;
}

.actions-panel {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #e94560;
    border-radius: 12px;
    padding: 30px;
    height: auto;
    max-height: none;
    overflow-y: visible;
}

.action-section {
    margin-bottom: 30px;
}

.action-section h3 {
    color: #e94560;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.action-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #e94560, #f27121);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-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;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

.buildings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.building-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid #e94560;
    border-radius: 8px;
    margin-bottom: 10px;
}

.building-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.building-name {
    font-weight: bold;
    font-size: 1.1rem;
    white-space: nowrap;
}

.building-cost {
    font-size: 0.9rem;
    opacity: 0.8;
    white-space: nowrap;
}

.building-description {
    font-size: 0.85rem;
    opacity: 0.7;
    font-style: italic;
}

.building-count {
    font-weight: bold;
    color: #f27121;
    white-space: nowrap;
    text-align: center;
    min-width: 60px;
}

.building-item .action-btn {
    margin: 0;
    min-width: 80px;
    padding: 10px 15px;
    font-size: 0.9rem;
}

.notifications {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    max-width: 300px;
}

/* 日志按钮样式 */
.log-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: linear-gradient(45deg, #e94560, #f27121);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.log-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* 通知日志面板样式 */
.notification-log {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1002;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #e94560;
    border-radius: 12px;
    width: 400px;
    max-height: 500px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e94560;
}

.log-header h3 {
    color: #e94560;
    margin: 0;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-log-btn {
    background: none;
    border: none;
    color: #e94560;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-log-btn:hover {
    background: rgba(233, 69, 96, 0.2);
    transform: scale(1.1);
}

.log-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* 日志内容项样式 */
.log-item {
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid rgba(233, 69, 96, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.log-timestamp {
    color: #f27121;
    font-size: 0.8rem;
    margin-bottom: 5px;
    opacity: 0.8;
}

.log-message {
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.5;
}

.log-item:hover {
    background: rgba(233, 69, 96, 0.15);
    transform: translateX(5px);
}

/* 日志滚动条样式 */
.log-content::-webkit-scrollbar {
    width: 8px;
}

.log-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.log-content::-webkit-scrollbar-thumb {
    background: #e94560;
    border-radius: 4px;
}

.log-content::-webkit-scrollbar-thumb:hover {
    background: #f27121;
}

.notification {
    background: rgba(233, 69, 96, 0.9);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-out 2.7s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

.village-info {
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid #e94560;
    border-radius: 8px;
    padding: 20px;
}

.villager-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(233, 69, 96, 0.3);
}

.villager-type:last-child {
    border-bottom: none;
}

/* 建造界面样式 */
.building-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4a2c2a, #5d3a37, #704843);
    z-index: 2000;
    overflow-y: auto;
}

.building-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.building-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid #d4a574;
    margin-bottom: 30px;
}

.building-header h2 {
    color: #d4a574;
    font-size: 2rem;
    text-shadow: 0 0 15px #d4a574;
}

.building-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.building-scene {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #d4a574;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.scene-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #f4e4bc;
    margin-bottom: 30px;
}

.workshop-scene {
    font-size: 3rem;
    line-height: 1.2;
    animation: workshopBuzz 3s ease-in-out infinite;
}

@keyframes workshopBuzz {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-3px); }
    75% { transform: translateY(3px); }
}

.building-actions {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #d4a574;
    border-radius: 12px;
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

.building-resources {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 165, 116, 0.3);
}

.building-resources h4 {
    color: #d4a574;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.resource-display {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.resource-display span {
    background: rgba(212, 165, 116, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #f4e4bc;
}

.building-list {
    margin-bottom: 25px;
}

.building-item-page {
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid #d4a574;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.building-item-page:hover {
    background: rgba(212, 165, 116, 0.2);
    transform: translateY(-2px);
}

.building-item-page h5 {
    color: #d4a574;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.building-item-page .building-description {
    color: #f4e4bc;
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.building-item-page .building-cost {
    color: #f4e4bc;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.building-item-page .building-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.building-count-display {
    color: #d4a574;
    font-weight: bold;
}

.build-btn {
    padding: 8px 15px;
    background: linear-gradient(45deg, #d4a574, #e6b885);
    color: #4a2c2a;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.build-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(212, 165, 116, 0.4);
}

.build-btn:disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

/* 生产控制按钮样式 */
.production-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(212, 165, 116, 0.3);
}

.production-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    min-width: 100px;
}

.production-btn.running {
    background: linear-gradient(45deg, #4caf50, #8bc34a);
    color: white;
}

.production-btn.paused {
    background: linear-gradient(45deg, #ff9800, #ffb74d);
    color: white;
}

.production-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.production-status {
    color: #d4a574;
    font-size: 0.9rem;
    font-weight: bold;
}

.building-results {
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid #d4a574;
    border-radius: 8px;
    padding: 15px;
    min-height: 100px;
    max-height: 200px;
    overflow-y: auto;
}

.building-result-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(212, 165, 116, 0.3);
    color: #f4e4bc;
    font-size: 0.9rem;
}

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

/* 外出探索界面样式 */
.outside-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d5016, #3d6b1a, #4a7c23);
    z-index: 2000;
    overflow-y: auto;
}

.outside-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.outside-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid #7cb342;
    margin-bottom: 30px;
}

.outside-header h2 {
    color: #7cb342;
    font-size: 2rem;
    text-shadow: 0 0 15px #7cb342;
}

.return-btn {
    padding: 10px 20px;
    background: linear-gradient(45deg, #7cb342, #8bc34a);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.return-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 179, 66, 0.4);
}

.outside-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.outside-scene {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #7cb342;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.scene-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #c8e6c9;
    margin-bottom: 30px;
}

.forest-scene {
    font-size: 3rem;
    line-height: 1.2;
    animation: forestSway 4s ease-in-out infinite;
}

@keyframes forestSway {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.outside-actions {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #7cb342;
    border-radius: 12px;
    padding: 30px;
}

.stamina-display {
    margin-bottom: 25px;
}

.stamina-label {
    color: #7cb342;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

.stamina-bar-bg {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #7cb342;
}

.stamina-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #7cb342, #8bc34a);
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 100%;
}

.outside-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.outside-action-btn {
    padding: 15px 20px;
    background: linear-gradient(45deg, #7cb342, #8bc34a);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.outside-action-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;
}

.outside-action-btn:hover::before {
    left: 100%;
}

.outside-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 179, 66, 0.4);
}

.outside-action-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

.gathering-results {
    background: rgba(124, 179, 66, 0.1);
    border: 1px solid #7cb342;
    border-radius: 8px;
    padding: 15px;
    min-height: 100px;
    max-height: 200px;
    overflow-y: auto;
}

.result-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(124, 179, 66, 0.3);
    color: #c8e6c9;
}

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

.stamina-bar {
    margin-bottom: 15px;
}

.stamina-container {
    margin-top: 15px;
}

/* 重启确认对话框样式 */
.restart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 4000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.restart-modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #dc3545;
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3);
    animation: restartAppear 0.3s ease-out;
}

@keyframes restartAppear {
    from { 
        opacity: 0; 
        transform: scale(0.8) translateY(-50px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

.restart-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(220, 53, 69, 0.3);
    padding-bottom: 15px;
}

.restart-header h3 {
    color: #dc3545;
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 0 0 10px #dc3545;
}

.restart-body {
    color: #c8e6c9;
    text-align: center;
}

.restart-body p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.restart-warning {
    color: #ffab91 !important;
    font-size: 0.9rem !important;
    font-style: italic;
    margin-bottom: 25px !important;
}

.restart-choices {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.restart-choice-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    font-weight: bold;
}

.restart-choice-btn.confirm {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
}

.restart-choice-btn.confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.restart-choice-btn.cancel {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    color: white;
}

.restart-choice-btn.cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

/* 贸易界面样式 */
.trade-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3500;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trade-modal-content {
    background: linear-gradient(135deg, #2d4a22, #3d5a32);
    border: 2px solid #7cb342;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(124, 179, 66, 0.3);
    animation: tradeAppear 0.3s ease-out;
}

/* 商人贸易界面滚动条样式 */
.trade-modal-content::-webkit-scrollbar {
    width: 8px;
}

.trade-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.trade-modal-content::-webkit-scrollbar-thumb {
    background: #7cb342;
    border-radius: 4px;
}

.trade-modal-content::-webkit-scrollbar-thumb:hover {
    background: #8bc34a;
}

@keyframes tradeAppear {
    from { 
        opacity: 0; 
        transform: scale(0.8) translateY(-50px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

.trade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(124, 179, 66, 0.3);
    padding-bottom: 15px;
}

.trade-header h3 {
    color: #7cb342;
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 0 0 10px #7cb342;
}

.close-btn {
    background: none;
    border: none;
    color: #7cb342;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(124, 179, 66, 0.2);
    transform: rotate(90deg);
}

.trade-body {
    color: #c8e6c9;
}

.trade-body p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
}

.trade-offers {
    display: grid;
    gap: 15px;
}

.trade-offer {
    background: rgba(124, 179, 66, 0.1);
    border: 1px solid #7cb342;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.trade-offer:hover {
    background: rgba(124, 179, 66, 0.2);
    transform: translateY(-2px);
}

.trade-offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.trade-offer-title {
    color: #7cb342;
    font-weight: bold;
    font-size: 1.1rem;
}

.trade-offer-ratio {
    color: #a5d6a7;
    font-size: 0.9rem;
}

.trade-offer-description {
    color: #c8e6c9;
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.trade-offer-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trade-cost, .trade-reward {
    display: flex;
    align-items: center;
    gap: 5px;
}

.trade-cost {
    color: #ffab91;
}

.trade-reward {
    color: #81c784;
}

.trade-btn {
    padding: 8px 16px;
    background: linear-gradient(45deg, #7cb342, #8bc34a);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

/* 建造进度条样式 */
.building-progress {
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.progress-bar-bg {
    width: 100%;
    height: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
    border: 1px solid #d4a574;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4a574, #e6b885);
    border-radius: 10px;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(212, 165, 116, 0.5);
}

.progress-text {
    color: #d4a574;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    margin-top: 5px;
}

.trade-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(124, 179, 66, 0.4);
}

.trade-btn:disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

/* 随机事件对话框样式 */
.event-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.event-modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #e94560;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
    animation: eventAppear 0.3s ease-out;
}

@keyframes eventAppear {
    from { 
        opacity: 0; 
        transform: scale(0.8) translateY(-50px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

.event-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(233, 69, 96, 0.3);
    padding-bottom: 15px;
}

.event-header h3 {
    color: #e94560;
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 0 0 10px #e94560;
}

.event-body {
    color: #c8e6c9;
}

.event-body p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
}

.event-choices {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.event-choice-btn {
    padding: 12px 20px;
    background: linear-gradient(45deg, #e94560, #f27121);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.event-choice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

.event-choice-btn.secondary {
    background: linear-gradient(45deg, #666, #888);
}

.event-choice-btn.secondary:hover {
    box-shadow: 0 5px 15px rgba(102, 102, 102, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .resources {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .game-header h1 {
        font-size: 2rem;
    }
    
    .building-item {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
    
    .building-info {
        order: 1;
    }
    
    .building-count {
        order: 2;
    }
    
    .building-item .action-btn {
        order: 3;
        width: 100%;
    }
    
    .building-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .building-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .workshop-scene {
        font-size: 2rem;
    }
    
    .resource-display {
        justify-content: center;
    }
    
    .outside-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .outside-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .forest-scene {
        font-size: 2rem;
    }
}

/* 探索面板样式 */
.exploration-panel {
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid #e94560;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.exploration-panel h3 {
    color: #e94560;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.exploration-areas {
    margin-bottom: 25px;
}

.exploration-area {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(233, 69, 96, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.exploration-area:hover {
    background: rgba(233, 69, 96, 0.15);
    transform: translateY(-2px);
}

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

.area-header h4 {
    color: #e94560;
    margin: 0;
    font-size: 1.1rem;
}

.area-status {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
}

.area-status.unlocked {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.area-status.locked {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.area-description {
    color: #c8e6c9;
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.8;
    line-height: 1.4;
}

.area-actions {
    display: flex;
    justify-content: flex-end;
}

.exploration-stats {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(233, 69, 96, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.advanced-tools-info {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(233, 69, 96, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
}

.tool-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.tool-item:last-child {
    margin-bottom: 15px;
}

.tool-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rare-resources {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(233, 69, 96, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
}

.rare-resource-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #ffd700;
}

.rare-resource-item:last-child {
    margin-bottom: 0;
}

.adventure-tasks {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(233, 69, 96, 0.3);
    border-radius: 8px;
    padding: 15px;
}

.adventure-tasks h4 {
    color: #e94560;
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.adventure-task {
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid rgba(233, 69, 96, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.adventure-task:hover {
    background: rgba(233, 69, 96, 0.2);
    transform: translateY(-2px);
}

.adventure-task h4 {
    color: #e94560;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.adventure-task p {
    color: #c8e6c9;
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.8;
    line-height: 1.4;
}

.task-requirements {
    color: #81c784;
    font-size: 0.85rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.task-rewards {
    color: #ffb74d;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.task-progress {
    color: #64b5f6;
    font-size: 0.85rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* 探索区域界面样式 */
.exploration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4a2c2a, #5d3a37, #704843);
    z-index: 2000;
    overflow-y: auto;
}

.exploration-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.exploration-resources {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #d4a574;
    border-radius: 8px;
    padding: 10px 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    flex-wrap: wrap;
    justify-content: center;
}

.exploration-resource-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #d4a574;
}

.exploration-resource-icon {
    font-size: 18px;
}

.exploration-resource-label {
    margin-right: 5px;
}

.exploration-resource-amount {
    font-weight: bold;
}

.exploration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid #d4a574;
    margin-bottom: 30px;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.log-btn {
    background-color: rgba(212, 165, 116, 0.2);
    color: #d4a574;
    border: 1px solid #d4a574;
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.log-btn:hover {
    background-color: rgba(212, 165, 116, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 探索日志面板样式 */
.exploration-log-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.exploration-log-panel {
    background: linear-gradient(135deg, #4a2c2a, #5d3a37, #704843);
    border: 2px solid #d4a574;
    border-radius: 12px;
    width: 80%;
    max-width: 1000px;
    height: 80%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.3);
}

.exploration-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #d4a574;
    color: #d4a574;
}

.exploration-log-header h3 {
    margin: 0;
    font-size: 1.5rem;
    text-shadow: 0 0 10px #d4a574;
}

.close-btn {
    background: rgba(212, 165, 116, 0.2);
    color: #d4a574;
    border: 1px solid #d4a574;
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(212, 165, 116, 0.3);
    transform: translateY(-1px);
}

.exploration-log-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    color: #d4a574;
}

.exploration-log-entry {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #d4a574;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.exploration-log-timestamp {
    font-size: 12px;
    color: rgba(212, 165, 116, 0.7);
    margin-bottom: 5px;
    display: block;
}

.exploration-header h2 {
    color: #d4a574;
    font-size: 2rem;
    text-shadow: 0 0 15px #d4a574;
}

.exploration-main {
    min-height: 70vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.exploration-left {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #d4a574;
    border-radius: 12px;
    padding: 30px;
    min-height: auto;
    overflow-y: visible;
}

.exploration-right {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #d4a574;
    border-radius: 12px;
    padding: 30px;
    min-height: auto;
    overflow-y: visible;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .exploration-main {
        grid-template-columns: 1fr;
    }
}

/* 外出选择界面样式 */
.outside-selection-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d5016, #3d6b1a, #4a7c23);
    z-index: 2000;
    overflow-y: hidden;
}

.outside-selection-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.outside-selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid #7cb342;
    margin-bottom: 40px;
}

.outside-selection-header h2 {
    color: #7cb342;
    font-size: 2rem;
    text-shadow: 0 0 15px #7cb342;
}

.outside-selection-content {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selection-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
    max-width: 700px;
}

.selection-option {
    background: rgba(124, 179, 66, 0.1);
    border: 2px solid #7cb342;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.selection-option:hover {
    background: rgba(124, 179, 66, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(124, 179, 66, 0.3);
    border-color: #8bc34a;
}

.selection-option h3 {
    color: #7cb342;
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(124, 179, 66, 0.5);
}

.selection-option p {
    color: #c8e6c9;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
}



/* 响应式设计 - 外出选择界面 */
@media (max-width: 768px) {
    .selection-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .outside-selection-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .exploration-content {
        padding: 20px;
    }
}

/* 滚动条样式 */
.exploration-panel::-webkit-scrollbar {
    width: 8px;
}

.exploration-panel::-webkit-scrollbar-track {
    background: rgba(233, 69, 96, 0.1);
    border-radius: 4px;
}

.exploration-panel::-webkit-scrollbar-thumb {
    background: #e94560;
    border-radius: 4px;
}

.exploration-panel::-webkit-scrollbar-thumb:hover {
    background: #f27121;
}

/* 滚动条样式 */
.actions-panel::-webkit-scrollbar {
    width: 8px;
}

.actions-panel::-webkit-scrollbar-track {
    background: rgba(233, 69, 96, 0.1);
    border-radius: 4px;
}

.actions-panel::-webkit-scrollbar-thumb {
    background: #e94560;
    border-radius: 4px;
}

.actions-panel::-webkit-scrollbar-thumb:hover {
    background: #f27121;
}