/* 年终奖个税计算器 - 样式 */

html, body, main, header, footer {
  padding: 0px;
  margin: 0px;
}

/* 计算器主体 */
#app {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 10px 16px;
}

#calc-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #1a1a2e;
}

#calc-subtitle {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin: 0 0 20px 0;
}

/* 卡片 */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 24px;
  margin-bottom: 20px;
}

/* 输入组 */
.input-group {
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}

.input-field {
  width: 100%;
  height: 44px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 16px;
  color: #1a1a2e;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease;
}

.input-field:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.input-field::placeholder {
  color: #aaa;
}

/* 按钮区域 */
#calc-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-primary {
  flex: 1;
  height: 48px;
  border: none;
  border-radius: 8px;
  background: #4f46e5;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background: #4338ca;
}

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

.btn-secondary {
  flex: 1;
  height: 48px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-secondary:hover {
  background: #f5f5f5;
}

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

/* 结果区域 */
#result-card {
  animation: fadeIn 0.3s ease;
}

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

#result-title {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 16px 0;
}

#result-grid {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.result-panel {
  flex: 1;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.result-panel.recommended {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.result-panel-title {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 12px 0;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.result-label {
  font-size: 13px;
  color: #6b7280;
}

.result-value {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
}

.tax-value {
  color: #ef4444;
}

.after-value {
  color: #22c55e;
}

.savings-value {
  color: #f59e0b;
}

/* 推荐区域 */
#recommendation {
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

#recommend-badge {
  display: inline-block;
  background: #eef2ff;
  border-radius: 20px;
  padding: 6px 20px;
  margin-bottom: 10px;
}

#recommend-text {
  font-size: 15px;
  font-weight: 600;
  color: #4f46e5;
}

#savings-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

#savings-row .result-label {
  font-size: 14px;
}

#savings-row .result-value {
  font-size: 20px;
}

/* 应用简介等区域 */
#features, #scenarios, #FAQ {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px;
}

#features h2, #scenarios h2, #FAQ h2 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 8px 0;
}

#features p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin: 0;
}

#scenarios ul {
  padding-left: 20px;
  margin: 0;
}

#scenarios li {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

#FAQ dl {
  margin: 0;
}

#FAQ dt {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-top: 12px;
  margin-bottom: 4px;
}

#FAQ dd {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin: 0 0 8px 16px;
}

/* 改编按钮 */
#__fork {
  text-align: center;
  padding: 10px 0;
}

#__fork button {
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 24px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#__fork button:hover {
  background: #4338ca;
}

/* 页脚 */
footer {
  text-align: center;
  padding: 16px;
}

.page-info {
  font-size: 12px;
  color: #999;
}

.page-info a {
  color: #4f46e5;
  text-decoration: none;
}

.page-info a:hover {
  text-decoration: underline;
}

/* 响应式 */
@media (max-width: 768px) {
  #app {
    padding: 16px 12px 10px 12px;
  }

  #calc-title {
    font-size: 20px;
  }

  .card {
    padding: 16px;
  }

  #result-grid {
    flex-direction: column;
    gap: 12px;
  }

  #calc-actions {
    flex-direction: column;
    gap: 8px;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
  }
}
