/* Tutor Eric Taipei — 2026 改版共用樣式（覆蓋原 Tailwind 樣式） */
:root{
  --te-navy:#13294B;--te-navy-d:#0C1C36;--te-gold:#E8A33D;--te-gold-d:#9A6512;
  --te-ink:#1B2333;--te-muted:#4A5568;--te-line:#DCE1EA;--te-line-2:#E7EBF1;--te-paper:#F7F8FB;--te-mist:#C9D3E6;
  --color-navy-800:#13294B;--color-navy-900:#0C1C36;--color-navy-950:#081429;--color-paper:#F7F8FB;--color-line:#DCE1EA;--color-ink:#1B2333;--color-slate:#4A5568;
}
body{font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",system-ui,sans-serif;color:var(--te-ink);background:#fff}
.font-serif{font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif!important;font-weight:900!important}
main h1,main h2{font-weight:900;letter-spacing:.01em}
.te-num{font-family:"Outfit","Noto Sans TC",sans-serif;font-variant-numeric:tabular-nums}

/* 直角、去陰影 */
.rounded-md,.rounded-lg,.rounded-xl,.rounded-2xl{border-radius:4px!important}
.shadow-lg,.shadow-xl,.shadow-md{box-shadow:0 8px 24px rgba(19,41,75,.10)!important}

/* 按鈕 */
.btn-primary{background:var(--te-gold)!important;color:var(--te-navy)!important;font-weight:700!important;border-radius:4px!important}
.btn-primary:hover{background:#D9922A!important}
.btn-secondary{border:1px solid var(--te-navy)!important;color:var(--te-navy)!important;border-radius:4px!important;background:#fff}
.btn-secondary:hover{background:#F1F4F9!important}
.filter-chip[aria-pressed=true]{background:var(--te-navy)!important;border-color:var(--te-navy)!important}
.choice:has(:checked){border-color:var(--te-navy)!important;background:#FBF6EC!important}

/* 頂部資訊列 */
.te-util{background:var(--te-navy-d);color:var(--te-mist);font-size:13px}
.te-util-in{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 24px;padding-block:7px}
.te-util a{color:var(--te-mist);text-decoration:none}.te-util a:hover{color:#fff}

/* 頁首 */
.te-header{position:sticky;top:0;z-index:40;background:#fff;border-bottom:1px solid var(--te-line)}
.te-header-in{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:68px;position:relative}
.te-logo{display:flex;align-items:center;gap:11px;text-decoration:none;flex-shrink:0}
.te-logo svg{width:38px;height:38px}
.te-logo-t{display:flex;flex-direction:column;line-height:1}
.te-logo-a{font-family:"Outfit",sans-serif;font-size:21px;font-weight:700;color:var(--te-navy)}
.te-logo-b{font-family:"Outfit",sans-serif;font-size:10px;font-weight:500;color:var(--te-muted);letter-spacing:.5em;margin-top:5px}
.te-nav{display:none;align-items:center;gap:2px;font-size:15px;font-weight:500}
.te-nav a{color:var(--te-ink);text-decoration:none;padding:22px 12px 19px;border-bottom:3px solid transparent;white-space:nowrap}
.te-nav a:hover{color:var(--te-navy);background:#F1F4F9}
.te-nav a[aria-current=page]{color:var(--te-navy);font-weight:700;border-bottom-color:var(--te-gold)}
.te-cta{display:none;padding:11px 22px;background:var(--te-gold);color:var(--te-navy);font-weight:700;font-size:15px;text-decoration:none;border-radius:4px;white-space:nowrap}
.te-cta:hover{background:#D9922A}
.te-menu summary{list-style:none;width:44px;height:44px;border:1px solid var(--te-line);border-radius:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--te-navy)}
.te-menu summary::-webkit-details-marker{display:none}
.te-menu .te-x{display:none}.te-menu[open] .te-x{display:block}.te-menu[open] .te-bars{display:none}
.te-menu-panel{position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--te-line);box-shadow:0 12px 24px rgba(19,41,75,.12);display:flex;flex-direction:column;max-height:calc(100dvh - 68px);overflow-y:auto}
.te-menu-panel a{display:flex;justify-content:space-between;align-items:center;padding:14px 24px;border-top:1px solid var(--te-line-2);font-size:16px;color:var(--te-ink);text-decoration:none}
.te-menu-panel a::after{content:"›";color:var(--te-muted)}
.te-menu-panel a[aria-current=page]{font-weight:700;color:var(--te-navy);background:#FBF6EC}
.te-menu-panel .te-menu-sub{font-size:14px;color:var(--te-muted)}
@media (min-width:1120px){.te-nav,.te-cta{display:flex}.te-menu{display:none}}
@media (min-width:640px) and (max-width:1119px){.te-cta{display:inline-flex}.te-header-in{gap:12px}.te-header-in .te-menu{margin-left:0}}
@media (max-width:639px){.te-util-r{display:none}.te-header-in{min-height:60px}.te-logo svg{width:32px;height:32px}.te-logo-a{font-size:19px}}

/* 內頁深藍標題區 */
.te-band{position:relative;overflow:hidden;background:var(--te-navy);color:#fff}
.te-band-deco{position:absolute;right:6%;bottom:-80px;width:280px;height:280px;opacity:.08;pointer-events:none}
.te-band-in{position:relative;padding-block:44px 48px}
.te-band-in h1{color:#fff;font-weight:900;font-size:clamp(28px,4vw,42px);line-height:1.25;margin:0}
.te-band-in h1::after{content:"";display:block;width:40px;height:4px;background:var(--te-gold);margin-top:14px}
.te-band-in>p{color:var(--te-mist)!important;margin-top:14px}
.te-band-in>p a{color:#fff!important}
.te-crumb{font-size:13px;color:var(--te-mist);margin-bottom:10px}
.te-crumb a{color:var(--te-mist);text-decoration:none}.te-crumb a:hover{color:#fff}
@media (max-width:639px){.te-band-in{padding-block:26px 28px}.te-band-deco{width:180px;height:180px;bottom:-50px}}

/* 區塊標題 */
.te-eyebrow{font-family:"Outfit",sans-serif;font-size:13px;font-weight:700;color:var(--te-gold-d);letter-spacing:.2em}
.te-h2{margin:6px 0 0;font-size:clamp(24px,3vw,34px);font-weight:900;color:var(--te-navy);line-height:1.3}
.te-h2::after{content:"";display:block;width:40px;height:4px;background:var(--te-gold);margin-top:10px}
.te-more{font-size:15px;font-weight:700;color:var(--te-navy);text-decoration:none;white-space:nowrap}.te-more:hover{color:var(--te-gold-d)}
.te-sechead{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px}

/* 頁尾 */
.te-foot{background:var(--te-navy-d);color:var(--te-mist);font-size:14px;margin-top:0}
.te-foot a{color:var(--te-mist);text-decoration:none}.te-foot a:hover{color:#fff}
.te-foot-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:32px;padding-block:56px 32px}
.te-foot-col{display:flex;flex-direction:column;gap:9px}
.te-foot-h{font-weight:700;color:#fff;margin-bottom:2px}
.te-foot-brand{display:flex;align-items:center;gap:10px;font-family:"Outfit",sans-serif;font-size:21px;font-weight:700;color:#fff}
.te-foot-bottom{border-top:1px solid #22355A;padding-block:18px 26px;font-size:13px;color:#8FA2C2}
main+.te-foot,main~.te-foot{margin-top:0}

/* 手機底部固定按鈕 */
.te-mbar{display:none}
@media (max-width:1119px){
  a[aria-label="用 LINE 聯絡講師"]{display:none!important}
  body.te-has-mbar{padding-bottom:72px}
  .te-mbar{display:grid;grid-template-columns:2fr 3fr;gap:10px;position:fixed;left:0;right:0;bottom:0;z-index:35;background:#fff;border-top:1px solid var(--te-line);padding:10px 16px calc(10px + env(safe-area-inset-bottom))}
  .te-mbar a{min-height:48px;display:flex;align-items:center;justify-content:center;border-radius:4px;font-size:15px;font-weight:700;text-decoration:none}
  .te-mbar .te-mbar-line{border:1px solid var(--te-navy);color:var(--te-navy)}
  .te-mbar .te-mbar-book{background:var(--te-gold);color:var(--te-navy);font-size:16px}
}
@media (min-width:640px) and (max-width:1119px){.te-mbar{grid-template-columns:1fr 1fr;padding-inline:max(16px,calc(50% - 300px))}}

/* ====== 首頁 ====== */
.te-hero{position:relative;overflow:hidden;background:var(--te-navy);color:#fff}
.te-hero-deco{position:absolute;right:-60px;bottom:-150px;width:520px;height:520px;opacity:.07;pointer-events:none}
.te-hero-in{position:relative;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:48px;align-items:center;padding-block:72px 132px}
.te-kicker{display:flex;align-items:center;gap:12px;font-size:14px;font-weight:700;color:var(--te-gold);letter-spacing:.12em}
.te-kicker::before{content:"";width:28px;height:2px;background:var(--te-gold)}
.te-hero h1{margin:20px 0 0;font-size:clamp(30px,4.6vw,52px);font-weight:900;line-height:1.28;color:#fff}
.te-hero h1 em{font-style:normal;color:var(--te-gold)}
.te-hero-lead{margin:20px 0 0;font-size:18px;color:var(--te-mist);max-width:32em}
.te-hero-btns{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.te-btn-gold{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 28px;background:var(--te-gold);color:var(--te-navy);font-size:17px;font-weight:700;text-decoration:none;border-radius:4px}
.te-btn-gold:hover{background:#D9922A}
.te-btn-ghost{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 26px;border:1px solid #8FA2C2;color:#fff;font-size:17px;font-weight:500;text-decoration:none;border-radius:4px}
.te-btn-ghost:hover{background:rgba(255,255,255,.08)}
.te-glance{background:#fff;color:var(--te-ink);border-top:4px solid var(--te-gold)}
.te-glance-h{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:22px 28px 12px}
.te-glance-h strong{font-size:18px;font-weight:900;color:var(--te-navy)}
.te-glance dl{margin:0;padding:0 28px;display:grid;grid-template-columns:92px minmax(0,1fr);font-size:15px}
.te-glance dt,.te-glance dd{margin:0;padding:12px 0;border-top:1px solid var(--te-line-2)}
.te-glance dt{font-weight:700;color:var(--te-navy)}
.te-glance dd strong{color:var(--te-navy)}
.te-glance-cta{display:flex;align-items:center;justify-content:center;min-height:48px;margin:14px 28px 26px;background:var(--te-navy);color:#fff;font-weight:700;text-decoration:none;border-radius:4px}
.te-glance-cta:hover{background:#1C3A66}

.te-count-wrap{background:var(--te-paper);padding-bottom:40px}
.te-count{position:relative;margin-top:-76px;background:#fff;border:1px solid var(--te-line);box-shadow:0 12px 32px rgba(19,41,75,.10)}
.te-count-h{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 20px;padding:16px 28px;border-bottom:1px solid var(--te-line)}
.te-count-h h2{margin:0;font-size:22px;font-weight:900;color:var(--te-navy)}
.te-count-h small{font-size:13px;color:var(--te-muted)}
.te-count-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.te-exam{padding:22px 28px 24px;border-right:1px solid var(--te-line);display:flex;flex-direction:column;gap:4px}
.te-exam:last-child{border-right:0}
.te-exam-name{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:700;color:var(--te-navy)}
.te-tag{padding:1px 9px;background:var(--te-navy);color:#fff;font-size:12px;font-weight:700;border-radius:2px}
.te-exam-days{display:flex;align-items:baseline;gap:8px;margin-top:4px;color:var(--te-navy)}
.te-exam-days span:first-child{font-size:15px;color:var(--te-muted)}
.te-exam-days b{font-family:"Outfit",sans-serif;font-size:66px;line-height:1.05;font-weight:700;font-variant-numeric:tabular-nums}
.te-exam-days i{font-style:normal;font-size:18px;font-weight:700}
.te-bar{height:4px;background:var(--te-line-2);margin:8px 0 6px}.te-bar>span{display:block;height:4px;background:var(--te-gold)}
.te-exam-date{font-size:14px;color:var(--te-muted)}
@media (max-width:767px){
  .te-count{margin-top:-40px}
  .te-count-h{padding:12px 16px}.te-count-h h2{font-size:18px}
  .te-count-grid{grid-template-columns:1fr}
  .te-exam{border-right:0;border-bottom:1px solid var(--te-line-2);padding:12px 16px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:0 12px}
  .te-exam:last-child{border-bottom:0}
  .te-exam-name{font-size:16px;grid-column:1}.te-exam-date{font-size:12px;grid-column:1;grid-row:2}
  .te-exam-days{grid-column:2;grid-row:1/3;margin:0}.te-exam-days span:first-child{display:none}
  .te-exam-days b{font-size:34px}.te-exam-days i{font-size:14px}
  .te-bar{display:none}
}

.te-sec{padding-block:80px}
.te-sec-paper{background:var(--te-paper)}
.te-courses{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--te-line);border:1px solid var(--te-line);margin-top:32px}
.te-course{background:#fff;padding:28px;display:flex;flex-direction:column;gap:8px;text-decoration:none;color:var(--te-ink);transition:background .15s}
.te-course:hover{background:#FBF6EC}
.te-course-top{display:flex;justify-content:space-between;align-items:center}
.te-course-no{font-family:"Outfit",sans-serif;font-size:15px;font-weight:700;color:var(--te-gold-d)}
.te-course-who{font-size:13px;color:var(--te-muted)}
.te-course-name{font-size:24px;font-weight:900;color:var(--te-navy)}
.te-course-sub{font-size:15px;color:var(--te-muted)}
.te-course-price{margin-top:auto;padding-top:14px;border-top:1px solid var(--te-line-2);display:flex;justify-content:space-between;align-items:baseline;color:var(--te-navy)}
.te-course-price b{font-family:"Outfit",sans-serif;font-size:20px}
.te-course-price small{font-size:14px;color:var(--te-muted);font-weight:500}
.te-note{margin:16px 0 0;font-size:15px;color:var(--te-muted)}
.te-duo{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px;margin-top:28px}
.te-duo a{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px 26px;background:#fff;border:1px solid var(--te-line);border-left:0;border-top:3px solid var(--te-navy);text-decoration:none;color:var(--te-ink)}
.te-duo a:hover{background:#FBF6EC}
.te-duo b{display:block;font-size:18px;font-weight:900;color:var(--te-navy)}
.te-duo span span{font-size:14px;color:var(--te-muted)}
.te-duo .te-arrow{font-size:22px;color:var(--te-navy)}
@media (max-width:899px){.te-courses{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:599px){
  .te-sec{padding-block:44px}
  .te-courses{grid-template-columns:1fr;margin-top:18px}
  .te-course{padding:14px 16px;display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:0 12px}
  .te-course-top{display:contents}.te-course-who{display:none}
  .te-course-no{grid-row:1/3;font-size:13px}
  .te-course-name{font-size:17px;grid-column:2}.te-course-sub{font-size:13px;grid-column:2}
  .te-course-price{grid-column:3;grid-row:1/3;margin:0;padding:0;border:0;flex-direction:column;align-items:flex-end}
  .te-course-price b{font-size:15px}.te-course-price small{font-size:11px}.te-course-price .te-arrow{display:none}
  .te-note{font-size:13px}
}

.te-two{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:56px}
.te-teacher{display:grid;grid-template-columns:190px minmax(0,1fr);gap:30px;align-items:start;margin-top:28px}
.te-photo{position:relative}
.te-photo::before{content:"";position:absolute;left:10px;top:10px;right:-10px;bottom:-10px;background:var(--te-gold)}
.te-photo img{position:relative;display:block;width:100%;height:auto;border:1px solid var(--te-line);background:#E9EDF3}
.te-list{margin:0;padding:0;list-style:none;font-size:15px}
.te-list li{padding:10px 0;border-bottom:1px solid var(--te-line-2)}
.te-list li:last-child{border-bottom:0}
.te-list strong{color:var(--te-navy)}
.te-table{width:100%;border-collapse:collapse;font-size:15px;margin-top:28px}
.te-table tr{border-top:1px solid var(--te-line)}
.te-table tr:first-child{border-top:2px solid var(--te-navy)}
.te-table tr:last-child{border-bottom:1px solid var(--te-line)}
.te-table th{width:104px;text-align:left;padding:13px 16px;background:var(--te-paper);color:var(--te-navy);font-weight:700;vertical-align:top}
.te-table td{padding:13px 16px}
@media (max-width:599px){.te-two{gap:40px}.te-teacher{grid-template-columns:96px minmax(0,1fr);gap:18px;margin-top:18px}.te-photo::before{left:6px;top:6px;right:-6px;bottom:-6px}.te-list{font-size:14px}.te-list li{padding:8px 0}.te-table{font-size:14px;margin-top:18px}.te-table th{width:72px;padding:11px 12px}.te-table td{padding:11px 12px}}

.te-books{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px;margin-top:28px}
.te-book{display:flex;flex-direction:column;gap:8px}
.te-book button{padding:0;border:1px solid var(--te-line);box-shadow:6px 6px 0 var(--te-line);background:#fff;cursor:zoom-in;display:block}
.te-book button img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;object-position:top}
.te-book-tag{margin-top:8px;font-size:13px;font-weight:700;color:var(--te-gold-d)}
.te-book a{font-size:17px;font-weight:700;color:var(--te-navy);text-decoration:none}.te-book a:hover{text-decoration:underline}
.te-book-price{font-family:"Outfit",sans-serif;font-size:20px;font-weight:700;color:var(--te-navy)}
@media (max-width:899px){.te-books{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:16px;margin-inline:-20px;padding:4px 20px 14px}.te-book{flex:0 0 150px;scroll-snap-align:start}.te-book button{box-shadow:4px 4px 0 var(--te-line)}.te-book a{font-size:15px}.te-book-price{font-size:17px}}

.te-news{margin-top:28px;border-top:2px solid var(--te-navy)}
.te-news-head,.te-news-row{display:grid;grid-template-columns:130px 100px minmax(0,1fr) auto;gap:16px;align-items:center;padding:14px 16px}
.te-news-head{background:var(--te-paper);font-size:14px;font-weight:700;color:var(--te-navy)}
.te-news-row{border-bottom:1px solid var(--te-line);text-decoration:none;color:var(--te-ink);font-size:16px}
.te-news-row:hover{background:#FBF6EC}
.te-news-date{font-family:"Outfit",sans-serif;color:var(--te-muted);font-size:15px}
.te-news-cat{justify-self:start;padding:2px 10px;border:1px solid var(--te-gold-d);color:var(--te-gold-d);font-size:13px;font-weight:700;border-radius:2px}
.te-news-title{font-weight:700;color:var(--te-navy)}
.te-hot{display:inline-block;margin-left:8px;padding:1px 7px;background:#C2410C;color:#fff;font-size:12px;font-weight:700;border-radius:2px;vertical-align:2px}
@media (max-width:599px){.te-news-head{display:none}.te-news-row{grid-template-columns:auto 1fr;gap:6px 10px;padding:14px 4px}.te-news-title{grid-column:1/-1;font-size:15px}.te-news-row .te-arrow{display:none}}

.te-endcta{position:relative;overflow:hidden;background:var(--te-navy);color:#fff}
.te-endcta-in{position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px;padding-block:60px}
.te-endcta h2{margin:0;font-size:clamp(24px,3vw,32px);font-weight:900;color:#fff}
.te-endcta p{margin:6px 0 0;color:var(--te-mist)}
@media (max-width:599px){.te-endcta-in{padding-block:40px}.te-endcta .te-hero-btns{width:100%}.te-endcta .te-btn-gold,.te-endcta .te-btn-ghost{flex:1}}

@media (max-width:599px){
  .te-hero-in{padding-block:30px 64px;gap:24px}
  .te-hero-lead{font-size:15px;margin-top:14px}
  .te-hero-btns{margin-top:18px}
  .te-hero .te-btn-gold,.te-hero .te-btn-ghost{flex:1;min-height:48px;font-size:16px;padding:0 14px}
  .te-glance-h{padding:16px 18px 8px}.te-glance dl{padding:0 18px;grid-template-columns:76px 1fr;font-size:14px}.te-glance dt,.te-glance dd{padding:10px 0}
  .te-glance-cta{display:none}
  .te-hero-deco{width:300px;height:300px;bottom:-90px}
}

/* 手機微調 */
@media (max-width:599px){
  .te-table th{width:84px;white-space:nowrap}
  .te-foot-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 20px;padding-block:36px 24px}
  .te-foot-grid>.te-foot-col:first-child{grid-column:1/-1}
  /* 講義列表：兩欄 */
  section[data-level] > .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
  section[data-level] article .p-5{padding:12px!important}
  section[data-level] article h3{font-size:15px!important;line-height:1.4}
  section[data-level] article h3+p{font-size:12px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  section[data-level] article .text-2xl{font-size:17px!important}
  section[data-level] article .mt-0\.5{font-size:11px!important}
  section[data-level] article .mt-4.flex{flex-direction:column;gap:6px;margin-top:10px}
  section[data-level] article .mt-4.flex a{min-height:40px;font-size:14px;padding-inline:8px}
}
