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

body {
    font-family: 'Microsoft YaHei', 'SimHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.game-header {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.game-header h1 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    color: #764ba2;
    font-size: 1.2em;
    margin: 0;
}

.game-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.start-section,
.info-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.start-section h2,
.info-section h3 {
    color: #667eea;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.btn:last-child {
    margin-right: 0;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.info-list li:last-child {
    border-bottom: none;
}

.status-panel {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.status-panel h2 {
    color: #667eea;
    margin-bottom: 20px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.status-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.status-label {
    display: block;
    color: #6c757d;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.status-value {
    display: block;
    color: #333;
    font-size: 1.2em;
    font-weight: bold;
}

.game-history {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.action-block {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.action-block:last-child {
    border-bottom: none;
}

.action-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #f0f4f8;
    border-radius: 8px;
}

.action-number {
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: bold;
    margin-right: 15px;
}

.action-text {
    color: #333;
    font-weight: bold;
    flex: 1;
}

.narrative-block {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.narrative-content {
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    white-space: pre-wrap;
}

.suggestions-panel {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.suggestions-panel h4 {
    color: #856404;
    margin-bottom: 10px;
}

.suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestion-item {
    padding: 10px 15px;
    margin-bottom: 8px;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid #ffc107;
}

.suggestion-item:hover {
    background: #fff8e1;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.input-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* 加载提示样式 */
.loading-overlay {
    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: 9999;
}

.loading-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    width: 400px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content p {
    color: #333;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .game-header {
        padding: 20px;
    }
    
    .game-header h1 {
        font-size: 1.8em;
    }
    
    .subtitle {
        font-size: 1em;
    }
    
    .start-section,
    .info-section {
        padding: 20px;
    }
    
    .status-panel {
        padding: 20px;
    }
    
    .game-history {
        padding: 20px;
    }
    
    .input-section {
        padding: 20px;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .loading-content {
        padding: 30px;
        width: 90%;
    }
    
    .loading-spinner {
        width: 50px;
        height: 50px;
    }
    
    .loading-content p {
        font-size: 14px;
    }
}

/* 额外的移动端优化 */
@media (max-width: 480px) {
    .game-header h1 {
        font-size: 1.5em;
    }
    
    .action-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .action-number {
        margin-right: 0;
    }
    
    .narrative-block {
        padding: 15px;
    }
    
    .form-input,
    .form-textarea {
        padding: 10px;
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}
