/* 首頁 */
.home-page {
  margin: 0;
  font-family: "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: #f4f0e6;
  background: #0b0d12;
  min-height: 100vh;
}
.home-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(11,13,18,.75);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.home-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.home-brand {
  color: #f5d76e;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
}
.home-nav nav a {
  color: rgba(244,240,230,.85);
  text-decoration: none;
  margin-left: 18px;
  font-size: 0.95rem;
}
.home-nav .nav-login {
  padding: 6px 14px;
  border: 1px solid rgba(245,215,110,.5);
  border-radius: 999px;
  color: #f5d76e;
}

.home-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px 64px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,162,39,.28), transparent 55%),
    linear-gradient(165deg, #141821 0%, #0b0d12 50%, #08090c 100%);
}
.hero-glow {
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,215,110,.2), transparent 70%);
  filter: blur(20px);
  animation: floatGlow 8s ease-in-out infinite;
}
@keyframes floatGlow {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-eyebrow {
  letter-spacing: 0.35em;
  color: #f5d76e;
  font-size: 0.8rem;
  margin: 0 0 12px;
}
.hero-title {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  margin: 0 0 16px;
  font-weight: 800;
  line-height: 1.1;
}
.hero-sub {
  opacity: 0.8;
  font-size: 1.05rem;
  margin: 0 0 28px;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary, .btn-ghost {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .15s ease;
}
.btn-primary {
  background: linear-gradient(180deg, #ffe566, #d4a017);
  color: #1a1408;
}
.btn-ghost {
  border: 1px solid rgba(255,255,255,.35);
  color: #f4f0e6;
}
.btn-primary:hover, .btn-ghost:hover { transform: translateY(-2px); }

.home-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 20px;
}
.home-section h2 {
  text-align: center;
  font-size: 1.8rem;
  margin: 0 0 10px;
}
.section-lead {
  text-align: center;
  opacity: 0.75;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-grid article {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 22px;
}
.feature-grid h3 { margin: 0 0 8px; color: #f5d76e; }
.feature-grid p { margin: 0; opacity: 0.8; line-height: 1.55; font-size: 0.95rem; }

.template-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.tpl-card {
  border-radius: 16px;
  min-height: 140px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255,255,255,.1);
  position: relative;
  overflow: hidden;
  transition: transform .2s ease;
}
.tpl-card:hover { transform: translateY(-4px); }
.tpl-card span { font-size: 0.75rem; opacity: 0.7; }
.tpl-card strong { font-size: 1.05rem; margin-top: 4px; }
.tpl-card.t1 { background: linear-gradient(160deg, #1b3a4b, #0d1b2a); }
.tpl-card.t2 { background: linear-gradient(160deg, #5b126b, #12001f); }
.tpl-card.t3 { background: linear-gradient(160deg, #c4a574, #3d3429); color: #1a1408; }
.tpl-card.t4 { background: linear-gradient(160deg, #3d2b0f, #0a0a0a); }
.tpl-card.t5 { background: linear-gradient(160deg, #3a0ca3, #050010); }
.tpl-card.t6 { background: linear-gradient(160deg, #5c3a00, #1a0000); }
.tpl-card.t7 { background: linear-gradient(160deg, #102a43, #0b1320); }
.tpl-card.t8 { background: linear-gradient(160deg, #5c4310, #1a1208); }
.tpl-card.t9 { background: linear-gradient(160deg, #2a1a4a, #050810); border: 1px solid rgba(212,175,55,.35); }

.home-footer {
  text-align: center;
  padding: 32px 16px 48px;
  opacity: 0.55;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.home-footer a { color: inherit; }

@media (max-width: 900px) {
  .feature-grid, .template-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .feature-grid, .template-grid { grid-template-columns: 1fr; }
  .home-nav nav a:not(.nav-login) { display: none; }
}
