/* BB雲端服務 — 深色介面、毛玻璃、商務藍點綴 */
:root {
  --royal-blue: #3b82f6;
  --royal-blue-dark: #2563eb;
  --royal-blue-light: #60a5fa;
  --royal-glow: rgba(59, 130, 246, 0.25);
  --bg-deep: #121212;
  --bg-raised: #1a1a1a;
  --surface-glass: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.1);
  --text: #e0e0e0;
  --text-muted: #a3a3a3;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.45);
  --radius: 12px;
  --font: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", "Segoe UI", sans-serif;
  --header-h: 64px;
  --glass-blur: blur(10px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--royal-blue-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--royal-blue);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: var(--royal-blue-dark);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* 毛玻璃卡片基底 */
.card,
.product-card,
.pricing-card,
.floating-card,
.faq-item,
.modal-panel,
.payment-option,
.support-link {
  background: var(--surface-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 18, 18, 0.72);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-glass);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--royal-blue-light);
}

/* 讓最上方 Logo 呈現藍色漸層（只套用在頁首） */
.site-header .logo {
  background: linear-gradient(120deg, var(--royal-blue-light), #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-header .logo:hover {
  text-decoration: none;
  color: transparent;
  background: linear-gradient(120deg, var(--royal-blue), #93c5fd);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.35rem 0;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--royal-blue-light);
}

.nav-cta {
  background: var(--royal-blue-dark);
  color: #fff !important;
  padding: 0.5rem 1rem !important;
  border-radius: 999px;
  margin-left: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-cta:hover {
  background: var(--royal-blue);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text);
  border-radius: 1px;
}

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

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: rgba(26, 26, 26, 0.92);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-glass);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0;
    display: none;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-glass);
  }

  .site-nav a:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  background: linear-gradient(180deg, #1a1f2e 0%, var(--bg-deep) 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--royal-blue-light);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.gradient-text {
  background: linear-gradient(120deg, var(--royal-blue-light), #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 36ch;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--royal-blue-dark);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: var(--royal-blue);
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--royal-blue-light);
  border-color: var(--border-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.btn-ghost:hover {
  border-color: var(--royal-blue);
  background: rgba(59, 130, 246, 0.12);
  text-decoration: none;
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-stats strong {
  display: block;
  color: var(--royal-blue-light);
  font-size: 1rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  border: 1px solid var(--border-glass);
}

.floating-card {
  position: absolute;
  bottom: -0.5rem;
  left: 1rem;
  right: 1rem;
  max-width: 280px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .floating-card {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: -2rem;
  }
}

.floating-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--royal-blue-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.floating-card p {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: var(--text);
}

.section-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.product-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(59, 130, 246, 0.35);
}

.product-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  opacity: 0.95;
}

.product-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--royal-blue-light);
  margin-bottom: 0.35rem;
}

.product-card h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
  line-height: 1.35;
  color: var(--text);
}

.product-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  flex: 1;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--royal-blue-light);
}

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

.error-msg {
  color: #f87171;
  text-align: center;
  margin-top: 1rem;
}

.hidden {
  display: none !important;
}

/* Pricing */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.card {
  border-radius: var(--radius);
  padding: 1.5rem;
}

.pricing-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: var(--text);
}

.pricing-card.featured {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 1px var(--royal-glow), var(--shadow);
  position: relative;
}

.badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(59, 130, 246, 0.2);
  color: var(--royal-blue-light);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.price-tag {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--royal-blue-light);
  margin: 0 0 1rem;
}

.price-tag span {
  font-size: 1.75rem;
}

.pricing-card ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

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

.check-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.about-panel blockquote {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
}

.about-panel cite {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: normal;
}

/* Support */
.support-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .support-links {
    grid-template-columns: 1fr;
  }
}

.support-link {
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.support-link:hover {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.support-link strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--royal-blue-light);
}

.support-link span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.support-links-triple {
  grid-template-columns: repeat(3, 1fr);
  max-width: 960px;
}

@media (max-width: 900px) {
  .support-links-triple {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  position: relative;
  padding-right: 2.5rem;
  color: var(--text);
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--royal-blue-light);
}

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

.faq-body {
  padding: 0 1.25rem 1.15rem;
  border-top: 1px solid var(--border-glass);
}

.faq-body p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* 客戶評價 */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .review-grid {
    grid-template-columns: 1fr;
  }
}

.review-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.review-card blockquote {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
  flex: 1;
}

.review-name {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
}

.review-role {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-glass);
  padding: 2.5rem 0 1.5rem;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-grid-wide {
  grid-template-columns: minmax(220px, 2fr) 1fr 1fr;
  align-items: start;
}

.footer-brand-block {
  min-width: 0;
}

.footer-address-block {
  line-height: 1.55;
  margin: 0;
}

.footer-address-label {
  color: var(--text);
  font-weight: 600;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--royal-blue-light);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 999px;
  border: 1px solid var(--border-glass);
  text-decoration: none;
}

.social-pill:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.35);
  text-decoration: none;
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-logo {
  margin-bottom: 0.5rem;
}

.footer-heading {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: var(--royal-blue-light);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
  text-align: center;
}

.small {
  font-size: 0.8125rem;
}

.muted {
  color: var(--text-muted);
}

/* Modal */
.modal[hidden] {
  display: none;
}

.modal:not([hidden]) {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 200;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  max-width: 440px;
  margin: 10vh auto 2rem;
  padding: 2rem;
  z-index: 1;
  animation: modalIn 0.25s ease;
  border-radius: var(--radius);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: var(--glass-blur);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(59, 130, 246, 0.2);
  color: var(--royal-blue-light);
}

.modal-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  padding-right: 2rem;
  color: var(--text);
}

.checkout-product {
  margin: 0 0 0.25rem;
}

.checkout-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--royal-blue-light);
  margin: 0 0 1.25rem;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.payment-option {
  border-radius: var(--radius);
}

.payment-option:hover {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.1);
  text-decoration: none;
}

.payment-option strong {
  display: block;
  color: var(--text);
}

.payment-option small {
  display: block;
  margin-top: 0.2rem;
}

.payment-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.legal-hint {
  margin: 1.25rem 0 0;
}

.legal-hint a {
  font-weight: 500;
}

/* Legal pages */
.legal-page {
  padding: 2rem 0 4rem;
  max-width: 720px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.125rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--royal-blue-light);
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-highlight {
  background: rgba(59, 130, 246, 0.12);
  border-left: 4px solid var(--royal-blue);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  border: 1px solid var(--border-glass);
  border-left-width: 4px;
}

.legal-highlight p {
  margin: 0;
  color: var(--text);
  font-weight: 500;
}

/* 付款流程等內頁版面 */
.page-center-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.pay-flow-card {
  max-width: 420px;
  text-align: center;
}

.stub-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.stub-card {
  max-width: 480px;
  text-align: center;
}
