body.marketing {
  background: #f8fafc;
  margin: 0;
}
body.marketing .topbar nav a {
  margin-left: 1rem;
  color: #e2e8f0;
}
body.marketing .topbar-dark {
  background: #0b1220;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}
body.marketing .topbar-dark .brand {
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-logo {
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
body.marketing .btn.small {
  margin-top: 0;
  padding: 0.35rem 0.75rem;
}

/* LINE 官方帳號：頂欄連結 + 右下角浮動 */
body.marketing .nav-line {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 1rem;
  color: #4ade80 !important;
  font-weight: 600;
}
body.marketing .nav-line img {
  display: block;
}
body.marketing .topbar:not(.topbar-dark) .nav-line {
  color: #16a34a !important;
}
body.marketing .btn-line {
  border: 1px solid #22c55e;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.12);
}
body.marketing .btn-line:hover {
  background: rgba(34, 197, 94, 0.22);
}
.line-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #06c755;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}
.line-float:hover {
  transform: scale(1.06);
}
.line-float img {
  filter: brightness(0) invert(1);
}

/* 封面區：Logo / MP4 置中，文案在下方 */
.hero-cover {
  background: radial-gradient(ellipse at 50% 0%, #1e3a5f 0%, #0b1220 55%, #050a12 100%);
  color: #f1f5f9;
  padding: 2rem 1rem 3rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}
.hero-cover-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.hero-visual {
  margin: 0 auto 1.75rem;
  max-width: 520px;
}
.hero-media {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(56, 189, 248, 0.2);
  display: block;
}
.hero-media-placeholder {
  padding: 3rem 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  background: #1e293b;
  color: #38bdf8;
}
.hero-copy h1 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.35;
  margin: 0 0 0.75rem;
  color: #fff;
}
.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #38bdf8;
  margin: 0 0 0.75rem;
}
.hero-copy .lead {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin: 0 0 0.5rem;
}
.hero-cover .muted,
.hero-sub {
  color: #94a3b8 !important;
  font-size: 0.95rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-cover .btn {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-cover .btn.primary {
  background: #2563eb;
  color: #fff;
  border: none;
}
.hero-cover .btn:hover {
  filter: brightness(1.08);
}

/* Hero 下方：橫向跑馬燈（無限向右滾動） */
.partner-marquee {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(56, 189, 248, 0.12);
  width: 100%;
  overflow: hidden;
}
.partner-marquee-label {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: #64748b;
  margin: 0 0 1.25rem;
  padding: 0 1rem;
}
.partner-marquee-viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 5%,
    #000 95%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 5%,
    #000 95%,
    transparent 100%
  );
}
.partner-marquee-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: partner-marquee-scroll 48s linear infinite;
}
.partner-marquee-track:hover {
  animation-play-state: paused;
}
/* 向右移動：從 -50% 回到 0，視覺上 Logo 往右流動 */
@keyframes partner-marquee-scroll {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}
.partner-marquee-group {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 3rem;
  flex-shrink: 0;
  padding-right: 3rem;
}
.partner-chip {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  flex-shrink: 0;
  opacity: 0.88;
  transition: opacity 0.2s ease;
}
.partner-chip:hover {
  opacity: 1;
}
.partner-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.partner-chip figcaption {
  font-size: 0.92rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  letter-spacing: 0.01em;
  line-height: 1;
}
@media (prefers-reduced-motion: reduce) {
  .partner-marquee-track {
    animation-duration: 80s;
  }
}

.price-lg {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
}
.price-lg .compare {
  font-size: 1rem;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 0.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem auto;
}

/* 競品比較表 */
.compare-section {
  margin: 2.5rem auto;
  max-width: 1100px;
}
.compare-section h2 {
  text-align: center;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.compare-intro {
  text-align: center;
  max-width: 52rem;
  margin: 0 auto 1.25rem;
  font-size: 0.85rem;
  line-height: 1.55;
}
.compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  background: #fff;
}
.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.compare-table th,
.compare-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}
.compare-table thead th {
  background: #f8fafc;
  font-weight: 700;
  color: #0f172a;
}
.compare-feature-col {
  width: 8.5rem;
  color: #475569;
}
.compare-table .compare-us {
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 600;
}
.compare-table tbody th[scope="row"] {
  font-weight: 600;
  color: #334155;
  background: #fafafa;
}
.compare-foot {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  text-align: center;
}
.compare-cta {
  margin-top: 1.25rem;
  text-align: center;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
body.marketing .compare-cta .btn {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  border: 1px solid #cbd5e1;
}
body.marketing .compare-cta .btn.primary {
  background: #2563eb;
  color: #fff;
  border: none;
}
.pricing-page .lead {
  font-size: 1.05rem;
  max-width: 42rem;
}
.pricing-page .overage-callout {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.pricing-page .value-highlight {
  color: #1d4ed8;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0.25rem 0;
}
.pricing-matrix-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}
.pricing-matrix {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.pricing-matrix th,
.pricing-matrix td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}
.pricing-matrix th {
  background: #f8fafc;
  font-weight: 600;
}
.pricing-matrix .nowrap {
  white-space: nowrap;
  font-weight: 600;
}
.pricing-matrix ul.compact {
  margin: 0;
  padding-left: 1.15rem;
}
.pricing-matrix ul.compact li {
  margin-bottom: 0.25rem;
}
.pricing-matrix .small {
  font-size: 0.85rem;
}
.includes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1rem 0 1.25rem;
}
@media (max-width: 640px) {
  .includes-grid {
    grid-template-columns: 1fr;
  }
}
.saas-core-card .badge {
  position: static;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.section-title {
  margin-top: 2rem;
  margin-bottom: 0.25rem;
}
.h-sm {
  font-size: 0.9rem;
  margin: 0.75rem 0 0.35rem;
  font-weight: 600;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.card.featured {
  border: 2px solid #2563eb;
  position: relative;
}
.badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: #2563eb;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.muted-card {
  opacity: 0.85;
}
.footer {
  padding: 2rem 1rem;
  text-align: center;
}
.site-footer .footer-legal {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
  font-size: 0.88rem;
}
.site-footer .footer-legal a {
  color: #64748b;
}
body.marketing .site-footer .footer-legal a {
  color: #94a3b8;
}
body.marketing .site-footer .footer-legal a:hover {
  color: #38bdf8;
}
.mt {
  margin-top: 2rem;
}
code {
  background: #f1f5f9;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85rem;
}
.pay-page .pay-plan-picks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.pay-method-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.pay-qr-img-inline {
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #dbeafe;
}
.pay-plan-pick {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.pay-plan-pick:hover {
  border-color: #2563eb;
}
.pay-plan-pick.active {
  border: 2px solid #2563eb;
  background: #eff6ff;
}
.pay-plan-pick small {
  color: #64748b;
  font-size: 0.8rem;
}
.pay-amount {
  font-size: 1.15rem;
  margin-top: 1rem;
}
.pay-qr-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}
/* 街口收款卡為豎圖（約 2:3），勿強制正方形以免 QR 變形 */
.pay-qr-frame {
  margin: 0;
  flex: 0 0 auto;
  max-width: min(300px, 42vw);
}
.pay-qr-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.pay-steps {
  margin: 0.5rem 0 0 1.25rem;
  line-height: 1.6;
}
.pricing-grid .card .btn + .btn {
  margin-top: 0.5rem;
}
.btn.muted-btn {
  background: transparent;
  color: #64748b;
  border: 1px solid #cbd5e1;
}
body.marketing .btn.muted-btn:hover {
  color: #334155;
  border-color: #94a3b8;
}

@media (min-width: 768px) {
  .hero-cover-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    text-align: left;
  }
  .hero-visual {
    margin: 0;
    max-width: none;
  }
  .hero-copy .hero-sub,
  .hero-eyebrow {
    margin-left: 0;
    margin-right: 0;
  }
  .hero-cta {
    justify-content: flex-start;
  }
}
