:root {
  --navy-950: #060d18;
  --navy-900: #0a1929;
  --navy-800: #0f2337;
  --navy-700: #16324c;
  --gold-500: #d4af37;
  --gold-400: #e8c766;
  --text-primary: #eef2f6;
  --text-muted: #9fb1c2;
  --border-soft: rgba(212, 175, 55, 0.18);
  --font-display: 'Noto Sans TC', 'Manrope', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  background: var(--navy-950);
  color: var(--text-primary);
  line-height: 1.7;
}

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

a { color: inherit; text-decoration: none; }

.eyebrow {
  color: var(--gold-500);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 1.8rem;
  margin-bottom: 12px;
}

h1, h2, h3 {
  font-weight: 900;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.3; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 20px; }
h3 { font-size: 1.15rem; margin-bottom: 10px; }

.section-lead {
  color: var(--text-muted);
  max-width: 680px;
  font-size: 1.05rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 13, 24, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo {
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.logo span {
  color: var(--gold-500);
  font-weight: 500;
  font-size: 0.85rem;
  margin-left: 6px;
}

nav { display: flex; gap: 28px; }
nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.2s;
}
nav a:hover { color: var(--gold-400); }

/* Hero */
.hero {
  padding: 120px 0 100px;
  background:
    radial-gradient(circle at 80% -10%, rgba(212, 175, 55, 0.14), transparent 45%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  border-bottom: 1px solid var(--border-soft);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.35em;
  margin: 14px 0 6px;
  font-size: clamp(3.2rem, 6.4vw, 4.8rem);
}

.hero-logo {
  width: 1em;
  height: 1em;
  border-radius: 50%;
  background: #fff;
  padding: 0.1em;
}

.hero-brand-name {
  font-weight: 900;
  font-size: 1em;
  letter-spacing: 0.08em;
  color: var(--gold-500);
}

.hero-sub {
  margin-top: 22px;
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--gold-500);
  color: var(--navy-950);
}
.btn-primary:hover { background: var(--gold-400); }

.btn-outline {
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--gold-500); color: var(--gold-400); }

/* About */
.about, .services, .news, .payment, .contact {
  padding: 90px 0;
  border-bottom: 1px solid var(--border-soft);
}

.about-download-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
}

.download-col {
  border-left: 1px solid var(--border-soft);
  padding-left: 44px;
}

.download-col .section-lead {
  max-width: none;
}

/* News */
.news-updated {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.news-loading {
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.news-card {
  background: var(--navy-900);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
}

.news-date {
  color: var(--gold-500);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.news-title {
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.5;
}

.news-summary {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  flex: 1;
}

.news-source {
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-400);
}

.news-source:hover {
  color: var(--gold-500);
}

/* Payment */
.nav-active {
  color: var(--gold-400) !important;
}

.payment-page {
  padding-top: 140px;
  min-height: calc(100vh - 90px);
}

.payment-subtitle {
  margin-top: 56px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 36px;
  max-width: 900px;
}

.plan-card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--navy-900);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 28px 26px;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: all 0.2s;
}

.plan-card:hover {
  border-color: var(--gold-500);
}

.plan-card.selected {
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.14), var(--navy-900));
  border-color: var(--gold-500);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.15), 0 8px 24px rgba(212, 175, 55, 0.08);
}

.plan-card h3 {
  position: relative;
}

.plan-card.selected h3 {
  color: var(--gold-400);
}

.plan-card.selected h3::after {
  content: "✓ 已選擇";
  float: right;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-400);
}

.plan-price-row {
  margin-top: 10px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.plan-price-sale {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--gold-500);
  line-height: 1;
}

.plan-price-original {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  line-height: 1;
  margin-bottom: 2px;
}

.plan-desc {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Product */
.product-page {
  padding-top: 140px;
  padding-bottom: 90px;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  margin-top: 36px;
}

.product-media-col {
  border-left: 1px solid var(--border-soft);
  padding-left: 44px;
}

.product-media-placeholder {
  height: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--navy-900);
  border: 1px dashed var(--border-soft);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.product-media-placeholder span {
  font-size: 2.6rem;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.gallery-thumb {
  display: block;
  padding: 0;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--navy-900);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.gallery-thumb:hover {
  border-color: var(--gold-500);
  transform: translateY(-2px);
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
  object-position: top;
}

.gallery-caption {
  display: block;
  padding: 8px 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  border-top: 1px solid var(--border-soft);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 13, 24, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--navy-900);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
}

.lightbox-close:hover {
  border-color: var(--gold-500);
  color: var(--gold-400);
}

.product-subhead {
  margin-top: 44px;
  margin-bottom: 6px;
  color: var(--gold-400);
  font-size: 1.2rem;
}

.product-media-title {
  margin-top: 0;
  margin-bottom: 16px;
}

.feature-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  font-size: 1.6rem;
  line-height: 1.4;
}

.feature-item h4 {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.reason-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reason-item {
  background: var(--navy-900);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 20px 22px;
}

.reason-item h4 {
  font-size: 0.98rem;
  font-weight: 900;
  color: var(--gold-400);
  margin-bottom: 8px;
  line-height: 1.6;
}

.reason-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.product-closing {
  margin-top: 30px;
  padding: 22px 24px;
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.14), var(--navy-900));
  border: 1px solid var(--gold-500);
  border-radius: 8px;
  color: var(--gold-400);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.8;
}

/* Q&A */
.qa-page {
  padding-top: 140px;
  padding-bottom: 90px;
  min-height: calc(100vh - 90px);
}

.qa-list {
  margin-top: 40px;
  max-width: 780px;
  border-top: 1px solid var(--border-soft);
}

.qa-item {
  border-bottom: 1px solid var(--border-soft);
}

.qa-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  padding: 24px 4px;
  cursor: pointer;
}

.qa-question:hover {
  color: var(--gold-400);
}

.qa-toggle-icon {
  flex-shrink: 0;
  color: var(--gold-500);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s ease;
}

.qa-item.open .qa-toggle-icon {
  transform: rotate(45deg);
}

.qa-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.qa-answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  padding: 0 4px 24px;
}

.qa-item.open .qa-answer {
  max-height: 400px;
}

.usdt-badge {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 26px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-soft);
  color: var(--gold-400);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.payment-card {
  margin-top: 44px;
  max-width: 680px;
  background: var(--navy-900);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 44px 42px;
}

.payment-label {
  display: block;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.payment-select {
  width: 100%;
  padding: 18px 20px;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
  background: var(--navy-800);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}

.payment-token-row {
  margin-top: 28px;
}

.token-toggle-group {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.token-btn {
  flex: 1;
  padding: 14px 0;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
  background: var(--navy-800);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.token-btn:hover {
  border-color: var(--gold-500);
  color: var(--gold-400);
}

.token-btn.active {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-500);
  color: var(--gold-400);
}

.payment-address-row {
  margin-top: 36px;
}

.payment-address-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--navy-800);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 20px 22px;
}

.payment-address {
  flex: 1;
  font-family: 'Consolas', monospace;
  font-size: 1.1rem;
  color: var(--gold-400);
  word-break: break-all;
}

.btn-copy {
  flex-shrink: 0;
  padding: 14px 26px;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
  background: var(--navy-700);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy:hover {
  border-color: var(--gold-500);
  color: var(--gold-400);
}

.payment-copy-status {
  margin-top: 12px;
  min-height: 1.4em;
  color: var(--gold-400);
  font-size: 1rem;
}

.payment-warning {
  margin-top: 26px;
  color: #e0a05a;
  font-size: 1rem;
  line-height: 1.7;
}

.explorer-link {
  display: block;
  margin-top: 10px;
  color: var(--gold-400);
  font-weight: 700;
  font-size: 0.92rem;
}

.explorer-link:hover {
  color: var(--gold-500);
}

.payment-back {
  display: inline-block;
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.payment-back:hover {
  color: var(--gold-400);
}

.download-cta {
  margin-top: 32px;
}

.btn-disabled {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--navy-800);
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
  cursor: not-allowed;
}

.value-grid, .service-grid {
  display: grid;
  gap: 24px;
  margin-top: 44px;
}

.value-grid {
  grid-template-columns: repeat(3, 1fr);
}

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

.value-card, .service-card {
  background: var(--navy-900);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 28px 24px;
}

.value-card-highlight {
  grid-column: 1 / -1;
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.14), var(--navy-900));
  border: 1px solid var(--gold-500);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.15), 0 8px 24px rgba(212, 175, 55, 0.08);
  position: relative;
  padding: 44px 40px;
}

.value-card-highlight h3 {
  color: var(--gold-400);
  font-size: 1.7rem;
  margin-bottom: 14px;
}

.value-card-highlight h3::before {
  content: "🔒 ";
}

.value-card.value-card-highlight p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.value-card p, .service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact */
.contact { border-bottom: none; }

.contact-btn {
  margin-top: 28px;
}

/* Footer */
.site-footer {
  padding: 32px 0;
  background: var(--navy-900);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.disclaimer { color: rgba(159, 177, 194, 0.6); }

@media (max-width: 900px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  nav { gap: 16px; }
  .hero { padding: 90px 0 70px; }
  .about, .services, .contact { padding: 60px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .about-download-grid { grid-template-columns: 1fr; gap: 40px; }
  .download-col {
    border-left: none;
    border-top: 1px solid var(--border-soft);
    padding-left: 0;
    padding-top: 32px;
  }
  .product-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-media-col {
    border-left: none;
    border-top: 1px solid var(--border-soft);
    padding-left: 0;
    padding-top: 32px;
  }
}
