/* main.css */
html {
  height: 100%;
  /* 动态视口高，避免移动端 100vh 把底栏顶到系统手势条/工具栏后面 */
  height: 100dvh;
}

body {
  background-color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text-body);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
}

#game-container {
  width: var(--game-width);
  max-width: 100vw;
  /* 不超过真实可视高度，否则底栏会落在屏幕外无法点击 */
  height: var(--game-height);
  max-height: 100vh;
  max-height: 100dvh;
  background-color: var(--color-bg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

@media screen and (max-width: 420px) {
  body {
    align-items: stretch;
  }
  #game-container {
    width: 100%;
    max-width: none;
    box-shadow: none;
  }
}

.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 顶部状态栏 */
.top-bar {
  flex-shrink: 0;
  background-color: var(--color-white);
  border-bottom: 1px solid #E5E6EB;
  z-index: 10;
}

.player-stats {
  height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.exp-hint-row {
  display: flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 16px 8px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--color-text-secondary);
  background: linear-gradient(180deg, #FAFBFC 0%, var(--color-white) 100%);
  border-bottom: 1px solid #EEF0F3;
}

.level-badge {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: var(--font-small);
  font-weight: bold;
}

.money-stat, .fans-stat {
  font-size: var(--font-body);
  font-weight: bold;
  color: var(--color-text-title);
}

/* 背水一战状态条 */
.last-chance-bar {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  background: linear-gradient(90deg, #FF4D4F, #FF7A45);
  color: white;
  animation: lastChancePulse 1s ease-in-out infinite;
}

@keyframes lastChancePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* 破产预警条 */
.bankruptcy-warning {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  background-color: #FFF1F0;
  color: var(--color-red);
  animation: warningPulse 1.5s ease-in-out infinite;
  border-bottom: 1px solid #FFCCC7;
}

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

/* 设备信息卡片 */
.equipment-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-card);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 12px;
}

.equip-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.btn-downgrade {
  background: #F5F5F5;
  color: var(--color-text-title);
  padding: 6px 12px;
  border-radius: var(--radius-btn);
  font-size: 12px;
  font-weight: bold;
  border: 1px solid #E5E6EB;
  cursor: pointer;
}

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

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

.equip-info #equip-icon {
  font-size: 24px;
}

.equip-info #equip-name {
  font-size: 14px;
  font-weight: bold;
  color: var(--color-text-title);
}

.equip-cap {
  font-size: 11px;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  padding: 2px 8px;
  border-radius: 4px;
}

.btn-upgrade {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
}

.btn-upgrade:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 122, 69, 0.3);
}

.btn-upgrade:disabled {
  background: #C9CDD4;
  cursor: not-allowed;
}

/* 游戏目标提示 */
.goal-hint {
  background: linear-gradient(135deg, #667EEA, #764BA2);
  color: white;
  padding: 10px 16px;
  border-radius: var(--radius-card);
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  margin-bottom: 12px;
}

/* 成就弹窗 */
.achievement-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--color-bg);
  border-radius: var(--radius-card);
  margin-bottom: 8px;
}

.achievement-icon {
  font-size: 32px;
}

.achievement-info {
  flex: 1;
}

.achievement-name {
  font-size: 14px;
  font-weight: bold;
  color: var(--color-text-title);
}

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

.achievement-reward {
  font-size: 14px;
  font-weight: bold;
  color: var(--color-green);
}

.trend-bar {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-small);
  font-weight: bold;
}
.trend-bar.hot {
  background-color: var(--color-trend-bg-hot);
  color: var(--color-trend-hot);
  animation: trendPulse 2s ease-in-out infinite;
}
.trend-bar.cold {
  background-color: var(--color-trend-bg-cold);
  color: var(--color-trend-cold);
}

/* 主场景区域 */
.scene-area {
  flex: 1;
  min-height: 0;
  background-color: #E5E6EB; /* 临时占位，后续可换背景图 */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 16px;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 进度卡片 */
.progress-card {
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-top: auto; /* 推到底部 */
}

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

#progress-game-name {
  font-size: var(--font-body);
  font-weight: bold;
  color: var(--color-text-title);
}

#progress-status {
  font-size: var(--font-small);
  color: var(--color-primary);
}

.progress-bar-container {
  height: 8px;
  background-color: #F2F3F5;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  transition: width 1s linear;
}

.progress-footer {
  font-size: var(--font-small);
  color: var(--color-text-secondary);
  text-align: right;
  margin-bottom: 12px;
}

.dev-bug-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.dev-bug-label {
  flex-shrink: 0;
}

.bug-bar-wrap {
  flex: 1;
  height: 8px;
  background: #F2F3F5;
  border-radius: 4px;
  overflow: hidden;
}

.bug-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FAAD14, #FF4D4F);
  transition: width 0.3s ease;
}

.dev-bug-pct {
  flex-shrink: 0;
  min-width: 36px;
  text-align: right;
  font-weight: bold;
  color: var(--color-text-title);
}

.progress-actions {
  display: flex;
  gap: 8px;
}

.btn-primary {
  flex: 1;
  height: var(--btn-primary-height);
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-btn);
  font-size: var(--font-body);
  font-weight: bold;
  transition: transform 0.1s;
}

.btn-secondary {
  flex: 1;
  height: var(--btn-secondary-height);
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-btn);
  font-size: var(--font-body);
  transition: transform 0.1s;
}

.btn-primary:active { transform: scale(0.96); }
.btn-secondary:active { transform: scale(0.97); }

/* 底部导航（抬高 z-index + 安全区，避免被滚动层挡住或落在 Home 指示条下） */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  min-height: 56px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
  background-color: var(--color-white);
  border-top: 1px solid #E5E6EB;
  display: flex;
  align-items: stretch;
  /* 高于各屏滚动内容，但必须低于 #modal-overlay(100) */
  z-index: 50;
  pointer-events: auto;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  color: var(--color-text-secondary);
  cursor: pointer;
  position: relative;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.nav-item.active {
  color: var(--color-primary);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 0 0 3px 3px;
}

.nav-icon {
  font-size: 20px;
  margin-bottom: 2px;
}

.nav-text {
  font-size: 10px;
}

/* 弹窗遮罩 */
#modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 100;
}

#modal-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 101;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* 默认底部滑入 */
}

/* 开发中事件选项 */
.event-option {
  margin-bottom: 12px;
}
.event-option button {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-btn);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.1s;
}
.event-option .btn-primary {
  height: auto;
}
.event-option .btn-secondary {
  height: auto;
  color: var(--color-text-title);
  border-color: #C9CDD4;
}
.event-option .opt-title {
  font-size: var(--font-body);
  font-weight: bold;
  margin-bottom: 4px;
}
.event-option .opt-desc {
  font-size: 11px;
}
.btn-primary .opt-desc {
  color: rgba(255, 255, 255, 0.8);
}
.btn-secondary .opt-desc {
  color: var(--color-text-secondary);
}
@keyframes slideUp { from{transform:translateY(100%);opacity:0} to{transform:translateY(0);opacity:1} }
@keyframes slideDown { from{transform:translateY(-60px);opacity:0} to{transform:translateY(0);opacity:1} }
@keyframes trendPulse { 0%,100%{opacity:1} 50%{opacity:0.6} }

.modal-enter { animation: slideUp 0.3s ease-out; }
.notice-enter { animation: slideDown 0.25s ease-out; }

/* 弹窗通用样式 */
.modal-body {
  width: 100%;
  max-height: 80vh;
  background-color: var(--color-white);
  border-radius: var(--radius-modal) var(--radius-modal) 0 0;
  padding: 24px 16px 32px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.modal-title {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-secondary);
}

.modal-footer {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* 立项网格 */
.theme-grid, .type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.grid-item {
  background-color: var(--color-bg);
  border-radius: var(--radius-card);
  padding: 12px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
}

.grid-item.selected {
  border-color: var(--color-primary);
  background-color: #FFF3ED;
}

.grid-item.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.item-name {
  font-size: 12px;
  color: var(--color-text-title);
  text-align: center;
}

.item-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: var(--color-trend-hot);
  color: var(--color-white);
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 4px;
  transform: scale(0.9);
}

.match-card {
  background-color: var(--color-bg);
  border-radius: var(--radius-card);
  padding: 16px;
  margin-bottom: 16px;
  text-align: center;
}

.match-label {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

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

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

.game-name-input {
  width: 100%;
  height: var(--btn-primary-height);
  border: 1px solid #E5E6EB;
  border-radius: var(--radius-btn);
  padding: 0 12px;
  font-size: var(--font-body);
  text-align: center;
}

.step-indicator {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

/* 空闲时开始按钮 */
.idle-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  margin-top: auto; /* 推到底部 */
}
.idle-actions .btn-primary {
  width: 200px;
  box-shadow: 0 4px 12px rgba(255, 122, 69, 0.3);
}

/* 精力格子UI */
.effort-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.effort-label {
  width: 100px;
  font-size: var(--font-body);
  display: flex;
  align-items: center;
  gap: 4px;
}

.core-badge {
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 4px;
  margin-left: 4px;
}

.effort-dots {
  flex: 1;
  display: flex;
  gap: 4px;
}

.effort-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transition: background-color 0.15s, transform 0.1s;
}

.effort-dot.filled {
  background-color: var(--color-primary);
}

.effort-dot.empty {
  background-color: var(--color-bg);
  border: 1.5px solid #C9CDD4;
}

.effort-controls {
  display: flex;
  gap: 4px;
}

.btn-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background-color: var(--color-bg);
  color: var(--color-text-title);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
}
.btn-icon:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.effort-summary {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid #E5E6EB;
}

.fatigue-warning {
  background-color: #FFFBE6;
  color: #FAAD14;
  padding: 8px;
  border-radius: 4px;
  font-size: 12px;
  text-align: center;
  margin-bottom: 16px;
}

/* 结算弹窗样式 */
.result-header {
  text-align: center;
  margin-bottom: 24px;
}
.result-name {
  font-size: 18px;
  font-weight: bold;
}
.result-type {
  font-size: 12px;
  color: var(--color-text-secondary);
}
.result-score-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}
.result-score {
  font-size: 64px;
  font-weight: bold;
  color: var(--color-primary);
  line-height: 1;
}
.result-stars {
  color: var(--color-gold);
  margin-bottom: 8px;
}
.result-badge {
  color: var(--color-white);
  padding: 4px 16px;
  border-radius: var(--radius-btn);
  font-weight: bold;
  margin-bottom: 8px;
}
.trend-bonus-tag {
  background-color: #F6FFED;
  color: var(--color-green);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}
.result-stats {
  background-color: var(--color-bg);
  border-radius: var(--radius-card);
  padding: 16px;
  margin-bottom: 24px;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}
.stat-row:last-child { margin-bottom: 0; }

.comments-section {
  margin-bottom: 24px;
}
.comment-item {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}
.comment-avatar {
  width: 24px;
  height: 24px;
  background-color: #E5E6EB;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
}
.comment-content {
  flex: 1;
  background-color: var(--color-bg);
  padding: 8px 12px;
  border-radius: 0 12px 12px 12px;
  font-size: 13px;
}
.comment-user {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes popScale { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.badge-pop {
  animation: popScale 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 游戏库样式 */
.library-header {
  flex-shrink: 0;
  padding: 16px;
  background-color: var(--color-white);
  border-bottom: 1px solid #E5E6EB;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}
.library-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
  padding: 16px;
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

/* 营销选择卡片 */
.marketing-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--color-white);
  border: 2px solid #E5E6EB;
  border-radius: var(--radius-card);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.marketing-option:hover {
  border-color: var(--color-primary);
  background: #FFF3ED;
  transform: translateX(4px);
}

.marketing-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.marketing-option.disabled:hover {
  border-color: #E5E6EB;
  background: var(--color-white);
  transform: none;
}

.marketing-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.marketing-info {
  flex: 1;
}

.marketing-name {
  font-size: 15px;
  font-weight: bold;
  color: var(--color-text-title);
  margin-bottom: 4px;
}

.marketing-desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.marketing-bonus {
  font-size: 11px;
  font-weight: bold;
}

.marketing-cost {
  font-size: 16px;
  font-weight: bold;
  flex-shrink: 0;
}

/* 成就界面 */
.achieve-header {
  flex-shrink: 0;
  padding: 16px;
  background-color: var(--color-white);
  border-bottom: 1px solid #E5E6EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.achieve-header h2 {
  font-size: 18px;
  font-weight: bold;
}

.achieve-progress {
  font-size: 14px;
  color: var(--color-primary);
  font-weight: bold;
}

.achieve-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
  padding: 16px;
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

.achieve-card {
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.achieve-card.locked {
  opacity: 0.4;
}

.achieve-card-icon {
  font-size: 36px;
  flex-shrink: 0;
}

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

.achieve-card-name {
  font-size: 15px;
  font-weight: bold;
  color: var(--color-text-title);
  margin-bottom: 4px;
}

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

.achieve-card-reward {
  font-size: 14px;
  color: var(--color-green);
  font-weight: bold;
  flex-shrink: 0;
}

/* 公司档案 */
.profile-header {
  flex-shrink: 0;
  padding: 16px;
  background-color: var(--color-white);
  border-bottom: 1px solid #E5E6EB;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

.profile-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
  padding: 16px;
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.profile-exp-hint {
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-text-secondary);
  margin: 0 0 12px;
  padding: 10px 12px;
  background: var(--color-white);
  border-radius: var(--radius-card);
  border: 1px solid #E5E6EB;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.profile-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.profile-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.profile-stat strong {
  font-size: 16px;
  color: var(--color-text-title);
}

.profile-version {
  text-align: center;
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.profile-action {
  width: 100%;
  margin-bottom: 10px;
}

/* 发行准备 / 媒体分条 */
.release-prep-section {
  margin-bottom: 16px;
}

.release-prep-title {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--color-text-title);
}

.platform-pick {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.platform-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 2px solid #E5E6EB;
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.platform-option.selected {
  border-color: var(--color-primary);
  background: #FFF3ED;
}

.platform-option input {
  flex-shrink: 0;
}

.review-dim-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}

.review-dim-label {
  width: 72px;
  flex-shrink: 0;
  color: var(--color-text-secondary);
}

.review-dim-bar {
  flex: 1;
  height: 6px;
  background: #F2F3F5;
  border-radius: 3px;
  overflow: hidden;
}

.review-dim-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: 3px;
  transition: width 0.6s ease;
}

.review-dim-val {
  width: 32px;
  text-align: right;
  font-weight: bold;
  font-size: 11px;
}
.lib-item {
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  cursor: pointer;
}
.lib-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.lib-name {
  font-size: 16px;
  font-weight: bold;
}
.lib-score {
  font-size: 20px;
  font-weight: bold;
}
.lib-details {
  display: none;
  border-top: 1px dashed #E5E6EB;
  padding-top: 12px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
}
.lib-details.open {
  display: block;
}
