:root {
  --ink: #111111;
  --muted: #66625d;
  --line: #d8d2ca;
  --paper: #f4f0e8;
  --white: #fffaf2;
  --black: #080808;
  --accent: #ff6b1a;
  --accent-dark: #bf4210;
  --sand: #e7dfd2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(8, 8, 8, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 8, 8, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 22px;
  width: 100%;
  padding: 16px clamp(18px, 5vw, 72px);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 250, 242, 0.26);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(244, 240, 232, 0.95);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  background: var(--white);
  border: 1px solid rgba(255, 250, 242, 0.7);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  font-size: 13px;
  font-weight: 900;
}

.main-nav a {
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid currentColor;
  border-radius: 0;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.nav-cta,
.button.primary {
  color: var(--white);
  background: var(--black);
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 250, 242, 0.82);
  background: transparent;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 92vh;
  padding: 132px clamp(20px, 6vw, 96px) 64px;
  color: var(--white);
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=85");
  background-position: center;
  background-size: cover;
  filter: saturate(0.85) contrast(1.08);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.88), rgba(8, 8, 8, 0.62) 42%, rgba(8, 8, 8, 0.16)),
    linear-gradient(0deg, rgba(8, 8, 8, 0.76), rgba(8, 8, 8, 0.02) 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  max-width: 1220px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  font-size: clamp(52px, 10vw, 142px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  grid-column: 2;
  margin: 0;
  padding-top: 22px;
  border-top: 5px solid var(--accent);
  color: rgba(255, 250, 242, 0.9);
  font-size: 18px;
  font-weight: 700;
}

.hero-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.metrics div {
  min-height: 126px;
  padding: 24px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.metrics strong {
  display: block;
  color: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 900;
}

.keyword-strip {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 26px auto 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.keyword-strip p {
  margin: 0;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.keyword-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.keyword-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 900;
}

.section,
.split-section,
.feature-grid,
.contact-band {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 92px 0 34px;
}

.intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.section-heading h2,
.split-copy h2,
.contact-band h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  font-size: clamp(34px, 5vw, 70px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.intro > p,
.split-copy p,
.contact-band p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 0;
  padding: 42px 0 70px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-card {
  min-height: 500px;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  overflow: hidden;
}

.feature-card.large {
  grid-row: span 2;
}

.feature-card img {
  height: 58%;
  filter: saturate(0.88) contrast(1.04);
}

.feature-card.large img {
  height: 68%;
}

.feature-card div {
  padding: clamp(22px, 3vw, 34px);
}

.feature-card span,
.course-list span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-card h3,
.course-list h3,
.blog-grid h3 {
  margin: 8px 0 10px;
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  font-size: 28px;
  line-height: 1.08;
}

.feature-card.large h3 {
  font-size: clamp(34px, 4.8vw, 62px);
}

.feature-card p,
.course-list p {
  margin: 0;
  color: var(--muted);
}

.courses {
  padding-top: 76px;
}

.course-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 30px;
  border-right: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
}

.course-list article {
  min-height: 280px;
  padding: 30px;
  color: var(--white);
  background: var(--black);
  border-top: 1px solid var(--black);
  border-left: 1px solid var(--black);
}

.course-list article:nth-child(2) {
  color: var(--ink);
  background: var(--accent);
}

.course-list article:nth-child(3) {
  color: var(--ink);
  background: var(--sand);
}

.course-list p {
  color: currentColor;
  opacity: 0.72;
}

.course-list span {
  color: currentColor;
  opacity: 0.68;
}

.split-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: stretch;
  padding: 76px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-image {
  min-height: 590px;
  overflow: hidden;
}

.split-image img {
  filter: grayscale(0.15) contrast(1.04);
}

.split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0;
}

.split-copy ul {
  display: grid;
  gap: 0;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.split-copy li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 900;
}

.blog {
  padding-top: 76px;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
  gap: 0;
  margin-top: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.blog-grid article {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  overflow: hidden;
}

.blog-grid article:first-child {
  grid-row: span 2;
}

.blog-grid img {
  height: 230px;
}

.blog-grid article:first-child img {
  height: 420px;
}

.blog-grid div {
  padding: 24px;
}

.blog-grid time {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.blog-grid h3 {
  font-size: 24px;
}

.blog-grid article:first-child h3 {
  font-size: clamp(30px, 3.5vw, 48px);
}

.about-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 86px);
  padding-top: 82px;
  border-top: 1px solid var(--line);
}

.about-copy {
  display: grid;
  gap: 18px;
  padding-top: 8px;
}

.about-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.contact-band {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 44px;
  align-items: center;
  margin-top: 78px;
  padding: clamp(34px, 5vw, 62px);
  color: var(--white);
  background: var(--black);
  border-top: 8px solid var(--accent);
}

.contact-band .eyebrow {
  color: var(--accent);
}

.contact-band p {
  color: rgba(255, 250, 242, 0.76);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

.contact-form label:nth-child(3),
.contact-form button {
  grid-column: span 2;
}

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(255, 250, 242, 0.34);
  border-radius: 0;
  color: var(--white);
  background: rgba(255, 250, 242, 0.08);
  font: inherit;
}

.contact-form input::placeholder {
  color: rgba(255, 250, 242, 0.62);
}

.contact-form select option {
  color: var(--ink);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-weight: 900;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav,
  .nav-cta {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .site-header.is-open .main-nav {
    position: absolute;
    top: 74px;
    left: 18px;
    right: 18px;
    display: grid;
    gap: 0;
    padding: 8px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
  }

  .site-header.is-open .main-nav a {
    padding: 13px 12px;
  }

  .hero {
    min-height: 88vh;
    padding: 118px 20px 58px;
  }

  .hero-content,
  .metrics,
  .keyword-strip,
  .intro,
  .feature-grid,
  .course-list,
  .split-section,
  .blog-grid,
  .about-section,
  .contact-band,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-actions {
    grid-column: auto;
  }

  .feature-card,
  .feature-card.large {
    min-height: auto;
    grid-row: auto;
  }

  .feature-card img,
  .feature-card.large img {
    height: 300px;
  }

  .blog-grid article:first-child {
    grid-row: auto;
  }

  .blog-grid article:first-child img,
  .blog-grid img {
    height: 260px;
  }

  .split-image {
    min-height: 360px;
  }

  .contact-form label:nth-child(3),
  .contact-form button {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .brand {
    font-size: 15px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .section,
  .split-section,
  .feature-grid,
  .contact-band,
  .site-footer,
  .keyword-strip,
  .metrics {
    width: calc(100% - 32px);
  }

  .section {
    padding-top: 66px;
  }

  .feature-card div,
  .course-list article,
  .blog-grid div {
    padding: 22px;
  }

  .site-footer {
    display: grid;
  }
}

/* ============================================================
   Course List / Course Detail Pages
   ============================================================ */
.page-main {
  padding-top: 88px;
}

.page-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0 44px;
  border-bottom: 1px solid var(--line);
}

.page-hero.small h1,
.course-detail-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 900;
  line-height: 0.95;
}

.page-hero p:last-child,
.course-detail-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.course-page-section {
  padding-top: 38px;
}

.course-filter {
  display: grid;
  grid-template-columns: 1fr 220px auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 28px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
}

.course-filter label {
  display: grid;
  gap: 6px;
  font-weight: 900;
}

.course-filter input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
}

.course-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.course-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}

.course-card-image {
  display: block;
  height: 210px;
  background: var(--black);
}

.course-image-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 28px;
  color: var(--white);
  background: var(--black);
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
}

.course-image-fallback.large {
  min-height: 430px;
}

.course-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.course-meta {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.course-card h2 {
  margin: 10px 0;
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  font-size: 28px;
  line-height: 1.08;
}

.course-card p {
  margin: 0;
  color: var(--muted);
}

.course-info-list {
  display: grid;
  gap: 7px;
  margin: 18px 0 22px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  list-style: none;
  font-size: 14px;
}

.ghost-dark {
  margin-top: auto;
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 48px;
  background: var(--white);
  border: 1px solid var(--line);
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 10px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.pager {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
  font-weight: 900;
}

.pager a,
.pager span {
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--line);
}

.course-detail-hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 82px 0 58px;
  border-bottom: 1px solid var(--line);
}

.course-detail-image {
  min-height: 430px;
  background: var(--black);
  overflow: hidden;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.course-detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
  padding-top: 42px;
}

.course-content-box,
.course-side-box {
  background: var(--white);
  border: 1px solid var(--line);
}

.course-content-box {
  padding: clamp(26px, 4vw, 44px);
}

.course-content-box h2,
.course-side-box h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  font-size: 36px;
  line-height: 1.05;
}

.course-content-box p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.course-side-box {
  position: sticky;
  top: 108px;
  padding: 26px;
}

.course-side-box dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.course-side-box dt {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.course-side-box dd {
  margin: 0;
  padding: 6px 0 14px;
  color: var(--ink);
  font-weight: 900;
}

.extra-info {
  margin-top: 0;
  padding-top: clamp(26px, 4vw, 44px);
}

@media (max-width: 980px) {
  .course-filter,
  .course-card-grid,
  .course-detail-hero,
  .course-detail-layout {
    grid-template-columns: 1fr;
  }

  .course-side-box {
    position: static;
  }
}

@media (max-width: 620px) {
  .page-hero,
  .course-detail-hero {
    width: calc(100% - 32px);
    padding-top: 58px;
  }

  .course-filter {
    padding: 18px;
  }

  .course-card-image,
  .course-detail-image {
    min-height: 240px;
    height: 240px;
  }
}

/* ??????????{???? */
.course-carousel {
  position: relative;
  margin-top: 28px;
}

.course-carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.course-carousel-track {
  display: flex !important;
  gap: 24px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.course-carousel-track article {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
}

.course-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 10px 28px rgba(23, 32, 51, .16);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: .2s ease;
}

.course-carousel-btn:hover {
  background: #1f6feb;
  color: #ffffff;
}

.course-carousel-btn.prev {
  left: -18px;
}

.course-carousel-btn.next {
  right: -18px;
}

.course-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.course-carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
}

.course-carousel-dots button.is-active {
  width: 28px;
  background: #1f6feb;
}

@media (max-width: 900px) {
  .course-carousel-track article {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}

@media (max-width: 640px) {
  .course-carousel-track {
    gap: 16px;
  }

  .course-carousel-track article {
    flex: 0 0 100%;
  }

  .course-carousel-btn.prev {
    left: 6px;
  }

  .course-carousel-btn.next {
    right: 6px;
  }
}

        /* Button Style */
        .btn-primary {
            background: #06C755;
            color: white;
            transition: all 0.3s;
            box-shadow: 0 4px 14px 0 rgba(6, 199, 85, 0.39);
        }
        .btn-primary:hover {
            background: #05b34c;
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(6, 199, 85, 0.23);
        }

/* ============================================================
   好文分享分類 Tab
   ============================================================ */

.blog-category-wrap {
  margin: 0 0 26px;
  padding: 20px 22px;
  background: #ffffff;
  border: 1px solid #e7edf6;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(23, 32, 51, .06);
}

.blog-category-title {
  margin-bottom: 14px;
  color: #667085;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
}

.blog-category-title span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.blog-category-title span::before {
  content: "";
  width: 24px;
  height: 2px;
  background: #ff8a00;
  border-radius: 99px;
}

.blog-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.blog-category-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #dce6f2;
  border-radius: 999px;
  background: #fff;
  color: #172033;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  transition: .2s ease;
}

.blog-category-tab:hover {
  color: #1f6feb;
  border-color: #1f6feb;
  transform: translateY(-2px);
}

.blog-category-tab.active {
  color: #fff;
  border-color: #1f6feb;
  background: linear-gradient(135deg, #1f6feb, #28a0ff);
  box-shadow: 0 12px 24px rgba(31, 111, 235, .22);
}

.blog-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 30px;
  color: #667085;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
}

.blog-breadcrumb a {
  color: #1f6feb;
  text-decoration: none;
}

.blog-breadcrumb a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .blog-category-wrap {
    padding: 16px;
    border-radius: 18px;
  }

  .blog-category-tabs {
    gap: 10px;
  }

  .blog-category-tab {
    flex: 1 1 calc(50% - 10px);
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
  }

  .blog-breadcrumb {
    font-size: 14px;
    margin-bottom: 22px;
  }
}

/* ============================================================
           好文詳細頁：列表頁風格版
============================================================ */

        .blog-detail-page {
            max-width: 1180px;
            margin: 0 auto;
            padding: 56px 24px 88px;
        }

        .blog-detail-breadcrumb {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
            margin-bottom: 24px;
            color: #667085;
            font-size: 15px;
            font-weight: 800;
            line-height: 1.6;
        }

        .blog-detail-breadcrumb a {
            color: #1f6feb;
            text-decoration: none;
        }

        .blog-detail-breadcrumb a:hover {
            text-decoration: underline;
        }

        .blog-detail-card {
            overflow: hidden;
            background: #fff;
            border: 1px solid #e7edf6;
            border-radius: 28px;
            box-shadow: 0 18px 45px rgba(23, 32, 51, .09);
        }

        .blog-detail-hero {
            display: grid;
            grid-template-columns: 420px minmax(0, 1fr);
            gap: 0;
            background: linear-gradient(135deg, #f8fbff, #fff7ed);
        }

        .blog-detail-cover {
            min-height: 320px;
            background: #eef4ff;
            overflow: hidden;
        }

        .blog-detail-cover img {
            width: 100%;
            height: 100%;
            min-height: 320px;
            object-fit: cover;
            display: block;
        }

        .blog-detail-head {
            padding: 42px 46px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .blog-detail-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 18px;
        }

        .blog-detail-meta span,
        .blog-detail-meta time {
            display: inline-flex;
            align-items: center;
            min-height: 34px;
            padding: 0 13px;
            border-radius: 999px;
            background: #eff6ff;
            color: #1557c0;
            font-size: 14px;
            font-weight: 900;
        }

        .blog-detail-head h1 {
            margin: 0 0 18px;
            color: #172033;
            font-size: clamp(30px, 5vw, 48px);
            line-height: 1.18;
            letter-spacing: -0.04em;
        }

        .blog-author-extra {
            color: #667085;
            font-size: 15px;
            line-height: 1.8;
            word-break: break-word;
        }

        .blog-author-extra a {
            color: #1f6feb;
            text-decoration: none;
            word-break: break-all;
        }

        .blog-detail-body {
            padding: 42px 46px 48px;
        }

        .blog-content {
            color: #405064;
            font-size: 18px;
            line-height: 2;
            word-break: break-word;
            overflow-wrap: anywhere;
        }

        .blog-content img,
        .blog-content iframe,
        .blog-content table {
            max-width: 100%;
        }

        .blog-content img {
            height: auto;
            border-radius: 16px;
        }

        .blog-content p {
            margin: 0 0 1.15em;
        }

        .blog-download-box,
        .blog-point-box {
            margin-top: 28px;
            padding: 18px 20px;
            border: 1px solid #e7edf6;
            border-radius: 18px;
            background: #f8fbff;
            color: #405064;
            font-size: 16px;
            line-height: 1.7;
        }

        .blog-download-box a,
        .blog-point-box a {
            color: #1f6feb;
            font-weight: 900;
            text-decoration: none;
        }

        .blog-download-box img,
        .blog-point-box img {
            max-width: 130px;
            height: auto;
            vertical-align: middle;
            margin-right: 10px;
        }

        .blog-download-form {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
        }

        .blog-download-form input[type="password"] {
            min-height: 42px;
            padding: 8px 12px;
            border: 1px solid #cfd8e3;
            border-radius: 10px;
        }

        .blog-download-form input[type="submit"] {
            min-height: 42px;
            padding: 9px 18px;
            border: 0;
            border-radius: 999px;
            background: #1f6feb;
            color: #fff;
            font-weight: 900;
            cursor: pointer;
        }

        .blog-prev-next {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 18px;
            margin-top: 28px;
        }

        .blog-nav-card {
            min-height: 116px;
            padding: 22px;
            border: 1px solid #e7edf6;
            border-radius: 22px;
            background: #fff;
            box-shadow: 0 10px 28px rgba(23, 32, 51, .06);
            text-decoration: none;
            transition: .2s ease;
        }

        .blog-nav-card:hover {
            transform: translateY(-3px);
            border-color: #1f6feb;
            box-shadow: 0 14px 32px rgba(31, 111, 235, .12);
        }

        .blog-nav-card small {
            display: block;
            margin-bottom: 8px;
            color: #667085;
            font-size: 13px;
            font-weight: 900;
        }

        .blog-nav-card strong {
            display: block;
            color: #172033;
            font-size: 17px;
            line-height: 1.55;
            word-break: break-word;
        }

        .blog-nav-card.disabled {
            opacity: .45;
            pointer-events: none;
        }

        .recommend-heading {
            display: flex;
            align-items: end;
            justify-content: space-between;
            gap: 16px;
            margin: 58px 0 24px;
        }

        .recommend-heading h2 {
            margin: 0;
            color: #172033;
            font-size: 32px;
            letter-spacing: -0.03em;
        }

        .recommend-heading a {
            color: #1f6feb;
            font-weight: 900;
            text-decoration: none;
        }

        .blog-recommend-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 24px;
        }

        @media (max-width: 960px) {
            .blog-detail-hero {
                grid-template-columns: 1fr;
            }

            .blog-detail-cover,
            .blog-detail-cover img {
                min-height: auto;
            }

            .blog-detail-cover {
                aspect-ratio: 16 / 9;
            }

            .blog-detail-cover img {
                height: 100%;
            }

            .blog-recommend-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 720px) {
            .blog-detail-page {
                padding: 34px 16px 68px;
            }

            .blog-detail-card {
                border-radius: 22px;
            }

            .blog-detail-head,
            .blog-detail-body {
                padding: 24px 20px 28px;
            }

            .blog-content {
                font-size: 16px;
                line-height: 1.9;
            }

            .blog-prev-next {
                grid-template-columns: 1fr;
            }

            .blog-recommend-grid {
                grid-template-columns: 1fr;
                gap: 18px;
            }

            .recommend-heading {
                display: block;
                margin-top: 42px;
            }

            .recommend-heading h2 {
                font-size: 26px;
                margin-bottom: 10px;
            }

            .blog-download-form {
                display: block;
            }

            .blog-download-form input[type="password"],
            .blog-download-form input[type="submit"] {
                width: 100%;
                margin-top: 8px;
            }
        }

		/* ============================================================
   Header / 主選單完整修正版
   解決：白底白字、手機選單、預約諮詢按鈕、contact form input submit
   貼到 styles.css 最下面
   ============================================================ */

/* 桌機與一般頁面 Header：固定白底深色字 */
.site-header,
.site-header.is-scrolled,
.site-header.is-open {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 22px;
  width: 100%;
  padding: 16px clamp(18px, 5vw, 72px);
  color: #172033 !important;
  background: rgba(244, 240, 232, 0.96) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
}

/* Logo / 品牌文字 */
.site-header .brand,
.site-header .brand span,
.site-header.is-scrolled .brand,
.site-header.is-scrolled .brand span,
.site-header.is-open .brand,
.site-header.is-open .brand span {
  color: #172033 !important;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
  text-decoration: none;
}

.site-header .brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  background: #fffaf2;
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.site-header .brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 主選單 */
.site-header .main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  font-size: 13px;
  font-weight: 900;
}

.site-header .main-nav a,
.site-header.is-scrolled .main-nav a,
.site-header.is-open .main-nav a {
  position: relative;
  color: #172033 !important;
  text-decoration: none;
  padding-bottom: 4px;
}

.site-header .main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #ff6b1a;
  transition: width 0.2s ease;
}

.site-header .main-nav a:hover {
  color: #1f6feb !important;
}

.site-header .main-nav a:hover::after {
  width: 100%;
}

/* 漢堡按鈕 */
.site-header .menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #172033 !important;
  color: #172033 !important;
  background: transparent !important;
  cursor: pointer;
}

.site-header .menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #172033 !important;
}

/* 頁面上方預留 header 高度 */
.page-main {
  padding-top: 88px;
}

/* ============================================================
   手機版主選單
   ============================================================ */

@media (max-width: 980px) {
  .site-header,
  .site-header.is-scrolled,
  .site-header.is-open {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 12px 18px;
  }

  .site-header .brand {
    min-width: 0;
    font-size: 15px;
  }

  .site-header .brand span:last-child {
    white-space: normal;
    line-height: 1.25;
  }

  .site-header .brand-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .site-header .main-nav,
  .site-header .nav-cta {
    display: none;
  }

  .site-header .menu-button {
    display: block !important;
  }

  .site-header.is-open .main-nav,
  .site-header .main-nav.is-open {
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    z-index: 10000;
    display: grid !important;
    gap: 0;
    padding: 8px;
    color: #172033 !important;
    background: #fffaf2 !important;
    border: 1px solid #d8d2ca !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
  }

  .site-header.is-open .main-nav a,
  .site-header .main-nav.is-open a {
    display: block;
    padding: 13px 12px;
    color: #172033 !important;
    border-bottom: 1px solid #e7dfd2;
  }

  .site-header.is-open .main-nav a:last-child,
  .site-header .main-nav.is-open a:last-child {
    border-bottom: none;
  }

  .site-header.is-open .main-nav a:hover,
  .site-header .main-nav.is-open a:hover {
    color: #1f6feb !important;
  }

  .site-header.is-open .main-nav a::after,
  .site-header .main-nav.is-open a::after {
    display: none;
  }

  .page-main {
    padding-top: 76px;
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-header.is-scrolled,
  .site-header.is-open {
    padding: 10px 14px;
  }

  .site-header .brand {
    font-size: 14px;
  }

  .site-header .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .site-header .menu-button {
    width: 42px;
    height: 42px;
  }

  .site-header.is-open .main-nav,
  .site-header .main-nav.is-open {
    left: 12px;
    right: 12px;
  }
}

/* ============================================================
   首頁 Hero 若仍想要透明白字 Header，可手動加 body class
   用法：<body class="home-transparent-header">
   ============================================================ */

body.home-transparent-header .site-header:not(.is-scrolled):not(.is-open) {
  color: #fffaf2 !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 250, 242, 0.26) !important;
  box-shadow: none;
  backdrop-filter: none;
}

body.home-transparent-header .site-header:not(.is-scrolled):not(.is-open) .brand,
body.home-transparent-header .site-header:not(.is-scrolled):not(.is-open) .brand span,
body.home-transparent-header .site-header:not(.is-scrolled):not(.is-open) .main-nav a {
  color: #fffaf2 !important;
}

body.home-transparent-header .site-header:not(.is-scrolled):not(.is-open) .menu-button {
  color: #fffaf2 !important;
  border-color: #fffaf2 !important;
}

body.home-transparent-header .site-header:not(.is-scrolled):not(.is-open) .menu-button span {
  background: #fffaf2 !important;
}

/* ============================================================
   Contact Form 送出按鈕修正
   因為你的按鈕是 input[type="submit"]，不是 button
   ============================================================ */

.contact-form label:nth-child(3),
.contact-form button,
.contact-form input[type="submit"],
.contact-form .Button {
  grid-column: span 2;
}

.contact-form input[type="submit"],
.contact-form .Button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid #fffaf2;
  border-radius: 0;
  color: #080808 !important;
  background: #fffaf2 !important;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
}

.contact-form input[type="submit"]:hover,
.contact-form .Button:hover {
  color: #ffffff !important;
  background: #ff6b1a !important;
  border-color: #ff6b1a !important;
}

@media (max-width: 980px) {
  .contact-form label:nth-child(3),
  .contact-form button,
  .contact-form input[type="submit"],
  .contact-form .Button {
    grid-column: auto;
  }
}