/* 逃离锈钴城 - 样式表 */

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 颜色变量 */
    --primary-color: #2a9d8f;
    --primary-dark: #1d6f64;
    --secondary-color: #e76f51;
    --secondary-dark: #d65c3e;
    --dark-color: #264653;
    --light-color: #e9c46a;
    --accent-color: #f4a261;
    --danger-color: #e63946;
    --success-color: #2a9d8f;
    --warning-color: #e9c46a;
    
    --bg-dark: #121212;
    --bg-darker: #0a0a0a;
    --bg-light: #1e1e1e;
    --bg-card: #2d2d2d;
    --bg-input: #3a3a3a;
    
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    
    --border-color: #444444;
    --border-light: #555555;
    
    /* 尺寸变量 */
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;
    
    /* 阴影 */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    
    /* 过渡 */
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 标题字体 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* 通用容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 加载覆盖层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-container {
    text-align: center;
}

.loader {
    border: 5px solid var(--bg-input);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.loading-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 屏幕切换 */
.screen {
    display: none;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.screen.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 按钮样式 */
.btn-primary, .btn-secondary, .btn-action {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-input);
    border-color: var(--border-light);
}

.btn-action {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn-action:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 创建角色界面 */
.creation-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.game-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--light-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(233, 196, 106, 0.3);
}

.game-title i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.game-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.creation-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input, .form-group select {
    padding: 0.8rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(42, 157, 143, 0.2);
}

.hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* 属性分配 */
.points-display {
    background: var(--bg-card);
    padding: 0.8rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
    margin-bottom: 1rem;
}

.points-display span:last-child {
    color: var(--light-color);
    font-size: 1.2rem;
    margin-left: 0.5rem;
}

.attribute-control {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.attr-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    padding: 0.8rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.attr-item label {
    width: 80px;
    font-weight: 500;
}

.attr-slider {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.attr-btn {
    width: 30px;
    height: 30px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.attr-btn:hover {
    background: var(--primary-color);
}

.attr-input {
    width: 60px;
    text-align: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    padding: 0.3rem;
}

.game-info {
    background: rgba(42, 157, 143, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-top: 1rem;
}

.game-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.game-info i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* 故事导入界面 */
.story-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.story-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.story-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
}

.story-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    color: var(--text-secondary);
}

.story-content {
    min-height: 300px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    position: relative;
}

.loading-story {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.loading-spinner {
    border: 4px solid var(--bg-input);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.story-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.story-text p {
    margin-bottom: 1.5rem;
}

.story-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* 游戏主界面 */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.header-left h2 {
    color: var(--light-color);
    margin-bottom: 0.5rem;
}

.player-info {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.header-center {
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
}

.resource-display {
    display: flex;
    justify-content: space-around;
    background: var(--bg-card);
    padding: 0.8rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.resource {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resource i {
    color: var(--accent-color);
}

.resource span:last-child {
    color: var(--light-color);
    font-weight: 500;
    margin-left: 0.25rem;
}

.game-body {
    display: flex;
    gap: 2rem;
    min-height: 600px;
}

/* 侧边栏 */
.sidebar {
    width: 250px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.game-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.nav-btn i {
    width: 20px;
    text-align: center;
}

.nav-btn:hover:not(.active) {
    background: var(--bg-input);
    color: var(--text-primary);
}

.nav-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary-dark);
}

.quick-stats {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.quick-stats h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.stat-bar {
    margin-bottom: 1rem;
}

.stat-bar label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.progress-bar {
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.progress-bar.large {
    height: 20px;
    border-radius: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--light-color) 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.stat-bar span:last-child {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
    overflow-y: auto;
    max-height: 700px;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: block;
}

.content-section h3 {
    color: var(--light-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 标签页 */
.tab-buttons, .system-tabs, .rank-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.tab-btn {
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    font-weight: 500;
}

.tab-btn:hover:not(.active) {
    background: var(--bg-card);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* 属性详情 */
.attribute-details {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
}

.detail-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.detail-card h4 {
    color: var(--light-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.detail-card p {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.detail-card p strong {
    color: var(--text-primary);
    margin-right: 0.5rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.detail-item {
    background: var(--bg-input);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.attr-label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.attr-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.attr-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 聊天系统 */
.chat-container {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-input);
    border-bottom: 1px solid var(--border-color);
}

.chat-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.chat-info span:last-child {
    color: var(--light-color);
    font-weight: 500;
    margin-left: 0.3rem;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius);
    position: relative;
}

.message.system {
    align-self: flex-start;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
}

.message.player {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.message-sender {
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
}

.message.system .message-sender {
    color: var(--primary-color);
}

.message.player .message-sender {
    color: rgba(255, 255, 255, 0.9);
}

.chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-input);
}

.chat-input textarea {
    flex: 1;
    padding: 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    resize: none;
    min-height: 60px;
    transition: var(--transition);
}

.chat-input textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 工作与学习卡片 */
.job-list, .course-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.job-card, .course-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.job-card:hover, .course-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.job-card h4, .course-card h4 {
    color: var(--light-color);
    margin-bottom: 0.5rem;
}

.job-card p, .course-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.job-card.locked, .course-card.locked {
    opacity: 0.7;
    position: relative;
}

.job-card.locked::before, .course-card.locked::before {
    content: "🔒";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
}

.job-reward, .course-effects {
    background: rgba(233, 196, 106, 0.1);
    padding: 0.8rem;
    border-radius: var(--border-radius-sm);
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.job-reward i, .course-effects i {
    color: var(--light-color);
    margin-right: 0.5rem;
}

.job-requirements {
    margin: 1rem 0;
}

.req {
    display: inline-block;
    background: rgba(231, 111, 81, 0.1);
    color: var(--secondary-color);
    padding: 0.3rem 0.6rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
}

/* 答题模态框 */
.quiz-modal, .battle-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.quiz-content, .battle-content {
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.quiz-content h4, .battle-content h4 {
    color: var(--light-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.quiz-progress {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.quiz-progress span {
    color: var(--light-color);
    font-weight: 500;
}

.quiz-question {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.quiz-option {
    padding: 1rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    color: var(--text-secondary);
}

.quiz-option:hover:not(.selected) {
    background: var(--bg-input);
    color: var(--text-primary);
}

.quiz-option.selected {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary-dark);
}

.quiz-option.correct {
    background: linear-gradient(135deg, var(--success-color) 0%, #1d6f64 100%);
    color: white;
    border-color: #1d6f64;
}

.quiz-option.incorrect {
    background: linear-gradient(135deg, var(--danger-color) 0%, #b22b3a 100%);
    color: white;
    border-color: #b22b3a;
}

.quiz-actions {
    text-align: center;
}

/* 排行榜 */
.rank-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.rank-list {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.rank-item.header {
    display: grid;
    grid-template-columns: 80px 1fr 100px 120px;
    padding: 1rem 1.5rem;
    background: var(--bg-input);
    color: var(--text-secondary);
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

.rank-items {
    max-height: 400px;
    overflow-y: auto;
}

.rank-item:not(.header) {
    display: grid;
    grid-template-columns: 80px 1fr 100px 120px;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.rank-item:not(.header):hover {
    background: var(--bg-input);
}

.rank-item.current-player {
    background: rgba(42, 157, 143, 0.1);
    border-left: 4px solid var(--primary-color);
}

.rank-pos {
    font-weight: 500;
}

.rank-pos.top-3 {
    color: var(--light-color);
    font-weight: 700;
}

.rank-player {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.player-avatar {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.honor-list {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.honor-header {
    text-align: center;
    margin-bottom: 2rem;
}

.honor-header h4 {
    color: var(--light-color);
    margin-bottom: 0.5rem;
}

.honor-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.honor-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.honor-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(233, 196, 106, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.honor-item .player-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #e9c46a 0%, #d4af37 100%);
}

/* 建造面板 */
.build-progress-container {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.progress-visual {
    margin-bottom: 2rem;
    position: relative;
}

.progress-text {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-color);
}

.build-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.info-card {
    background: var(--bg-input);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.info-card h4 {
    color: var(--light-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

#buildStage {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stage-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.requirements {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.req-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
}

.req-item i {
    color: var(--accent-color);
    width: 20px;
}

.req-item span {
    color: var(--light-color);
    font-weight: 500;
}

.build-action {
    text-align: center;
    margin-bottom: 2rem;
}

.build-hint {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.vehicle-preview {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.preview-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.car-frame {
    width: 300px;
    height: 150px;
    position: relative;
    background: rgba(42, 157, 143, 0.05);
    border-radius: 10px;
    border: 2px dashed var(--border-color);
}

.car-part {
    position: absolute;
    background: rgba(233, 196, 106, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.car-part.completed {
    background: rgba(42, 157, 143, 0.2);
    border-color: var(--primary-color);
}

.chassis { width: 250px; height: 20px; bottom: 20px; left: 25px; }
.battery { width: 80px; height: 40px; bottom: 50px; left: 40px; }
.motor { width: 60px; height: 60px; bottom: 45px; left: 140px; }
.wheels { width: 200px; height: 30px; bottom: 5px; left: 50px; }
.body { width: 260px; height: 60px; bottom: 70px; left: 20px; }

.part-status {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

.part-item {
    background: var(--bg-input);
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.part-item.completed {
    background: rgba(42, 157, 143, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

/* 掠夺面板 */
.raid-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.raid-status, .raid-rules {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.raid-status h4, .raid-rules h4 {
    color: var(--light-color);
    margin-bottom: 1rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.status-item span:last-child {
    color: var(--light-color);
    font-weight: 500;
}

.raid-rules ul {
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.raid-rules li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.raid-targets {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.target-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.target-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-input);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.target-item:hover {
    background: rgba(42, 157, 143, 0.05);
}

.target-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.target-stats {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.target-stats span:last-child {
    color: var(--light-color);
    font-weight: 500;
}

/* 战斗模态框 */
.battle-info {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 2rem 0;
}

.battle-player {
    text-align: center;
}

.battle-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.battle-attr-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(42, 157, 143, 0.3);
}

.battle-vs {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.battle-attribute {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.battle-attribute span {
    color: var(--light-color);
    font-weight: 500;
}

.battle-result {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    font-size: 1.2rem;
    font-weight: 500;
}

.battle-result.win {
    color: var(--primary-color);
    background: rgba(42, 157, 143, 0.1);
    border-color: var(--primary-color);
}

.battle-result.lose {
    color: var(--danger-color);
    background: rgba(230, 57, 70, 0.1);
    border-color: var(--danger-color);
}

/* 下一天面板 */
.nextday-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.day-summary {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    grid-row: span 2;
}

.day-log {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 1rem;
}

.log-entry {
    padding: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.log-entry:last-child {
    border-bottom: none;
}

.nextday-action, .time-remaining {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.action-check {
    margin-bottom: 1.5rem;
}

.action-check p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.check-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.countdown {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.countdown-item {
    text-align: center;
}

.countdown-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--light-color);
    text-shadow: 0 0 15px rgba(233, 196, 106, 0.5);
}

.countdown-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.countdown-warning {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
}

/* 结局界面 */
.ending-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    text-align: center;
}

.ending-header {
    margin-bottom: 2rem;
}

#endingTitle {
    font-size: 3rem;
    color: var(--light-color);
    margin-bottom: 0.5rem;
}

#endingSubtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.ending-content {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.ending-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: left;
    margin-bottom: 2rem;
}

.ending-stats {
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-input);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.stat-label {
    color: var(--text-secondary);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-color);
}

.ending-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* 通知 */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 300px;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-content {
    color: var(--text-primary);
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .game-body {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .game-nav {
        flex-direction: row;
        flex-wrap: wrap;
        flex: 1;
    }
    
    .quick-stats {
        width: 300px;
    }
    
    .attribute-details {
        grid-template-columns: 1fr;
    }
    
    .nextday-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .creation-container, .story-container, .ending-container {
        padding: 1.5rem;
    }
    
    .game-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .header-center {
        margin: 1rem 0;
        width: 100%;
    }
    
    .sidebar {
        flex-direction: column;
    }
    
    .game-nav {
        flex-direction: column;
    }
    
    .quick-stats {
        width: 100%;
    }
    
    .resource-display {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .job-list, .course-list {
        grid-template-columns: 1fr;
    }
    
    .build-info, .raid-info {
        grid-template-columns: 1fr;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .rank-item.header, .rank-item:not(.header) {
        grid-template-columns: 60px 1fr 80px 100px;
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .game-title {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 1.5rem;
        max-height: none;
    }
}

@media (max-width: 480px) {
    .screen {
        padding: 1rem;
    }
    
    .creation-container, .story-container, .ending-container {
        padding: 1rem;
    }
    
    .attr-slider {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .story-actions, .ending-actions {
        flex-direction: column;
    }
    
    .quiz-content, .battle-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .rank-item.header, .rank-item:not(.header) {
        grid-template-columns: 50px 1fr 70px 80px;
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
}