/* =========================
   Base
========================= */
*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: system-ui,-apple-system,"Segoe UI","Noto Sans TC","Microsoft JhengHei",sans-serif;
  background:#f6f8fb;
  color:#0f172a;
}

.container{
  max-width:1120px;
  margin:0 auto;
  padding:0 20px;
}

/* =========================
   Header
========================= */
.site-header{
  background:#fff;
  border-bottom:1px solid #e5e7eb;
}
.header-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 0;
}
.logo{
  font-weight:900;
}
.badge{
  margin-left:6px;
  padding:3px 10px;
  font-size:12px;
  border-radius:999px;
  background:#eaf2ff;
  color:#2563eb;
}

/* =========================
   Hero
========================= */
.hero{
  background:#fff;
  border-bottom:1px solid #e5e7eb;
}

/* ✅ 關鍵：hero-inner 本身就是一個「安全容器」 */
.hero-inner{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:24px;
  padding:56px 0 44px;
}

.kicker{
  font-size:12px;
  font-weight:900;
  color:#2563eb;
  letter-spacing:1px;
}

.hero h1{
  font-size:42px;
  line-height:1.2;
  margin:8px 0 16px;
}

.highlight{
  background:#ffe08a;
  padding:2px 10px;
  border-radius:12px;
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
}

.desc{
  color:#64748b;
  max-width:42ch;
}

.cta-group{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.btn{
  padding:12px 18px;
  border-radius:999px;
  font-weight:800;
  font-size:14px;
}
.btn-primary{
  background:#2563eb;
  color:#fff;
}
.btn-outline{
  border:1px solid #2563eb;
  color:#2563eb;
}

/* =========================
   Hero Note
========================= */
.hero-note{
  border:2px dashed #c7d2fe;
  border-radius:18px;
  padding:18px;
  background:#f8fbff;
}

/* =========================
   Latest
========================= */
.section{
  padding:32px 0 60px;
}
.section-title{
  font-size:22px;
  font-weight:900;
  display:flex;
  align-items:center;
  gap:8px;
}
.dot{
  width:8px;
  height:8px;
  background:#ef4444;
  border-radius:50%;
}

/* =========================
   Cards
========================= */
.card-list{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.card{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
}
.thumb{
  height:110px;
  background:#fbbf24;
}
.card-body{
  padding:16px;
}

/* =========================
   Footer
========================= */
.site-footer{
  background:#fff;
  border-top:1px solid #e5e7eb;
}
.site-footer p{
  font-size:13px;
  color:#94a3b8;
}

/* =========================
   📱 Mobile（重點在這）
========================= */
@media (max-width:640px){

  /* 🔥 關鍵修正 1：整個 hero 內容「再內縮一次」 */
  .hero-inner{
    padding:28px 16px 24px;
    grid-template-columns:1fr;
  }

  /* 🔥 關鍵修正 2：h1 不再直接貼邊 */
  .hero h1{
    font-size:30px;
    margin-left:2px;
    margin-right:2px;
  }

  /* 🔥 關鍵修正 3：highlight 不會視覺撞邊 */
  .highlight{
    padding-left:12px;
    padding-right:12px;
  }

  .btn{
    width:100%;
  }

  .card-list{
    grid-template-columns:1fr;
  }
}
/* =========================
   Hero Title Fix
========================= */

.kicker{
  margin-left:2px;
}

.hero-title{
  margin:8px 0 6px;
}

.hero-title-main{
  display:inline-block;
  background:#ffe08a;
  padding:6px 14px;
  border-radius:14px;
  font-size:42px;
  font-weight:900;
  line-height:1.2;
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
}

.hero-subtitle{
  margin:10px 0 16px;
  font-size:28px;
  font-weight:800;
  color:#0f172a;
  letter-spacing:.3px;
}

