﻿:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-sub: #475569;
  --border: #e2e8f0;
  --accent: #f59e0b;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
  --success-text: #166534;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  padding-bottom: 90px;
}

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 16px;
}

header {
  text-align: center;
  margin-bottom: 24px;
}

.badge {
  display: inline-block;
  background-color: #dbeafe;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

h1 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-sub);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--bg-main);
  padding-bottom: 8px;
}

.compare-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 12px 0;
}

.compare-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.compare-item.winner {
  border-color: #93c5fd;
  background: #eff6ff;
}

.compare-item-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-weight: bold;
  font-size: 0.95rem;
}

.speed-tag-bad {
  background: #fee2e2;
  color: #991b1b;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.speed-tag-good {
  background: #dcfce7;
  color: #166534;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.table-responsive {
  overflow-x: auto;
  margin: 14px 0;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.spec-table th, .spec-table td {
  padding: 10px;
  border: 1px solid var(--border);
}

.spec-table th {
  background: #f1f5f9;
  font-weight: bold;
}

.spec-table .highlight-col {
  background: #eff6ff;
  font-weight: 600;
  color: #1e40af;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

select, input[type="number"], input[type="text"], textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.calc-panel {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 14px;
  margin: 14px 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
  border-bottom: 1px dashed #cbd5e1;
}

.price-row:last-child {
  border-bottom: none;
}

.price-total {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 2px solid #94a3b8;
  align-items: center;
}

.real-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #dc2626;
}

.score-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.score-high { background: #dcfce7; color: #166534; }
.score-mid  { background: #fef3c7; color: #92400e; }

.output-area {
  font-family: monospace;
  font-size: 0.85rem;
  background: #f8fafc;
  color: #1e293b;
  resize: vertical;
}

.guide-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
  background: #ffffff;
}

.guide-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.guide-content { font-size: 0.9rem; }
.guide-answer { font-weight: 600; margin-bottom: 4px; }

.guide-quote {
  background: #f8fafc;
  border-left: 4px solid var(--primary);
  padding: 10px 12px;
  margin: 6px 0;
  font-size: 0.88rem;
  color: #334155;
  border-radius: 0 6px 6px 0;
}

.alert-box-success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-text);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin: 14px 0 6px 0;
}

.step-list { list-style: none; margin: 12px 0; }
.step-item { display: flex; gap: 12px; margin-bottom: 16px; }
.step-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}
.step-title { font-weight: bold; margin-bottom: 2px; }

.faq-item { margin-bottom: 12px; }
.faq-q { font-weight: bold; font-size: 0.95rem; }
.faq-a { font-size: 0.9rem; color: var(--text-sub); margin-top: 2px; }

.site-footer {
  text-align: center;
  padding: 24px 0 10px 0;
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 30px;
}

.btn {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  border: none;
}

.btn-cta {
  background: #ea580c;
  color: #ffffff;
  font-size: 1rem;
  margin-top: 14px;
  box-shadow: 0 4px 6px -1px rgba(234, 88, 12, 0.3);
  transition: background 0.2s;
}

.btn-cta:hover { background: #c2410c; }

.btn-copy {
  background: #e2e8f0;
  color: #1e293b;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 6px;
}

.sticky-footer-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  z-index: 99;
}

.sticky-footer-cta .text { font-size: 0.9rem; font-weight: bold; }
.sticky-footer-cta .text span { color: #dc2626; font-size: 1.1rem; font-weight: 800; }
.btn-small {
  background: #ea580c;
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: bold;
}

@media (max-width: 600px) {
  .compare-box, .grid-2 { grid-template-columns: 1fr; }
  h1 { font-size: 1.4rem; }
}
