/* coin 站首頁 / 聯絡我們 — index.html、contact.html 共用 */
:root {
  --coral-1: #ff8a5c;
  --coral-2: #ff6b4a;
  --coral-3: #ff5e62;
  --accent: #e53935;
  --bg-page: #f4f5f7;
  --text: #1a1a1a;
  --text-body: #4a4a4a;
  --muted: #8a8f9a;
  --line: #eceef2;
  --card: #fff;
  --link: #6200ea;
  --footer-1: #7c4dff;
  --footer-2: #5e35b1;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "PingFang TC", "Noto Sans TC", system-ui, -apple-system, sans-serif;
  background: var(--bg-page);
  color: var(--text);
}

.coin-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.coin-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--coral-1), var(--coral-3));
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.coin-header-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.home-lang {
  display: inline-flex;
  gap: 4px;
}

.home-lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.home-lang-btn[aria-pressed="true"] {
  background: #fff;
  color: #e85a3a;
  border-color: #fff;
}

.home-scan-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
}

.home-scan-btn svg {
  width: 20px;
  height: 20px;
}

.coin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.coin-brand img {
  height: 36px;
  width: auto;
  display: block;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
}

.coin-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.coin-brand-text strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.coin-brand-text span {
  font-size: 0.68rem;
  opacity: 0.92;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coin-header-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.coin-header-nav a {
  color: #fff;
  text-decoration: none;
  opacity: 0.95;
}

.coin-header-nav a:hover {
  text-decoration: underline;
}

.coin-main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 32px;
}

.coin-hero {
  background: var(--card);
  border-radius: 16px;
  padding: 28px 22px 26px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--line);
}

.coin-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
}

.coin-hero .lead {
  margin: 0 auto 18px;
  max-width: 36em;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-body);
}

.coin-hero-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: #fff5f0;
  border: 1px solid #ffccbc;
}

.coin-pay-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 8px;
}

.coin-pay-icons span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
}

.coin-pay-icons img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.coin-scene-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.coin-scene-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.coin-scene-card h2 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 800;
}

.coin-scene-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-body);
}

.coin-scene-card .hint {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--muted);
}

.coin-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.coin-info-item {
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}

.coin-info-item strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.coin-info-item span {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
}

.coin-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 18px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.coin-card h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
}

.coin-card p,
.coin-card li {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-body);
}

.coin-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.coin-card li {
  margin-bottom: 0.5rem;
}

.coin-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.coin-contact-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.coin-contact-list li:last-child {
  border-bottom: none;
}

.coin-contact-list a {
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
  word-break: break-all;
}

.coin-footer {
  margin-top: auto;
  background: linear-gradient(135deg, var(--footer-1), var(--footer-2));
  color: #fff;
  text-align: center;
  padding: 22px 16px calc(22px + var(--safe-bottom));
  font-size: 0.8rem;
  line-height: 1.6;
}

.coin-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.coin-footer-links a {
  color: #fff;
  text-decoration: none;
}

.coin-footer-links a:hover {
  text-decoration: underline;
}

.coin-footer-powered {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 4px;
}

.coin-footer-powered a {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .coin-header-tools {
    gap: 6px;
  }

  .coin-brand img {
    height: 30px;
  }

  .coin-brand-text span {
    font-size: 0.62rem;
  }

  .coin-header-nav {
    font-size: 0.72rem;
    gap: 4px 8px;
  }

  .coin-header-nav {
    justify-content: center;
  }

  .coin-scene-grid,
  .coin-info-grid {
    grid-template-columns: 1fr;
  }

  .coin-hero {
    padding: 22px 16px 20px;
  }
}

@media (min-width: 900px) {
  .coin-main {
    padding: 32px 20px 40px;
  }
}
