/* ========================================
   Ashes - 余烬 | 样式文件
   移动优先响应式设计
   ======================================== */

/* CSS 变量 */
:root {
  /* 主题色 - 废土暖色调 */
  --color-bg-dark: #1a1a2e;
  --color-bg-medium: #16213e;
  --color-bg-light: #0f3460;
  --color-primary: #e94560;
  --color-secondary: #ff6b35;
  --color-accent: #ffc107;
  --color-success: #4ade80;
  --color-warning: #fbbf24;
  --color-danger: #ef4444;
  
  /* 文字色 */
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  
  /* 资源颜色 */
  --color-food: #4ade80;
  --color-water: #60a5fa;
  --color-metal: #9ca3af;
  --color-energy: #fbbf24;
  --color-gems: #a855f7;
  
  /* 安全区域 */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  
  /* 字体 */
  --font-main: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
}

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-main);
  background-color: var(--color-bg-dark);
  color: var(--text-primary);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

/* 隐藏滚动条 */
::-webkit-scrollbar {
  display: none;
}

/* ========================================
   动画效果
   ======================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px var(--color-primary); }
  50% { box-shadow: 0 0 20px var(--color-primary), 0 0 30px var(--color-secondary); }
}

/* Toast 提示 */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
  pointer-events: none;
}

.toast.success {
  border-left: 4px solid var(--color-success);
}

.toast.error {
  border-left: 4px solid var(--color-danger);
}

.toast.warning {
  border-left: 4px solid var(--color-warning);
}

/* 加载指示器 */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* 稀有度发光效果 */
.rarity-common { }
.rarity-rare {
  animation: glow 2s ease-in-out infinite;
  --color-primary: var(--color-water);
}
.rarity-epic {
  animation: glow 2s ease-in-out infinite;
  --color-primary: #a855f7;
}
.rarity-legendary {
  animation: glow 1.5s ease-in-out infinite;
  --color-primary: var(--color-accent);
}

/* ========================================
   加载画面
   ======================================== */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-medium) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
}

.loading-content h1 {
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.loading-content .subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 8px;
  margin-bottom: 40px;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: var(--color-bg-light);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto 16px;
}

.loading-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.loading-text {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========================================
   游戏容器
   ======================================== */
#game-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#game-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ========================================
   UI 层
   ======================================== */
#ui-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

#ui-layer > * {
  pointer-events: auto;
}

.hidden {
  display: none !important;
}

/* ========================================
   顶部状态栏
   ======================================== */
#status-bar {
  position: absolute;
  top: var(--safe-top);
  left: var(--safe-left);
  right: var(--safe-right);
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-info .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  object-fit: cover;
}

.player-info .info {
  display: flex;
  flex-direction: column;
}

.player-info .name {
  font-size: 14px;
  font-weight: 500;
}

.player-info .level {
  font-size: 11px;
  color: var(--color-accent);
}

.resources {
  display: flex;
  gap: 12px;
}

.resource {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: var(--radius-md);
  font-size: 12px;
}

.resource .icon {
  font-size: 14px;
}

.resource .value {
  font-weight: 500;
}

/* ========================================
   快捷操作栏
   ======================================== */
#quick-actions {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-medium) 100%);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-btn:active {
  transform: scale(0.95);
  box-shadow: var(--shadow-sm);
}

.action-btn .icon {
  font-size: 20px;
}

.action-btn .label {
  font-size: 10px;
  color: var(--text-secondary);
}

/* ========================================
   底部导航
   ======================================== */
#bottom-nav {
  position: absolute;
  bottom: var(--safe-bottom);
  left: var(--safe-left);
  right: var(--safe-right);
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-btn.active {
  color: var(--color-primary);
}

.nav-btn .icon {
  font-size: 22px;
}

.nav-btn .label {
  font-size: 10px;
}

/* ========================================
   弹窗层
   ======================================== */
#modal-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  background: var(--color-bg-medium);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  padding: 16px;
  background: var(--color-bg-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.modal-body {
  padding: 16px;
  max-height: 60vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px;
  background: var(--color-bg-light);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ========================================
   按钮样式
   ======================================== */
.btn {
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--text-primary);
}

.btn-secondary {
  background: var(--color-bg-light);
  color: var(--text-primary);
}

.btn-success {
  background: var(--color-success);
  color: var(--color-bg-dark);
}

.btn-danger {
  background: var(--color-danger);
  color: var(--text-primary);
}

/* ========================================
   卡片样式
   ======================================== */
.card {
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  padding: 12px;
  margin-bottom: 8px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
}

.card-body {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ========================================
   建筑网格
   ======================================== */
.building-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.building-item {
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.building-item:active {
  background: var(--color-bg-medium);
}

.building-item .icon {
  font-size: 32px;
  margin-bottom: 4px;
}

.building-item .name {
  font-size: 12px;
  font-weight: 500;
}

.building-item .cost {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ========================================
   英雄列表
   ======================================== */
.hero-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-card {
  display: flex;
  gap: 12px;
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  padding: 12px;
  align-items: center;
}

.hero-card .avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.hero-card .info {
  flex: 1;
}

.hero-card .name {
  font-size: 14px;
  font-weight: 600;
}

.hero-card .class {
  font-size: 11px;
  color: var(--text-secondary);
}

.hero-card .stats {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.hero-card .stat {
  font-size: 10px;
  color: var(--text-muted);
}

/* 稀有度边框 */
.hero-card.rarity-common { border-left: 3px solid #9ca3af; }
.hero-card.rarity-rare { border-left: 3px solid #3b82f6; }
.hero-card.rarity-epic { border-left: 3px solid #a855f7; }
.hero-card.rarity-legendary { border-left: 3px solid #f59e0b; }

/* ========================================
   响应式 - 平板和桌面
   ======================================== */
@media (min-width: 768px) {
  #status-bar {
    padding: 12px 24px;
  }
  
  .player-info .avatar {
    width: 44px;
    height: 44px;
  }
  
  .player-info .name {
    font-size: 16px;
  }
  
  .resources {
    gap: 16px;
  }
  
  .resource {
    padding: 6px 12px;
    font-size: 14px;
  }
  
  #quick-actions {
    right: 24px;
  }
  
  .action-btn {
    width: 64px;
    height: 64px;
  }
  
  #bottom-nav {
    max-width: 500px;
    margin: 0 auto;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    bottom: var(--safe-bottom);
  }
  
  .modal-content {
    max-width: 500px;
  }
}

/* ========================================
   动画
   ======================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease;
}

.animate-slide-up {
  animation: slideUp 0.3s ease;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* ========================================
   工具类
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }

/* ========================================
   ARIA 对话框样式
   ======================================== */
@keyframes slideDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(96, 165, 250, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.6);
  }
}

/* ARIA 浮动按钮 */
#aria-button {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  border: 3px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  z-index: 998;
  animation: glow 2s ease-in-out infinite;
  transition: transform 0.3s, box-shadow 0.3s;
}

#aria-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(96, 165, 250, 0.8);
}

#aria-button:active {
  transform: scale(0.95);
}

/* ARIA 提示气泡 */
.aria-tip {
  position: fixed;
  bottom: 160px;
  left: 20px;
  right: 20px;
  background: rgba(74, 85, 104, 0.95);
  border: 1px solid #718096;
  border-radius: 8px;
  padding: 12px 15px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideUp 0.3s ease;
}

.aria-tip .tip-text {
  color: #e2e8f0;
  font-size: 13px;
  flex: 1;
}

.aria-tip .close-btn {
  background: none;
  border: none;
  color: #a0aec0;
  cursor: pointer;
  font-size: 18px;
}

/* 科技树标签高亮 */
.tech-tab-active {
  background: #4a5568 !important;
  border-width: 3px !important;
}

/* 科技项等级标识 */
.tech-level-max {
  color: #4ade80 !important;
  font-weight: bold;
}

/* 研究进度条动画 */
@keyframes researchProgress {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 20px 0;
  }
}

.research-progress-bar {
  background: linear-gradient(
    90deg,
    #4ade80 0%,
    #22c55e 50%,
    #4ade80 100%
  );
  background-size: 20px 100%;
  animation: researchProgress 1s linear infinite;
}

/* 科技解锁闪光效果 */
@keyframes techUnlock {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.tech-unlocked {
  animation: techUnlock 0.5s ease;
}

/* ========================================
   模态框统一样式
   ======================================== */
#modal-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#modal-layer.hidden {
  display: none;
}

#modal-layer .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
}

#modal-layer .modal-content {
  position: relative;
  background: #2d3748;
  border: 2px solid #4a5568;
  border-radius: 12px;
  padding: 20px;
  max-width: 90%;
  max-height: 80%;
  overflow-y: auto;
  z-index: 1;
  animation: slideUp 0.3s ease;
}

/* 确认对话框 */
.confirm-dialog,
.info-dialog {
  text-align: center;
  min-width: 280px;
}

.confirm-title,
.info-title {
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 12px;
}

.confirm-message,
.info-message {
  font-size: 14px;
  color: #a0aec0;
  margin-bottom: 20px;
  line-height: 1.6;
}

.confirm-buttons,
.info-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.confirm-buttons button,
.info-buttons button,
.btn-cancel,
.btn-confirm,
.btn-ok,
.btn-train {
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel {
  background: #4a5568;
  color: #ffffff;
}

.btn-cancel:hover {
  background: #5a6578;
}

.btn-confirm,
.btn-ok,
.btn-train {
  background: #4ade80;
  color: #ffffff;
}

.btn-confirm:hover,
.btn-ok:hover,
.btn-train:hover {
  background: #22c55e;
}

/* 建造菜单 */
.build-menu {
  min-width: 280px;
}

.build-menu h3 {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 15px;
  text-align: center;
}

.build-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.build-option {
  padding: 12px;
  background: #4a5568;
  border: 1px solid #718096;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.build-option:hover {
  background: #5a6578;
  border-color: #4ade80;
}

/* 训练对话框 */
.train-dialog {
  min-width: 280px;
  text-align: center;
}

.train-dialog h3 {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 10px;
}

.train-dialog p {
  font-size: 13px;
  color: #a0aec0;
  margin-bottom: 15px;
}

.train-amount {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.train-amount button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #4a5568;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

.train-amount .amount {
  font-size: 24px;
  font-weight: bold;
  color: #4ade80;
  min-width: 40px;
}

.train-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* 英雄信息 */
.building-info {
  min-width: 260px;
  text-align: center;
}

.building-info h3 {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 10px;
}

.building-info p {
  font-size: 14px;
  color: #a0aec0;
  margin-bottom: 15px;
}

.building-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.btn-upgrade {
  padding: 10px 24px;
  background: #fbbf24;
  border: none;
  border-radius: 6px;
  color: #1a1a2e;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.btn-upgrade:hover {
  background: #f59e0b;
}

/* 聊天输入对话框 */
.chat-input-dialog {
  min-width: 300px;
}

.chat-input-dialog h3 {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 15px;
  text-align: center;
}

.chat-input-dialog textarea {
  width: 100%;
  background: #1a1a2e;
  border: 1px solid #4a5568;
  border-radius: 8px;
  padding: 12px;
  color: #ffffff;
  font-size: 14px;
  resize: none;
  font-family: inherit;
}

.chat-input-dialog textarea:focus {
  outline: none;
  border-color: #4ade80;
}

.chat-input-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}

/* 创建联盟对话框 */
.create-alliance-dialog {
  min-width: 300px;
}

.create-alliance-dialog h3 {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 15px;
  text-align: center;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  color: #a0aec0;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: #1a1a2e;
  border: 1px solid #4a5568;
  border-radius: 8px;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4ade80;
}

.create-cost {
  text-align: center;
  font-size: 14px;
  color: #fbbf24;
  margin-bottom: 15px;
}

.dialog-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* 建筑信息样式增强 */
.building-info h3 {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 10px;
  text-align: center;
}

.building-level {
  font-size: 14px;
  color: #4ade80;
  margin-bottom: 8px;
  text-align: center;
}

.building-desc {
  font-size: 13px;
  color: #a0aec0;
  margin-bottom: 15px;
  text-align: center;
  line-height: 1.5;
}

.building-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}
