/* 全局样式 */
:root {
    --primary-color: #4caf50;
    --secondary-color: #2e7d32;
    --accent-color: #ff9800;
    --text-color: #e0e0e0;
    --background-color: #1a2c1a;
    --panel-background: rgba(26, 44, 26, 0.9);
    --panel-border: #4caf50;
    --input-background: rgba(0, 0, 0, 0.3);
    --button-hover: #388e3c;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

body {
    background-color: #000;
    color: var(--text-color);
    overflow: hidden;
}

/* 游戏容器 */
#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* 3D场景 */
#forest-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* UI容器 */
#ui-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

#ui-container > * {
    pointer-events: auto;
}

/* 角色头像 */
#character-portrait {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    background: var(--panel-background);
    border: 1px solid var(--panel-border);
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.portrait-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-image: url('assets/images/arrien_portrait.png');
    background-size: cover;
    border: 2px solid var(--primary-color);
}

.character-name {
    margin: 0 10px;
    font-weight: bold;
}

.character-info-button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    margin-left: 5px;
}

/* 日记面板 */
#journal {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 300px;
    background: var(--panel-background);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

#journal-title {
    background: var(--secondary-color);
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

#journal-content {
    padding: 15px;
}

#gratitude-categories {
    display: flex;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.category-tab {
    padding: 5px 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: all var(--transition-speed);
}

.category-tab.active {
    opacity: 1;
    border-bottom: 2px solid var(--primary-color);
}

#gratitude-prompts {
    margin-bottom: 10px;
    font-style: italic;
    color: #aaa;
    min-height: 40px;
}

.prompt {
    display: none;
}

.prompt.active {
    display: block;
    animation: fadeIn 0.5s;
}

#gratitude-entry {
    width: 100%;
    height: 100px;
    padding: 10px;
    background: var(--input-background);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    resize: none;
    margin-bottom: 10px;
}

#save-entry {
    width: 100%;
    padding: 8px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background var(--transition-speed);
}

#save-entry:hover {
    background: var(--button-hover);
}

#seeds-container {
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.2);
}

#seeds-title {
    font-size: 14px;
    margin-bottom: 5px;
    color: #aaa;
}

#seeds-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.seed-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.seed-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--primary-color);
}

/* 信息面板 */
#info-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 300px;
    background: var(--panel-background);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

#info-panel h2 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

#info-panel p {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

#world-lore {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#show-more-lore {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all var(--transition-speed);
}

#show-more-lore:hover {
    background: rgba(255, 152, 0, 0.2);
}

#tree-info, #door-info {
    margin-bottom: 15px;
}

#tree-info h3, #door-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--accent-color);
}

#tree-status, #door-status {
    font-size: 14px;
    margin-bottom: 10px;
}

#tree-progress {
    margin-top: 10px;
}

.progress-label {
    font-size: 12px;
    margin-bottom: 5px;
}

.progress-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.5s ease-out;
}

.progress-text {
    font-size: 12px;
    text-align: right;
    color: #aaa;
}

.door-description {
    font-size: 13px;
    font-style: italic;
    color: #bbb;
}

/* 游戏菜单 */
#game-menu {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-button {
    width: 60px;
    height: 60px;
    background: var(--panel-background);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.menu-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

.button-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.menu-button span {
    font-size: 12px;
}

/* 游戏面板 */
.game-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    background: var(--panel-background);
    border: 2px solid var(--panel-border);
    border-radius: 15px;
    z-index: 10;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    transition: opacity var(--transition-speed), transform var(--transition-speed);
}

.game-panel.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
    pointer-events: none;
}

.panel-header {
    background: var(--secondary-color);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    color: white;
    font-size: 20px;
}

.close-panel {
    background: transparent;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition-speed);
}

.close-panel:hover {
    background: rgba(255, 255, 255, 0.2);
}

.panel-content {
    padding: 20px;
    max-height: calc(80vh - 60px);
    overflow-y: auto;
}

/* 背包面板 */
.inventory-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.inventory-tab {
    padding: 10px 15px;
    cursor: pointer;
    opacity: 0.7;
    transition: all var(--transition-speed);
}

.inventory-tab.active {
    opacity: 1;
    border-bottom: 2px solid var(--primary-color);
}

.inventory-content {
    display: none;
}

.inventory-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

.seed-type-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.seed-filter {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.seed-filter.active {
    background: var(--primary-color);
    color: white;
}

.seed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    padding: 10px 0;
}

.seed-item {
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    position: relative;
}

.seed-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

.seed-visual {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    animation: pulse 2s infinite;
}

.empty-message {
    color: #aaa;
    text-align: center;
    margin: 30px 0;
    font-style: italic;
}

.artifact-hint, .notes-hint {
    font-size: 14px;
    color: #bbb;
    text-align: center;
    margin-top: 20px;
    line-height: 1.5;
}

/* 地图面板 */
.map-container {
    width: 100%;
    height: 400px;
    background: #1a2c1a;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

#map-svg {
    width: 100%;
    height: 100%;
}

.map-marker {
    cursor: pointer;
    transition: all var(--transition-speed);
}

.map-marker:hover {
    filter: brightness(1.3);
}

.map-label {
    fill: white;
    font-size: 8px;
    pointer-events: none;
}

.future-label {
    fill: rgba(255, 255, 255, 0.5);
    font-size: 7px;
}

.main-tree {
    fill: #4caf50;
}

.unlocked-tree {
    fill: #8bc34a;
}

.locked-tree {
    fill: #607d8b;
}

.gate {
    fill: #ff9800;
}

.future-area {
    fill: #9e9e9e;
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.legend-marker {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 5px;
}

.legend-marker.main-tree {
    background: #4caf50;
}

.legend-marker.unlocked-tree {
    background: #8bc34a;
}

.legend-marker.locked-tree {
    background: #607d8b;
}

.legend-marker.gate {
    background: #ff9800;
    border-radius: 2px;
}

.legend-marker.future-area {
    background: #9e9e9e;
}

.map-description {
    font-size: 14px;
    line-height: 1.5;
    color: #bbb;
}

/* 设置面板 */
.settings-section {
    margin-bottom: 25px;
}

.settings-section h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.setting-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.setting-item label {
    flex: 1;
    font-size: 14px;
}

.setting-item input[type="range"] {
    flex: 2;
    height: 5px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
}

.setting-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.setting-item select {
    flex: 2;
    padding: 5px;
    background: var(--input-background);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.setting-item.checkbox {
    display: flex;
    align-items: center;
}

.setting-item.checkbox input {
    margin-right: 10px;
}

/* 帮助面板 */
.help-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.help-tab {
    padding: 10px 15px;
    cursor: pointer;
    opacity: 0.7;
    transition: all var(--transition-speed);
    font-size: 14px;
}

.help-tab.active {
    opacity: 1;
    border-bottom: 2px solid var(--primary-color);
}

.help-content {
    display: none;
}

.help-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

.help-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.help-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 14px;
}

.help-content ul, .help-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.help-content li {
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 14px;
}

/* 角色信息面板 */
.character-portrait-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-image: url('assets/images/arrien_portrait.png');
    background-size: cover;
    border: 3px solid var(--primary-color);
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.character-description {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 14px;
}

.character-stats {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
}

.character-stats h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 16px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.stat-label {
    color: #bbb;
}

.stat-value {
    font-weight: bold;
    color: var(--primary-color);
}

/* 种子详情面板 */
#seed-visual {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#seed-visual .seed-3d {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
    animation: pulse 2s infinite;
}

#seed-details {
    text-align: center;
    margin-bottom: 20px;
}

#seed-date {
    font-size: 16px;
    margin-bottom: 10px;
}

#seed-type-badge {
    display: inline-block;
    padding: 5px 10px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

#seed-entry {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    line-height: 1.6;
    font-style: italic;
    color: #ddd;
}

#seed-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

#seed-actions button {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

#plant-seed {
    background: var(--primary-color);
    color: white;
}

#plant-seed:hover {
    background: var(--button-hover);
}

#offer-seed {
    background: var(--accent-color);
    color: white;
}

#offer-seed:hover {
    background: #e88e00;
}

#seed-description {
    font-size: 14px;
    color: #bbb;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
}

/* 世界观详情面板 */
.lore-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.lore-tab {
    padding: 10px 15px;
    cursor: pointer;
    opacity: 0.7;
    transition: all var(--transition-speed);
}

.lore-tab.active {
    opacity: 1;
    border-bottom: 2px solid var(--primary-color);
}

.lore-content {
    display: none;
}

.lore-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

.lore-content h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
    margin-top: 20px;
}

.lore-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 14px;
}

/* 消息框 */
#message-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background: var(--panel-background);
    border: 2px solid var(--panel-border);
    border-radius: 10px;
    z-index: 20;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    transition: opacity var(--transition-speed), transform var(--transition-speed);
}

#message-box.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
    pointer-events: none;
}

.message-header {
    background: var(--secondary-color);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#message-title {
    color: white;
    font-weight: bold;
}

#message-close {
    background: transparent;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition-speed);
}

#message-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.message-content {
    padding: 20px;
}

#message-text {
    line-height: 1.6;
    font-size: 16px;
}

/* 教程覆盖层 */
#tutorial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-speed);
}

#tutorial-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.tutorial-container {
    width: 600px;
    background: var(--panel-background);
    border: 2px solid var(--panel-border);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.tutorial-header {
    background: var(--secondary-color);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tutorial-header h2 {
    color: white;
}

#tutorial-close {
    background: transparent;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition-speed);
}

#tutorial-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tutorial-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tutorial-image {
    width: 200px;
    height: 200px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 20px;
}

#tutorial-text {
    line-height: 1.6;
    font-size: 16px;
    text-align: center;
}

.tutorial-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
}

.tutorial-navigation button {
    padding: 8px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background var(--transition-speed);
}

.tutorial-navigation button:hover:not(:disabled) {
    background: var(--button-hover);
}

.tutorial-navigation button:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

.tutorial-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: background var(--transition-speed);
}

.dot.active {
    background: var(--primary-color);
}

/* 成就通知 */
#achievement-notification {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--panel-background);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 25;
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.5);
    transition: opacity var(--transition-speed), transform var(--transition-speed);
}

#achievement-notification.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    pointer-events: none;
}

.achievement-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.achievement-info {
    flex: 1;
}

#achievement-title {
    color: var(--accent-color);
    margin-bottom: 5px;
}

#achievement-description {
    font-size: 14px;
}

/* 种子收集动画 */
#seed-collection-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-speed);
}

#seed-collection-animation.hidden {
    opacity: 0;
    pointer-events: none;
}

.seed-formation {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gratitude-text {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    text-align: center;
    opacity: 0;
    animation: fadeInOut 3s forwards;
}

.seed-glow {
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0;
    animation: growGlow 2s 1s forwards;
}

.seed-model {
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0;
    animation: growSeed 1s 2s forwards;
    box-shadow: 0 0 30px var(--primary-color);
}

/* 树木觉醒动画 */
#tree-awakening-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 25;
    pointer-events: none;
    transition: opacity var(--transition-speed);
}

#tree-awakening-animation.hidden {
    opacity: 0;
}

.awakening-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.5) 0%, transparent 70%);
    animation: expandEffect 3s forwards;
}

/* 加载屏幕 */
#loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s;
}

.loading-container {
    text-align: center;
    width: 80%;
    max-width: 500px;
}

.loading-container h1 {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.loading-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    border-radius: 5px;
    animation: loading 3s ease-in-out forwards;
}

.loading-text {
    margin-bottom: 10px;
    font-size: 16px;
}

.loading-tip {
    font-style: italic;
    color: #aaa;
    font-size: 14px;
}

/* 覆盖层 */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s;
}

.overlay-content {
    background: var(--panel-background);
    border: 2px solid var(--panel-border);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.overlay-content h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 28px;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.overlay-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 16px;
}

#start-journey {
    margin-top: 20px;
    padding: 10px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background var(--transition-speed), transform var(--transition-speed);
}

#start-journey:hover {
    background: var(--button-hover);
    transform: scale(1.05);
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { box-shadow: 0 0 10px var(--primary-color); }
    50% { box-shadow: 0 0 20px var(--primary-color); }
    100% { box-shadow: 0 0 10px var(--primary-color); }
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    30% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes growGlow {
    0% { width: 0; height: 0; opacity: 0; }
    50% { width: 200px; height: 200px; opacity: 0.7; }
    100% { width: 250px; height: 250px; opacity: 0; }
}

@keyframes growSeed {
    0% { width: 0; height: 0; opacity: 0; }
    100% { width: 60px; height: 60px; opacity: 1; }
}

@keyframes expandEffect {
    0% { width: 0; height: 0; opacity: 0; }
    50% { width: 300px; height: 300px; opacity: 0.7; }
    100% { width: 600px; height: 600px; opacity: 0; }
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    80% { width: 90%; }
    100% { width: 100%; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    #journal, #info-panel {
        width: 250px;
    }
    
    .game-panel {
        width: 95%;
    }
    
    .tutorial-container {
        width: 90%;
    }
    
    .overlay-content {
        width: 90%;
        padding: 20px;
    }
    
    .overlay-content h1 {
        font-size: 24px;
    }
    
    .help-tab, .inventory-tab, .lore-tab {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* 隐藏类 */
.hidden {
    display: none !important;
}