/* ===== MAIN LAYOUT ===== */
.app {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding-bottom: 80px;
}

/* ===== HEADER ===== */
.header {
  text-align: center;
  padding: 32px 20px 20px;
  position: relative;
}

.header-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(20px, 5vw, 32px); /* 放大字体 */
  color: var(--gold);
  text-shadow:
    3px 3px 0 #8B6914,
    6px 6px 0 rgba(0,0,0,0.5);
  letter-spacing: 2px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.header-sub {
  font-size: 12px; /* 放大字体 */
  color: rgba(255,255,255,0.6);
  font-family: 'Press Start 2P', monospace;
  letter-spacing: 1px;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 20px auto;
  max-width: 500px;
  padding: 0 20px;
}

.tab-btn {
  flex: 1;
  padding: 14px 10px;
  font-family: 'Press Start 2P', monospace;
  font-size: 12px; /* 放大字体 */
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.1s;
  image-rendering: pixelated;
  letter-spacing: 0.5px;
  position: relative;
}

.tab-btn:first-child {
  background: #5D9E32;
  border-color: #3a6b1a #1a3a0a #1a3a0a #3a6b1a;
  color: white;
  text-shadow: 2px 2px 0 #1a3a0a;
  border-radius: 4px 0 0 4px;
}

.tab-btn:nth-child(2) {
  background: #2a7aD4;
  border-color: #1c5b9f #0a2a6a #0a2a6a #1c5b9f;
  color: white;
  text-shadow: 2px 2px 0 #0a2a6a;
}

.tab-btn:last-child {
  background: #8B6914;
  border-color: #c49a1e #5a4010 #5a4010 #c49a1e;
  color: #FFD700;
  text-shadow: 2px 2px 0 #3a2a08;
  border-radius: 0 4px 4px 0;
}

.tab-btn.active:first-child {
  background: #7ab83e;
  box-shadow: 0 4px 0 #1a3a0a, inset 0 -2px 0 rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.tab-btn.active:nth-child(2) {
  background: #3b8ce8;
  box-shadow: 0 4px 0 #0a2a6a, inset 0 -2px 0 rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.tab-btn.active:last-child {
  background: #c49a1e;
  box-shadow: 0 4px 0 #5a4010, inset 0 -2px 0 rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.tab-btn:not(.active) { opacity: 0.65; }

/* ===== VIEWS ===== */
.view { display: none; padding: 0 16px; max-width: 1000px; margin: 0 auto; }
.view.active { display: block; }

/* ===== SECTION TITLE ===== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 16px;
}

.section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px; /* 放大字体 */
  color: var(--gold);
  text-shadow: 2px 2px 0 #8B6914;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 1px;
  margin: 0;
}

/* ===== ADMIN PANEL ===== */
.admin-panel { display: none; }
.admin-panel.unlocked { display: block; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255,255,255,0.4);
}

.empty-state-icon { font-size: 48px; margin-bottom: 16px; filter: grayscale(0.5); }

.empty-state-text {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px; /* 放大字体 */
  line-height: 2;
  letter-spacing: 1px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-bar { gap: 8px; }
}
