@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --bg: #1a1a2e; --bg2: #16213e; --accent: #e94560;
  --gold: #f5c842; --green: #4ecca3; --blue: #7ec8e3;
  --text: #eee; --text2: #aaa; --panel: #0f3460;
  --pixel-border: 3px solid #e94560;
}
body {
  font-family: 'Segoe UI', sans-serif; background: var(--bg);
  color: var(--text); max-width: 480px; margin: 0 auto;
  min-height: 100vh; display: flex; flex-direction: column;
  overflow-x: hidden; user-select: none; -webkit-user-select: none;
}
#app { display:flex; flex-direction:column; min-height:100vh; }
#status-bar {
  background: var(--bg2); padding: 8px 12px;
  border-bottom: var(--pixel-border); position: sticky; top: 0; z-index: 10;
}
.status-row { display:flex; justify-content:space-between; font-size:14px; line-height:1.8; }
#status-bar span { letter-spacing: 0.5px; }
#s-money { color: var(--gold); font-weight: bold; }
#s-fans { color: var(--blue); }
#studio {
  flex: 1; background: var(--bg2); position: relative;
  min-height: 240px; overflow: hidden;
  border-bottom: var(--pixel-border);
}
#studio-floor {
  position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
  background: repeating-linear-gradient(90deg, #2a2a4a 0px, #2a2a4a 20px, #1e1e3a 20px, #1e1e3a 40px);
}
#desks { position: absolute; bottom: 40px; left: 0; right: 0; padding: 0 10px; }
.desk {
  display: inline-block; width: 70px; height: 80px; margin: 4px 6px;
  position: relative; vertical-align: bottom;
}
.desk-table {
  position: absolute; bottom: 0; width: 60px; height: 24px;
  background: #8b6914; border: 2px solid #6b4f10; border-radius: 2px;
  left: 5px;
}
.desk-monitor {
  position: absolute; bottom: 24px; left: 15px;
  width: 30px; height: 22px; background: #333;
  border: 2px solid #555; border-radius: 2px;
}
.desk-screen { position:absolute; bottom:26px; left:17px; width:26px; height:18px; background:#0f0; opacity:0.6; border-radius:1px; }
.desk-person {
  position: absolute; bottom: 46px; left: 20px; font-size: 24px;
  animation: work 1.5s ease-in-out infinite;
}
#dev-progress {
  position: absolute; top: 10px; left: 10px; right: 10px;
  background: rgba(0,0,0,0.7); border-radius: 8px; padding: 10px;
  border: var(--pixel-border);
}
.progress-title { font-size: 13px; margin-bottom: 6px; }
.progress-bar {
  height: 16px; background: #333; border-radius: 8px; overflow: hidden;
  border: 1px solid #555;
}
.progress-bar > div {
  height: 100%; background: linear-gradient(90deg, var(--green), var(--blue));
  transition: width 0.3s; border-radius: 8px; width: 0%;
}
#dev-stage { font-size: 11px; color: var(--text2); margin-top: 4px; }
#actions {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; padding: 10px 12px; background: var(--bg);
}
.btn-main {
  background: var(--panel); color: var(--text); border: 2px solid var(--accent);
  padding: 12px 8px; border-radius: 6px; font-size: 14px;
  cursor: pointer; transition: all 0.2s; text-align: center;
  font-family: inherit;
}
.btn-main:active { transform: scale(0.95); background: var(--accent); }
.btn-main:disabled { opacity: 0.4; pointer-events: none; }
.btn-sm {
  background: var(--panel); color: var(--text); border: 1px solid var(--accent);
  padding: 6px 12px; border-radius: 4px; font-size: 12px;
  cursor: pointer; font-family: inherit;
}
.btn-sm:active { background: var(--accent); }
.btn-green { border-color: var(--green); }
.btn-green:active { background: var(--green); color: #000; }
.btn-gold { border-color: var(--gold); }
.btn-gold:active { background: var(--gold); color: #000; }

/* Panel overlay */
#panel-overlay {
  position: fixed; top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.6); z-index: 20;
}
#event-overlay {
  position: fixed; top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.6); z-index: 24;
}
#result-overlay {
  position: fixed; top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.85); z-index: 40;
}
#panel {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; max-height: 80vh;
  background: var(--bg2); border-top: var(--pixel-border);
  border-radius: 12px 12px 0 0; z-index: 21; overflow-y: auto;
}
#panel-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid #333;
  position: sticky; top: 0; background: var(--bg2); z-index: 1;
}
#panel-title { font-size: 16px; font-weight: bold; }
.btn-close { background:none; border:none; color:var(--text); font-size:20px; cursor:pointer; padding:4px 8px; }
#panel-body { padding: 12px 16px; overflow-x: hidden; }

/* Event & Result modals */
#event-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 90%; max-width: 400px; background: var(--bg2);
  border: var(--pixel-border); border-radius: 8px;
  padding: 20px; z-index: 25; text-align: center;
}
#result-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 90%; max-width: 400px; max-height: 85vh; overflow-y: auto;
  background: var(--bg2);
  border: var(--pixel-border); border-radius: 8px;
  padding: 20px; z-index: 41; text-align: center;
}
#event-title, .result-title { font-size: 18px; font-weight: bold; margin-bottom: 10px; }
#event-desc { font-size: 14px; color: var(--text2); margin-bottom: 16px; }
#event-choices { display: flex; flex-direction: column; gap: 8px; align-items: center; }
#gameover {
  position: fixed; top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.85); z-index: 30;
  display: flex; align-items: center; justify-content: center;
}
.gameover-box { text-align: center; padding: 30px; }
.gameover-box h2 { font-size: 28px; margin-bottom: 16px; }

/* Form elements */
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 12px; color: var(--text2); margin-bottom: 4px; }
.form-group select, .form-group input {
  width: 100%; padding: 8px; background: #1a1a2e; color: var(--text);
  border: 1px solid #444; border-radius: 4px; font-size: 14px; font-family: inherit;
}
.slider-group { margin: 10px 0; }
.slider-label { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 2px; }
.slider-group input[type=range] { width: 100%; accent-color: var(--accent); }
.tag-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 6px 12px; border: 1px solid #444; border-radius: 4px;
  font-size: 12px; cursor: pointer; transition: all 0.2s;
}
.tag.selected { border-color: var(--accent); background: var(--accent); color: #fff; }
.tag:active { transform: scale(0.95); }
.staff-card {
  background: rgba(0,0,0,0.3); border: 1px solid #444; border-radius: 6px;
  padding: 10px; margin-bottom: 8px;
}
.staff-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.stat-bar { flex: 1; min-width: 80px; }
.stat-bar label { font-size: 10px; color: var(--text2); }
.stat-fill { height: 6px; background: #333; border-radius: 3px; overflow: hidden; margin-top: 2px; }
.stat-fill > div { height: 100%; border-radius: 3px; transition: width 0.3s; }
.hidden { display: none !important; }
.coin-fly {
  position: fixed; font-size: 20px; pointer-events: none; z-index: 50;
  animation: coinFly 1s ease-out forwards;
}
.score-stars { font-size: 24px; letter-spacing: 2px; margin: 10px 0; }
.result-sales { font-size: 16px; color: var(--gold); margin: 8px 0; }
.result-review { font-size: 13px; color: var(--text2); margin: 6px 0; font-style: italic; }
.tech-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px; border: 1px solid #333; border-radius: 4px; margin-bottom: 6px;
}
.tech-item.unlocked { border-color: var(--green); opacity: 0.6; }
.tech-item.locked { opacity: 0.4; }
.tech-item .tech-info { flex: 1; }
.tech-item .tech-name { font-size: 13px; }
.tech-item .tech-cost { font-size: 11px; color: var(--gold); }

/* Slider */
.slider-phase { margin-bottom: 12px; }
.phase-title { font-size: 13px; font-weight: bold; margin-bottom: 6px; color: var(--gold); }
.slider-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.slider-label { font-size: 11px; color: var(--text2); min-width: 70px; }
.slider { flex: 1; accent-color: var(--accent); height: 6px; }
.slider-val { font-size: 11px; min-width: 32px; text-align: right; color: var(--green); }

/* Section title */
.section-title { font-size: 14px; font-weight: bold; margin-bottom: 8px; color: var(--gold); }

/* Staff */
.staff-list { margin-bottom: 10px; }
.staff-emoji { font-size: 28px; float: left; margin-right: 10px; }
.staff-name { font-size: 13px; font-weight: bold; }
.staff-stats { font-size: 12px; color: var(--text2); margin-top: 4px; }
.staff-actions { margin-top: 6px; display: flex; gap: 6px; }
.btn-red { border-color: var(--accent); }
.btn-red:active { background: var(--accent); }

/* Tech */
.tech-cat { margin-bottom: 14px; }
.tech-owned { border-color: var(--green); background: rgba(78,204,163,0.1); }
.tech-locked { opacity: 0.4; }
.tech-researching { border-color: var(--gold); background: rgba(245,200,66,0.1); }
.tech-bonus { font-size: 11px; color: var(--green); }

/* Rank */
.rank-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #333; font-size: 13px; }
.rank-num { color: var(--gold); font-weight: bold; min-width: 28px; }
.rank-name { flex: 1; }
.rank-score { color: var(--gold); }
.rank-sales { color: var(--text2); font-size: 11px; }

/* Result */
.result-stars { font-size: 24px; letter-spacing: 2px; margin: 8px 0; }
.result-score { font-size: 28px; font-weight: bold; color: var(--gold); }
.result-details { font-size: 12px; color: var(--text2); margin: 10px 0; line-height: 1.8; }
.result-revenue { font-size: 18px; color: var(--green); font-weight: bold; }

/* Toast */
#toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.85); color: #fff; padding: 10px 20px;
  border-radius: 20px; font-size: 13px; z-index: 100;
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
#toast.show { opacity: 1; }

/* Money fly */
.money-fly {
  position: absolute; top: -5px; right: 10px; font-size: 14px; font-weight: bold;
  pointer-events: none; animation: coinFly 1.5s ease-out forwards;
}

/* Train popup */
.train-popup { background: rgba(0,0,0,0.3); border-radius: 6px; padding: 10px; margin-top: 8px; }

/* Speed button */
.speed-btn {
  background: var(--panel); color: var(--green); border: 1px solid var(--green);
  padding: 2px 8px; border-radius: 4px; font-size: 12px; cursor: pointer;
  font-family: inherit; min-width: 64px; min-height: 28px;
}
.speed-btn:active { background: var(--green); color: #000; }
.speed-btn.speed-paused { color: var(--accent); border-color: var(--accent); }

/* Game name input */
.name-row { display: flex; gap: 6px; width: 100%; }
.game-name-input {
  flex: 1; min-width: 0; padding: 8px; background: #1a1a2e; color: var(--text);
  border: 1px solid #444; border-radius: 4px; font-size: 14px; font-family: inherit;
}
.game-name-input::placeholder { color: #666; }

/* Achievement popup */
.achievement-popup {
  position: fixed; top: 60px; left: 50%; transform: translateX(-50%) translateY(-100px);
  background: linear-gradient(135deg, #1a1a2e, #0f3460); border: 2px solid #f5c842;
  border-radius: 10px; padding: 12px 16px; z-index: 35; display: flex; gap: 10px;
  align-items: center; opacity: 0; transition: all 0.4s ease; max-width: 320px;
  box-shadow: 0 4px 20px rgba(245,200,66,0.3);
}
.achievement-popup.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ach-emoji { font-size: 32px; }
.ach-info { flex: 1; }
.ach-title { font-size: 11px; color: #f5c842; }
.ach-name { font-size: 14px; font-weight: bold; }
.ach-desc { font-size: 11px; color: #aaa; }

/* Achievement grid */
.ach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ach-card {
  background: rgba(0,0,0,0.3); border: 1px solid #333; border-radius: 6px;
  padding: 10px; text-align: center;
}
.ach-card.ach-unlocked { border-color: #f5c842; background: rgba(245,200,66,0.08); }
.ach-card-emoji { font-size: 28px; margin-bottom: 4px; }
.ach-card-name { font-size: 12px; font-weight: bold; }
.ach-card-desc { font-size: 10px; color: #aaa; margin-top: 2px; }

/* DLC card */
.dlc-card {
  background: rgba(0,0,0,0.3); border: 1px solid #444; border-radius: 6px;
  padding: 12px; margin-bottom: 8px; cursor: pointer; transition: all 0.2s;
}
.dlc-card:active { border-color: #4ecca3; background: rgba(78,204,163,0.1); transform: scale(0.98); }
.dlc-name { font-size: 14px; font-weight: bold; }
.dlc-info { font-size: 12px; color: #aaa; margin-top: 4px; }

/* Award */
.award-header { font-size: 18px; font-weight: bold; color: #f5c842; margin-bottom: 12px; }
.award-list { margin-bottom: 12px; }
.award-item { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid #333; font-size: 13px; }
.award-item.award-me { background: rgba(245,200,66,0.1); border-radius: 4px; padding: 6px 4px; }
.award-medal { min-width: 24px; }
.award-game { flex: 1; }
.award-score { color: #f5c842; }
.award-maker { color: #aaa; font-size: 11px; min-width: 60px; text-align: right; }
.award-win { color: #4ecca3; font-size: 16px; font-weight: bold; margin: 8px 0; }
.award-rank { color: #aaa; font-size: 14px; }
.award-bonus { color: #f5c842; font-size: 12px; }

/* Tutorial */
.tutorial-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7); z-index: 49; pointer-events: none;
  opacity: 0; transition: opacity 0.3s;
}
.tutorial-overlay.show { opacity: 1; }
.tutorial-bubble {
  background: #16213e; border: 2px solid #7ec8e3; border-radius: 12px;
  padding: 20px; max-width: 300px; text-align: center;
}
.tutorial-msg { font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
.tutorial-highlight { box-shadow: 0 0 0 3px #7ec8e3, 0 0 15px rgba(126,200,227,0.5); border-radius: 6px; position: relative; z-index: 51; }

/* 按钮布局: 开发新游戏独占一行，其余3列 */
#actions { grid-template-columns: 1fr 1fr 1fr; }
#actions .btn-main:first-child { grid-column: 1 / -1; background: linear-gradient(135deg, var(--panel), #1a3a5c); border-width: 2px; font-size: 16px; padding: 14px; }

/* Studio decorations */
.studio-deco {
  position: absolute; top: 8px; font-size: 20px; opacity: 0.7;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.desk-name {
  position: absolute; bottom: -14px; left: 0; right: 0;
  text-align: center; font-size: 9px; color: #888;
  white-space: nowrap; overflow: hidden;
}
.typing-dots {
  position: absolute; top: 2px; left: 8px; font-size: 8px;
  color: #0f0; animation: blink 0.8s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* Tutorial tip (non-blocking) */
.tutorial-tip {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 50; opacity: 0; transition: opacity 0.3s;
  pointer-events: auto;
}
.tutorial-tip.show { opacity: 1; }

/* Research progress bar */
.research-bar {
  background: rgba(0,0,0,0.4); border: 1px solid #7ec8e3; border-radius: 4px;
  padding: 4px 8px; font-size: 11px; color: #7ec8e3; margin-top: 4px;
}

/* Training bar */
.train-row { display: flex; align-items: center; gap: 6px; margin: 6px 0; }
.train-row .btn-sm { min-width: 64px; }
.train-bar-bg { flex: 1; height: 8px; background: #1a1a2e; border-radius: 4px; overflow: hidden; }
.train-bar-fill { height: 100%; background: linear-gradient(90deg, #4ecca3, #7ec8e3); border-radius: 4px; transition: width 0.3s; }
.train-val { font-size: 11px; color: #aaa; min-width: 40px; text-align: right; }

/* Candidate card */
.candidate-card {
  background: rgba(0,0,0,0.3); border: 1px solid #444; border-radius: 6px;
  padding: 10px; margin-bottom: 8px; cursor: pointer; transition: all 0.2s;
}
.candidate-card:active { border-color: #4ecca3; background: rgba(78,204,163,0.1); transform: scale(0.98); }

/* Event preview */
.event-choice-btn { margin-bottom: 8px; }
.event-preview { font-size: 11px; color: #aaa; margin-top: 2px; text-align: center; }

/* Auth */
#auth-area { display: inline-flex; align-items: center; }
.btn-wx-login {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; border: none;
  font-size: 11px; font-weight: 600; color: #fff; background: #07C160;
  cursor: pointer; font-family: inherit;
}
.btn-wx-login:active { opacity: 0.8; }
.auth-user { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.auth-avatar { width: 20px; height: 20px; border-radius: 50%; }
.auth-avatar-placeholder { font-size: 16px; }
.auth-name { font-size: 11px; color: var(--blue); max-width: 50px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-guest { font-size: 11px; color: var(--text2); }

/* ========== Responsive ========== */

/* 手机横屏 / 小平板 */
@media (min-width: 481px) and (max-width: 768px) {
  body { max-width: 600px; }
  #panel { max-width: 600px; }
  #studio { min-height: 280px; }
  .desk { width: 80px; height: 90px; }
  .btn-main { padding: 14px 10px; font-size: 15px; }
  .staff-card { display: flex; align-items: center; gap: 10px; }
  .staff-emoji { float: none; font-size: 32px; margin: 0; }
  .ach-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* PC / 大屏 */
@media (min-width: 769px) {
  body {
    max-width: 960px; min-height: 100vh;
    display: flex; flex-direction: column;
  }
  #app {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
  }
  #status-bar {
    grid-column: 1 / -1;
    padding: 10px 20px;
  }
  .status-row { font-size: 15px; }
  #studio {
    grid-column: 1;
    grid-row: 2;
    min-height: 400px;
    border-bottom: none;
    border-right: var(--pixel-border);
  }
  #actions {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px;
    align-self: start;
  }
  #actions .btn-main {
    padding: 16px 12px;
    font-size: 16px;
  }
  .desk { width: 90px; height: 100px; margin: 6px 8px; }
  .desk-person { font-size: 28px; }
  .desk-monitor { width: 36px; height: 26px; }
  .desk-screen { width: 32px; height: 22px; }
  .desk-table { width: 70px; height: 28px; }
  .desk-name { font-size: 10px; }

  /* 面板居中且更宽 */
  #panel {
    max-width: 600px;
    max-height: 85vh;
    border-radius: 12px;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    border: var(--pixel-border);
  }
  #panel-body { padding: 16px 24px; }

  /* 弹窗更宽 */
  #event-modal, #result-modal {
    max-width: 500px;
    padding: 28px;
  }

  /* 排行/成就更宽 */
  .ach-grid { grid-template-columns: 1fr 1fr 1fr; }
  .rank-item { font-size: 14px; padding: 8px 0; }

  /* 滑块更宽 */
  .slider-label { min-width: 80px; font-size: 12px; }
  .slider-val { font-size: 12px; }

  /* 员工卡片横排 */
  .staff-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .staff-card { margin-bottom: 0; }

  /* 科技面板双列 */
  .tech-cat { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .tech-cat .section-title { grid-column: 1 / -1; }

  /* 开发进度条 */
  #dev-progress { top: 16px; left: 16px; right: 16px; padding: 14px; }
  .progress-title { font-size: 14px; }

  /* 成就弹窗 */
  .achievement-popup { max-width: 400px; }

  /* 教程 */
  .tutorial-bubble { max-width: 380px; padding: 24px; }
  .tutorial-msg { font-size: 15px; }

  /* 登录区域 */
  .auth-name { max-width: 80px; font-size: 12px; }
  .auth-avatar { width: 24px; height: 24px; }
}

/* 超宽屏 */
@media (min-width: 1200px) {
  body { max-width: 1100px; }
  #studio { min-height: 500px; }
  .desk { width: 100px; height: 110px; margin: 8px 10px; }
}

/* PC端背景装饰 */
@media (min-width: 769px) {
  body::before {
    content: '';
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background:
      radial-gradient(circle at 10% 20%, rgba(233,69,96,0.05) 0%, transparent 50%),
      radial-gradient(circle at 90% 80%, rgba(78,204,163,0.05) 0%, transparent 50%);
    pointer-events: none; z-index: -1;
  }
}

/* Version & Changelog */
.status-footer { font-size: 10px; color: var(--text2); padding-top: 4px; }
.version { opacity: 0.6; }
.btn-changelog {
  background: none; border: none; color: var(--blue); font-size: 10px;
  cursor: pointer; padding: 2px 6px; font-family: inherit;
}
.btn-changelog:active { opacity: 0.7; }

.changelog { font-size: 13px; line-height: 1.6; }
.changelog-version { font-size: 16px; font-weight: bold; color: var(--gold); margin-bottom: 12px; }
.changelog-section { margin-bottom: 16px; }
.changelog-title { font-size: 14px; font-weight: bold; color: var(--green); margin-bottom: 6px; }
.changelog-list { margin: 0; padding-left: 20px; }
.changelog-list li { margin-bottom: 4px; color: var(--text); }

/* Sequel */
.sequel-banner {
  background: linear-gradient(135deg, rgba(233,69,96,0.2), rgba(245,200,66,0.2));
  border: 2px solid #f5c842; border-radius: 8px; padding: 12px;
  text-align: center; font-weight: bold; color: #f5c842; margin-bottom: 12px;
}
.sequel-card { border-color: #f5c842; background: rgba(245,200,66,0.08); }
.sequel-card:active { border-color: #f5c842; background: rgba(245,200,66,0.15); }
.tag-locked { opacity: 0.3; cursor: not-allowed; pointer-events: none; }

/* Marketing */
.marketing-intro {
  text-align: center; font-size: 14px; color: var(--text);
  margin-bottom: 12px; font-weight: bold;
}
.marketing-plans { display: flex; flex-direction: column; gap: 8px; }
.marketing-card {
  background: var(--bg2); border: var(--pixel-border); border-radius: 8px;
  padding: 12px; cursor: pointer; transition: all 0.2s;
}
.marketing-card:hover { border-color: var(--blue); background: rgba(78,204,163,0.05); }
.marketing-card:active { transform: scale(0.98); }
.marketing-name { font-size: 15px; font-weight: bold; color: var(--text); margin-bottom: 4px; }
.marketing-desc { font-size: 12px; color: var(--text2); margin-bottom: 8px; }
.marketing-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; font-size: 11px; }
.marketing-stats > div { color: var(--text2); }
.marketing-tip {
  text-align: center; font-size: 11px; color: var(--text2);
  margin-top: 12px; padding: 8px; background: rgba(78,204,163,0.1);
  border-radius: 6px;
}

@media (min-width: 769px) {
  .marketing-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .marketing-card { padding: 14px; }
}

/* Staff Specialties & Growth */
.staff-specialties {
  display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px;
}
.specialty-tag {
  font-size: 10px; padding: 2px 6px; background: rgba(78,204,163,0.2);
  border-radius: 4px; color: var(--green); border: 1px solid rgba(78,204,163,0.4);
}
.staff-meta {
  display: flex; justify-content: space-between; font-size: 10px;
  margin-top: 4px; color: var(--text2);
}

/* Trend Tags */
.tag-hot { border-color: #ff6b6b; background: rgba(255,107,107,0.1); }
.tag-cold { border-color: #6bc5ff; background: rgba(107,197,255,0.1); opacity: 0.7; }
.trend-info { font-size: 10px; color: var(--text2); flex: 1; text-align: center; }

/* Loan */
.loan-card {
  background: var(--bg2); border: var(--pixel-border); border-radius: 8px;
  padding: 10px; margin-bottom: 8px;
}
.loan-apply { cursor: pointer; transition: all 0.2s; }
.loan-apply:hover { border-color: var(--gold); }
.loan-apply:active { transform: scale(0.98); }
.loan-name { font-size: 14px; font-weight: bold; color: var(--text); margin-bottom: 4px; }
.loan-info { font-size: 12px; color: var(--text2); margin-bottom: 2px; }
.loan-tip { font-size: 11px; color: var(--green); margin-top: 4px; }
.loan-actions { display: flex; gap: 6px; margin-top: 8px; }

/* Outsource */
.outsource-btns { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.btn-outsource {
  font-size: 10px; padding: 3px 6px; border: 1px solid var(--border);
  border-radius: 4px; background: var(--bg2); color: var(--text);
  cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.btn-outsource:hover { border-color: var(--green); }
.btn-outsource.bought { opacity: 0.5; cursor: default; color: var(--green); }

/* 城市系统 */
.city-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
.city-card { background: rgba(0,0,0,0.3); border: 1px solid #444; border-radius: 8px; padding: 10px; cursor: pointer; transition: all 0.2s; }
.city-card:hover:not(.city-disabled):not(.city-current) { border-color: #7ec8e3; background: rgba(126,200,227,0.1); }
.city-current { border-color: #4ecca3; background: rgba(78,204,163,0.15); cursor: default; }
.city-disabled { opacity: 0.5; cursor: not-allowed; }
.city-name { font-size: 14px; font-weight: bold; margin-bottom: 2px; }
.city-desc { font-size: 11px; color: #aaa; margin-bottom: 4px; }
.city-bonuses { font-size: 11px; color: #7ec8e3; line-height: 1.6; }
.city-cost { font-size: 11px; color: #f5c842; margin-top: 4px; }

/* 音效按钮 */
.btn-sound {
  background: none;
  border: none;
  font-size: 20px;
  padding: 4px 8px;
  margin-left: 8px;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-sound:hover {
  opacity: 1;
  transform: scale(1.1);
}

.btn-sound:active {
  transform: scale(0.95);
}

/* 烟花画布 */
#fireworks-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* 数字跳动动画 */
@keyframes stat-bounce-up {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.2); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes stat-bounce-down {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(10px) scale(1.2); }
  100% { transform: translateY(0) scale(1); }
}

.stat-increase {
  animation: stat-bounce-up 0.6s ease-out;
  color: #4ade80 !important;
}

.stat-decrease {
  animation: stat-bounce-down 0.6s ease-out;
  color: #f87171 !important;
}
