/* ============================================================
   花蓮縣美業暨頭皮發展協會 — 全站樣式
   設計系統依版面設計稿萃取
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500&family=Noto+Sans+TC:wght@400;500;700;900&family=Noto+Serif+TC:wght@500;700&display=swap');

/* ---------- Tokens ---------- */
:root{
  --ink:#333;
  --ink-2:#555;
  --ink-soft:#777;
  --muted:#9a9a9a;
  --line-grey:#e3e3e1;
  --hero-bg:#efefef;
  --about-bg:#ddded8;
  --band-bg:#ededeb;
  --soft-bg:#f5f5f4;
  --footer:#454545;
  --footer-2:#3d3d3d;
  --line-green:#06c755;
  --line-green-d:#05b34c;
  --pill:#4a4a4a;
  --pill-d:#333;
  --maxw:1650px;
  --gap:30px;
  --serif:"Noto Serif TC",serif;
  --tc:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;
  --en:"Jost",sans-serif;
}

/* ---------- Reset ---------- */
*{margin:0;padding:0;box-sizing:border-box}
/* overflow-x:clip 阻止離屏抽屜選單(.drawer translateX)撐出橫向捲動，
   進而修正手機版整頁右側被裁切／Hero 文字溢出。clip 不建立捲動容器，
   不會破壞 sticky header。 */
html{scroll-behavior:smooth;overflow-x:clip}
body{overflow-x:clip}
body{
  font-family:var(--tc);
  color:var(--ink);
  background:#fff;
  line-height:1.9;
  font-size:15px;
  -webkit-font-smoothing:antialiased;
  letter-spacing:.02em;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul{list-style:none}
.container{max-width:var(--maxw);margin:0 auto;padding:0 24px}

/* ============================================================
   SCROLL REVEAL（滾動進場：淡入 + 上浮 + 子項錯落 stagger）
   仿 teng-fu.com.tw 往下滑資訊漸次彈出。以 html.js 為前提，
   JS 失效時內容照常顯示；並尊重 prefers-reduced-motion。
   ============================================================ */
@media (prefers-reduced-motion: no-preference){
  html.js [data-reveal]{
    opacity:0;transform:translateY(38px);
    transition:opacity .75s cubic-bezier(.22,.61,.36,1),
               transform .75s cubic-bezier(.22,.61,.36,1);
  }
  html.js [data-reveal].in{opacity:1;transform:none}

  html.js [data-reveal-group]>*{
    opacity:0;transform:translateY(38px);
    transition:opacity .7s cubic-bezier(.22,.61,.36,1),
               transform .7s cubic-bezier(.22,.61,.36,1);
  }
  html.js [data-reveal-group].in>*{opacity:1;transform:none}
  html.js [data-reveal-group].in>*:nth-child(2){transition-delay:.09s}
  html.js [data-reveal-group].in>*:nth-child(3){transition-delay:.18s}
  html.js [data-reveal-group].in>*:nth-child(4){transition-delay:.27s}
  html.js [data-reveal-group].in>*:nth-child(5){transition-delay:.36s}
  html.js [data-reveal-group].in>*:nth-child(6){transition-delay:.45s}
  html.js [data-reveal-group].in>*:nth-child(7){transition-delay:.54s}
  html.js [data-reveal-group].in>*:nth-child(8){transition-delay:.63s}
  html.js [data-reveal-group].in>*:nth-child(n+9){transition-delay:.7s}
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header{
  position:sticky;top:0;z-index:120;background:#fff;
  border-bottom:1px solid #f0f0f0;
}
.site-header .container{
  display:flex;align-items:center;justify-content:space-between;
  height:88px;
}
.logo img{height:46px;width:auto}
.main-nav ul{display:flex;gap:38px}
.main-nav a{
  font-size:16px;font-weight:500;color:#3a3a3a;letter-spacing:.06em;
  position:relative;padding:6px 0;transition:color .2s;
}
.main-nav a:hover,.main-nav a.active{color:#000}
.main-nav a.active::after{
  content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;
  background:#b9a8c4;border-radius:2px;
}
.nav-toggle{display:none;background:none;border:0;cursor:pointer;width:34px;height:28px;position:relative}
.nav-toggle span{position:absolute;left:0;right:0;height:2px;background:#444;transition:.3s}
.nav-toggle span:nth-child(1){top:3px}
.nav-toggle span:nth-child(2){top:13px}
.nav-toggle span:nth-child(3){top:23px}

/* ============================================================
   HERO (共用版頭)
   ============================================================ */
.hero{
  position:relative;background:var(--hero-bg);overflow:hidden;
  min-height:460px;
}
.hero-photo{
  position:absolute;left:0;bottom:0;top:0;width:62%;
  background:url('../img/hero-photo.jpg') left bottom/cover no-repeat;
}
.hero-photo::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(239,239,239,0) 70%,var(--hero-bg) 100%);
}
.hero-inner{
  position:relative;max-width:var(--maxw);margin:0 auto;padding:0 24px;
  min-height:460px;display:flex;align-items:center;justify-content:flex-end;
}
.hero-copy{text-align:right;max-width:560px;padding:30px 0}
.hero-copy h1{
  font-family:var(--tc);font-size:30px;font-weight:700;color:#2f2f2f;
  letter-spacing:.06em;margin-bottom:14px;
}
.hero-copy p{font-size:18px;color:#666;line-height:2;letter-spacing:.08em}
.hero-copy .en{
  font-family:var(--en);font-weight:300;font-size:40px;color:#4a4a4a;
  letter-spacing:.04em;margin-top:30px;
}

/* LINE 側欄 tab */
.line-tab{
  position:absolute;left:34px;top:54%;transform:translateY(-50%);z-index:30;
  width:80px;background:var(--line-green);color:#fff;border-radius:40px;
  padding:18px 0 22px;text-align:center;box-shadow:0 8px 22px rgba(0,0,0,.22);
  transition:background .2s;
}
.line-tab:hover{background:var(--line-green-d)}
.line-tab .ico{
  width:46px;height:44px;margin:0 auto 12px;
  display:flex;align-items:center;justify-content:center;
}
.line-tab .ico svg{width:46px;height:44px}
/* logo 圈與直式文字之間的白色分隔線（對齊設計稿）*/
.line-tab .vtxt{display:flex;flex-direction:row-reverse;justify-content:center;gap:3px;
  border-top:1px solid rgba(255,255,255,.55);padding-top:12px;width:34px;margin:0 auto}
.line-tab .vtxt .cn{
  writing-mode:vertical-rl;text-orientation:upright;
  font-size:12.5px;font-weight:700;letter-spacing:.12em;line-height:1.5;
}
.line-tab .vtxt .en2{
  writing-mode:vertical-rl;font-family:var(--en);font-size:9.5px;
  letter-spacing:.1em;opacity:.9;align-self:center;
}

/* ============================================================
   SECTION HEADING (|  About us  | + 中文標題)
   ============================================================ */
.sec-head{text-align:center;margin:0 auto}
.sec-head .en{
  font-family:var(--en);font-weight:300;font-size:21px;color:#8c8c8c;
  letter-spacing:.16em;display:inline-flex;align-items:center;gap:18px;
}
.sec-head .en::before,.sec-head .en::after{
  content:"";width:1px;height:18px;background:#bdbdbd;display:inline-block;
}
.sec-head h2{
  font-size:27px;font-weight:700;color:#333;letter-spacing:.12em;margin-top:10px;
}
.sec-head .sub{color:#8a8a8a;font-size:14.5px;margin-top:14px;letter-spacing:.05em}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{display:inline-flex;align-items:center;gap:10px;cursor:pointer;
  font-size:14px;letter-spacing:.08em;transition:.22s;border:0}
.btn-dark{
  background:var(--pill);color:#fff;padding:11px 26px;border-radius:30px;
}
.btn-dark:hover{background:var(--pill-d)}
.btn-dark .ar{font-family:var(--en);font-weight:300}
.btn-outline{
  background:#fff;color:#444;border:1px solid #cfcfcf;border-radius:4px;
  padding:11px 18px;width:100%;justify-content:center;
}
.btn-outline:hover{border-color:#999;background:#fafafa}
.btn-line{
  background:var(--line-green);color:#fff;padding:11px 26px;border-radius:30px;
}
.btn-line:hover{background:var(--line-green-d)}
.btn-line .li{width:20px;height:20px;border-radius:50%;background:#fff;display:inline-flex;align-items:center;justify-content:center}
.btn-line .li svg{width:13px;height:13px}
.btn-ghost{
  background:#fff;color:#555;border:1px solid #cdcdcd;border-radius:30px;padding:9px 26px;
}
.btn-ghost:hover{background:#f6f6f6}

/* ============================================================
   GENERIC SECTION
   ============================================================ */
section{padding:72px 0}
.sec-tight{padding:56px 0}

/* 介紹橫幅 (列表頁 intro band) */
.intro-band{
  background:var(--band-bg);border-radius:4px;overflow:hidden;
  display:flex;align-items:stretch;margin-top:40px;
}
.intro-band .pic{width:42%;background-size:cover;background-position:center;min-height:150px}
.intro-band .txt{flex:1;padding:30px 40px;display:flex;flex-direction:column;justify-content:center;
  color:#777;font-size:14.5px;line-height:2.1}

/* 分類頁籤 tabs */
.cat-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:0;margin:34px 0 6px;
  font-size:14.5px;color:#555;justify-content:center}
.cat-tabs a{padding:7px 22px;position:relative;letter-spacing:.05em}
.cat-tabs a:not(:last-child)::after{content:"";position:absolute;right:0;top:50%;
  transform:translateY(-50%);width:1px;height:14px;background:#d2d2d2}
.cat-tabs a.active{background:#e7e7e7;color:#222;border-radius:2px}
.count-note{text-align:right;color:#a3a3a3;font-size:13px;margin:8px 0 0}

/* ============================================================
   FOOTER
   ============================================================ */
.cta-strip{background:var(--soft-bg);text-align:center;padding:54px 0}
.cta-strip .line-msg{color:#666;margin-bottom:22px;font-size:15px;letter-spacing:.04em}

.site-footer{background:var(--footer);color:#cfcfcf;padding:48px 0 0}
.footer-grid{display:flex;justify-content:space-between;gap:40px;flex-wrap:wrap;align-items:flex-start}
.foot-brand .flogo{height:34px;margin-bottom:10px}
.foot-brand .fname{font-size:18px;color:#fff;font-weight:700;letter-spacing:.06em}
.foot-brand .fen{font-size:11px;color:#9a9a9a;letter-spacing:.08em;font-family:var(--en)}
.foot-contact{display:flex;gap:18px;margin-top:22px;align-items:flex-start}
.foot-contact .qr{width:84px;height:84px;background:#fff;padding:4px;border-radius:3px}
.foot-contact .qr img{width:100%;height:100%}
.foot-contact .info{font-size:13.5px;line-height:2.1;color:#cdcdcd}
.foot-contact .info b{color:#fff;font-weight:500}
.foot-right{text-align:right;min-width:230px}
.foot-social{display:flex;gap:14px;justify-content:flex-end;margin-bottom:26px}
.foot-social a{width:34px;height:34px;border:1px solid #7a7a7a;border-radius:50%;
  display:flex;align-items:center;justify-content:center;transition:.2s}
.foot-social a:hover{background:#fff}
.foot-social a:hover svg path{fill:var(--footer)}
.foot-social svg{width:16px;height:16px}
.foot-nav{display:flex;gap:14px;flex-wrap:wrap;justify-content:flex-end;font-size:13.5px;color:#d0d0d0;margin-bottom:22px}
.foot-nav a{position:relative;padding-left:14px}
.foot-nav a:first-child{padding-left:0}
.foot-nav a:not(:first-child)::before{content:"";position:absolute;left:0;top:50%;
  transform:translateY(-50%);width:1px;height:11px;background:#6f6f6f}
.foot-counter{font-size:13px;color:#bdbdbd}
.foot-counter .grp{margin-left:22px}
.foot-counter .grp:first-child{margin-left:0}
.footer-legal{border-top:1px solid #565656;margin-top:34px;background:var(--footer-2);
  padding:14px 0;font-size:12px;color:#9d9d9d;text-align:center;letter-spacing:.02em}
.footer-legal .lock{display:inline-block;vertical-align:-2px;margin-right:6px}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.to-top{
  position:fixed;right:26px;bottom:34px;z-index:90;width:50px;height:50px;
  border-radius:50%;background:#fff;border:1px solid #d8d8d8;display:flex;
  align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.12);
  opacity:0;visibility:hidden;transition:.3s;cursor:pointer;
}
.to-top.show{opacity:1;visibility:visible}
.to-top svg{width:18px;height:18px;stroke:#777}

/* ============================================================
   MOBILE DRAWER
   ============================================================ */
.drawer-mask{position:fixed;inset:0;background:rgba(0,0,0,.35);opacity:0;visibility:hidden;
  transition:.3s;z-index:200}
.drawer-mask.open{opacity:1;visibility:visible}
.drawer{position:fixed;top:0;right:0;height:100%;width:60%;max-width:300px;background:#fff;
  transform:translateX(100%);transition:.32s;z-index:201;display:flex;flex-direction:column;
  box-shadow:-8px 0 24px rgba(0,0,0,.12)}
.drawer.open{transform:translateX(0)}
.drawer .close{align-self:flex-end;font-size:30px;color:#666;background:none;border:0;
  padding:18px 22px;cursor:pointer;line-height:1}
.drawer nav{padding:6px 0}
.drawer nav a{display:block;text-align:center;padding:20px;font-size:17px;color:#333;
  border-bottom:1px solid #eee;letter-spacing:.08em}
.drawer nav a.active{color:#aaa}
.drawer nav a:hover{background:#fafafa}
.m-bottom{display:none}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:900px){
  .main-nav{display:none}
  .nav-toggle{display:block}
  .hero-photo{width:100%;opacity:.5}
  .hero-photo::after{background:linear-gradient(90deg,rgba(239,239,239,.2),rgba(239,239,239,.75))}
  .hero-inner{justify-content:center}
  .hero-copy{text-align:center}
  .hero-copy .en{font-size:30px}
  .hero-copy h1{font-size:23px}
  .footer-grid{flex-direction:column}
  .foot-right{text-align:left}
  .foot-social,.foot-nav{justify-content:flex-start}
  .intro-band{flex-direction:column}
  .intro-band .pic{width:100%;min-height:160px}
  .intro-band .txt{padding:22px 24px}
  /* 手機已有底部固定 LINE 列，隱藏左側浮動 LINE 側標避免遮住 Hero 文字 */
  .line-tab{display:none}
  /* 手機底部固定列：線上諮詢 / 電話聯繫 */
  .m-bottom{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:95}
  .m-bottom a{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;
    padding:15px 0;color:#fff;font-size:15px;letter-spacing:.05em}
  .m-bottom .b-line{background:var(--line-green)}
  .m-bottom .b-tel{background:#5a5a5a}
  .m-bottom svg{width:18px;height:18px}
  .to-top{bottom:74px}
  body{padding-bottom:52px}
}
@media(max-width:560px){
  .sec-head h2{font-size:22px}
  .hero-copy h1{font-size:20px}
  .hero-copy .en{font-size:25px}
}

/* ============================================================
   HOMEPAGE COMPONENTS
   ============================================================ */
/* 左對齊小標 */
.label-l{font-family:var(--en);font-weight:300;font-size:20px;color:#8c8c8c;
  letter-spacing:.14em;display:flex;align-items:center;gap:14px;margin-bottom:12px}
.label-l::before{content:"";width:1px;height:17px;background:#9a9a9a}

/* About 區 */
.home-about{background:var(--about-bg)}
.home-about .wrap{display:flex;gap:54px;align-items:center}
.home-about .txt{flex:1.05}
.home-about .txt h3{font-size:19px;font-weight:700;color:#3a3a3a;margin-bottom:6px;letter-spacing:.04em}
.home-about .txt .lead{font-size:18px;font-weight:500;color:#3f3f3f;margin-bottom:16px;letter-spacing:.03em}
.home-about .txt p{color:#6d6d6d;font-size:14.5px;line-height:2.05;margin-bottom:6px}
.home-about .txt .btn{margin-top:22px}
.home-about .pic{flex:.95;align-self:stretch;min-height:260px;border-radius:2px;
  background-size:cover;background-position:center}

/* 課程卡 */
.course-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:42px}
.course-card .thumb{aspect-ratio:16/11;background-size:cover;background-position:center;border-radius:2px}
.course-card .meta{display:flex;justify-content:space-between;align-items:center;
  font-family:var(--en);font-size:13px;color:#888;margin:14px 0 4px;letter-spacing:.05em}
.course-card .meta .cat{font-family:var(--tc);color:#9a9a9a}
.course-card h4{font-size:17px;font-weight:700;color:#333;margin-bottom:14px;letter-spacing:.03em}
.course-card .views{text-align:center;color:#a4a4a4;font-size:12.5px;margin-top:10px}
.center-btn{text-align:center;margin-top:38px}

/* 流程區 */
.home-process{background:var(--band-bg)}
.home-process .wrap{display:flex;gap:50px;align-items:flex-start}
.home-process .lead-col{flex:0 0 26%;padding-top:6px}
.home-process .lead-col h3{font-size:22px;font-weight:700;color:#333;margin-bottom:18px;letter-spacing:.04em}
.home-process .lead-col p{color:#777;font-size:14px;line-height:2;margin-bottom:24px}
.process-grid{flex:1;display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.step{background:#fff;padding:26px 22px 30px;border-radius:2px}
.step .num{font-family:var(--en);font-size:30px;font-weight:500;color:#cdcdcd;line-height:1}
.step .ic{height:62px;margin:18px 0 16px;display:flex;align-items:flex-end}
.step .ic img{height:58px;width:auto}
.step h5{font-size:15.5px;font-weight:700;color:#333;padding-bottom:14px;
  border-bottom:1px solid #e6e6e6;margin-bottom:14px;letter-spacing:.02em}
.step p{color:#8a8a8a;font-size:13px;line-height:1.9}

/* 知識列表 (橫向卡) */
.know-list{margin-top:40px;display:flex;flex-direction:column;gap:18px}
.know-row{display:flex;gap:0;border:1px solid #ececec;border-radius:3px;padding:0;overflow:hidden;
  align-items:stretch;background:#fff;transition:.2s}
.know-row:hover{box-shadow:0 8px 22px rgba(0,0,0,.06)}
/* 縮圖滿版貼齊卡片左/上/下邊緣、撐滿卡片高度（對齊設計稿）*/
.know-row .kthumb{flex:0 0 232px;align-self:stretch;min-height:150px;background-size:cover;background-position:center}
.know-row .kbody{flex:1;min-width:0;padding:20px 26px;display:flex;flex-direction:column;justify-content:center}
.know-row .ktop{display:flex;justify-content:flex-end;gap:18px;font-size:12.5px;color:#9a9a9a;margin-bottom:4px}
.know-row h4{font-size:16.5px;font-weight:700;color:#333;margin-bottom:8px;letter-spacing:.02em}
.know-row .excerpt{color:#888;font-size:13.5px;line-height:1.85;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.know-row .excerpt .more{color:#b6b6b6}
.know-row .kmore{text-align:right;margin-top:10px;font-size:13px;color:#666;letter-spacing:.05em}
/* 「閱讀更多 +」文字底線（對齊設計稿）*/
.know-row .kmore{display:inline-block;align-self:flex-end;border-bottom:1px solid #cfcfcf;padding-bottom:3px}
.know-row .kmore .pl{color:#aaa}

/* Partners & Contact 帶 */
.home-pc{position:relative;padding:0;background:#f1f1f0;overflow:hidden}
.home-pc .bg{position:absolute;inset:0;background-size:cover;background-position:left center;opacity:.9}
.home-pc .bg::after{content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(241,241,240,.1) 30%,rgba(244,244,243,.96) 62%)}
.home-pc .wrap{position:relative;max-width:var(--maxw);margin:0 auto;padding:78px 24px;
  display:flex;justify-content:flex-end}
.home-pc .panel{width:54%;min-width:340px}
.home-pc .panel h3{font-size:21px;font-weight:700;color:#2f2f2f;margin-bottom:16px;letter-spacing:.03em}
.home-pc .panel p{color:#777;font-size:14px;line-height:2;margin-bottom:26px}
.home-pc .panel .btns{display:flex;gap:16px}

@media(max-width:900px){
  .home-about .wrap{flex-direction:column}
  .home-about .pic{width:100%;min-height:220px}
  .course-grid{grid-template-columns:1fr}
  .home-process .wrap{flex-direction:column}
  .process-grid{grid-template-columns:repeat(2,1fr);width:100%}
  .home-pc .panel{width:100%}
  .home-pc .wrap{justify-content:center}
  .know-row{flex-direction:column;align-items:stretch}
  .know-row .kthumb{flex:none;width:100%;height:170px}
  .know-row .ktop{justify-content:flex-start}
}
@media(max-width:560px){ .process-grid{grid-template-columns:1fr} }

/* ============================================================
   INNER / LIST PAGE SHARED
   ============================================================ */
.page-head{padding:64px 0 0;text-align:center}
.divider{height:1px;background:#e6e6e6;margin:34px 0}
.center-sub{display:flex;align-items:center;gap:26px;color:#555;font-size:16px;
  letter-spacing:.06em;justify-content:center;margin:30px 0}
.center-sub::before,.center-sub::after{content:"";flex:1;max-width:300px;height:1px;background:#e6e6e6}

/* About page */
.about-main{display:flex;gap:56px;align-items:flex-start;margin-top:10px}
.about-main .figure{flex:0 0 42%;position:relative}
.about-main .figure .ph{width:100%;aspect-ratio:3/3.4;background-size:cover;background-position:center;position:relative;z-index:2}
.about-main .figure::before{content:"";position:absolute;left:-26px;bottom:-26px;width:62%;height:55%;background:var(--about-bg);z-index:1}
.about-main .body{flex:1;padding-top:6px}
.about-main .body .en-h{font-family:var(--en);font-weight:300;font-size:24px;color:#9a9a9a;letter-spacing:.04em;margin-bottom:18px}
.about-main .body p{color:#5f5f5f;font-size:14.5px;line-height:2.15;margin-bottom:6px}
.about-main .body .creed{font-size:17px;font-weight:700;color:#333;margin:30px 0 18px;letter-spacing:.04em}
.creed-item{display:flex;gap:20px;margin-bottom:24px;align-items:flex-start}
.creed-item .ci-ic{flex:0 0 64px;height:64px;border:1px solid #d8cec0;border-radius:3px;
  display:flex;align-items:center;justify-content:center;overflow:hidden}
/* icon SVG 為 288x72 寬畫布、圖案置中；以高度為準、寬 auto，靠 overflow 裁掉左右空白 */
.creed-item .ci-ic img{height:40px;width:auto;max-width:none}
.creed-item h4{font-size:15px;font-weight:700;color:#3a3a3a;margin-bottom:6px}
.creed-item p{color:#777;font-size:13.5px;line-height:1.95;margin:0}

/* Certification grid */
.cert-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;margin-top:38px}
.cert-card .cimg{aspect-ratio:16/11;background:#eee;background-size:cover;background-position:center;border:1px solid #eee}
.cert-card h4{text-align:center;font-size:16px;font-weight:700;color:#333;margin:18px 0 14px;letter-spacing:.04em}
.cert-card .btn-outline{font-size:13.5px}

/* Inner article header */
.inner-head{text-align:center;margin:30px 0 6px}
.inner-head .ih-cat{font-size:13px;color:#888;margin-bottom:8px}
.inner-head h2{font-size:22px;font-weight:700;color:#333;letter-spacing:.04em}
.inner-meta{display:flex;justify-content:flex-end;gap:18px;color:#9a9a9a;font-size:12.5px;
  border-bottom:1px solid #ececec;padding-bottom:14px;margin-bottom:30px}
/* 「知識分類 ｜ 瀏覽人次」中間的直線分隔符（對齊設計稿）*/
.know-row .ktop span+span::before,
.inner-meta span+span::before{content:"｜";color:#d2d2d2;margin:0 4px 0 -10px}
.course-detail{display:flex;gap:40px;align-items:flex-start;margin-bottom:14px}
.course-detail .cd-img{flex:0 0 44%;background-size:cover;background-position:center;aspect-ratio:4/3;border-radius:2px}
.course-detail .cd-txt{flex:1}
.course-detail .cd-txt p{color:#5f5f5f;font-size:14px;line-height:2.05;margin-bottom:14px}
.course-detail .cd-txt ul{margin:6px 0 0;color:#666;font-size:13.5px;line-height:2}
.course-detail .cd-txt ul li{position:relative;padding-left:16px;margin-bottom:4px}
.course-detail .cd-txt ul li::before{content:"・";position:absolute;left:0;color:#999}
.course-detail .cd-txt ul li b{color:#3a3a3a}

/* Cert inner full image + columns */
.cert-hero-img{width:100%;aspect-ratio:1180/360;background-size:cover;background-position:center;margin-bottom:26px}
.lead-p{color:#5f5f5f;font-size:14px;line-height:2.05;margin-bottom:30px}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:46px}
.two-col .blk{margin-bottom:24px}
.two-col h4{font-size:15.5px;font-weight:700;color:#333;margin-bottom:8px;letter-spacing:.03em}
.two-col p{color:#6a6a6a;font-size:13.5px;line-height:1.95;margin-bottom:4px}
.two-col ul li{color:#6a6a6a;font-size:13.5px;line-height:1.95;position:relative;padding-left:14px}
.two-col ul li::before{content:"・";position:absolute;left:0;color:#aaa}

/* LINE CTA band */
.line-cta{background:var(--soft-bg);text-align:center;padding:44px 0;margin-top:40px}
.line-cta p{color:#666;font-size:14.5px;margin-bottom:20px;letter-spacing:.03em}
.back-btn{text-align:center;margin:40px 0 0}

/* Partners */
.partner-en{text-align:center;font-family:var(--en);font-weight:300;font-size:22px;color:#9a9a9a;
  letter-spacing:.04em;margin:44px 0 30px}
.logo-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px 24px}
.logo-card{text-align:center}
.logo-card a{display:block;color:inherit}
/* 外框只包 logo；店名在框外下方、粗體黑字（對齊設計稿）*/
.logo-card .limg{height:118px;border:1px solid #e6e6e6;border-radius:2px;background:#fff;
  display:flex;align-items:center;justify-content:center;padding:22px}
.logo-card .limg img{max-height:66px;max-width:82%;width:auto}
.logo-card .lname{margin-top:13px;font-size:14.5px;font-weight:700;color:#333}
.partner-cta{position:relative;overflow:hidden;background:var(--band-bg);margin-top:60px}
.partner-cta .bg{position:absolute;right:0;top:0;bottom:0;width:52%;background-size:cover;background-position:center}
.partner-cta .bg::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--band-bg),rgba(237,237,235,.2))}
.partner-cta .wrap{position:relative;max-width:var(--maxw);margin:0 auto;padding:54px 24px}
.partner-cta .inner{max-width:560px}
.partner-cta h3{font-size:19px;font-weight:700;color:#333;margin-bottom:14px;letter-spacing:.03em}
.partner-cta p{color:#777;font-size:13.5px;line-height:1.95;margin-bottom:24px}
.partner-cta .btns{display:flex;gap:16px}

/* Knowledge article inner */
.article-body{max-width:980px;margin:0 auto}
.article-body img{width:100%;margin:6px 0 22px;border-radius:2px}
.article-body h3{font-size:17px;font-weight:700;color:#333;margin:26px 0 12px;letter-spacing:.03em}
.article-body p{color:#5f5f5f;font-size:14px;line-height:2.1;margin-bottom:14px}
.article-body ul{margin:6px 0 18px;color:#666;font-size:13.5px;line-height:2}
.article-body ul li{position:relative;padding-left:16px}
.article-body ul li::before{content:"・";position:absolute;left:0;color:#aaa}
/* 雜誌式雙欄：圖片浮動靠左窄欄、內文繞排在右（對齊設計稿 05-內頁）。
   手機(≤900)不浮動，圖片改滿版堆疊。 */
@media(min-width:901px){
  .article-body{overflow:hidden}
  .article-body img{float:left;width:42%;margin:6px 32px 20px 0}
  .article-body img:nth-of-type(n+2){clear:left}
}

/* Contact */
.contact-panel{display:flex;gap:0;background:var(--band-bg);margin-top:30px}
.contact-panel .left{flex:0 0 42%;background-size:cover;background-position:center;min-height:560px;position:relative}
.contact-panel .left .cap{position:absolute;left:30px;top:30px;color:#fff;font-family:var(--en);
  font-weight:300;font-size:24px;line-height:1.3;text-shadow:0 1px 8px rgba(0,0,0,.3)}
.contact-panel .right{flex:1;padding:46px 50px}
.contact-panel .right .hi{color:#666;font-size:14px;line-height:2.05;margin-bottom:26px}
.contact-line{display:flex;align-items:center;gap:14px;margin-bottom:16px;color:#555;font-size:14.5px}
/* 06icon_* 本身即完整圓形 icon（淺圓底＋綠弧＋細線圖示），原樣顯示即可 */
.contact-line .ci{width:38px;height:38px;display:flex;align-items:center;justify-content:center;flex:0 0 38px}
.contact-line .ci img{width:38px;height:38px}
.connect-h{text-align:center;font-family:var(--en);color:#9a9a9a;font-size:16px;letter-spacing:.06em;
  border-top:1px solid #d9d9d6;padding-top:22px;margin:30px 0 20px}
.connect-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.connect-card{border:1px solid #d6d6d3;background:#fcfcfc;padding:26px 10px;text-align:center;transition:.2s}
.connect-card:hover{background:#fff;box-shadow:0 6px 16px rgba(0,0,0,.06)}
.connect-card .cc-ic{width:60px;height:44px;margin:0 auto 12px;display:flex;align-items:center;justify-content:center;overflow:hidden}
/* 同上：288x72 寬畫布 icon，以高為準裁掉左右空白，避免被壓成細條 */
.connect-card .cc-ic img{height:40px;width:auto;max-width:none}
.connect-card .cc-name{font-family:var(--en);color:#666;font-size:15px;letter-spacing:.05em}
.map-h{text-align:center;font-family:var(--en);color:#9a9a9a;font-size:16px;letter-spacing:.06em;
  border-top:1px solid #d9d9d6;padding-top:22px;margin:30px 0 18px}
/* 灰階貼近設計稿去飽和地圖；hover 恢復彩色方便使用 */
.map-box{width:100%;height:300px;border:0;border-radius:2px;filter:grayscale(1);transition:filter .3s}
.map-box:hover{filter:none}
.contact-foot-line{text-align:center;color:#9a9a9a;font-size:13px;margin-top:26px;letter-spacing:.04em}

@media(max-width:900px){
  .about-main{flex-direction:column}
  .about-main .figure{width:100%}
  .cert-grid,.logo-grid{grid-template-columns:repeat(2,1fr)}
  .course-detail{flex-direction:column}
  .course-detail .cd-img{width:100%}
  .two-col{grid-template-columns:1fr;gap:0}
  .partner-cta .bg{position:relative;width:100%;height:180px}
  .partner-cta .inner{max-width:none}
  .contact-panel{flex-direction:column}
  .contact-panel .left{width:100%;min-height:320px}
  .contact-panel .right{padding:30px 22px}
  .connect-grid{grid-template-columns:1fr}
}
@media(max-width:560px){ .cert-grid,.logo-grid{grid-template-columns:1fr} }
