/* ===== Setapp 繁體中文官網 公共樣式 common.css ===== */
:root {
  --brand: #FD36CC;
  --brand-2: #F53EDF;
  --brand-grad: linear-gradient(135deg, #FD36CC 0%, #F53EDF 100%);
  --text: #0E1116;
  --text-2: #4A5060;
  --text-3: #8A8F9C;
  --bg: #ffffff;
  --bg-soft: #F7F7FB;
  --bg-card: #ffffff;
  --border: #ECECF2;
  --shadow-sm: 0 2px 10px rgba(20, 20, 40, 0.05);
  --shadow-md: 0 8px 30px rgba(20, 20, 40, 0.08);
  --shadow-lg: 0 20px 60px rgba(253, 54, 204, 0.18);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
}

* { box-sizing: border-box; }
#site-header, #site-footer { display: contents; }
html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-ghost {
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: #d8d8e0; }
.btn-primary {
  color: #fff;
  background: var(--brand-grad);
  box-shadow: 0 8px 22px rgba(253, 54, 204, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(253, 54, 204, 0.45); }

.section { padding: 96px 0; }
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.2;
}
.section-sub {
  font-size: 17px;
  color: var(--text-2);
  max-width: 720px;
  margin: 0 auto;
}
.center { text-align: center; }

/* ===== 通用動畫 ===== */
@keyframes float-blob {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-30px) scale(1.08); }
}

/* ===== 子頁面通用 Hero（頁面頂部） ===== */
.page-hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(900px 400px at 80% -20%, rgba(253,54,204,0.10), transparent 60%),
    radial-gradient(700px 400px at 0% 10%, rgba(245,62,223,0.10), transparent 60%),
    #fff;
}
.page-hero .crumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-3); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(253,54,204,0.08), rgba(245,62,223,0.08));
  color: var(--brand);
  margin-bottom: 22px;
}
.page-hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.1;
  margin: 0 0 18px;
  background: linear-gradient(135deg, #0E1116 0%, #FD36CC 70%, #F53EDF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero p.subtitle {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-2);
  max-width: 720px; margin: 0 auto;
}

/* CTA 通用大按鈕（用於子頁 hero 區） */
.cta-row { margin-top: 32px; display: inline-flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* 通用圖片卡 */
.media-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #FFF0FA, #FFE3F7);
  box-shadow: var(--shadow-md);
  padding: 14px;
  display: flex; align-items: center; justify-content: center;
}
.media-card img { max-width: 100%; height: auto; border-radius: var(--radius); }
