/* =========================================================
   PIXMA Domain Mailbox — 全域樣式
   ========================================================= */

:root {
  --primary: #ea580c;
  --primary-dark: #c2410c;
  --primary-soft: #fff7ed;
  --navy: #0f172a;
  --slate: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --danger: #dc2626;
  --success: #16a34a;
  --warn: #d97706;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --radius: 12px;
  --max-w: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans TC", "Noto Sans SC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1, h2, h3, h4, p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Header / Navigation
   ========================================================= */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.logo-container {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.pixma-text-logo {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.pink-x {
  color: #ec4899;
}

.sub-brand {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-btn {
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--slate);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  transition: background 0.2s, transform 0.15s;
}

.nav-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* =========================================================
   Hero — 雙欄首屏 + 微光底色 + 價格震撼條
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 56px;
  background:
    radial-gradient(ellipse 70% 55% at 12% 18%, rgba(234, 88, 12, 0.14), transparent 60%),
    radial-gradient(ellipse 55% 45% at 88% 12%, rgba(236, 72, 153, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 40% at 70% 90%, rgba(37, 99, 235, 0.06), transparent 50%),
    linear-gradient(180deg, #fffaf5 0%, #ffffff 55%, #ffffff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.4) 0 1px, transparent 2px);
  background-size: 48px 48px, 64px 64px;
  opacity: 0.35;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 40px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.persona-switcher {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.persona-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.persona-btn:hover {
  color: var(--navy);
}

.persona-btn.active {
  background: var(--navy);
  color: #fff;
}

.hero-text h1 {
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.35;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 18px;
}

.hero-text h1 mark {
  background: linear-gradient(120deg, rgba(234, 88, 12, 0.18), rgba(236, 72, 153, 0.16));
  color: var(--primary-dark);
  padding: 0 4px;
  border-radius: 4px;
}

.hero-price-strip {
  background: #fff;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.08);
}

.hero-price-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 700;
}

.hero-price-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(90deg, #ea580c, #db2777);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.hero-price-sub {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #fdba74;
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.55;
}

.lead-desc {
  font-size: 1rem;
  color: var(--slate);
  margin-bottom: 16px;
  max-width: 54ch;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tag-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: var(--shadow);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 22px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
  transition: background 0.2s, transform 0.15s;
}

.hero-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.hero-sub-cta {
  font-weight: 700;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-sub-cta:hover {
  color: var(--primary-dark);
}

.hero-image-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #0f172a;
}

.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 70%, rgba(15, 23, 42, 0.18));
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

/* =========================================================
   Section 共用
   ========================================================= */

.section {
  padding: 64px 0;
}

.section.bg-light {
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}

.section-header h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--muted);
  font-size: 0.98rem;
}

.tool-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}

/* =========================================================
   DNS Health Check
   ========================================================= */

.checker-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 18px;
}

.checker-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--navy);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.checker-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.checker-btn {
  border: none;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  padding: 12px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.checker-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.checker-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.checker-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--slate);
}

.status-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.pill-idle {
  background: #e2e8f0;
  color: #475569;
}

.pill-pass {
  background: #dcfce7;
  color: #15803d;
}

.pill-warn {
  background: #ffedd5;
  color: #c2410c;
}

/* =========================================================
   對比表
   ========================================================= */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

thead th {
  background: #0f172a;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: left;
  padding: 14px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

thead th:last-child {
  border-right: none;
}

thead th.highlight-col {
  background: linear-gradient(180deg, #ea580c, #c2410c);
}

tbody td {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 0.9rem;
  vertical-align: top;
  color: var(--slate);
}

tbody td:last-child {
  border-right: none;
}

tbody tr:nth-child(even) {
  background: #f8fafc;
}

tbody td.highlight-col {
  background: #fff7ed;
  font-weight: 600;
  color: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(234, 88, 12, 0.12);
}

.badge-win,
.badge-trap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
}

.badge-win {
  background: #16a34a;
  color: #fff;
}

.badge-trap {
  background: #fee2e2;
  color: #b91c1c;
}

/* =========================================================
   成本試算器（1 年 / 5 年並列）
   ========================================================= */

.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: flex-start;
}

.calc-controls {
  background: #ffffff;
}

.calc-control-group {
  margin-bottom: 4px;
}

.control-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.control-label-row label,
.control-title {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.range-slider {
  width: 100%;
  margin: 8px 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
}

.slider-value {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary);
}

.btn-group-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.radio-label {
  display: block;
  position: relative;
  cursor: pointer;
}

.radio-label input {
  position: absolute;
  opacity: 0;
}

.radio-label span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate);
  text-align: center;
  transition: all 0.2s;
  min-height: 52px;
}

.radio-label span small {
  font-size: 0.72rem;
  font-weight: normal;
  color: var(--muted);
  margin-top: 2px;
}

.radio-label input:checked + span {
  background: #eff6ff;
  border-color: var(--primary);
  color: var(--primary-dark);
  box-shadow: 0 0 0 1px var(--primary);
}

.pixma-per-user-tip {
  background: #fff7ed;
  border: 1px solid #ffedd5;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 10px;
  font-size: 0.82rem;
  color: #9a3412;
  line-height: 1.5;
}

.calc-fee-note {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 12px;
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
}

.calc-results-split {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cost-summary-box {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.cost-summary-box.highlight-5year {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  box-shadow: var(--shadow-lg);
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.summary-header h4 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--navy);
}

.period-badge {
  background: #e2e8f0;
  color: var(--slate);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.period-badge.primary {
  background: #16a34a;
  color: #fff;
}

.cost-diff-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
}

.diff-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--slate);
}

.diff-save-row {
  border-top: 1.5px dashed #cbd5e1;
  padding-top: 10px;
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.save-highlight {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary);
}

.save-highlight.huge {
  font-size: 1.65rem;
  color: #16a34a;
}

/* =========================================================
   FAQ（details / summary）
   ========================================================= */

.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
  font-size: 0.98rem;
  padding: 16px 28px 16px 0;
  position: relative;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 0 16px;
  color: var(--slate);
  font-size: 0.92rem;
  line-height: 1.7;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}

/* =========================================================
   預約表單
   ========================================================= */

.form-wrapper {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--navy);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.submit-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  padding: 14px 18px;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 10px 22px rgba(234, 88, 12, 0.25);
  transition: background 0.2s, transform 0.15s;
}

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.form-privacy {
  margin-top: 12px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

/* =========================================================
   Footer
   ========================================================= */

footer {
  background: var(--navy);
  color: #94a3b8;
  text-align: center;
  padding: 28px 0;
  font-size: 0.88rem;
}

footer p {
  margin: 0;
}

/* =========================================================
   RWD — max-width: 992px
   ========================================================= */

@media (max-width: 992px) {
  .container {
    padding: 0 16px;
  }

  .nav {
    min-height: 60px;
  }

  .sub-brand {
    display: none;
  }

  .nav-btn {
    padding: 7px 10px;
    font-size: 0.8rem;
  }

  .hero {
    padding: 32px 0 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-image-wrap img {
    min-height: 240px;
  }

  .persona-switcher {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 12px;
  }

  .persona-btn {
    font-size: 0.8rem;
    padding: 10px 8px;
    text-align: center;
  }

  .hero-price-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .checker-form {
    grid-template-columns: 1fr;
  }

  .check-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .calc-grid {
    grid-template-columns: 1fr;
  }

  .btn-group-selector {
    grid-template-columns: 1fr;
  }

  .diff-row,
  .diff-save-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 48px 0;
  }

  .tool-card,
  .form-wrapper {
    padding: 18px 16px;
  }
}
