﻿:root {
  --bg: #fbf7fd;
  --paper: #ffffff;
  --soft: #f7effa;
  --soft-2: #efe5f6;
  --purple: #5b3b91;
  --purple-2: #7c58ae;
  --deep: #352a58;
  --muted: #6f6382;
  --gold: #d8ad72;
  --line: #e7d8ee;
  --teal: #5d9b9b;
  --shadow: 0 18px 48px rgba(66, 36, 103, 0.1);
  --radius: 8px;
  --shell: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(216, 173, 114, 0.12), transparent 28%),
    linear-gradient(180deg, #fbf7fd 0%, #fff 46%, #faf6fd 100%);
  color: var(--deep);
  font-family: "Noto Serif TC", "Noto Serif CJK TC", "PingFang TC", "Microsoft JhengHei", serif;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  max-width: 100%;
}

.sans {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(91, 59, 145, 0.1);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: var(--shell);
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px rgba(216, 173, 114, 0.22);
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.12);
}

.brand-name {
  display: block;
  color: var(--purple);
  font-weight: 900;
  letter-spacing: 0.16em;
  font-size: 22px;
  line-height: 1.1;
}

.brand-sub {
  display: block;
  color: #8a74a2;
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-top: 5px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #312944;
  font-weight: 700;
  font-family: "Noto Sans TC", sans-serif;
}

.main-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a[aria-current="page"] {
  color: var(--purple);
  border-color: var(--purple);
}

.main-nav a.btn-primary,
.main-nav a.btn-primary[aria-current="page"] {
  color: #fff;
  border-color: transparent;
  min-width: 118px;
  min-height: 52px;
  padding: 14px 28px;
  margin-left: 2px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(247, 239, 250, 0.86);
  border: 1px solid var(--line);
  font-family: "Noto Sans TC", sans-serif;
}

.lang-switch a {
  min-width: 42px;
  padding: 7px 11px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.lang-switch a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(180deg, #7d55b2, #563487);
}

.btn,
.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.store-btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #7d55b2, #563487);
  box-shadow: 0 10px 22px rgba(89, 50, 132, 0.25);
}

.btn-secondary {
  color: var(--purple);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(91, 59, 145, 0.26);
}

.btn-ghost {
  color: var(--purple);
  background: transparent;
  border: 1px solid var(--line);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--purple);
  font-size: 22px;
}

.mobile-menu {
  display: none;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.hero {
  padding: 22px 0 28px;
}

.hero-visual {
  width: min(1000px, calc(100vw - 48px));
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background: #f4eaf9;
  box-shadow: 0 20px 60px rgba(66, 36, 103, 0.14);
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.section {
  padding: 74px 0;
  scroll-margin-top: 96px;
}

.section-tight {
  padding: 48px 0;
  scroll-margin-top: 96px;
}

.section-alt {
  background: rgba(255, 255, 255, 0.56);
  border-top: 1px solid rgba(231, 216, 238, 0.65);
  border-bottom: 1px solid rgba(231, 216, 238, 0.65);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--deep);
  letter-spacing: 0;
}

h1 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.16;
}

h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.2;
}

h3 {
  font-size: 22px;
  line-height: 1.35;
}

p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 16px;
}

.lead {
  max-width: 760px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 18px;
}

.center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.article-card,
.faq-item {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 28px;
}

.icon-badge {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--purple);
  background: linear-gradient(180deg, #fff, #f0e7f6);
  border: 1px solid rgba(216, 173, 114, 0.35);
  font-size: 26px;
  margin-bottom: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 100%;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--purple);
  background: #f2e8f8;
  border: 1px solid var(--line);
  font-family: "Noto Sans TC", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 46px;
  align-items: center;
}

.soft-panel {
  padding: 34px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.92), transparent 36%),
    linear-gradient(135deg, #f1e6f8, #ffffff 58%, #f7f0f9);
  border: 1px solid var(--line);
}

.download-brand-card {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.download-app-icon {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  overflow: hidden;
  background-color: #f7effa;
  background-image: url("/assets/logo.png");
  background-size: 108%;
  background-position: center top;
  background-repeat: no-repeat;
  border: 1px solid rgba(216, 173, 114, 0.35);
  box-shadow: 0 12px 28px rgba(66, 36, 103, 0.12);
}

.article-card {
  padding: 26px;
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: space-between;
}

.meta {
  color: #8a789e;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 14px;
}

.article-link {
  margin-top: 20px;
  color: var(--purple);
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  color: var(--deep);
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 800;
  cursor: pointer;
}

.faq-item summary::after {
  content: "+";
  color: var(--purple);
  font-size: 22px;
}

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

.faq-item p {
  margin: 0;
  padding: 0 22px 22px;
}

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 36px;
  background:
    radial-gradient(circle at 16% 35%, rgba(255, 255, 255, 0.82), transparent 25%),
    linear-gradient(90deg, #b896e4, #eadbf7 45%, #f7f1fb);
  border: 1px solid rgba(216, 173, 114, 0.32);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.75) 0 1.5px, transparent 2px);
  background-size: 62px 62px;
  opacity: 0.68;
}

.cta-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-btn {
  min-width: 204px;
  min-height: 62px;
  color: #fff;
  background: linear-gradient(180deg, #17141f 0%, #050506 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 9px 15px;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  line-height: 1.15;
  box-shadow: 0 12px 24px rgba(24, 18, 31, 0.16);
  text-align: left;
}

.store-btn small {
  display: block;
  font-size: 10px;
  letter-spacing: 0;
  opacity: 0.8;
}

.store-btn strong {
  display: block;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0;
}

.store-btn em {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
}

.store-icon {
  display: inline-flex;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
}

.store-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.store-copy {
  display: block;
  min-width: 0;
}

.store-btn.disabled,
.store-btn[aria-disabled="true"] {
  background: linear-gradient(180deg, #393341 0%, #1e1a24 100%);
  opacity: 0.86;
  cursor: default;
}

.store-btn.disabled:hover,
.store-btn[aria-disabled="true"]:hover {
  transform: none;
}

.page-hero {
  padding: 74px 0 48px;
  text-align: center;
}

.page-hero p {
  max-width: 780px;
  margin: 18px auto 0;
  font-size: 18px;
}

.content {
  max-width: 860px;
  margin: 0 auto;
}

.content h2 {
  margin-top: 42px;
  font-size: 30px;
}

.content h3 {
  margin-top: 26px;
}

.content p,
.content li {
  color: var(--muted);
  line-height: 1.95;
  font-size: 16px;
}

.content ul,
.content ol {
  padding-left: 24px;
}

.notice {
  padding: 22px;
  border-radius: var(--radius);
  background: #fff9ef;
  border: 1px solid rgba(216, 173, 114, 0.45);
  color: #735226;
  font-family: "Noto Sans TC", sans-serif;
  line-height: 1.8;
}

.answer-box {
  padding: 22px 24px;
  border: 1px solid rgba(216, 173, 114, 0.48);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fffaf2, #fff);
  color: var(--deep);
  font-family: "Noto Sans TC", sans-serif;
}

.answer-box strong {
  color: var(--purple);
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 26px;
}

.breadcrumb {
  margin-bottom: 18px;
  color: #8a789e;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 14px;
}

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  width: var(--shell);
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.footer-links {
  display: grid;
  gap: 10px;
  font-family: "Noto Sans TC", sans-serif;
  color: var(--muted);
}

.footer-title {
  margin-bottom: 12px;
  color: var(--deep);
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 900;
}

.copyright {
  width: var(--shell);
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #8a789e;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 13px;
}

.mobile-download {
  display: none;
}

@media (max-width: 980px) {
  :root {
    --shell: min(100vw - 32px, 720px);
  }

  body {
    background: linear-gradient(180deg, #fbf7fd 0%, #fff 42%, #faf6fd 100%);
  }

  .site-header {
    background: rgba(255, 255, 255, 0.94);
  }

  .header-inner {
    min-height: 74px;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    flex: 0 0 auto;
    z-index: 24;
    color: #fff;
    background: linear-gradient(180deg, #7d55b2, #563487);
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(89, 50, 132, 0.24);
  }

  .mobile-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: 74px;
    z-index: 21;
    display: none;
    padding: 14px 16px 22px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .mobile-menu.is-open {
    display: grid;
    gap: 12px;
  }

  .mobile-menu a {
    padding: 13px 12px;
    border-radius: 8px;
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 800;
    background: rgba(247, 239, 250, 0.62);
  }

  .mobile-menu .mobile-lang-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .mobile-menu .mobile-lang-row a {
    text-align: center;
  }

  .brand {
    padding-right: 56px;
    min-width: 0;
  }

  .brand-name {
    font-size: 19px;
  }

  .brand-sub {
    font-size: 11px;
  }

  .hero {
    padding: 14px 0 18px;
  }

  .hero-visual {
    width: var(--shell);
    box-shadow: 0 14px 34px rgba(66, 36, 103, 0.12);
  }

  .section {
    padding: 50px 0;
  }

  .section-tight {
    padding: 42px 0;
  }

  h2 {
    font-size: clamp(27px, 7vw, 36px);
  }

  h3 {
    font-size: 21px;
  }

  p,
  .content p,
  .content li {
    font-size: 15.5px;
    line-height: 1.82;
  }

  .lead,
  .page-hero p {
    font-size: 16px;
    line-height: 1.86;
  }

  .grid {
    gap: 16px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .split,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .split {
    gap: 20px;
  }

  .card,
  .article-card,
  .soft-panel {
    box-shadow: 0 12px 30px rgba(66, 36, 103, 0.08);
  }

  .cta-content {
    display: grid;
  }

  .mobile-download {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 18;
    display: flex;
  }

  .mobile-download .btn {
    width: 100%;
  }

  body {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100vw - 28px);
    --shadow: 0 10px 24px rgba(66, 36, 103, 0.08);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand {
    gap: 10px;
  }

  .brand-name {
    font-size: 18px;
    letter-spacing: 0.1em;
  }

  .brand-sub {
    display: none;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .mobile-menu {
    top: 68px;
  }

  .hero {
    padding: 12px 0 12px;
  }

  .hero-visual {
    width: calc(100vw - 18px);
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(66, 36, 103, 0.1);
  }

  .section {
    padding: 42px 0;
    scroll-margin-top: 82px;
  }

  .section-tight {
    padding: 36px 0;
    scroll-margin-top: 82px;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 13px;
    letter-spacing: 0.08em;
  }

  h2 {
    font-size: 29px;
    line-height: 1.22;
  }

  h3 {
    font-size: 20px;
  }

  .card h2,
  .article-card h2 {
    font-size: 24px !important;
  }

  p,
  .lead,
  .content p,
  .content li,
  .page-hero p {
    font-size: 15px;
    line-height: 1.78;
  }

  .lead {
    margin-top: 14px;
    text-align: left;
  }

  .center .lead {
    text-align: center;
  }

  .card,
  .article-card,
  .soft-panel,
  .cta-band {
    padding: 20px;
  }

  .download-app-icon {
    width: 72px;
    height: 72px;
  }

  .card {
    min-width: 0;
  }

  .icon-badge {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    font-size: 22px;
  }

  .article-card {
    min-height: auto;
  }

  .faq-item summary {
    align-items: flex-start;
    padding: 17px 18px;
    gap: 12px;
    font-size: 15px;
    line-height: 1.5;
  }

  .faq-item summary::after {
    flex: 0 0 auto;
    line-height: 1;
  }

  .faq-item p {
    padding: 0 18px 18px;
  }

  .cta-band {
    margin-left: -2px;
    margin-right: -2px;
  }

  .cta-content {
    gap: 18px;
  }

  .store-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .store-btn {
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    text-align: left;
  }

  .tag-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 18px;
  }

  .tag {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .footer-inner {
    padding: 28px 0 18px;
    gap: 18px;
  }

  .site-footer {
    margin-top: 30px;
  }

  .copyright {
    padding-bottom: 24px;
  }

  .mobile-download {
    left: 14px;
    right: 14px;
  }
}

@media (max-width: 420px) {
  h2 {
    font-size: 27px;
  }

  .hero-visual {
    width: calc(100vw - 14px);
  }

  .brand-name {
    font-size: 17px;
  }

  .card,
  .article-card,
  .soft-panel,
  .cta-band {
    padding: 18px;
  }
}
