/* static/style.css */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { background: #0a0c0b; color: #b8d9b0; font-family: "Courier New", monospace; display: flex; justify-content: center; align-items: center; min-height: 100vh; margin: 0; padding: 10px; }
.container { width: 100%; max-width: 500px; background: #1e2a24; border: 3px solid #5a4c3c; border-radius: 20px; padding: 15px; }
.status-bar { background: #2b3b2b; border: 2px solid #6b8c5c; border-radius: 12px; padding: 10px; margin-bottom: 15px; display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; font-size: 14px; }
.status-item { background: #1f2f1f; padding: 5px; border-radius: 6px; border: 1px solid #4a6b3f; text-align: center; }
.game-window { background: #1d261d; border: 2px inset #6b8c5c; border-radius: 12px; padding: 12px; min-height: 180px; margin-bottom: 15px; }
.map-description { color: #d4edc9; border-bottom: 1px dashed #6b8c5c; padding-bottom: 8px; margin-bottom: 10px; font-weight: bold; }
.log-area { background: #0f150f; padding: 10px; border-radius: 8px; height: 150px; overflow-y: auto; font-size: 14px; color: #b1d0a7; }
.action-bar { background: #2a372a; border: 2px solid #6b8c5c; border-radius: 12px; padding: 12px; }
.move-buttons { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 12px; }
.main-buttons { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.action-btn { background: #3f543a; border: 2px solid #97b58f; color: #e2ffd6; padding: 12px 5px; font-size: 16px; font-weight: bold; border-radius: 30px; cursor: pointer; text-align: center; min-height: 44px; }
.action-btn:active { background: #5e7c55; transform: translateY(2px); }
.login-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.9); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.login-box { background: #1e2e1e; border: 4px double #7aa06d; padding: 25px; border-radius: 30px; width: 90%; max-width: 320px; text-align: center; }
.login-box input { width: 100%; padding: 12px; margin: 10px 0; background: #172117; border: 2px solid #6b9461; color: #cfecbf; font-size: 16px; border-radius: 30px; text-align: center; }
.login-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.login-btns button { background: #3f6b37; border: none; color: white; padding: 12px; font-size: 16px; border-radius: 40px; cursor: pointer; }
.modal { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-content { background: #1f2e1f; border: 3px solid #7fb078; border-radius: 20px; padding: 20px; max-width: 400px; width: 90%; max-height: 80vh; overflow-y: auto; color: #b8e0a8; position: relative; }
.close-modal { position: absolute; top: 10px; right: 15px; font-size: 28px; cursor: pointer; color: #e08585; }
.bag-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 15px; }
.bag-item { background: #2a402a; border: 2px solid #6b8c5c; border-radius: 12px; padding: 10px; text-align: center; font-size: 14px; }
.bag-item button { background: #4e6b45; border: none; color: white; padding: 5px 10px; margin: 3px; border-radius: 20px; font-size: 12px; cursor: pointer; }
/* 装备相关样式 */
.equip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.equip-item {
    background: #2a402a;
    border: 2px solid #6b8c5c;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.equip-item:hover {
    background: #3a503a;
    border-color: #97b58f;
    transform: translateY(-2px);
}

.equip-part {
    color: #d4edc9;
    font-weight: bold;
    font-size: 14px;
    border-bottom: 1px solid #6b8c5c;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.equip-name {
    color: #97b58f;
    font-size: 16px;
    margin: 5px 0;
}

.equip-attr {
    color: #b8d9b0;
    font-size: 12px;
}

.equip-empty {
    color: #6b8c5c;
    font-size: 14px;
    padding: 10px;
}

/* 背包物品样式增强 */
.bag-item {
    position: relative;
    padding-bottom: 30px;
}

.item-name {
    color: #d4edc9;
    font-weight: bold;
    font-size: 14px;
}

.item-type {
    color: #97b58f;
    font-size: 12px;
    margin: 2px 0;
}

.item-attrs {
    color: #b8d9b0;
    font-size: 11px;
}

.item-level {
    color: #e08585;
    font-size: 10px;
}

.item-desc {
    color: #6b8c5c;
    font-size: 10px;
    margin: 2px 0;
}

.wear-btn {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: #3f6b37;
    border: none;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 11px;
    cursor: pointer;
    width: auto;
}

.wear-btn:hover {
    background: #5e7c55;
}
/* 技能相关样式 */
.skill-item {
    cursor: pointer;
    transition: all 0.2s;
}

.skill-item:hover {
    background: #3a503a !important;
    border-color: #97b58f !important;
    transform: translateY(-2px);
}

.skill-item button {
    background: #3f6b37;
    border: none;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
}

.skill-item button:hover {
    background: #5e7c55;
}
/* 物品类型样式 */
.bag-item.equip-item { border-color: #6b8c5c; }
.bag-item.consumable-item { border-color: #5c8c8c; }
.bag-item.material-item { border-color: #8c8c5c; }
.bag-item.gift-item { 
    border-color: #d4a017; 
    background: linear-gradient(135deg, rgba(212,160,23,0.1), rgba(212,160,23,0.05));
}
.bag-item.gift-item .item-name {
    color: #ffd700;
    font-weight: bold;
}

.item-count {
    color: #e08585;
    font-size: 12px;
    margin-left: 5px;
}

.item-actions {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 8px;
}

.item-btn {
    border: none;
    color: white;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 11px;
    cursor: pointer;
    flex: 1;
}

.wear-btn { background: #3f6b37; }
.use-btn { background: #376b6b; }
.recycle-btn { background: #6b3737; }

.wear-btn:hover { background: #5e7c55; }
.use-btn:hover { background: #558c8c; }
.recycle-btn:hover { background: #8c5555; }

/* 背包过滤按钮 */
.filter-btn.active {
    background: #5e7c55;
    transform: translateY(2px);
}

/* 物品详情 */
.item-name {
    color: #d4edc9;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 3px;
}

.item-type {
    color: #97b58f;
    font-size: 11px;
    margin-bottom: 2px;
}

.item-attrs {
    color: #b8d9b0;
    font-size: 10px;
    margin: 2px 0;
}

.item-level {
    color: #e08585;
    font-size: 9px;
}

.item-desc {
    color: #6b8c5c;
    font-size: 9px;
    margin: 2px 0;
}

/* 禁止复制和选择文本 */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* 允许输入框和文本域选择文本 */
input, textarea, select {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}