/* Harry Lee 首頁 · 白藍專業風 + 人物氣場
   2026-10-19 P0 修正：最小字號 11/12px、灰字對比度、h1 字距改 em、-webkit-backdrop-filter。 */

:root {
  --paper: #f7f8fa;
  --ink: #151a24;
  --muted: #697181;   /* 在 --paper 上約 4.6:1 */
  --blue: #294beb;
  --line: #dce0e8;
  --dark: #101725;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
picture { display: block; height: 100%; }
p { line-height: 1.85; }
a:focus-visible, button:focus-visible { outline: 3px solid #ee9d30; outline-offset: 5px; }

.wrap { max-width: 1240px; margin: auto; padding-left: 36px; padding-right: 36px; }
.blue { color: var(--blue); }
.inline-link { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 導覽 ---------- */
header {
  height: 86px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(36px, calc((100vw - 1168px) / 2));
  gap: 28px;
  background: #f7f8faf2;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.brand { font-weight: 750; font-size: 24px; white-space: nowrap; letter-spacing: -1.1px; display: inline-flex; align-items: center; gap: 9px; }
.brand span { font-size: 12px; font-weight: 500; letter-spacing: 1px; }
.brand i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
nav { display: flex; gap: 28px; font-size: 14px; color: #4d5668; }
nav a:hover { color: var(--blue); }

.button {
  background: var(--blue); color: white;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px 22px; border: 1px solid var(--blue);
  font-size: 14px; font-weight: 600; border-radius: 4px;
  transition: background .2s, transform .2s;
}
.button:hover { background: #1835bf; transform: translateY(-2px); }
.button.small { padding: 11px 16px; font-size: 13px; gap: 14px; }
.button.outline { background: transparent; border-color: #bdc5d4; color: var(--ink); }
.button.outline:hover { background: #e9edf5; }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.menu { display: none; }

.eyebrow { font-size: 11px; font-weight: 650; letter-spacing: 1.7px; display: flex; align-items: center; gap: 9px; }
.dot { display: inline-block; background: var(--blue); width: 6px; height: 6px; border-radius: 50%; }

/* ---------- 首屏 ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; padding-top: 54px; padding-bottom: 54px; align-items: center; min-height: 690px; }
.hero-copy { padding-top: 8px; }
.chinese-name { font-size: 24px; margin-top: 35px; letter-spacing: 2px; }
h1 { font-size: clamp(64px, 7vw, 96px); letter-spacing: -.05em; line-height: 1.05; margin: 9px 0 25px; font-weight: 760; }
h1 span { color: var(--blue); }
.hero h2 { font-size: clamp(34px, 3.8vw, 49px); line-height: 1.35; letter-spacing: -1.8px; margin: 0 0 25px; font-weight: 650; }
.hero-copy p { font-size: 16px; color: #626b7b; max-width: 480px; margin-bottom: 28px; }
.hero-actions { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.hero-note { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 30px; letter-spacing: 1px; }
.tiny-line { display: inline-block; width: 30px; height: 1px; background: var(--blue); }
.hero-visual { position: relative; padding-right: 16px; }
.portrait-frame { position: relative; background: #e9edf7; height: 590px; overflow: hidden; border-radius: 2px; }
.portrait-frame:after { content: ''; position: absolute; left: 0; top: 0; width: 5px; height: 90px; background: var(--blue); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.portrait-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 22px 20px;
  background: linear-gradient(transparent, #101725ae);
  color: white; display: flex; justify-content: space-between; gap: 15px;
  font-size: 11px; letter-spacing: 1.1px;
}
.side-label { position: absolute; right: -12px; top: 55px; writing-mode: vertical-rl; font-size: 11px; letter-spacing: 2px; color: var(--muted); }

/* ---------- 領域條 ---------- */
.disciplines { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 27px; padding-bottom: 27px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.disciplines div { padding-left: 24px; border-left: 1px solid var(--line); }
.disciplines div:first-child { border: 0; padding-left: 0; }
.disciplines span { font-size: 11px; letter-spacing: 1px; font-weight: 650; color: var(--blue); }
.disciplines p { font-size: 15px; margin: 9px 0 0; }

/* ---------- 章節共用 ---------- */
.section { padding-top: 110px; padding-bottom: 10px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 36px; }
.section h2 { font-size: 40px; letter-spacing: -1.5px; line-height: 1.35; margin: 15px 0 0; font-weight: 650; }
.section-heading > p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- 學院 ---------- */
.academy-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: stretch; }
.label { font-size: 11px; letter-spacing: 1.4px; color: var(--blue); font-weight: 600; }
.free-card { border: 1px solid var(--line); padding: 40px; display: flex; align-items: flex-start; flex-direction: column; background: white; }
.free-card h3, .vip-card h3 { font-size: 35px; line-height: 1.4; letter-spacing: -1px; margin: 26px 0 16px; }
.free-card p { font-size: 15px; color: var(--muted); }
.free-card ul { list-style: none; padding: 10px 0 28px; margin: 0; width: 100%; }
.free-card li { font-size: 14px; padding: 13px 0; border-bottom: 1px solid #eef0f4; }
.free-card li:before { content: '↗'; margin-right: 13px; color: var(--blue); }
.free-card .button { margin-top: auto; }
.free-card small { font-size: 12px; color: var(--muted); margin-top: 16px; }
.vip-card { background: var(--dark); color: #fff; overflow: hidden; }
.vip-art { height: 215px; position: relative; overflow: hidden; }
.vip-art img { height: 100%; width: 100%; object-fit: cover; object-position: 65% 50%; }
.vip-pill { position: absolute; left: 28px; top: 25px; font-size: 11px; letter-spacing: 1px; background: #0d142ac9; border: 1px solid #ffffff2a; padding: 9px 13px; border-radius: 30px; color: #dbe5ff; }
.vip-body { padding: 30px 36px; }
.vip-body .label { color: #92a8ff; }
.vip-body h3 { margin: 15px 0; }
.vip-body p { font-size: 15px; color: #b9c2d2; max-width: 470px; }
.vip-topics { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0; }
.vip-topics span { font-size: 12px; color: #c0ccdf; border-bottom: 1px solid #44516b; padding-bottom: 8px; }
.vip-body .button { width: 100%; }
.vip-meta { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.vip-meta small { font-size: 12px; color: #8794ac; }
.vip-meta a { font-size: 13px; color: #c3cee5; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 精選教學 ---------- */
.learn-section { margin-top: 100px; padding: 76px 0; background: #edf0f5; }
.text-link { font-size: 14px; font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--ink); padding-bottom: 5px; }
.lessons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.lesson { background: #fff; padding: 28px; transition: transform .2s; }
.lesson:hover { transform: translateY(-5px); }
.lesson-top { display: flex; align-items: center; justify-content: space-between; color: #5a6682; font-size: 11px; letter-spacing: 1px; }
.play { border: 1px solid #cfd6e5; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; }
.lesson h3 { font-size: 27px; line-height: 1.45; letter-spacing: -1px; margin: 33px 0 25px; }
.lesson p { color: var(--blue); font-size: 13px; font-weight: 600; border-top: 1px solid var(--line); padding-top: 20px; }
.lesson-detail { color: var(--muted); font-size: 14px; line-height: 1.8; min-height: 76px; }
.watch { display: block; font-size: 13px; font-weight: 650; margin-top: 23px; }

/* ---------- 關於我 ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 85px; align-items: center; padding-bottom: 100px; }
.about-image { height: 570px; position: relative; overflow: hidden; }
.about-image img { height: 100%; width: 100%; object-fit: cover; object-position: 50% 37%; }
.about-image > div { position: absolute; bottom: 22px; left: 24px; font-size: 11px; letter-spacing: 2px; color: white; }
.about-copy p { font-size: 16px; color: var(--muted); }
blockquote { margin: 28px 0; padding-left: 22px; border-left: 3px solid var(--blue); font-size: 24px; line-height: 1.6; font-weight: 550; letter-spacing: -.5px; }
.signature { font-size: 25px; font-weight: 650; letter-spacing: -1px; margin-top: 26px; }
.signature span { font-size: 12px; letter-spacing: 2px; font-weight: 400; margin-left: 18px; }
.social-inline { display: flex; gap: 24px; font-size: 13px; color: #66718a; margin-top: 23px; }

/* ---------- 企業合作 ---------- */
.business { display: flex; justify-content: space-between; gap: 36px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 40px; padding-bottom: 40px; }
.business .eyebrow { font-size: 11px; color: var(--muted); }
.business h2 { font-size: 26px; letter-spacing: -.8px; }
.business p { font-size: 14px; color: var(--muted); margin-bottom: 0; }
.business .button { white-space: nowrap; }

/* ---------- 結尾 ---------- */
.closing { text-align: center; padding-top: 100px; padding-bottom: 100px; }
.closing .eyebrow, .closing .hero-actions { justify-content: center; }
.closing h2 { font-size: 52px; font-weight: 600; line-height: 1.4; letter-spacing: -2px; margin: 25px 0 35px; }
.closing .hero-actions { gap: 28px; }

/* ---------- 頁尾 ---------- */
footer { padding-top: 40px; padding-bottom: 26px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; align-items: start; }
.footer-top p { font-size: 14px; color: var(--muted); margin: 0; }
.footer-top > div { display: flex; flex-direction: column; gap: 12px; font-size: 13px; align-items: flex-end; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.mobile-cta { display: none; }

/* ---------- 響應式 ---------- */
@media (min-width: 1500px) {
  .hero { min-height: 760px; }
  .portrait-frame { height: 650px; }
}

@media (max-width: 1050px) {
  header { padding: 0 28px; gap: 20px; }
  nav { gap: 17px; font-size: 13px; }
  .hero { gap: 25px; }
  .hero-actions .button { padding: 14px 16px; font-size: 13px; gap: 10px; }
  .portrait-frame { height: 540px; }
  .hero h1 { font-size: 77px; }
  .hero h2 { font-size: 38px; }
  .free-card { padding: 30px; }
  .about { gap: 45px; }
  .section h2 { font-size: 35px; }
  .lesson { padding: 24px; }
  .lesson h3 { font-size: 24px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 85px; }
  .wrap { padding-left: 23px; padding-right: 23px; }
  header { height: 70px; padding: 0 22px; }
  .brand { font-size: 22px; }
  .brand span { font-size: 11px; }
  .brand i { display: none; }
  .nav-actions { gap: 10px; }
  .button.small { font-size: 12px; padding: 10px 12px; }
  .menu { display: block; background: none; border: 1px solid #cfd5e2; border-radius: 4px; height: 36px; width: 36px; color: var(--ink); }
  nav { display: none; position: absolute; top: 70px; left: 0; right: 0; padding: 24px; background: var(--paper); border-bottom: 1px solid var(--line); font-size: 15px; }
  nav.open { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }

  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 34px; padding-bottom: 30px; min-height: 0; }
  .hero .eyebrow { font-size: 11px; letter-spacing: 1px; }
  .chinese-name { font-size: 20px; margin-top: 26px; }
  .hero h1 { font-size: 70px; letter-spacing: -.05em; margin: 8px 0 21px; }
  .hero h2 { font-size: 35px; margin-bottom: 20px; letter-spacing: -1px; }
  .hero-copy p { font-size: 15px; margin-bottom: 24px; }
  .hero-note { margin-top: 22px; font-size: 12px; }
  .hero-visual { padding-right: 0; }
  .portrait-frame { height: 470px; }
  .portrait-frame img { object-position: 50% 30%; }
  .side-label { display: none; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { padding: 14px 15px; font-size: 13px; }

  .disciplines { grid-template-columns: 1fr 1fr; row-gap: 26px; margin: 0 23px; padding: 25px 0; }
  .disciplines div { padding-left: 16px; }
  .disciplines div:nth-child(3) { padding-left: 0; border: 0; }
  .disciplines span { font-size: 11px; }
  .disciplines p { font-size: 14px; }

  .section { padding-top: 64px; }
  .section-heading { display: block; margin-bottom: 27px; }
  .section h2 { font-size: 30px; letter-spacing: -1px; }
  .section-heading > p { font-size: 14px; margin-top: 19px; }
  .section-heading > .text-link { display: inline-block; margin-top: 22px; }

  .academy-grid { grid-template-columns: 1fr; gap: 20px; }
  .vip-card { grid-row: 1; }
  .free-card { padding: 28px; }
  .free-card h3, .vip-card h3 { font-size: 30px; }
  .vip-body { padding: 28px; }
  .vip-art { height: 195px; }
  .vip-body .button { font-size: 13px; padding: 16px; }
  .free-card p, .vip-body p { font-size: 15px; }
  .free-card ul { padding-bottom: 22px; }

  .learn-section { margin-top: 64px; padding: 55px 0; }
  .lessons { grid-template-columns: 1fr; gap: 18px; }
  .lesson h3 { font-size: 28px; margin: 25px 0; }
  .lesson-detail { min-height: 0; }

  .about { grid-template-columns: 1fr; gap: 32px; padding-bottom: 60px; }
  .about-image { height: 450px; }
  .about-copy p { font-size: 15px; }
  blockquote { font-size: 22px; }

  .business { margin: 0 23px; padding: 30px 0; flex-direction: column; align-items: flex-start; gap: 24px; }
  .business h2 { font-size: 24px; }
  .business p { font-size: 14px; }

  .closing { padding-top: 65px; padding-bottom: 65px; }
  .closing h2 { font-size: 35px; letter-spacing: -1px; }
  .closing .hero-actions { flex-direction: column; gap: 20px; }

  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 25px; }
  .footer-top > p { grid-column: 1; grid-row: 2; font-size: 13px; }
  .footer-top > div { grid-column: 2; grid-row: 1 / span 2; font-size: 13px; }
  .footer-bottom { gap: 16px; font-size: 12px; flex-wrap: wrap; }
  footer { padding-bottom: 100px; }

  .mobile-cta {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    align-items: center; justify-content: space-between;
    padding: 13px 23px calc(13px + env(safe-area-inset-bottom));
    background: #101725f5;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #b7c0d7; font-size: 13px;
  }
  .mobile-cta a { color: white; font-weight: 600; }
  .desktop { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
