/* PSEO 计算器页面样式 */

.calculator-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .calculator-layout {
    grid-template-columns: 1fr;
  }
}

/* 主计算器卡片 */
.calc-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.calc-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1a1a2e;
}

.formula-display {
  background: #f8f9fa;
  border-left: 4px solid var(--hero-blue-from, #4f46e5);
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 0 8px 8px 0;
}

.formula-display code {
  font-size: 0.95rem;
  color: #374151;
}

/* 表单样式 */
.calc-form {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.input-wrapper input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--hero-blue-from, #4f46e5);
}

.input-wrapper .unit {
  font-size: 0.875rem;
  color: #6b7280;
  min-width: 2rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--hero-blue-from, #4f46e5), var(--hero-blue-to, #7c3aed));
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #f3f4f6;
  color: #4b5563;
}

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

.btn-outline {
  background: transparent;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.btn-outline:hover {
  background: #f9fafb;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* 结果区域 */
.result-section {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
  text-align: center;
}

.result-section h3 {
  font-size: 0.9rem;
  color: #065f46;
  margin-bottom: 0.5rem;
}

.result-value {
  margin: 1rem 0;
}

#result-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #059669;
}

.result-unit {
  font-size: 1.25rem;
  color: #10b981;
  margin-left: 0.25rem;
}

.result-desc {
  font-size: 0.9rem;
  color: #047857;
  margin-top: 0.5rem;
}

/* 平台提示卡片 */
.tips-card {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.tips-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tips-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #78350f;
  line-height: 1.5;
}

.tips-list li::before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  color: #f59e0b;
  font-weight: bold;
}

/* 侧边栏卡片 */
.sidebar-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.sidebar-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 1rem;
}

.sidebar-card p {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

/* 平台链接 */
.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: #f3f4f6;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s;
}

.platform-tag:hover {
  background: #e5e7eb;
}

/* 公式链接 */
.formula-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.formula-links li {
  margin-bottom: 0.5rem;
}

.formula-links a {
  display: block;
  padding: 0.5rem 0;
  color: #4f46e5;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
}

.formula-links a:hover {
  color: #4338ca;
}

/* 页面头部 */
.page-header {
  margin-bottom: 1rem;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.page-header .subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
}
