/* ================= 1. 全局变量 ================= */
:root {
  --mc-gui-bg: #C6C6C6; --mc-gui-border-light: #FFFFFF;
  --mc-gui-border-dark: #555555; --mc-gui-slot: #8B8B8B;
  --mc-gui-slot-shadow: #373737;
  --text-main: #333333; --btn-green: #59C967; 
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { 
  margin: 0; padding: 0; background: #111522; color: #fff; 
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; 
  -webkit-user-select: none; user-select: none; overflow-x: hidden; 
  touch-action: manipulation; 
}
.mc-pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
.hidden { display: none !important; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: #555; border-radius: 4px; border: 1px solid #333; }
::-webkit-scrollbar-thumb:hover { background: #888; }

/* ================= 2. 欢迎界面 ================= */
#welcome-view { position: absolute; width: 100%; height: 100vh; z-index: 100; display: flex; flex-direction: column; }
.sky-bg { flex: 1; position: relative; overflow: hidden; background: linear-gradient(180deg, #0B1638 0%, #1C2D66 40%, #462670 80%, #62226E 100%); background-size: 100% 150%; animation: sky-flow 8s ease-in-out infinite alternate; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 2vh; }
@keyframes sky-flow { 0% { background-position: 0% 0%; } 100% { background-position: 0% 100%; } }
.mc-moon { position: absolute; top: 8%; right: 12%; width: 60px; height: 60px; background: #FFD800; box-shadow: 0 0 20px rgba(255, 216, 0, 0.3); z-index: 1; }
.cloud { position: absolute; background: #E2E8F0; opacity: 0.9; z-index: 2;}
.cloud-1 { width: 100px; height: 30px; top: 12%; left: 5%; animation: float-cloud 40s linear infinite; box-shadow: 20px -30px 0 #E2E8F0, 40px -30px 0 #E2E8F0, 60px 0 0 #E2E8F0, -30px 30px 0 #E2E8F0, 0 30px 0 #E2E8F0, 30px 30px 0 #E2E8F0; }
.cloud-2 { width: 80px; height: 40px; top: 8%; right: -15%; animation: float-cloud 30s linear infinite reverse; box-shadow: -40px 40px 0 #E2E8F0, 0 40px 0 #E2E8F0; }
.cloud-3 { width: 110px; height: 30px; top: 25%; left: -20%; animation: float-cloud 55s linear infinite; box-shadow: 30px -30px 0 #E2E8F0, 60px -30px 0 #E2E8F0, -20px 30px 0 #E2E8F0; }
@keyframes float-cloud { 0% { transform: translateX(0); } 100% { transform: translateX(110vw); } }
.fly-particle { position: absolute; border-radius: 2px; pointer-events: none; animation: portal-fly forwards ease-out; z-index: 5; }
@keyframes portal-fly { 0% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)); opacity: 0; } }

.welcome-content { width: 90%; max-width: 540px; position: relative; display: flex; flex-direction: column; align-items: center; z-index: 10; }
.portal-container { position: relative; margin-bottom: 25px; display: flex; align-items: center; justify-content: center; }
.portal-icon { width: 150px; height: 200px; border: 14px solid #282836; box-shadow: 0 0 0 3px #13121A, inset 0 0 25px rgba(0,0,0,0.8), 0 15px 35px rgba(0,0,0,0.6); background-color: #701CB8; background-image: linear-gradient(45deg, #9A3FF0 25%, transparent 25%, transparent 75%, #9A3FF0 75%, #9A3FF0), linear-gradient(45deg, #9A3FF0 25%, transparent 25%, transparent 75%, #9A3FF0 75%, #9A3FF0); background-size: 32px 32px; background-position: 0 0, 16px 16px; position: relative; animation: float-portal 4s ease-in-out infinite alternate, flow-portal 1.5s linear infinite; }
@keyframes flow-portal { 0% { background-position: 0 0, 16px 16px; } 100% { background-position: -32px 32px, -16px 48px; } }
@keyframes float-portal { 0% { transform: translateY(5px); } 100% { transform: translateY(-8px); } }
.pickaxe-icon { position: absolute; bottom: 8%; left: -45px; font-size: 2.2rem; z-index: 10; filter: drop-shadow(0 4px 4px rgba(0,0,0,0.5)); }
.player-tag { background: #14213D; color: #fff; padding: 6px 20px; font-size: 0.95rem; font-weight: bold; border-radius: 4px; border: 2px solid #5BC8F4; margin-bottom: 15px; letter-spacing: 2px; }
.main-title { color: #fff; font-size: 3rem; font-weight: 900; margin: 0 0 15px 0; text-shadow: 0 4px 10px rgba(0,0,0,0.6); letter-spacing: 2px; }
.date-tag { color: #8AC2EA; font-size: 1.1rem; font-weight: bold; margin-bottom: 25px; }
.info-box { width: 100%; background: rgba(14, 30, 48, 0.8); border: 3px solid #3DB99E; color: #fff; padding: 20px 20px; font-size: 1.25rem; font-weight: bold; border-radius: 4px; margin-bottom: 20px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.start-btn { width: 100%; background: #58C966; border: 3px solid #1A4D23; color: #fff; font-size: 1.5rem; font-weight: bold; padding: 20px 0; border-radius: 4px; box-shadow: inset 0 4px 0 #8BE392, inset 0 -5px 0 #3E9447, 0 6px 15px rgba(0,0,0,0.4); cursor: pointer; display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 15px; -webkit-tap-highlight-color: transparent;}
.start-btn:active { transform: translateY(5px); box-shadow: inset 0 4px 0 #8BE392, inset 0 0 0 #3E9447; }
.start-btn::before { content: ''; position: absolute; left: 30px; width: 16px; height: 16px; background: #fff; transform: rotate(15deg); opacity: 0.8; }
.update-btn { background: #4A90E2; border: 2px solid #1C2D66; color: #fff; padding: 10px 20px; border-radius: 4px; font-weight: bold; cursor: pointer; box-shadow: inset 0 3px 0 #8AC2EA, 0 4px 10px rgba(0,0,0,0.3); -webkit-tap-highlight-color: transparent;}
.update-btn:active { transform: translateY(3px); box-shadow: inset 0 0 0 #8AC2EA; }

.ground-bg { height: 20vh; width: 100%; background: repeating-linear-gradient(-45deg, #B87346, #B87346 20px, #A56237 20px, #A56237 40px); position: relative; }
.ground-bg::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 16px; background: #7DBA3C; border-bottom: 6px solid #4D8F22; }

/* ================= 3. 主界面布局 ================= */
#app-container { width: 100%; height: 100vh; overflow-y: auto; background: #1C2333; display: flex; flex-direction: column; align-items: center; }
.app-inner { width: 100%; max-width: 1200px; min-height: 100vh; background: #1C2333; position: relative; box-shadow: 0 0 50px rgba(0,0,0,0.5); padding-bottom: 60px; }

.hero-banner { 
  background-color: #4A90E2; 
  background-image: linear-gradient(rgba(255,255,255,0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.15) 1px, transparent 1px); 
  background-size: 35px 35px; padding: 25px 40px; position: relative; overflow: hidden; border-bottom: 4px solid #141A29; 
  display: flex; flex-direction: column; gap: 20px; 
}

.hero-top-row { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; gap: 30px; flex-wrap: wrap; }
.hero-left { flex: 1; display: flex; flex-direction: column; justify-content: center;}
.hero-tag { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,0.25); padding: 5px 12px; font-size: 0.85rem; color: #fff; margin-bottom: 20px; border-radius: 2px; align-self: flex-start;}
.hero-date { font-size: 1.3rem; font-weight: bold; color: #fff; margin-bottom: 5px; text-shadow: 1px 1px 0 rgba(0,0,0,0.1);}
.hero-day { font-size: 5.5rem; font-weight: 900; color: #fff; margin: 0 0 10px -4px; line-height: 1.1; text-shadow: 3px 3px 0 rgba(0,0,0,0.15);}
.hero-desc { font-size: 1.05rem; color: #fff; margin-bottom: 25px; font-weight: bold; text-shadow: 1px 1px 0 rgba(0,0,0,0.1);}
.hero-badges { display: flex; gap: 12px; align-items: center; }
.badge-dark { background: #1C2333; border: 2px solid #333C52; padding: 8px 16px; border-radius: 6px; display: flex; align-items: center; gap: 8px; font-weight: bold; font-size: 1.1rem; box-shadow: 2px 2px 0 rgba(0,0,0,0.2); }
.badge-dark span { color: #8AC2EA; }
.badge-dark.green { color: #59C967; }
.admin-gear { font-size: 1.5rem; cursor: pointer; opacity: 0.5; transition: 0.2s; padding: 5px; }
.admin-gear:hover { opacity: 1; transform: rotate(90deg); }

/* ================= 4. 纸娃娃、属性与结合的装备栏 ================= */
.hero-right-status { 
  background: rgba(14, 21, 35, 0.85); border: 3px solid rgba(255, 255, 255, 0.15); border-radius: 8px; 
  padding: 20px 25px; display: flex; flex-direction: row; gap: 30px; align-items: stretch; justify-content: center; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), inset 0 0 20px rgba(0,0,0,0.5); transition: 0.3s ease; 
}
.equip-side { display: flex; flex-direction: column; justify-content: center; border-right: 2px dashed rgba(255,255,255,0.2); padding-right: 25px; }
.equip-count { background: #1C2333; border: 1px solid #333C52; padding: 2px 6px; font-size: 0.8rem; border-radius: 4px; color: #F3C746; font-weight: bold; }
.equip-slots { display: grid; grid-template-columns: repeat(2, 65px); gap: 10px; } 

.status-top-wrapper { display: flex; gap: 30px; align-items: center; justify-content: space-between; transition: 0.3s ease; }
.status-top-wrapper.in-battle { position: relative; z-index: 2600; filter: drop-shadow(0 0 15px rgba(89, 201, 103, 0.6)); transform: scale(1.05); }

.paper-doll { width: 96px; height: 192px; position: relative; display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.s-head { width: 48px; height: 48px; position: relative; z-index: 3; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'><rect width='8' height='8' fill='%23d7b594'/><rect width='8' height='2' fill='%23332014'/><rect y='2' width='1' height='1' fill='%23332014'/><rect x='7' y='2' width='1' height='1' fill='%23332014'/><rect x='1' y='4' width='2' height='1' fill='%23fff'/><rect x='2' y='4' width='1' height='1' fill='%23473e8c'/><rect x='5' y='4' width='2' height='1' fill='%23fff'/><rect x='5' y='4' width='1' height='1' fill='%23473e8c'/><rect x='3' y='5' width='2' height='1' fill='%23946f54'/><rect x='2' y='6' width='4' height='1' fill='%234a3018'/></svg>"); background-size: cover; image-rendering: pixelated; }
.s-body-row { display: flex; justify-content: center; position: relative; z-index: 2; }
.s-body { width: 48px; height: 72px; position: relative; z-index: 3; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'><rect width='8' height='12' fill='%2300a8a8'/><rect x='3' width='2' height='2' fill='%23d7b594'/><rect x='3' y='2' width='2' height='1' fill='%23b58d6e'/><rect y='11' width='8' height='1' fill='%23008585'/></svg>"); background-size: cover; image-rendering: pixelated; }
.s-arm { width: 24px; height: 72px; position: relative; z-index: 2; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 12'><rect width='4' height='12' fill='%23d7b594'/><rect width='4' height='4' fill='%2300a8a8'/><rect y='3' width='4' height='1' fill='%23008585'/><rect y='11' width='4' height='1' fill='%23b58d6e'/></svg>"); background-size: cover; image-rendering: pixelated; }
.s-leg-row { display: flex; justify-content: center; z-index: 1; }
.s-leg { width: 24px; height: 72px; position: relative; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 12'><rect width='4' height='12' fill='%23453c8b'/><rect y='10' width='4' height='2' fill='%236b6b6b'/><rect y='0' width='4' height='1' fill='%23322a68'/><rect y='11' width='4' height='1' fill='%234d4d4d'/></svg>"); background-size: cover; image-rendering: pixelated; }

.active-pet { position: absolute; bottom: -15px; right: -75px; width: 120px; height: 120px; object-fit: contain; image-rendering: pixelated; animation: float-pet 2.5s infinite alternate ease-in-out; z-index: 5; filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.5)); }
@keyframes float-pet { 0% { transform: translateY(0); } 100% { transform: translateY(-10px); } }

@keyframes steve-jump { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-20px); } 60% { transform: translateY(-20px); } }
@keyframes steve-cheer-l { 0%, 100% { transform: rotate(0); } 20%, 80% { transform: rotate(150deg) translateX(-8px) translateY(-5px); } }
@keyframes steve-cheer-r { 0%, 100% { transform: rotate(0); } 20%, 80% { transform: rotate(-150deg) translateX(8px) translateY(-5px); } }
.anim-cheer { animation: steve-jump 1s ease; }
.anim-cheer .s-arm.left { transform-origin: top right; animation: steve-cheer-l 1s ease; }
.anim-cheer .s-arm.right { transform-origin: top left; animation: steve-cheer-r 1s ease; }
@keyframes steve-punch { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-90deg); } 40% { transform: rotate(0); } 60% { transform: rotate(-90deg); } 80% { transform: rotate(0); } }
@keyframes steve-nod { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-10deg); } 40% { transform: rotate(10deg); } }
.anim-punch .s-arm.right { transform-origin: top left; animation: steve-punch 0.4s ease; }
.anim-punch .s-head { animation: steve-nod 0.4s ease; }
@keyframes steve-sad-head { 0%, 100% { transform: rotate(0) translateY(0); } 20%, 80% { transform: rotate(25deg) translateY(6px) translateX(2px); } }
@keyframes steve-sad-body { 0%, 100% { transform: scaleY(1); } 20%, 80% { transform: scaleY(0.9) translateY(4px); } }
@keyframes steve-sad-arm-l { 0%, 100% { transform: rotate(0); } 20%, 80% { transform: rotate(15deg) translateY(2px); } }
@keyframes steve-sad-arm-r { 0%, 100% { transform: rotate(0); } 20%, 80% { transform: rotate(-15deg) translateY(2px); } }
.anim-sad .s-head { transform-origin: bottom right; animation: steve-sad-head 1.2s ease; }
.anim-sad .s-body { transform-origin: bottom center; animation: steve-sad-body 1.2s ease; }
.anim-sad .s-arm.left { transform-origin: top right; animation: steve-sad-arm-l 1.2s ease; }
.anim-sad .s-arm.right { transform-origin: top left; animation: steve-sad-arm-r 1.2s ease; }

.cs-stats { display: flex; flex-direction: column; gap: 12px; justify-content: center;}
.cs-stat-box { display: flex; align-items: center; gap: 12px; background: rgba(0,0,0,0.3); padding: 8px 15px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.08); position: relative;}
.cs-stat-icon { font-size: 1.4rem; filter: drop-shadow(1px 1px 0 #000); width: 24px; text-align: center;}
.cs-stat-info { display: flex; flex-direction: column; }
.cs-label { color: #8AC2EA; font-size: 0.7rem; font-weight: bold; margin-bottom: 2px; letter-spacing: 1px; }
.cs-val-wrapper { position: relative; display: inline-flex; align-items: center;}
.cs-val { color: #fff; font-size: 1.2rem; font-weight: 900; line-height: 1; transition: transform 0.1s; }
.cs-val.atk { color: #F56565; }
.cs-val.def { color: #48BB78; }
.cs-val.exp { color: #F3C746; }

.pop-scale { animation: pop-anim 0.3s ease-out forwards; }
@keyframes pop-anim { 0% { transform: scale(1); } 50% { transform: scale(1.4); } 100% { transform: scale(1); } }
.floating-text { position: absolute; left: 100%; top: -5px; margin-left: 12px; font-size: 1.2rem; font-weight: 900; pointer-events: none; animation: float-up-fade 1.2s cubic-bezier(0.1, 0.8, 0.3, 1) forwards; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; white-space: nowrap; z-index: 50; }
.floating-text.pos { color: #59C967; }
.floating-text.neg { color: #E53E3E; }
@keyframes float-up-fade { 0% { transform: translateY(10px) scale(0.5); opacity: 0; } 20% { transform: translateY(0) scale(1.2); opacity: 1; } 80% { transform: translateY(-15px) scale(1); opacity: 1; } 100% { transform: translateY(-25px) scale(0.8); opacity: 0; } }

/* ================= 8. 内置主导航栏 ================= */
.main-nav-menu { 
    display: flex; 
    gap: 13px; /* 微调：从 10px 放大到 13px，拉开呼吸感 */
    margin-top: 5px; 
    flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; 
    -ms-overflow-style: none; scrollbar-width: none; 
}
.main-nav-menu::-webkit-scrollbar { display: none; }
.nav-btn {
    background: #1C2333; border: 2px solid #333C52; color: #718096;
    padding: 11px 21px; /* 微调：上下左右内边距进一步撑开，恢复饱满感 */
    border-radius: 6px; font-weight: bold; 
    font-size: 1.08rem; /* 微调：字号放大，接近最原始的 1.1rem */
    cursor: pointer; transition: 0.2s; box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
    display: flex; align-items: center; 
    gap: 8px; 
    white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.nav-btn:hover { background: #232B3E; color: #A0AEC0; }
.nav-btn.active {
    background: #59C967; border-color: #1A4D23; color: #fff;
    box-shadow: inset 0 -3px 0 #3E9447, 2px 2px 0 rgba(0,0,0,0.2);
}
.section-hidden { display: none !important; }

/* ================= 5. 背包与物品网格区域 ================= */
.dashboard-grid { display: flex; gap: 0; border-bottom: 4px solid #141A29; flex-wrap: wrap; align-items: stretch; background: transparent; }
.inv-panel { flex: 1; padding: 25px 30px; background: rgba(35, 43, 62, 0.7); display: flex; flex-direction: column; }
.inv-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.equip-title-en { color: #5BC8F4; font-size: 0.85rem; font-weight: bold; letter-spacing: 1px; margin-bottom: 6px; }
.equip-title-cn { color: #fff; font-size: 1.4rem; font-weight: bold; display: flex; align-items: center; gap: 10px;}
.equip-actions { display: flex; gap: 10px; }
.btn-sys { padding: 8px 14px; font-weight: bold; border-radius: 4px; border: 2px solid #000; display: flex; align-items: center; gap: 6px; cursor: pointer; color: #fff; font-size: 0.95rem; -webkit-tap-highlight-color: transparent;}
.btn-red { background: #E53E3E; box-shadow: inset 0 -3px 0 #C53030; }
.btn-red:active { box-shadow: inset 0 -1px 0 #C53030; transform: translateY(2px); }
.btn-teal { background: #28B1A6; box-shadow: inset 0 -3px 0 #15837B; }
.btn-teal:active { box-shadow: inset 0 -1px 0 #15837B; transform: translateY(2px); }
.e-slot { background: #1A1E2D; border: 2px solid #2C354A; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; cursor: pointer; transition: transform 0.1s ease; aspect-ratio: 1; z-index: 10;}
.e-slot:active { transform: scale(0.92); }

/* 关键修复：通用网格容器必须有限制，这样工作台才不会拉伸 */
.inventory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 6px; }

/* 主界面无底洞大背包：间距稍微大一点点 */
.main-inventory-wrapper { width: 100%; margin-top: auto;}
.main-inventory-wrapper .inventory-grid { grid-template-columns: repeat(auto-fill, minmax(65px, 1fr)); gap: 8px; }

.mc-slot { background: var(--mc-gui-slot); border: 2px solid #000; aspect-ratio: 1; box-shadow: inset 2px 2px 0 var(--mc-gui-slot-shadow), inset -2px -2px 0 var(--mc-gui-border-light); display: flex; align-items: center; justify-content: center; position: relative; cursor: pointer; transition: transform 0.1s ease; }
.mc-slot:active { transform: scale(0.92); }
.mc-slot img { width: 70%; height: 70%; object-fit: contain; }
.mc-slot .count { position: absolute; bottom: 0; right: 2px; font-size: 1.05rem; font-weight: bold; color: #fff; text-shadow: 2px 2px 0 #373737; pointer-events: none; }
.mc-slot.selected { border-color: #fff; box-shadow: 0 0 8px #fff, inset 2px 2px 0 var(--mc-gui-slot-shadow), inset -2px -2px 0 var(--mc-gui-border-light); }

/* ================= 6. 任务与日历 ================= */
.content-section { padding: 30px 40px; background: #1C2333; }
.calendar-wrapper { padding: 0 0 30px 0; background: transparent; border-bottom: 2px dashed rgba(255,255,255,0.1); margin-bottom: 30px; }
.sch-top { margin-bottom: 20px; }
.sch-title-en { display: none; }
.sch-title-cn { color: #fff; font-size: 1.4rem; font-weight: bold; border-left: 6px solid #59C967; padding-left: 12px; line-height: 1.1; }
.week-row { display: flex; background: #111522; border: 3px solid #141A29; padding: 8px; gap: 8px; border-radius: 8px; height: 110px;}
.day-pill { flex: 1; text-align: center; border: 2px solid #B5A898; border-radius: 4px; padding: 18px 0; font-weight: bold; font-size: 0.95rem; line-height: 1.4; color: #A09485; background: #D9CDBF; cursor: pointer; transition: 0.2s ease; box-shadow: inset 0 -3px 0 #C4B8A9; position: relative; }
.day-pill.selected { background: #59C967; color: #fff; border-color: #1A4D23; box-shadow: inset 0 -4px 0 #3E9447, inset 2px 2px 0 rgba(255,255,255,0.4), 0 0 10px rgba(89,201,103,0.5); }
.day-pill::before { content:''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0%; height: 6px; background: #58C966; border-radius: 4px; transition: 0.2s ease;}
.day-pill.is-today::before { width: 60%; }
.task-list-wrapper { padding: 0; background: transparent;}
.tl-header { margin-bottom: 20px; }
.tl-title { font-weight: bold; color: #fff; font-size: 1.4rem; border-left: 6px solid #5BC8F4; padding-left: 12px; line-height: 1.1; }
#task-list-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; align-items: stretch; }
.new-task-card { background: #fff; border: 3px solid #141A29; border-radius: 4px; display: flex; box-shadow: 4px 4px 0 rgba(0,0,0,0.1); height: 100%; }
.card-blue { background: #E5F0F9; border-left: 6px solid #A2C0D9; }
.card-cyan { background: #E3F5F2; border-left: 6px solid #A1D3CC; }
.card-orange { background: #FCEEE2; border-left: 6px solid #D9BBA2; }
.ntc-left { padding: 15px; }
.ntc-icon { width: 50px; height: 50px; background: #1E2335; border: 2px solid #141A29; border-radius: 4px; display: flex; align-items: center; justify-content: center; box-shadow: inset 2px 2px 0 #3C455E; }
.ntc-icon img { width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(2px 2px 0 #000); }
.ntc-right { flex: 1; padding: 15px 15px 15px 0; display: flex; flex-direction: column; }
.ntc-content-top { margin-bottom: 10px; }
.ntc-content-bottom { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.ntc-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.ntc-sub-t { color: #4A5568; font-weight: bold; font-size: 0.85rem; }
.ntc-time { background: #1E2335; color: #fff; font-size: 0.8rem; font-weight: bold; padding: 4px 8px; border-radius: 4px; border: 1px solid #141A29; }
.ntc-title { font-size: 1.3rem; font-weight: 900; color: #141A29; margin-bottom: 6px; }
.ntc-desc { color: #4A5568; font-size: 0.95rem; font-weight: bold; line-height: 1.3; margin-bottom: 0;}
.ntc-divider { border-top: 2px dashed #CBD5E0; margin: 0; }
.ntc-reward { display: inline-flex; align-items: center; background: #fff; border: 2px solid #141A29; padding: 4px 8px; font-size: 0.85rem; font-weight: bold; color: #141A29; border-radius: 4px; align-self: flex-start; margin: 0;}
.ntc-reward-none { color: #718096; font-size: 0.9rem; font-weight: bold; margin: 0;}
.hold-btn { position: relative; width: 100%; background: #68C966; border: 3px solid #141A29; height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 -4px 0 #3E9447, inset 2px 2px 0 rgba(255,255,255,0.4); overflow: hidden; border-radius: 4px; cursor: pointer; transition: none; -webkit-tap-highlight-color: transparent;}
.hold-progress { position: absolute; top: 0; left: 0; height: 100%; width: 0%; background: #4EA422; z-index: 1; transition: none; }
.hold-btn.pressing .hold-progress { width: 100%; transition: width 1.4s linear; }
.hold-text { position: relative; z-index: 2; font-weight: bold; font-size: 1.05rem; color: #fff; text-shadow: 1px 1px 0 #141A29; }
.hold-sub { position: relative; z-index: 2; font-size: 0.7rem; color: rgba(255,255,255,0.9); margin-top: 1px;}
.hold-btn.done { background: #E2E8F0; box-shadow: inset 0 -4px 0 #CBD5E0; border-color: #A0AEC0; pointer-events: none; }
.hold-btn.done .hold-text { color: #718096; text-shadow: none; }
.hold-btn.disabled { background: #A0AEC0; box-shadow: inset 0 -4px 0 #718096; border-color: #4A5568; pointer-events: none; opacity: 0.8; }
.hold-btn.disabled .hold-text { color: rgba(255,255,255,0.7); text-shadow: none; }

/* ================= 7. 弹窗 Modal & 后台系统 ================= */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; pointer-events: none; transition: 0.2s ease; }
.modal-overlay.show { opacity: 1; visibility: visible; pointer-events: auto; }
#battle-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 2500; opacity: 0; visibility: hidden; pointer-events: none; transition: 0.3s ease; }
#battle-bg.show { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-overlay.no-bg { background: transparent !important; }
.mc-inventory-gui { background: var(--mc-gui-bg); border: 3px solid #000; box-shadow: inset 4px 4px 0 var(--mc-gui-border-light), inset -4px -4px 0 var(--mc-gui-border-dark), 0 0 30px rgba(0,0,0,0.8); padding: 20px; width: 550px; max-width: 95%; max-height: 90vh; overflow-y: auto; position: relative;}
.gui-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; color: #373737; font-weight: bold; font-size: 1.2rem;}
.close-btn { font-size: 1.5rem; font-weight: bold; cursor: pointer; color: #373737; }
.region-list { display: flex; flex-direction: column; gap: 10px; }
.region-card { display: flex; align-items: center; justify-content: space-between; background: #8B8B8B; border: 2px solid #373737; padding: 12px 15px; box-shadow: inset 2px 2px 0 #C6C6C6; transition: 0.1s;}
.region-card:not(.locked):not(.done):active { transform: scale(0.98); }
.rc-left { display: flex; flex-direction: column; gap: 4px; color: #222; }
.rc-title { font-size: 1.3rem; font-weight: 900; display: flex; align-items: center; gap: 8px;}
.rc-sub { font-size: 0.85rem; font-weight: bold; color: #444; }
.rc-btn { background: #59C967; padding: 8px 20px; border: 2px solid #1A4D23; color: #fff; font-weight: bold; box-shadow: inset 0 -3px 0 #3E9447; cursor: pointer; border-radius: 2px;}
.rc-btn:active { box-shadow: inset 0 -1px 0 #3E9447; transform: translateY(2px); }
.region-card.locked { background: #555; box-shadow: inset 2px 2px 0 #777; opacity: 0.8; pointer-events: none;}
.region-card.locked .rc-title, .region-card.locked .rc-sub { color: #222; }
.region-card.locked .rc-btn { background: #444; box-shadow: inset 0 -3px 0 #222; border-color: #111; color: #777; }
.region-card.done { background: #777; opacity: 0.9; }
.region-card.done .rc-btn { background: #555; box-shadow: inset 0 -3px 0 #333; border-color: #222; color: #999; }
#battle-log-modal { z-index: 2700; }
.battle-log-gui { background: #111; border: 4px solid #333; width: 600px; max-width: 95%; box-shadow: inset 0 0 20px #000, 0 0 50px rgba(0,0,0,0.8); display: flex; flex-direction: column; border-radius: 4px; pointer-events: auto;}
.bl-header { background: #222; padding: 15px; color: #59C967; font-weight: bold; font-size: 1.2rem; border-bottom: 2px solid #333; display: flex; justify-content: space-between; align-items: center;}
.bl-content { padding: 20px; height: 350px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; font-family: monospace; font-size: 1.1rem; line-height: 1.5;}
.log-line { color: #ccc; text-shadow: 1px 1px 0 #000; animation: fade-in 0.2s ease forwards;}
.log-line.system { color: #5BC8F4; font-weight: bold; }
.log-line.combat { color: #F56565; }
.log-line.loot { color: #F3C746; font-weight: bold;}
.log-line.retreat { color: #D946EF; font-weight: bold;}
.bl-footer { padding: 15px; background: #222; border-top: 2px solid #333; display: flex; justify-content: center; }
.bl-close-btn { background: #59C967; padding: 10px 30px; border: 2px solid #1A4D23; color: #fff; font-weight: bold; font-size: 1.1rem; box-shadow: inset 0 -3px 0 #3E9447; cursor: pointer; border-radius: 2px; margin: 0 5px;}
@keyframes fade-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.completion-dialog { background: #1C2333; border: 4px solid #141A29; padding: 25px; border-radius: 4px; width: 420px; max-width: 90%; display: flex; gap: 20px; align-items: center; box-shadow: 0 0 0 2px #5BC8F4, 10px 10px 0 rgba(0,0,0,0.3); cursor: pointer; }
.dialog-icon-box { width: 80px; height: 80px; background: #0F1627; border: 3px solid #141A29; display: flex; align-items: center; justify-content: center; border-radius: 4px; }
.pixel-diamond { width: 30px; height: 40px; background: #96E2EE; position: relative; border-radius: 2px; transform: rotate(0deg); box-shadow: 0 0 10px #5BC8F4; border: 2px solid #fff; }
.pixel-diamond::after { content: ''; position: absolute; top: 10px; left: 10px; width: 10px; height: 20px; background: #fff; opacity: 0.8; }
.dialog-text-box { flex: 1; }
.dialog-title { font-size: 1.8rem; font-weight: 900; color: #fff; margin-bottom: 8px; text-shadow: 1px 1px 0 rgba(0,0,0,0.3);}
.dialog-reward-sub { font-size: 1rem; color: #A0AEC0; font-weight: bold;}
.day-congratulations { text-align: center; padding: 50px; color: #fff; background: #232B3E; border-radius: 8px; margin-bottom: 20px; border: 4px solid #141A29; box-shadow: inset 1px 1px 0 #333, 0 0 30px rgba(89,201,103,0.2); }
.congrat-text { font-size: 2.2rem; font-weight: 900; color: #F3C746; margin-bottom: 30px; text-shadow: 2px 2px 0 rgba(0,0,0,0.3);}
.big-pixel-chest { width: 120px; height: 100px; margin: 0 auto 20px; background: #A66E38; border: 8px solid #2B1810; border-radius: 4px; box-shadow: inset 0 10px 0 #C9884A, inset 0 -10px 0 #7A4D24, 0 15px 30px rgba(0,0,0,0.5); position: relative; cursor: pointer; animation: chest-pulse 2s ease-in-out infinite alternate; }
.big-pixel-chest::before { content: ''; position: absolute; top: 38px; left: -8px; width: 120px; height: 6px; background: #2B1810; }
.big-pixel-chest::after { content: ''; position: absolute; width: 24px; height: 30px; background: #D1D5DB; border: 4px solid #2B1810; top: 25px; left: 50%; transform: translateX(-50%); box-shadow: inset 0 -4px 0 #94A3B8; }
@keyframes chest-pulse { 0% { transform: scale(1); filter: drop-shadow(0 0 15px #F3C746);} 100% { transform: scale(1.05); filter: drop-shadow(0 0 35px #F3C746);} }
.big-pixel-chest:active { transform: scale(0.95); transition: 0.1s; animation: none;}

.crafting-container { display: flex; align-items: center; justify-content: center; gap: 30px; margin-bottom: 25px; }
.crafting-grid-3x3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 180px; }
.crafting-arrow { font-size: 2.5rem; color: #555; font-weight: 900; }
.crafting-result-slot { width: 66px; height: 66px; }
.shop-tabs { display: flex; margin-bottom: 15px; gap: 10px; border-bottom: 3px solid #555; padding-bottom: 10px;}
.shop-tab { flex: 1; text-align: center; font-weight: bold; padding: 10px; background: #8B8B8B; border: 2px solid #373737; color: #333; cursor: pointer; box-shadow: inset 2px 2px 0 #fff; }
.shop-tab.active { background: #59C967; color: #fff; box-shadow: inset 2px 2px 0 rgba(255,255,255,0.5); }
.shop-list { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; padding-right: 4px; }
.shop-item { display: flex; align-items: center; justify-content: space-between; background: #9E9E9E; border: 2px solid #373737; padding: 10px 15px; }
.si-left { display: flex; align-items: center; gap: 15px; font-weight: bold; color: #222; font-size: 1.1rem; }
.si-icon { width: 44px; height: 44px; background: #8B8B8B; border: 2px solid #555; box-shadow: inset 2px 2px 0 #C6C6C6; display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0; }
.si-icon img { width: 28px; height: 28px; object-fit: contain; }
.si-icon .count { position: absolute; bottom: 0; right: 2px; font-size: 0.95rem; font-weight: bold; color: #fff; text-shadow: 2px 2px 0 #373737; }
.si-right { display: flex; align-items: center; gap: 20px; }
.si-price { font-weight: bold; color: #111; display: flex; align-items: center; gap: 5px; font-size: 1.1rem; }
.si-btn { background: #F3C746; padding: 6px 18px; border: 2px solid #333; font-weight: bold; cursor: pointer; box-shadow: inset 0 -3px 0 #D19F2B; color: #222; }
.si-btn.disabled { background: #8B8B8B; box-shadow: inset 0 -3px 0 #555; color: #555; pointer-events: none; }
.si-btn:active:not(.disabled) { box-shadow: inset 0 -1px 0 #D19F2B; transform: translateY(2px); }
.shop-timer { text-align: center; font-size: 0.9rem; color: #333; margin-top: 12px; font-weight: bold; }
@keyframes shake-egg { 0% { transform: rotate(0deg); } 25% { transform: rotate(-15deg); } 50% { transform: rotate(0deg); } 75% { transform: rotate(15deg); } 100% { transform: rotate(0deg); } }
.egg-shaking { animation: shake-egg 0.5s ease-in-out infinite; }
.flash-white { position: absolute; top:0; left:0; width:100%; height:100%; background:#fff; z-index:5000; opacity:0; visibility:hidden; pointer-events:none; }
@keyframes flash-anim { 0% { opacity: 0; visibility:visible; } 50% { opacity: 1; visibility:visible; } 100% { opacity: 0; visibility:hidden; } }

.admin-gui { width: 700px; max-width: 95%; max-height: 90vh; display: flex; flex-direction: column; }
.admin-content { flex: 1; overflow-y: auto; padding: 10px 0; }
.admin-task-card { background: #9E9E9E; border: 2px solid #373737; padding: 12px; margin-bottom: 10px; color: #111; }
.admin-task-head { display: flex; justify-content: space-between; font-weight: bold; font-size: 1.1rem; margin-bottom: 5px; }
.admin-task-body { font-size: 0.9rem; color: #333; margin-bottom: 10px; }
.admin-actions { display: flex; gap: 10px; justify-content: flex-end; }
.admin-btn { padding: 6px 15px; font-weight: bold; border: 2px solid #333; cursor: pointer; color: #fff; text-align: center; }
.btn-approve { background: #59C967; box-shadow: inset 0 -3px 0 #3E9447; }
.btn-reject { background: #E53E3E; box-shadow: inset 0 -3px 0 #C53030; }
.btn-edit { background: #4A90E2; box-shadow: inset 0 -3px 0 #2B6CB0; }
.admin-input { width: 100%; padding: 8px; margin-bottom: 10px; border: 2px solid #555; background: #C6C6C6; font-weight: bold; color: #111; font-family: inherit; }
.admin-label { font-size: 0.9rem; font-weight: bold; color: #333; margin-bottom: 4px; display: block; }
.admin-flex-row { display: flex; gap: 10px; }
.admin-flex-row > div { flex: 1; }
.admin-form { background: #8B8B8B; padding: 15px; border: 2px solid #373737; margin-bottom: 15px; }
.admin-form label { display: block; margin-top: 10px; font-size: 0.9rem; font-weight: bold; color: #222; }
.admin-form input, .admin-form select, .admin-form textarea { width: 100%; padding: 8px; margin-top: 4px; border: 2px solid #555; background: #C6C6C6; font-weight: bold; color: #111; font-family: inherit;}
.admin-form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 15px; }

/* ================= 探索模式选择弹窗 ================= */
.mode-card { flex: 1; background: #1C2333; border: 4px solid #141A29; border-radius: 6px; padding: 20px 15px; text-align: center; cursor: pointer; transition: 0.2s; box-shadow: inset 2px 2px 0 rgba(255,255,255,0.1), 0 6px 15px rgba(0,0,0,0.3); }
.mode-card:hover { border-color: #5BC8F4; background: #232B3E; transform: translateY(-4px); box-shadow: inset 2px 2px 0 rgba(255,255,255,0.1), 0 10px 20px rgba(0,0,0,0.4); }
.mode-card:active { transform: translateY(2px); box-shadow: inset 2px 2px 0 rgba(255,255,255,0.1), 0 2px 5px rgba(0,0,0,0.4); }
.mode-title { font-size: 1.4rem; font-weight: 900; color: #59C967; margin-bottom: 12px; text-shadow: 2px 2px 0 #000; }
.mode-desc { font-size: 0.95rem; color: #E2E8F0; font-weight: bold; line-height: 1.5; text-shadow: 1px 1px 0 #000; }

.manual-ui { display: flex; flex-direction: column; gap: 15px; }
.manual-top { display: flex; justify-content: space-between; font-weight: bold; color: #59C967; font-size: 1.1rem; padding: 10px; background: rgba(0,0,0,0.5); border: 2px solid #333; }
.choice-btn { background: #2C3E50; border: 2px solid #4A5568; color: #fff; padding: 12px; font-size: 1rem; font-weight: bold; cursor: pointer; transition: 0.1s; text-align: left; }
.choice-btn:hover { background: #2B6CB0; border-color: #4299E1; }
.choice-btn:active { transform: scale(0.98); }

/* ================= 10. 无尽高塔专属 UI ================= */
.tower-scroll-container { 
    position: relative; height: 260px; display: flex; flex-direction: column; 
    align-items: center; justify-content: center; gap: 15px; overflow: hidden; 
    background: #111; border: 4px solid #333; border-radius: 8px; margin-top: 15px; 
    box-shadow: inset 0 0 30px #000; 
}
.tower-floor { 
    width: 90%; padding: 15px; border-radius: 4px; font-weight: bold; 
    transition: 0.3s ease; text-align: center; border: 2px solid transparent; 
}
.tower-floor.prev { background: #222; color: #555; transform: scale(0.85) translateY(10px); opacity: 0.6; text-decoration: line-through; }
.tower-floor.current { background: #512B73; color: #fff; border-color: #9A3FF0; transform: scale(1.05); box-shadow: 0 0 20px rgba(154, 63, 240, 0.5); z-index: 10; font-size: 1.2rem; text-shadow: 2px 2px 0 #000; }
.tower-floor.next { background: #222; color: #888; transform: scale(0.85) translateY(-10px); opacity: 0.8; }
.tower-boss-name { display: block; font-size: 1.4rem; color: #F3C746; margin-top: 5px; }
.tower-stats { font-size: 0.85rem; color: #A0AEC0; margin-top: 5px; display: flex; justify-content: center; gap: 15px; }
.tower-floor.prev .tower-boss-name, .tower-floor.next .tower-boss-name { font-size: 1.1rem; color: inherit; }

/* ================= 11. 钓鱼文字沉浸版全屏掉落展示 ================= */
#fish-reveal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 5000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: 0.3s;
}
#fish-reveal.show { opacity: 1; visibility: visible; }
.reveal-glow {
    position: absolute; width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(243, 199, 70, 0.4) 0%, transparent 70%);
    animation: spin-glow 4s linear infinite; z-index: 5001;
}
@keyframes spin-glow { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
#reveal-img { width: 120px; height: 120px; z-index: 5002; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.8)); transform: scale(0); transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
#fish-reveal.show #reveal-img { transform: scale(1.3); }
#reveal-text { margin-top: 50px; font-size: 1.8rem; color: #fff; font-weight: 900; z-index: 5002; transform: translateY(20px); opacity: 0; transition: 0.5s 0.2s; text-shadow: 2px 2px 0 #000; }
#fish-reveal.show #reveal-text { transform: translateY(0); opacity: 1; }
/* ================= 12. 农田物语专属 2D 顶视图 UI ================= */
.farm-grid {
    display: grid; grid-template-columns: repeat(3, 100px); gap: 15px; justify-content: center;
    background: #4C7238; padding: 25px; border-radius: 8px; border: 6px solid #2E5C18;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5), 0 10px 20px rgba(0,0,0,0.3);
}
.farm-plot {
    width: 100px; height: 100px; background: #3B5628; border: 2px solid #1E3F10;
    position: relative; cursor: pointer; transition: 0.1s;
}
.farm-plot:active { transform: scale(0.95); }
.farm-plot.dirt { background-image: url('https://assets.mcasset.cloud/1.20.4/assets/minecraft/textures/block/dirt.png'); background-size: cover; image-rendering: pixelated; }
.farm-plot.farmland { background-image: url('https://assets.mcasset.cloud/1.20.4/assets/minecraft/textures/block/farmland_moist.png'); background-size: cover; image-rendering: pixelated; }
.farm-plot.locked { background-image: url('https://assets.mcasset.cloud/1.20.4/assets/minecraft/textures/block/grass_block_top.png'); background-size: cover; image-rendering: pixelated; filter: brightness(0.4); pointer-events: none; }
.farm-plot .locked-icon { position: absolute; top:50%; left:50%; transform:translate(-50%,-50%); font-size:2.5rem; opacity: 0.5; text-shadow: 2px 2px 0 #000;}
.farm-crop { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; pointer-events: none; z-index: 2; }
.farm-progress-bar { position: absolute; bottom: -15px; left: 0; width: 100%; height: 8px; background: #111; border: 1px solid #000; }
.farm-progress-fill { height: 100%; background: #59C967; width: 0%; transition: width 1s linear;}
/* ================= 13. 备战室 (营地家园) ================= */
.camp-loadout-container {
    background: #1A202C; border: 4px solid #111; border-radius: 8px;
    padding: 20px; margin-bottom: 30px; box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}
.loadout-title { font-size: 1.2rem; font-weight: 900; color: #fff; margin-bottom: 15px; }
.loadout-slots { display: flex; gap: 15px; }
.loadout-slots .mc-slot { width: 80px; height: 80px; background: #2D3748; border-color: #000; box-shadow: inset 2px 2px 0 #4A5568, inset -2px -2px 0 #1A202C; }
.loadout-slots .mc-slot:hover { border-color: #5BC8F4; }

.camp-facilities-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}
.camp-fac-card {
    background: #2D3748; border: 4px solid #1A202C; border-radius: 8px;
    display: flex; align-items: center; padding: 20px; cursor: pointer;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,0.1), 0 5px 15px rgba(0,0,0,0.3);
    transition: 0.2s;
}
.camp-fac-card:hover { transform: translateY(-4px); border-color: #4A90E2; background: #323E54; }
.camp-fac-card:active { transform: translateY(2px); }
.fac-icon { font-size: 3rem; margin-right: 20px; filter: drop-shadow(2px 2px 0 #000); }
.fac-info { display: flex; flex-direction: column; }
.fac-name { font-size: 1.5rem; font-weight: 900; color: #fff; margin-bottom: 5px; text-shadow: 1px 1px 0 #000; }
.fac-desc { font-size: 0.9rem; color: #A0AEC0; font-weight: bold; line-height: 1.3; }

/* ================= 14. 荣耀殿堂 ================= */
.honor-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px;
}
.honor-card {
    background: #2D230F; border: 4px solid #D69E2E; border-radius: 6px;
    display: flex; flex-direction: column; align-items: center; padding: 20px 10px;
    box-shadow: inset 0 0 15px rgba(214, 158, 46, 0.2), 0 5px 15px rgba(0,0,0,0.4);
    position: relative; overflow: hidden;
}
.honor-card.locked {
    background: #1A1A1A; border-color: #333; filter: grayscale(1); opacity: 0.6;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
}
.honor-icon { font-size: 2.5rem; margin-bottom: 10px; filter: drop-shadow(2px 2px 0 #000); }
.honor-name { font-size: 1.1rem; font-weight: 900; color: #F3C746; margin-bottom: 5px; text-align: center; text-shadow: 1px 1px 0 #000; }
.honor-card.locked .honor-name { color: #888; }
.honor-desc { font-size: 0.75rem; color: #E2E8F0; text-align: center; font-weight: bold; line-height: 1.3; }
.honor-card.locked .honor-desc { visibility: hidden; } /* 锁定状态保持神秘感 */
/* ================= 15. 全局成就解锁提示弹窗 ================= */
#honor-toast {
    position: fixed; top: -100px; left: 50%; transform: translateX(-50%);
    background: #2D230F; border: 4px solid #D69E2E; border-radius: 8px;
    display: flex; align-items: center; padding: 15px 25px; z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 0 15px rgba(214,158,46,0.3);
    transition: top 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}
#honor-toast.show { top: 40px; }
#toast-icon { font-size: 2.5rem; margin-right: 15px; filter: drop-shadow(2px 2px 0 #000); }
.toast-text-box { display: flex; flex-direction: column; }
.toast-title { font-size: 0.9rem; color: #F6E05E; font-weight: bold; margin-bottom: 3px; letter-spacing: 1px; }
.toast-name { font-size: 1.4rem; font-weight: 900; color: #fff; text-shadow: 1px 1px 0 #000; }
/* ================= 16. MC 经典UI组件布局 (营地设施统一版) ================= */
.camp-ui-layout { background: #C6C6C6; padding: 25px; border: 4px solid #555; border-radius: 4px; box-shadow: inset 4px 4px 0 #fff, inset -4px -4px 0 #373737; margin-bottom: 15px; }
.camp-ui-row { display: flex; align-items: center; justify-content: center; gap: 25px; }
.camp-ui-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.camp-ui-arrow { font-size: 3.5rem; color: #8B8B8B; font-weight: 900; filter: drop-shadow(2px 2px 0 #fff) drop-shadow(-1px -1px 0 #373737); margin: 0 10px; }
.camp-ui-fire { font-size: 2rem; filter: drop-shadow(1px 1px 0 #000); animation: fire-flicker 0.5s infinite alternate; }
@keyframes fire-flicker { 0% { opacity: 0.8; transform: scale(0.9); } 100% { opacity: 1; transform: scale(1.1); } }
.mc-slot.large-slot { width: 64px; height: 64px; }
.mc-slot.large-slot img { width: 70%; height: 70%; }

.ench-btn-row { background: #8B8B8B; border: 2px solid #373737; padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; box-shadow: inset 2px 2px 0 #C6C6C6; transition: 0.1s; width: 100%; box-sizing: border-box; }
.ench-btn-row:active { transform: scale(0.98); box-shadow: inset 1px 1px 0 #C6C6C6; }
.ench-btn-row.disabled { opacity: 0.6; pointer-events: none; filter: grayscale(1); }
.ench-btn-row:not(.disabled):hover { background: #9E9E9E; border-color: #fff; }
.ench-runes { font-family: "Courier New", Courier, monospace; font-size: 1.1rem; color: #333; font-weight: bold; letter-spacing: 2px; }
.ench-cost { color: #1A4D23; font-weight: 900; font-size: 1rem; text-shadow: 1px 1px 0 rgba(255,255,255,0.5); }
/* ================= 17. 附魔台抽取卡牌专属 UI ================= */
.enchant-cards-container { display: flex; gap: 10px; justify-content: center; }
.enchant-card { flex: 1; background: #3B1C54; border: 2px solid #9A3FF0; border-radius: 8px; padding: 15px 10px; text-align: center; cursor: pointer; transition: 0.2s; position: relative; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.enchant-card:hover { transform: translateY(-5px); border-color: #D946EF; box-shadow: 0 8px 15px rgba(217,70,239,0.4); }
.enchant-card.locked { filter: grayscale(1); opacity: 0.7; pointer-events: none; }
.ec-title { color: #D946EF; font-size: 1.1rem; font-weight: 900; margin-bottom: 5px; text-shadow: 1px 1px 0 #000; }
.ec-desc { color: #E9D8FD; font-size: 0.85rem; margin-bottom: 15px; font-weight: bold; }
.ec-cost { display: flex; flex-direction: column; gap: 5px; font-size: 0.8rem; color: #A0AEC0; background: rgba(0,0,0,0.3); padding: 5px; border-radius: 4px; margin-bottom: 15px; }
.ec-btn { background: #9A3FF0; color: #fff; padding: 6px; border-radius: 4px; font-size: 0.85rem; font-weight: bold; text-shadow: 1px 1px 0 rgba(0,0,0,0.5); }
/* ================= 纸娃娃原版分层盔甲与武器 ================= */
.armor-layer {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  /* 核心修改：精确放大官方盔甲贴图比例 (64x6=384, 32x6=192) */
  background-size: 384px 192px; 
  background-repeat: no-repeat;
  image-rendering: pixelated;
  z-index: 5;
}

/* 右手手持武器挂点定位 */
.s-arm.right {
  position: relative;
}

.doll-weapon-img {
  position: absolute;
  bottom: -22px;       /* 往下移到手掌的末端 */
  left: -12px;         /* 向左调，让握把中心对准手臂中心 */
  width: 64px;         /* 武器放大！霸气侧漏 */
  height: 64px;
  object-fit: contain;
  transform-origin: 15% 85%; /* 核心锚点：MC武器图标的握把永远在左下角 */
  transform: rotate(15deg);  /* 微微向前倾斜，握持姿势更自然 */
  z-index: 10;
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.5));
  pointer-events: none;
}

/* ================= 18. 精灵牧场 (图鉴与养成系统) 专属 UI ================= */

/* 图鉴模式下的密集网格排列 */
.pokedex-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(55px, 1fr)); 
    gap: 8px;
}

/* 单个图鉴格子 */
.dex-slot {
    background: #8B8B8B; border: 2px solid #555;
    box-shadow: inset 2px 2px 0 #C6C6C6, inset -2px -2px 0 #373737;
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    cursor: pointer; position: relative; transition: 0.1s;
}
.dex-slot:hover { border-color: #fff; background: #9E9E9E; }
.dex-slot:active { transform: scale(0.92); }

/* 未解锁的宝可梦剪影效果 */
.dex-slot.locked img {
    filter: brightness(0) opacity(0.4); /* 变成纯黑且半透明的神秘剪影 */
}
.dex-slot.locked {
    background: #777; box-shadow: inset 2px 2px 0 #8B8B8B, inset -2px -2px 0 #333;
}

/* === 主舞台：经验条与养成控制台 === */
.pet-exp-bar-container {
    width: 100%; height: 12px; background: #111; 
    border: 2px solid #333; border-radius: 2px;
    position: relative; overflow: hidden; margin-top: 5px;
}
.pet-exp-bar-fill {
    height: 100%; background: #59C967; 
    box-shadow: inset 0 3px 0 rgba(255,255,255,0.4);
    transition: width 0.3s ease;
}

/* 觉醒星级展示 */
.awaken-stars {
    display: flex; gap: 4px; align-items: center; justify-content: center;
    margin: 10px 0;
}
.awaken-star {
    font-size: 1.2rem; color: #555; text-shadow: 1px 1px 0 #000;
}
.awaken-star.lit {
    color: #F3C746; text-shadow: 0 0 8px rgba(243, 199, 70, 0.6), 1px 1px 0 #000;
}

/* 养成交互大按钮 (同源吸收 / 进化) */
.action-btn-ranch {
    background: #9A3FF0; border: 2px solid #111;
    color: #fff; font-weight: bold; font-size: 1.1rem;
    padding: 12px; text-align: center; cursor: pointer;
    box-shadow: inset 0 -4px 0 #701CB8, 0 4px 0 #333;
    border-radius: 4px; transition: 0.1s;
}
.action-btn-ranch:active:not(.disabled) {
    transform: translateY(4px); box-shadow: inset 0 -0px 0 #701CB8, 0 0px 0 #333;
}
.action-btn-ranch.disabled {
    background: #555; box-shadow: inset 0 -4px 0 #333;
    color: #888; pointer-events: none;
}
.action-btn-ranch.evolve {
    background: #F3C746; color: #111; border-color: #111;
    box-shadow: inset 0 -4px 0 #D69E2E, 0 4px 0 #333;
}
.action-btn-ranch.evolve:active:not(.disabled) {
    box-shadow: inset 0 -0px 0 #D69E2E, 0 0px 0 #333;
}

/* 文字闪烁动画（用于进化剧场等提示） */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}