/* Redeye 瑞愛生醫 — RayFocus 2 mockup */
:root {
  --red: #c8102e;
  --red-soft: #e85a6b;
  --red-pale: #fff5f6;
  --red-border: #f0c8cd;
  --ink: #1a1a1a;
  --ink-2: #4a4a4a;
  --muted: #7a7a7a;
  --line: #ebebeb;
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --sage: #e8f0ea;
  --sage-ink: #2d5a3d;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px rgba(200, 16, 46, 0.08);
  --max: 1200px;
  --header-h: 72px;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-mark {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--red);
}

.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active { color: var(--red); }

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.cart-btn:hover {
  border-color: var(--red);
  background: var(--red-pale);
}

.cart-badge {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

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

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.28);
}

.btn-primary:hover {
  background: #b00e28;
  box-shadow: 0 10px 28px rgba(200, 16, 46, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-pale);
}

.btn-ghost {
  background: #fff;
  color: var(--red);
  border: 1.5px solid var(--red-border);
}

.btn-ghost:hover { background: var(--red-pale); }

/* ——— Hero ——— */
.hero {
  padding: 56px 0 72px;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(200, 16, 46, 0.06), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(200, 16, 46, 0.04), transparent 50%),
    #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--red-pale);
  color: var(--red);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-badge::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero h1 .model {
  display: block;
  font-size: 0.45em;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-lead {
  color: var(--ink-2);
  font-size: 1.05rem;
  max-width: 36em;
  margin-bottom: 28px;
}

.hero-price-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -0.02em;
}

.price-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.bundle-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.chip {
  padding: 6px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--ink-2);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-safety {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 40em;
  padding-left: 12px;
  border-left: 3px solid var(--red-border);
}

.hero-visual {
  position: relative;
}

.hero-frame {
  background: linear-gradient(160deg, #fafafa, #f0f0f2);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-float {
  position: absolute;
  bottom: 20px;
  left: -12px;
  background: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  max-width: 200px;
}

.hero-float strong {
  display: block;
  color: var(--red);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

/* ——— Section commons ——— */
.section {
  padding: 80px 0;
}

.section-alt { background: var(--bg-soft); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--ink-2);
}

/* ——— Gallery ——— */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: #eee;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  transition: transform 0.25s, box-shadow 0.25s;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item.wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.gallery-caption {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ——— Benefits ——— */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.benefit-card:hover { transform: translateY(-3px); }

.benefit-card .thumb {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #111;
}

.benefit-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.benefit-card .body {
  padding: 22px 22px 26px;
}

.benefit-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.benefit-card p {
  font-size: 0.92rem;
  color: var(--ink-2);
}

.how-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 56px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red-pale);
  color: var(--red);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.step h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.step p {
  font-size: 0.9rem;
  color: var(--ink-2);
}

.how-visual {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #111;
}

.how-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ——— Specs ——— */
.specs-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.specs-visual {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  aspect-ratio: 1;
}

.specs-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.specs-table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.specs-table th,
.specs-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.specs-table tr:last-child th,
.specs-table tr:last-child td { border-bottom: none; }

.specs-table th {
  width: 32%;
  background: var(--red-pale);
  color: var(--red);
  font-weight: 600;
  white-space: nowrap;
}

.specs-table td { color: var(--ink-2); }

.specs-note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ——— Accessory ——— */
.accessory {
  background: linear-gradient(135deg, #f3f8f4 0%, #eef5f0 50%, #faf7f2 100%);
}

.accessory-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.accessory-copy h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 14px;
}

.accessory-copy .lead {
  color: var(--ink-2);
  margin-bottom: 20px;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.feature-list li {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #d4e5d8;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--sage-ink);
  font-weight: 500;
}

.accessory-visual {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #d8e6dc;
  box-shadow: var(--shadow);
  background: #fff;
}

.accessory-visual img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ——— FAQ ——— */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--red);
  font-weight: 400;
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item .answer {
  padding: 0 22px 20px;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.faq-item[open] {
  border-color: var(--red-border);
  box-shadow: 0 4px 16px rgba(200, 16, 46, 0.06);
}

/* ——— CTA band ——— */
.cta-band {
  padding: 64px 0;
  background: linear-gradient(120deg, #1a1a1a 0%, #2a1518 50%, #1a1a1a 100%);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 10px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
}

.cta-band .price {
  color: #fff;
  margin-right: 8px;
}

/* ——— Footer ——— */
.site-footer {
  background: #111;
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 28px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand .logo-mark { color: #fff; margin-bottom: 4px; }
.footer-brand .logo-sub { color: rgba(255, 255, 255, 0.45); }
.footer-brand p {
  margin-top: 16px;
  max-width: 28em;
  line-height: 1.65;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.15s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.disclaimer {
  max-width: 52em;
  margin-top: 8px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
}

/* ——— About strip ——— */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.about-strip .photo {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
}

.about-strip .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-strip h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 14px;
}

.about-strip p {
  color: var(--ink-2);
  margin-bottom: 12px;
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .hero-grid,
  .specs-layout,
  .accessory-grid,
  .how-row,
  .about-strip {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .gallery-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.wide {
    grid-column: span 2;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-float { left: 12px; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }

  .hero { padding: 36px 0 48px; }
  .section { padding: 56px 0; }

  .gallery-strip { grid-template-columns: 1fr 1fr; gap: 10px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .how-row { padding: 20px; }
}
