/* style.css - T.O.V.s 终端样式表（完整版） */

/* ==================== 基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
}

body {
    background: linear-gradient(135deg, #0a0f0e 0%, #0d1513 50%, #0a0f0e 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

/* 背景装饰效果 */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(46, 139, 111, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(46, 139, 111, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(111, 207, 176, 0.03) 0%, transparent 30%);
    pointer-events: none;
}

.terminal-container {
    width: 100%;
    max-width: 1300px;
    height: 92vh;
    background: linear-gradient(180deg, #1a1e1d 0%, #151918 100%);
    border-radius: 16px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(58, 95, 85, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #3a5f55;
    position: relative;
}

/* 终端发光边框效果 */
.terminal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2e8b6f, #6fcfb0, #2e8b6f, transparent);
    animation: terminalGlow 3s ease-in-out infinite;
}

@keyframes terminalGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.terminal-header {
    background: linear-gradient(90deg, #2a3533, #24302e, #2a3533);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(63, 94, 85, 0.5);
    color: #b3e5d5;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 2px;
    position: relative;
}

.terminal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(111, 207, 176, 0.3), transparent);
}

.terminal-header span {
    margin-right: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-header .buttons {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.terminal-header .btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.terminal-header .btn:nth-child(1) {
    background: linear-gradient(135deg, #ff6b6b, #c92a2a);
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.3);
}

.terminal-header .btn:nth-child(2) {
    background: linear-gradient(135deg, #ffd43b, #fab005);
    box-shadow: 0 0 8px rgba(255, 212, 59, 0.3);
}

.terminal-header .btn:nth-child(3) {
    background: linear-gradient(135deg, #51cf66, #2b8a3e);
    box-shadow: 0 0 8px rgba(81, 207, 102, 0.3);
}

.terminal-header .btn:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
}

.terminal-body {
    flex: 1;
    background: linear-gradient(180deg, #0f1413 0%, #0c100f 100%);
    padding: 20px;
    overflow-y: auto;
    color: #b5ead7;
    line-height: 1.6;
    font-size: 14px;
    scroll-behavior: smooth;
    position: relative;
}

/* 终端扫描线效果 */
.terminal-body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03),
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    opacity: 0.3;
}

.terminal-output {
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 12px;
    border-left: 3px solid #2e8b6f;
    padding-left: 12px;
    position: relative;
    animation: outputFade 0.3s ease;
}

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

/* ASCII Logo 样式增强 */
.terminal-output:first-child {
    border-left: none;
    padding-left: 0;
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(46, 139, 111, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(46, 139, 111, 0.2);
}

.terminal-prompt-line {
    display: flex;
    align-items: center;
    margin-top: 8px;
    flex-wrap: wrap;
    position: relative;
}

.prompt {
    color: #6fcfb0;
    font-weight: bold;
    margin-right: 10px;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(111, 207, 176, 0.5);
    position: relative;
}

.prompt::before {
    content: '>';
    margin-right: 8px;
    color: #2e8b6f;
    animation: promptBlink 1s infinite;
}

@keyframes promptBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.prompt.warning {
    color: #ff9966;
    text-shadow: 0 0 10px rgba(255, 153, 102, 0.5);
}

.prompt.negative {
    color: #ff6f6f;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 111, 111, 0.5);
}

.terminal-input {
    background: rgba(15, 20, 19, 0.8);
    border: 1px solid rgba(58, 95, 85, 0.5);
    border-radius: 6px;
    outline: none;
    color: #d0ffee;
    font-size: 14px;
    font-family: 'Courier New', Courier, monospace;
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.terminal-input:focus {
    border-color: #6fcfb0;
    box-shadow: 0 0 15px rgba(111, 207, 176, 0.2), inset 0 0 10px rgba(111, 207, 176, 0.05);
    background: rgba(15, 20, 19, 0.95);
}

.green { color: #9bffb5; font-weight: bold; text-shadow: 0 0 5px rgba(155, 255, 181, 0.3); }
.orange { color: #ffb86b; font-weight: bold; text-shadow: 0 0 5px rgba(255, 184, 107, 0.3); }
.red { color: #ff7b7b; font-weight: bold; text-shadow: 0 0 5px rgba(255, 123, 123, 0.3); }
.cyan { color: #7fd9e0; text-shadow: 0 0 5px rgba(127, 217, 224, 0.3); }
.yellow { color: #f5e56b; text-shadow: 0 0 5px rgba(245, 229, 107, 0.3); }
.gray { color: #6e8b82; }

/* 滚动条样式优化 */
.terminal-body::-webkit-scrollbar { width: 10px; }
.terminal-body::-webkit-scrollbar-track { 
    background: linear-gradient(180deg, #1a2a25, #151f1c);
    border-radius: 5px;
}
.terminal-body::-webkit-scrollbar-thumb { 
    background: linear-gradient(180deg, #3d6b5c, #2e8b6f);
    border-radius: 5px;
    transition: all 0.3s ease;
}
.terminal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4d7b6c, #3e9b7f);
    box-shadow: 0 0 10px rgba(46, 139, 111, 0.5);
}

/* ==================== 通用模态框样式 ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1a2f28;
    border: 2px solid #3a7b63;
    border-radius: 12px;
    padding: 24px;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    color: #b5ead7;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal input, .modal select, .modal textarea, .modal button {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    background: #0f1413;
    border: 1px solid #3a7b63;
    color: #b5ead7;
    font-family: 'Courier New', monospace;
    border-radius: 4px;
}

.modal textarea {
    min-height: 100px;
    resize: vertical;
}

.modal button {
    background: #2e8b6f;
    color: white;
    border: none;
    padding: 8px 16px;
    margin: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}
.modal button:hover { background: #3a9b7f; transform: translateY(-2px); }
.modal button.danger { background: #8b2e2e; }
.modal button.danger:hover { background: #9f3a3a; }

/* ==================== 登录动画效果 ==================== */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0f0e;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 数字矩阵雨背景 */
.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.matrix-column {
    position: absolute;
    top: -100%;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #2e8b6f;
    text-shadow: 0 0 10px #2e8b6f;
    writing-mode: vertical-rl;
    animation: matrixFall linear infinite;
    opacity: 0.6;
}

@keyframes matrixFall {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200vh); }
}

/* 登录容器 */
.login-container {
    position: relative;
    width: 400px;
    padding: 40px;
    background: rgba(15, 20, 19, 0.9);
    border: 1px solid #3a7b63;
    border-radius: 16px;
    box-shadow: 
        0 0 50px rgba(46, 139, 111, 0.3),
        inset 0 0 30px rgba(46, 139, 111, 0.1);
    overflow: hidden;
}

/* 发光边框动画 */
.login-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #2e8b6f, #6fcfb0, #2e8b6f, #6fcfb0, #2e8b6f);
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 16px;
    animation: borderGlow 3s ease infinite;
    opacity: 0.7;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 粒子效果 */
.login-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.login-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #6fcfb0;
    border-radius: 50%;
    box-shadow: 0 0 10px #6fcfb0;
    animation: particleFloat 6s ease-in-out infinite;
}

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

/* 登录标题 */
.login-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.login-title h2 {
    color: #6fcfb0;
    font-size: 28px;
    letter-spacing: 5px;
    text-shadow: 0 0 20px #2e8b6f, 0 0 40px #2e8b6f;
    margin-bottom: 10px;
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { 
        text-shadow: 0 0 20px #2e8b6f, 0 0 40px #2e8b6f;
        transform: scale(1);
    }
    50% { 
        text-shadow: 0 0 30px #6fcfb0, 0 0 60px #6fcfb0;
        transform: scale(1.02);
    }
}

.login-title .subtitle {
    color: #8b8b8b;
    font-size: 12px;
    letter-spacing: 3px;
}

/* 输入框样式 */
.login-input-group {
    position: relative;
    margin-bottom: 25px;
}

.login-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(15, 20, 19, 0.8);
    border: 2px solid #3a7b63;
    border-radius: 8px;
    color: #b5ead7;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    outline: none;
}

.login-input:focus {
    border-color: #6fcfb0;
    box-shadow: 0 0 20px rgba(111, 207, 176, 0.3), inset 0 0 15px rgba(111, 207, 176, 0.1);
    transform: translateY(-2px);
}

.login-input::placeholder {
    color: #5a7a6f;
}

/* 输入框标签动画 */
.login-input-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #5a7a6f;
    font-size: 14px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.login-input:focus + .login-input-label,
.login-input:not(:placeholder-shown) + .login-input-label {
    top: -10px;
    left: 15px;
    font-size: 12px;
    color: #6fcfb0;
    background: rgba(15, 20, 19, 0.95);
    padding: 0 8px;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #2e8b6f, #3a9b7f);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

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

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(46, 139, 111, 0.4);
}

.login-btn:active {
    transform: translateY(-1px);
}

/* 加载动画 */
.login-loading {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.login-loading.active {
    display: flex;
}

.login-loading span {
    width: 10px;
    height: 10px;
    background: #6fcfb0;
    border-radius: 50%;
    animation: loadingBounce 1.4s ease-in-out infinite both;
}

.login-loading span:nth-child(1) { animation-delay: -0.32s; }
.login-loading span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loadingBounce {
    0%, 80%, 100% { 
        transform: scale(0);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* 几何装饰图形 */
.geometric-shape {
    position: absolute;
    border: 1px solid rgba(111, 207, 176, 0.3);
    animation: geometricRotate 20s linear infinite;
}

.geometric-shape.shape-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 10%;
    animation-direction: reverse;
}

.geometric-shape.shape-2 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 10%;
    transform: rotate(45deg);
}

.geometric-shape.shape-3 {
    width: 80px;
    height: 80px;
    top: 50%;
    right: 5%;
    border-radius: 50%;
}

@keyframes geometricRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 扫描线效果 */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6fcfb0, transparent);
    animation: scanMove 3s linear infinite;
    opacity: 0.5;
}

@keyframes scanMove {
    0% { top: 0; opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { top: 100%; opacity: 0; }
}

/* 成功动画 */
.login-success {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 14, 0.95);
    z-index: 10001;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.login-success.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

.success-checkmark {
    width: 100px;
    height: 100px;
    border: 3px solid #6fcfb0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    color: #6fcfb0;
    margin-bottom: 30px;
    animation: checkmarkPop 0.5s ease 0.3s both;
    box-shadow: 0 0 30px rgba(111, 207, 176, 0.5);
}

@keyframes checkmarkPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.success-text {
    color: #6fcfb0;
    font-size: 24px;
    letter-spacing: 5px;
    text-shadow: 0 0 20px #2e8b6f;
    animation: fadeInUp 0.5s ease 0.6s both;
}

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

@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-container {
        width: 90%;
        padding: 30px 20px;
    }
    
    .login-title h2 {
        font-size: 22px;
    }
}

/* ==================== 道具、商城等通用卡片样式 ==================== */
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px,1fr));
    gap: 8px;
    margin: 8px 0;
}
.item-card {
    background: #0f1413;
    border: 1px solid #3a7b63;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.item-card:hover { background: #1a2f28; transform: scale(1.02); }

.progress-bar {
    background: #1a332b;
    height: 20px;
    border-radius: 10px;
    margin: 8px 0;
    overflow: hidden;
    border: 1px solid #3a7b63;
}
.progress-fill {
    background: #2e8b6f;
    height: 100%;
    width: 0%;
    transition: width 0.3s;
    color: white;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
}

.defense-event {
    background: #332b1a;
    border-left: 4px solid #f5e56b;
    padding: 8px;
    margin: 8px 0;
}
.timer {
    font-size: 18px;
    font-weight: bold;
    color: #f5e56b;
}

/* ==================== 多人游戏大厅样式 ==================== */
.game-list {
    max-height: 300px;
    overflow-y: auto;
    margin: 10px 0;
}
.game-item {
    background: #0f1413;
    border: 1px solid #3a7b63;
    padding: 10px;
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.game-info {
    flex: 1;
}
.join-btn {
    width: auto;
    margin: 0;
}
.tab-bar {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #3a7b63;
}
.tab {
    padding: 8px 16px;
    cursor: pointer;
    background: transparent;
    border: none;
    color: #b5ead7;
}
.tab.active {
    background: #2e8b6f;
    color: white;
}
.create-form label {
    display: block;
    margin: 10px 0 5px;
}
.create-form select {
    margin-bottom: 15px;
}

/* ==================== 论坛样式 ==================== */
.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.forum-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.forum-post-item {
    background: #0f1413;
    border: 1px solid #3a7b63;
    padding: 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.forum-post-item:hover {
    background: #1a2f28;
    transform: translateX(5px);
}
.forum-post-title {
    font-size: 18px;
    font-weight: bold;
    color: #9bffb5;
}
.forum-post-meta {
    font-size: 12px;
    color: #8b8b8b;
    margin-top: 5px;
}
.forum-post-preview {
    margin-top: 10px;
    color: #b5ead7;
}
.forum-official {
    background: #ff6f6f;
    color: black;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
}
.forum-visibility {
    font-size: 12px;
    margin-left: 10px;
}
.forum-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}
.forum-comment {
    background: #0f1413;
    border-left: 3px solid #2e8b6f;
    padding: 10px;
    margin: 10px 0;
}
.forum-comment-meta {
    font-size: 12px;
    color: #8b8b8b;
}
.forum-ai-eval {
    background: #1a332b;
    padding: 5px;
    border-radius: 4px;
    margin-top: 5px;
    color: #ffb86b;
}
.back-btn {
    width: auto;
    margin-bottom: 10px;
}
.notification-badge {
    background: #ff7b7b;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    margin-left: 5px;
}

/* 星河开创者称号 */
.star-creator {
    background: linear-gradient(45deg, #ffd700, #ffa500);
    color: black;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 8px;
    font-weight: bold;
    display: inline-block;
}

/* ==================== SXX终端独特样式 ==================== */
#sxxModal {
    background: #1a0f0f;
}
#sxxModal .modal-content {
    background: linear-gradient(135deg, #0d0808 0%, #1a0f0f 50%, #0d0808 100%);
    border: 2px solid #ff3333;
    color: #ffcccc;
    box-shadow: 0 0 50px rgba(255, 51, 51, 0.3), inset 0 0 100px rgba(255, 0, 0, 0.05);
    width: 95%;
    height: 90%;
    max-width: 1200px;
    max-height: 800px;
    border-radius: 15px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* SXX 标题栏 */
.sxx-header {
    background: linear-gradient(90deg, #330000, #660000, #330000);
    padding: 15px 25px;
    border-bottom: 2px solid #ff3333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.sxx-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff0000, transparent);
    animation: sxxPulse 2s infinite;
}

@keyframes sxxPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.sxx-header h2 {
    color: #ff4444;
    text-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000;
    border: none;
    margin: 0;
    font-size: 28px;
    letter-spacing: 5px;
    font-family: 'Orbitron', monospace;
}

.sxx-close-btn {
    background: #660000;
    border: 1px solid #ff3333;
    color: #ff6666;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sxx-close-btn:hover {
    background: #ff3333;
    color: #fff;
    transform: rotate(90deg);
    box-shadow: 0 0 20px #ff0000;
}

/* SXX 状态面板 */
.sxx-status-panel {
    background: rgba(51, 0, 0, 0.5);
    padding: 12px 25px;
    border-bottom: 1px solid #660000;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.sxx-status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.sxx-status-label {
    color: #ff9999;
    font-weight: bold;
}

.sxx-status-value {
    color: #ff6666;
    font-family: 'Courier New', monospace;
}

.sxx-status-bar {
    flex: 1;
    height: 6px;
    background: #330000;
    border-radius: 3px;
    overflow: hidden;
}

.sxx-status-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0000, #ff6666);
    border-radius: 3px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px #ff0000;
}

/* SXX 日志区域 */
#sxxModal .sxx-log {
    background: linear-gradient(180deg, #1a0a0a 0%, #0d0808 100%);
    border: 1px solid #660000;
    color: #ffcccc;
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    margin: 15px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    border-radius: 8px;
    box-shadow: inset 0 0 30px rgba(255, 0, 0, 0.1);
}

#sxxModal .sxx-log::-webkit-scrollbar {
    width: 8px;
}

#sxxModal .sxx-log::-webkit-scrollbar-track {
    background: #1a0a0a;
}

#sxxModal .sxx-log::-webkit-scrollbar-thumb {
    background: #660000;
    border-radius: 4px;
}

#sxxModal .sxx-log::-webkit-scrollbar-thumb:hover {
    background: #990000;
}

#sxxModal .sxx-log > div {
    padding: 4px 0;
    border-bottom: 1px solid rgba(102, 0, 0, 0.3);
    animation: sxxFadeIn 0.3s ease;
}

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

/* SXX 输入区域 */
.sxx-prompt {
    display: flex;
    gap: 15px;
    padding: 15px 25px;
    background: rgba(51, 0, 0, 0.3);
    border-top: 1px solid #660000;
}

.sxx-prompt input {
    flex: 1;
    background: #1a0a0a;
    border: 2px solid #660000;
    color: #ff6666;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    transition: all 0.3s ease;
    margin: 0;
}

.sxx-prompt input:focus {
    outline: none;
    border-color: #ff3333;
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.3);
}

.sxx-prompt button {
    width: auto;
    margin: 0;
    background: linear-gradient(135deg, #660000, #990000);
    border: 2px solid #ff3333;
    color: #ffcccc;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sxx-prompt button:hover {
    background: linear-gradient(135deg, #990000, #cc0000);
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.5);
    transform: translateY(-2px);
}

/* SXX 快捷命令按钮 */
.sxx-quick-commands {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 25px;
    background: rgba(51, 0, 0, 0.2);
}

.sxx-quick-btn {
    background: rgba(102, 0, 0, 0.5);
    border: 1px solid #660000;
    color: #ff9999;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sxx-quick-btn:hover {
    background: #660000;
    border-color: #ff3333;
    color: #fff;
    transform: scale(1.05);
}

/* ==================== SXX 入场动画层 ==================== */
#sxxAnimationOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 9999;
    overflow: hidden;
    pointer-events: auto;
    display: none;
}

.sxx-animation-text {
    position: absolute;
    color: #0f0;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    user-select: none;
    opacity: 0;
}

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

/* ==================== 天气模式样式 ==================== */
#weatherModal .modal-content {
    background: #0a0a14;
    border: 2px solid #00f3ff;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
    position: relative;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
}

#weatherModal iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

#weatherModal button.danger {
    position: absolute;
    top: 20px;
    right: 20px;
    width: auto;
    z-index: 1001;
    background: #8b2e2e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    border: 1px solid #ff7b7b;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

#weatherModal button.danger:hover {
    background: #9f3a3a;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

/* 天气页面内部的样式 */
#weatherModal .weather-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#weatherModal .current-temp {
    background: linear-gradient(45deg, #00f3ff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#weatherModal .stat-item .value {
    color: #00f3ff;
}

#weatherModal h2, #weatherModal h3 {
    color: #00f3ff;
    font-family: 'Orbitron', sans-serif;
}

/* ==================== 剧情模式样式 ==================== */
#storyModal .modal-content {
    background: #1a2f28;
    border: 2px solid #9bffb5;
}

.story-log {
    background: #0f1413;
    border: 1px solid #3a7b63;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    margin-bottom: 15px;
    font-family: monospace;
}

.story-prompt {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.story-prompt input {
    flex: 1;
    padding: 8px;
    background: #0f1413;
    border: 1px solid #3a7b63;
    color: #b5ead7;
    font-family: 'Courier New', monospace;
}

.story-prompt button {
    width: auto;
    padding: 8px 16px;
    background: #2e8b6f;
    border: none;
    color: white;
    cursor: pointer;
}

.story-prompt button:hover {
    background: #3a9b7f;
}

/* ==================== 成就系统样式 ==================== */
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin: 20px 0;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}
.achievement-card {
    background: #0f1413;
    border: 1px solid #3a7b63;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.achievement-card.locked {
    opacity: 0.6;
    filter: grayscale(0.5);
}
.achievement-card.unlocked {
    border-color: #9bffb5;
    box-shadow: 0 0 15px rgba(155, 255, 181, 0.3);
}
.achievement-card.legendary {
    border-color: #ffd700;
    background: linear-gradient(145deg, #1a2f28, #0f1413);
}
.achievement-icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.achievement-name {
    font-size: 16px;
    font-weight: bold;
    color: #9bffb5;
    margin-bottom: 4px;
}
.achievement-category {
    font-size: 12px;
    color: #8b8b8b;
    margin-bottom: 8px;
}
.achievement-desc {
    font-size: 13px;
    color: #b5ead7;
    margin-bottom: 8px;
}
.achievement-reward {
    font-size: 12px;
    color: #ffb86b;
}
.achievement-progress {
    margin-top: 8px;
    height: 4px;
    background: #1a332b;
    border-radius: 2px;
    overflow: hidden;
}
.achievement-progress-bar {
    height: 100%;
    background: #2e8b6f;
    transition: width 0.3s ease;
}
.achievement-unlock-time {
    font-size: 10px;
    color: #6e8b82;
    margin-top: 4px;
    text-align: right;
}
.category-header {
    font-size: 20px;
    color: #9bffb5;
    margin: 20px 0 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #3a7b63;
    display: flex;
    align-items: center;
    gap: 10px;
}
.category-stats {
    font-size: 14px;
    color: #b5ead7;
    margin-left: auto;
}
.legendary-badge {
    background: #ffd700;
    color: #000;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 8px;
}
.stats-panel {
    background: #0f1413;
    border: 1px solid #3a7b63;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}
.stat-item {
    text-align: center;
}
.stat-value {
    font-size: 24px;
    color: #9bffb5;
    font-weight: bold;
}
.stat-label {
    font-size: 12px;
    color: #8b8b8b;
}

/* ==================== 滚动条美化 ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #1a2a25;
}
::-webkit-scrollbar-thumb {
    background: #3d6b5c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4f8b77;
}

/* ==================== 工具类 ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }
.ml-10 { margin-left: 10px; }
.mr-10 { margin-right: 10px; }
.p-10 { padding: 10px; }
.p-20 { padding: 20px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.w-full { width: 100%; }
.h-full { height: 100%; }

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .terminal-container {
        height: 100vh;
        border-radius: 0;
    }
    .modal-content {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    .achievement-grid {
        grid-template-columns: 1fr;
    }
    .forum-post-title {
        font-size: 16px;
    }
}

/* ==================== 终端快捷键提示 ==================== */
.terminal-shortcut-hint {
    position: absolute;
    top: 10px;
    right: 20px;
    color: rgba(111, 207, 176, 0.3);
    font-size: 12px;
    font-family: 'Courier New', Courier, monospace;
    pointer-events: none;
}

.terminal-shortcut-hint span {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(46, 139, 111, 0.1);
    border-radius: 4px;
    margin: 0 2px;
    border: 1px solid rgba(46, 139, 111, 0.2);
}

/* ==================== 薪火计划样式 ==================== */
.coalition-info {
    background: rgba(46, 139, 111, 0.1);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #3a7b63;
}

.coalition-info p {
    margin-bottom: 12px;
    color: #b5ead7;
    font-weight: bold;
}

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

.coalition-info li {
    padding: 6px 0;
    color: #8b9bb0;
    border-bottom: 1px solid rgba(58, 123, 99, 0.3);
}

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

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

.coalition-form label {
    display: block;
    margin-bottom: 8px;
    color: #6fcfb0;
    font-weight: bold;
}

.coalition-form input {
    width: 100%;
    padding: 10px;
    background: #0f1413;
    border: 1px solid #3a7b63;
    color: #b5ead7;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.coalition-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-item {
    background: rgba(46, 139, 111, 0.05);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #3a7b63;
}

.stat-item span {
    display: block;
    margin-bottom: 8px;
    color: #6fcfb0;
    font-weight: bold;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #0f1413;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #2e8b6f, #6fcfb0);
    transition: width 0.3s ease;
}

.coalition-roles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.role-box {
    background: rgba(46, 139, 111, 0.05);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #3a7b63;
    text-align: center;
}

.role-box h3 {
    color: #6fcfb0;
    margin-bottom: 12px;
}

.coalition-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.coalition-actions .btn {
    flex: 1;
}

.coalition-logs {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #3a7b63;
    max-height: 200px;
    overflow-y: auto;
}

.coalition-logs h3 {
    color: #6fcfb0;
    margin-bottom: 8px;
    font-size: 14px;
}

.coalition-logs p {
    margin: 4px 0;
    font-size: 12px;
    color: #b5ead7;
}

.coalition-status {
    padding: 12px;
    background: rgba(46, 139, 111, 0.05);
    border-radius: 8px;
    border: 1px solid #3a7b63;
    margin-top: 16px;
}

.coalition-status .loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #3a7b63;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== 登录动画样式 ==================== */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0f0e;
    z-index: 9999;
    overflow: hidden;
}

.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.matrix-column {
    position: absolute;
    top: -100%;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #2e8b6f;
    text-shadow: 0 0 10px #2e8b6f;
    writing-mode: vertical-rl;
    animation: matrixFall linear infinite;
    opacity: 0.6;
}

@keyframes matrixFall {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200vh); }
}

.login-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.login-particle {
    position: absolute;
    border-radius: 50%;
    animation: particleFloat linear infinite;
    opacity: 0.8;
}

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

.geometric-shape {
    position: absolute;
    border: 2px solid rgba(46, 139, 111, 0.3);
    animation: shapeRotate 10s linear infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 20s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 30%;
    left: 70%;
    border-color: rgba(111, 207, 176, 0.3);
    animation-duration: 15s;
    animation-direction: reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 70%;
    left: 30%;
    border-color: rgba(46, 139, 111, 0.3);
    animation-duration: 12s;
}

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

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, rgba(46, 139, 111, 0.5), transparent);
    animation: scanLine 4s linear infinite;
    pointer-events: none;
    opacity: 0.3;
}

@keyframes scanLine {
    0% { top: 0; }
    100% { top: 100%; }
}

.login-container {
    position: relative;
    width: 400px;
    padding: 40px;
    background: rgba(15, 20, 19, 0.9);
    border: 1px solid #3a7b63;
    border-radius: 16px;
    box-shadow: 
        0 0 50px rgba(46, 139, 111, 0.3),
        inset 0 0 30px rgba(46, 139, 111, 0.1);
    overflow: hidden;
    margin: auto;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #2e8b6f, #6fcfb0, #2e8b6f, #6fcfb0, #2e8b6f);
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 16px;
    animation: borderGlow 3s ease infinite;
    opacity: 0.7;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
}

.login-title h2 {
    color: #6fcfb0;
    font-size: 48px;
    text-shadow: 0 0 20px rgba(46, 139, 111, 0.5);
    letter-spacing: 8px;
    margin-bottom: 8px;
}

.subtitle {
    color: #8b9bb0;
    font-size: 14px;
    letter-spacing: 12px;
    text-transform: uppercase;
}

.login-input-group {
    position: relative;
    margin-bottom: 24px;
}

.login-input {
    width: 100%;
    padding: 12px 16px;
    background: #0f1413;
    border: 1px solid #3a7b63;
    border-radius: 8px;
    color: #b5ead7;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    transition: all 0.3s ease;
}

.login-input:focus {
    outline: none;
    border-color: #6fcfb0;
    box-shadow: 0 0 15px rgba(111, 207, 176, 0.3);
}

.login-input-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b9bb0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.login-input:focus + .login-input-label,
.login-input:not(:placeholder-shown) + .login-input-label {
    top: 0;
    font-size: 12px;
    color: #6fcfb0;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2e8b6f, #3e9b7f);
    border: none;
    border-radius: 8px;
    color: #b5ead7;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.login-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 ease;
}

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

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(46, 139, 111, 0.4);
}

.login-btn:active {
    transform: translateY(1px);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-btn-text {
    position: relative;
    z-index: 1;
}

.login-loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login-loading.active {
    display: block;
}

.login-loading span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #b5ead7;
    border-radius: 50%;
    margin: 0 3px;
    animation: loadingDots 1.2s ease-in-out infinite;
}

.login-loading span:nth-child(1) { animation-delay: 0s; }
.login-loading span:nth-child(2) { animation-delay: 0.2s; }
.login-loading span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadingDots {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-8px); opacity: 1; }
}

.login-success {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.login-success.active {
    opacity: 1;
    visibility: visible;
}

.success-checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2e8b6f, #6fcfb0);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px;
    color: #b5ead7;
    box-shadow: 0 0 50px rgba(46, 139, 111, 0.5);
    animation: checkmarkPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkmarkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-text {
    margin-top: 30px;
    font-size: 36px;
    color: #6fcfb0;
    text-shadow: 0 0 20px rgba(46, 139, 111, 0.5);
    animation: textSlideUp 0.6s ease 0.3s forwards;
}

@keyframes textSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .login-container {
        width: 90%;
        padding: 24px;
    }
    
    .login-title h2 {
        font-size: 36px;
    }
}

/* ==================== 开放世界制作系统 ==================== */
.openworld-search,
.openworld-craft {
    padding: 20px;
}

.container-grid,
.craft-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.craft-list {
    grid-template-columns: 1fr;
}

.craft-item {
    background: linear-gradient(135deg, #1a1e1d 0%, #151918 100%);
    border: 1px solid #3a5f55;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.craft-item:hover {
    border-color: #6fcfb0;
    box-shadow: 0 0 20px rgba(111, 207, 176, 0.3);
}

.craft-item.disabled {
    opacity: 0.5;
    filter: grayscale(0.8);
}

.craft-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #3a5f55;
}

.craft-item-header strong {
    color: #6fcfb0;
    font-size: 16px;
}

.craft-item-header span {
    color: #b5ead7;
    font-size: 12px;
    margin-left: 10px;
}

.craft-materials {
    color: #d1e8e2;
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.craft-materials span {
    display: inline-block;
    margin-right: 10px;
}

.craft-item .btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #2e8b6f 0%, #6fcfb0 100%);
    border: none;
    border-radius: 6px;
    color: #0a0f0e;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.craft-item .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(46, 139, 111, 0.5);
}

.craft-item.disabled .btn {
    display: none;
}

/* 搜索容器结果 */
#searchResult,
#craftResult {
    background: rgba(10, 15, 14, 0.5);
    border: 1px solid #3a5f55;
    border-radius: 8px;
    padding: 15px;
}

#searchResult div,
#craftResult div {
    margin-bottom: 10px;
    padding: 10px;
    border-left: 3px solid #6fcfb0;
    background: rgba(46, 139, 111, 0.1);
}
    
    .coalition-stats {
        grid-template-columns: 1fr;
    }
    
    .coalition-roles {
        grid-template-columns: 1fr;
    }
}