/* ==========================================================================
   NHE 首頁 body 區塊樣式（scope 在 .nhe-home）
   頁首 / 頁尾 / 基礎排版 / 按鈕色彩在 global.css；此檔只負責首頁特有區塊。
   ========================================================================== */

/* 首頁全寬：抵銷 Astra 內容容器的 flex / max-width / padding，讓區塊滿版 */
.nhe-home-page #content .ast-container{max-width:100%;padding-left:0;padding-right:0;display:block}
.nhe-home-page #content,.nhe-home-page .site-content,.nhe-home-page #primary{padding:0;margin:0}
.nhe-home-page #primary{max-width:100%}
.nhe-home{width:100%}

.nhe-home{
  --cream:#F4F1EA; --paper:#FCFBF7; --ink:#1C1B19; --ink-soft:#57534B;
  --maroon:#7A3B2E; --maroon-d:#5A2A20; --line:#E2DCCF; --night:#1A2730;
  --c1:#E4572E; --c2:#F2B01E; --c3:#3AA655; --c4:#2D6CDF;
  --serif:"Fraunces",serif; --serif-tc:"Noto Serif TC",serif; --sans:"Noto Sans TC",sans-serif;
  --shadow:0 18px 50px -28px rgba(28,27,25,.28);
  font-family:var(--sans);color:var(--ink);background:var(--cream);line-height:1.75;font-weight:300;
}
.nhe-home *{box-sizing:border-box;margin:0;padding:0}
.nhe-home a{color:inherit;text-decoration:none}
.nhe-home img{max-width:100%;display:block}
.nhe-home .wrap{max-width:1440px;margin:0 auto;padding:0 28px}
.nhe-home .eyebrow{font-family:var(--serif);font-size:.74rem;letter-spacing:.42em;text-transform:uppercase;color:var(--maroon);font-weight:500;display:inline-flex;align-items:center;gap:14px}
.nhe-home .eyebrow::before{content:"";width:34px;height:1px;background:var(--maroon);opacity:.6}
.nhe-home .rainbow{display:inline-flex;height:5px;border-radius:9px;overflow:hidden;width:90px}
.nhe-home .rainbow i{flex:1}
.nhe-home .rainbow i:nth-child(1){background:var(--c1)}.nhe-home .rainbow i:nth-child(2){background:var(--c2)}
.nhe-home .rainbow i:nth-child(3){background:var(--c3)}.nhe-home .rainbow i:nth-child(4){background:var(--c4)}
.nhe-home h1,.nhe-home h2,.nhe-home h3{font-family:var(--serif-tc);font-weight:700;line-height:1.28;letter-spacing:.01em;color:var(--ink)}
.nhe-home .display{font-family:var(--serif)}
.nhe-home .btn{display:inline-flex;align-items:center;gap:11px;padding:15px 30px;border-radius:999px;font-family:var(--sans);font-weight:500;font-size:.96rem;transition:.32s cubic-bezier(.2,.7,.3,1);cursor:pointer;border:1px solid transparent}
.nhe-home .btn .ar{transition:transform .32s}
.nhe-home .btn:hover .ar{transform:translateX(5px)}
.nhe-home .btn-primary{background:var(--maroon);color:#fff}
.nhe-home .btn-primary:hover{background:var(--maroon-d)}
.nhe-home .btn-ghost{border-color:var(--ink);color:var(--ink)}
.nhe-home .btn-ghost:hover{background:var(--ink);color:#fff}
.nhe-home .btn-light{background:#fff;color:var(--ink)}
.nhe-home .btn-line{background:var(--c3);color:#fff;border-color:var(--c3)}

/* ════ Hero ════ */
.nhe-home .hero{position:relative;padding:78px 0 90px}
.nhe-home .hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:54px;align-items:center}
.nhe-home .hero h1{font-size:clamp(2.5rem,5vw,4rem);line-height:1.18}
.nhe-home .hero h1 em{font-style:normal;color:var(--maroon);position:relative;white-space:nowrap}
.nhe-home .hero h1 em::after{content:"";position:absolute;left:-2%;right:-2%;bottom:.08em;height:.34em;background:rgba(242,176,30,.34);z-index:-1;border-radius:3px}
.nhe-home .hero .lead{font-size:1.1rem;color:var(--ink-soft);max-width:30em;margin:26px 0 34px;font-weight:300}
.nhe-home .hero-cta{display:flex;gap:14px;flex-wrap:wrap}
.nhe-home .hero-meta{display:flex;gap:30px;margin-top:42px;padding-top:30px;border-top:1px solid var(--line)}
.nhe-home .hero-meta .m b{font-family:var(--serif);font-size:1.8rem;color:var(--ink);font-weight:600;display:block;line-height:1}
.nhe-home .hero-meta .m span{font-size:.8rem;color:var(--ink-soft);letter-spacing:.04em}
.nhe-home .hero-vis{position:relative;aspect-ratio:4/4.4;border-radius:22px;overflow:hidden;box-shadow:var(--shadow);background:radial-gradient(120% 90% at 70% 10%,#46322b 0%,#2a1f1b 55%,#181210 100%)}
.nhe-home .hero-vis>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.nhe-home .hero-vis::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,15,13,.18) 0%,rgba(20,15,13,0) 32%,rgba(20,15,13,.2) 62%,rgba(20,15,13,.62) 100%);z-index:1}
.nhe-home .hero-vis .vis-cap{position:absolute;left:30px;right:30px;bottom:28px;z-index:2;color:#f3ece0}
.nhe-home .hero-vis .vis-cap .rainbow{width:120px;height:6px;margin-bottom:14px}
.nhe-home .hero-vis .vis-cap .display{font-size:1.5rem;letter-spacing:.02em;line-height:1.1;text-shadow:0 2px 20px rgba(0,0,0,.4)}
.nhe-home .hero-vis .vis-cap small{display:block;font-family:var(--sans);font-size:.72rem;letter-spacing:.18em;color:#e6dccd;opacity:.85;margin-top:6px}
.nhe-home .hero-vis .tag{position:absolute;top:24px;right:24px;z-index:2;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.28);color:#fff;backdrop-filter:blur(4px);font-size:.78rem;padding:8px 15px;border-radius:999px;letter-spacing:.05em}
.nhe-home .float{position:absolute;z-index:4;background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:14px 18px;box-shadow:var(--shadow);display:flex;align-items:center;gap:12px}
.nhe-home .float.b{bottom:104px;right:-20px}
.nhe-home .float .ico{width:38px;height:38px;border-radius:10px;background:rgba(122,59,46,.1);display:grid;place-items:center;color:var(--maroon);font-size:1.1rem}
.nhe-home .float b{font-family:var(--serif-tc);font-size:.95rem}
.nhe-home .float span{font-size:.74rem;color:var(--ink-soft);display:block}

.nhe-home section.blk{padding:96px 0}
.nhe-home .sec-head{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;margin-bottom:54px;flex-wrap:wrap}
.nhe-home .sec-head h2{font-size:clamp(1.9rem,3.6vw,2.7rem)}
.nhe-home .sec-head .display-i{font-family:var(--serif);font-style:italic;color:var(--maroon);font-weight:400}
.nhe-home .sec-head p{color:var(--ink-soft);max-width:32em;font-weight:300}

/* ════ 理念 ════ */
.nhe-home .philo{background:var(--paper);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.nhe-home .philo-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:start}
.nhe-home .quote{font-family:var(--serif-tc);font-weight:600;font-size:1.7rem;line-height:1.7;border-left:3px solid var(--maroon);padding-left:26px}
.nhe-home .quote .hl{background:linear-gradient(transparent 62%,rgba(242,176,30,.32) 62%)}
.nhe-home .points{margin-top:14px}
.nhe-home .pt{display:grid;grid-template-columns:auto 1fr;gap:22px;padding:22px 0;border-bottom:1px solid var(--line)}
.nhe-home .pt .n{font-family:var(--serif);font-size:1rem;color:var(--maroon);font-weight:600;padding-top:4px}
.nhe-home .pt h3{font-size:1.12rem;margin-bottom:3px}
.nhe-home .pt p{font-size:.9rem;color:var(--ink-soft)}
.nhe-home .founder{background:var(--cream);border:1px solid var(--line);border-radius:18px;padding:26px;display:flex;gap:20px;align-items:center;margin-top:34px}
.nhe-home .founder .ph{width:78px;height:78px;border-radius:50%;flex:none;background:radial-gradient(circle at 35% 30%,#6a4a40,#2c1f1b);display:grid;place-items:center;color:#e9d9c8;font-family:var(--serif);font-size:1.5rem;overflow:hidden}
.nhe-home .founder .ph img{width:100%;height:100%;object-fit:cover;object-position:38% 22%}
.nhe-home .founder .role{font-family:var(--serif);font-size:.66rem;letter-spacing:.3em;text-transform:uppercase;color:var(--ink-soft)}
.nhe-home .founder b{font-family:var(--serif-tc);font-size:1.3rem;display:block;margin:2px 0 1px}
.nhe-home .founder .en{font-family:var(--serif);font-style:italic;color:var(--maroon);font-size:.95rem}
.nhe-home .founder small{font-size:.8rem;color:var(--ink-soft)}

/* ════ 課程 ════ */
.nhe-home .courses-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.nhe-home .course{background:var(--paper);border:1px solid var(--line);border-radius:18px;overflow:hidden;transition:.35s;display:flex;flex-direction:column}
.nhe-home .course:hover{transform:translateY(-6px);box-shadow:var(--shadow);border-color:#d3cab8}
.nhe-home .cv{aspect-ratio:16/10;position:relative;display:grid;place-items:center;color:#fff;text-align:center;padding:20px}
.nhe-home .cv>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}
.nhe-home .cv .zh{font-family:var(--serif-tc);font-weight:700;font-size:1.25rem;z-index:2;text-shadow:0 2px 18px rgba(0,0,0,.35)}
.nhe-home .cv .en{font-family:var(--serif);font-size:.95rem;opacity:.72;z-index:2;margin-top:4px}
.nhe-home .cv::after{content:"";position:absolute;inset:0;background:linear-gradient(160deg,rgba(0,0,0,.05),rgba(0,0,0,.34));z-index:1}
.nhe-home .cv1{background:radial-gradient(130% 100% at 20% 0,#8a4031,#3c211b)}
.nhe-home .cv2{background:radial-gradient(130% 100% at 80% 0,#2f5d4a,#16302a)}
.nhe-home .cv3{background:radial-gradient(130% 100% at 30% 10%,#2c4a73,#16243a)}
.nhe-home .badge{position:absolute;top:14px;left:14px;z-index:3;background:var(--c2);color:#3a2a05;font-size:.72rem;font-weight:700;padding:5px 12px;border-radius:999px;letter-spacing:.04em}
.nhe-home .course .body{padding:20px 22px 24px;display:flex;flex-direction:column;flex:1}
.nhe-home .venues{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:13px}
.nhe-home .venues span{font-size:.74rem;color:var(--ink-soft);border:1px solid var(--line);border-radius:999px;padding:3px 11px;display:inline-flex;align-items:center;gap:4px}
.nhe-home .venues span svg{width:11px;height:11px;stroke:var(--maroon);fill:none;stroke-width:1.6}
.nhe-home .course h3{font-size:1.12rem;line-height:1.4;margin-bottom:9px}
.nhe-home .course .desc{font-size:.86rem;color:var(--ink-soft);margin-bottom:auto;line-height:1.7}
.nhe-home .course .foot{border-top:1px solid var(--line);margin-top:18px;padding-top:16px;display:flex;align-items:flex-end;justify-content:space-between}
.nhe-home .price .from{font-size:.74rem;color:var(--ink-soft);display:block;margin-bottom:2px}
.nhe-home .price b{font-family:var(--serif);font-size:1.45rem;color:var(--maroon);font-weight:600}
.nhe-home .price b small{font-family:var(--sans);font-size:.78rem;font-weight:400}
.nhe-home .btn-sm{background:var(--maroon);color:#fff;font-size:.84rem;padding:9px 18px;border-radius:999px;font-weight:500;transition:.25s;white-space:nowrap}
.nhe-home .btn-sm:hover{background:var(--maroon-d)}
.nhe-home .all-courses{text-align:center;margin-top:46px}

/* ════ Why NHE ════ */
.nhe-home .why{background:var(--night);color:#e8e2d6;text-align:center}
.nhe-home .why .eyebrow{color:#f0c46a;justify-content:center}
.nhe-home .why .eyebrow::before{background:#f0c46a}
.nhe-home .why h2{color:#fff;font-size:clamp(1.9rem,3.6vw,2.7rem);margin:18px 0 14px}
.nhe-home .why .sub{color:#a9b3b8;margin-bottom:54px}
.nhe-home .why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;text-align:left}
.nhe-home .wcell{background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));border:1px solid rgba(255,255,255,.09);border-radius:16px;padding:30px 26px;transition:.3s}
.nhe-home .wcell:hover{border-color:rgba(240,196,106,.4);transform:translateY(-4px)}
.nhe-home .wi{width:48px;height:48px;border-radius:12px;background:rgba(240,196,106,.12);display:grid;place-items:center;margin-bottom:20px}
.nhe-home .wi svg{width:23px;height:23px;stroke:#f0c46a;fill:none;stroke-width:1.6}
.nhe-home .wcell h3{color:#fff;font-size:1.16rem;margin-bottom:9px}
.nhe-home .wcell p{font-size:.86rem;color:#a9b3b8;font-weight:300;line-height:1.75}

/* ════ 見證 ════ */
.nhe-home .tst-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.nhe-home .tst{background:var(--paper);border:1px solid var(--line);border-radius:18px;overflow:hidden;display:flex;flex-direction:column}
.nhe-home .tst .photo{aspect-ratio:4/3;position:relative;display:grid;place-items:center;background:repeating-linear-gradient(135deg,#efe9dc,#efe9dc 14px,#f4efe4 14px,#f4efe4 28px);color:#b6ab97;font-size:.8rem;letter-spacing:.04em;overflow:hidden}
.nhe-home .tst .photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.nhe-home .tst .body{padding:24px 24px 26px}
.nhe-home .stars{color:var(--c2);letter-spacing:3px;font-size:.95rem;margin-bottom:12px}
.nhe-home .tst .qt{font-family:var(--serif-tc);font-size:1.02rem;line-height:1.8;color:var(--ink)}
.nhe-home .tst .who{display:flex;align-items:center;gap:12px;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.nhe-home .tst .av{width:42px;height:42px;border-radius:50%;background:#cdbfae;display:grid;place-items:center;font-family:var(--serif-tc);color:#5a2a20;font-weight:700}
.nhe-home .tst .who b{font-family:var(--serif-tc);font-size:.95rem;display:block}
.nhe-home .tst .who span{font-size:.78rem;color:var(--ink-soft)}

/* ════ CTA ════ */
.nhe-home .cta{position:relative;background:radial-gradient(120% 160% at 80% 0,#7a3b2e,#3a1d16);color:#f5e9da;text-align:center;overflow:hidden}
.nhe-home .cta .wrap{padding:96px 28px;position:relative;z-index:2}
.nhe-home .cta .rainbow{margin:0 auto 26px;width:120px;height:6px}
.nhe-home .cta h2{font-size:clamp(2rem,4.4vw,3.2rem);color:#fff;line-height:1.25}
.nhe-home .cta p{color:#e7cfbe;margin:18px auto 36px;max-width:30em}
.nhe-home .cta-btns{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.nhe-home .cta::before{content:"";position:absolute;inset:0;background:radial-gradient(40% 50% at 15% 90%,rgba(242,176,30,.18),transparent),radial-gradient(36% 44% at 90% 100%,rgba(45,108,223,.16),transparent)}

/* ════ 進場動畫 ════ */
.nhe-home .rv{opacity:0;transform:translateY(24px);transition:opacity .8s ease,transform .8s cubic-bezier(.2,.7,.3,1)}
.nhe-home .rv.in{opacity:1;transform:none}
.nhe-home .rv.d1{transition-delay:.08s}.nhe-home .rv.d2{transition-delay:.16s}.nhe-home .rv.d3{transition-delay:.24s}.nhe-home .rv.d4{transition-delay:.32s}

@media(max-width:980px){
  .nhe-home .hero-grid,.nhe-home .philo-grid{grid-template-columns:1fr;gap:40px}
  .nhe-home .courses-grid,.nhe-home .tst-grid{grid-template-columns:1fr 1fr}
  .nhe-home .why-grid{grid-template-columns:1fr 1fr}
  .nhe-home .float.b{right:14px}
}
@media(max-width:560px){
  .nhe-home .courses-grid,.nhe-home .tst-grid,.nhe-home .why-grid{grid-template-columns:1fr}
  .nhe-home .hero-meta{flex-wrap:wrap;gap:20px}
  .nhe-home section.blk{padding:64px 0}
}
@media(prefers-reduced-motion:reduce){
  .nhe-home .rv{opacity:1;transform:none;transition:none}
}
