/*
Theme Name: Ng Yan Chak · Practising Accountant
Theme URI: https://ng-iva.com/
Author: Ng Yan Chak CPA Project
Author URI: https://ng-iva.com/
Description: 吳欣澤執業會計師個人品牌主題。深海軍藍、象牙白與少量香檳金的編輯式設計，適用於執業會計師、IVA 代名人及專業服務品牌網站。原生 WordPress 主題結構，響應式，無外部框架依賴。
Version: 1.0.6
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ng-iva
Tags: professional-services, one-column, custom-menu, custom-logo, featured-images, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   0. 設計變數 Design tokens
   ========================================================================== */
:root {
  /* 色彩 */
  --navy: #0b1f36;
  --navy-deep: #071527;
  --navy-soft: #16334f;
  --navy-line: rgba(255, 255, 255, 0.14);
  --teal: #2c8f8a;
  --teal-bright: #46afa8;
  --teal-pale: #e7f2f0;
  --gold: #b4934f;
  --gold-soft: #d8c39a;
  --gold-line: rgba(180, 147, 79, 0.38);
  --ivory: #f7f4ec;
  --ivory-deep: #efeae0;
  --white: #ffffff;
  --ink: #16202b;
  --ink-soft: #3b4a59;
  --muted: #5e6b78;
  --line: #e2dcd0;
  --line-soft: #eee9df;

  /* 字體 */
  --serif: "Noto Serif TC", "Source Han Serif TC", "Songti TC", "Times New Roman", serif;
  --sans: "Noto Sans TC", "Source Han Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --latin: "Cormorant Garamond", "Times New Roman", serif;

  /* 尺度 */
  --container: 1200px;
  --container-narrow: 820px;
  --gutter: 32px;
  --radius: 2px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 54, 0.05), 0 8px 24px rgba(11, 31, 54, 0.05);
  --shadow-md: 0 2px 4px rgba(11, 31, 54, 0.04), 0 18px 48px rgba(11, 31, 54, 0.09);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   1. 基礎重設 Reset & base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover {
  color: var(--teal);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.32;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  line-height: 1.22;
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
}

h3 {
  font-size: clamp(1.22rem, 1.8vw, 1.5rem);
}

h4 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1.15em;
}

ul,
ol {
  margin: 0 0 1.3em;
  padding-left: 1.35em;
}

li {
  margin-bottom: 0.55em;
}

blockquote {
  margin: 2em 0;
  padding: 0.2em 0 0.2em 1.6em;
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--navy-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.8em;
  font-size: 0.95rem;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--ivory);
  font-family: var(--sans);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3em 0;
}

::selection {
  background: rgba(44, 143, 138, 0.18);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link:focus {
  background: var(--white);
  color: var(--navy);
  clip: auto;
  clip-path: none;
  display: block;
  font-size: 0.9rem;
  height: auto;
  left: 16px;
  padding: 12px 20px;
  top: 16px;
  width: auto;
  z-index: 100000;
}

/* ==========================================================================
   2. 版面 Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: clamp(64px, 8vw, 116px) 0;
  position: relative;
}

.section--ivory {
  background: var(--ivory);
}

.section--deep {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
}

.section--deep h2,
.section--deep h3,
.section--deep h4 {
  color: var(--white);
}

.section--tight {
  padding: clamp(44px, 5vw, 72px) 0;
}

.section--flush {
  padding-top: 0;
}

/* 區塊標題 */
.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 4vw, 60px);
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head--wide {
  max-width: 900px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
  font-family: var(--sans);
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.section-head--center .eyebrow::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.section-title {
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.section-lead {
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.95;
  max-width: 68ch;
  margin-bottom: 0;
}

.section--deep .section-lead {
  color: rgba(255, 255, 255, 0.72);
}

.section--deep .eyebrow {
  color: var(--gold-soft);
}

/* ==========================================================================
   3. 按鈕 Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-align: center;
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn--primary:hover {
  background: var(--navy-soft);
  border-color: var(--navy-soft);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(11, 31, 54, 0.22);
}

.btn--gold {
  background: transparent;
  color: var(--navy);
  border-color: var(--gold);
}

.btn--gold:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn--light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn--light:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--navy);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
}

.btn--outline-light:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn--sm {
  padding: 11px 20px;
  font-size: 0.84rem;
}

.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--navy);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.link-arrow:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* ==========================================================================
   4. 頁首 Header
   ========================================================================== */
.topbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 40px;
  padding: 6px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

.topbar__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar__note .dot {
  width: 5px;
  height: 5px;
  background: var(--teal-bright);
  border-radius: 50%;
  display: inline-block;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar a {
  color: rgba(255, 255, 255, 0.78);
}

.topbar a:hover {
  color: var(--gold-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 6px 28px rgba(11, 31, 54, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 86px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  min-width: 0;
}

.brand__logo {
  height: 46px;
  width: auto;
  max-width: 220px;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: left center;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-family: var(--serif);
  font-size: 1.24rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.brand__sub {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
}

.nav {
  margin-left: auto;
  flex: 0 1 auto;
  min-width: 0;
}

.nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

/* 有下拉的項目加一個小箭頭，滑鼠移入即可展開 */
.nav__menu > .menu-item-has-children > a {
  padding-right: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23b4934f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 8px 5px;
}

.nav__menu > li {
  position: relative;
  margin: 0;
}

.nav__menu > li > a {
  display: block;
  padding: 12px 13px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--navy);
  white-space: nowrap;
}

.nav__menu > li > a::after {
  content: "";
  display: block;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.3s var(--ease);
  margin-top: 4px;
}

.nav__menu > li:hover > a::after,
.nav__menu > .current-menu-item > a::after,
.nav__menu > .current-menu-parent > a::after,
.nav__menu > .current_page_parent > a::after,
.nav__menu > .current_page_ancestor > a::after {
  width: 100%;
}

.nav__menu > .current-menu-item > a,
.nav__menu > .current_page_item > a {
  color: var(--teal);
}

/* 下拉 */
.nav__menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 248px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
  list-style: none;
  margin: 0;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.28s var(--ease);
  z-index: 20;
}

.nav__menu li:hover > .sub-menu,
.nav__menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__menu .sub-menu li {
  margin: 0;
}

.nav__menu .sub-menu a {
  display: block;
  padding: 10px 22px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

.nav__menu .sub-menu a:hover {
  background: var(--ivory);
  color: var(--navy);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header__phone {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.3;
  text-align: right;
}

.header__phone span {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.header__phone strong {
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--navy);
  letter-spacing: 0.04em;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* 手機抽屜 */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: var(--navy);
  color: var(--white);
  padding: 26px 26px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.42s var(--ease);
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.mobile-nav__close {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.mobile-nav ul li {
  border-bottom: 1px solid var(--navy-line);
  margin: 0;
}

.mobile-nav ul a {
  display: block;
  padding: 16px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
  letter-spacing: 0.06em;
}

.mobile-nav .sub-menu {
  padding-left: 16px;
  border-top: 1px solid var(--navy-line);
  margin: 0;
  display: none;
}

.mobile-nav .sub-menu .sub-menu {
  border-top: 0;
}

.mobile-nav .sub-menu a {
  font-size: 0.9rem;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.66);
}

.mobile-nav__contact {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.86rem;
  line-height: 2;
}

.mobile-nav__contact a {
  color: var(--gold-soft);
}

/* ==========================================================================
   5. 首屏 Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--ivory);
  overflow: hidden;
  padding: clamp(48px, 6vw, 96px) 0 clamp(56px, 7vw, 104px);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 46%;
  height: 100%;
  background: linear-gradient(180deg, rgba(11, 31, 54, 0.04), rgba(11, 31, 54, 0));
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  margin-bottom: 26px;
}

.hero__badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(44, 143, 138, 0.14);
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 1.16;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  color: var(--navy);
}

.hero__title .accent {
  display: block;
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 20px;
}

.hero__lead {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 2;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.hero__meta-item {
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid var(--line);
}

.hero__meta-item:last-child {
  border-right: 0;
  padding-right: 0;
  margin-right: 0;
}

.hero__meta-num {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.hero__meta-num small {
  font-size: 0.9rem;
  font-family: var(--sans);
  font-weight: 500;
  margin-left: 2px;
  color: var(--gold);
}

.hero__meta-label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 6px;
}

.hero__figure {
  position: relative;
  padding: 0 0 26px 26px;
}

.hero__figure::before {
  content: "";
  position: absolute;
  inset: 26px 26px 0 0;
  border: 1px solid var(--gold-line);
  z-index: 0;
}

.hero__portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(430px, 52vw, 620px);
  object-fit: cover;
  object-position: center 12%;
  filter: saturate(1.02) contrast(1.02);
}

.hero__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  padding: 14px 22px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  line-height: 1.7;
  max-width: 78%;
}

.hero__caption strong {
  display: block;
  font-family: var(--serif);
  font-size: 0.98rem;
  color: var(--white);
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* 內頁頁首 */
.page-hero {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(52px, 6vw, 88px) 0 clamp(46px, 5vw, 76px);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(216, 195, 154, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: clamp(1.95rem, 3.6vw, 3rem);
}

.page-hero__lead {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.95;
  margin: 0;
}

.page-hero__aside {
  text-align: right;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.5);
  line-height: 2;
}

.breadcrumb {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.62);
}

.breadcrumb a:hover {
  color: var(--gold-soft);
}

.breadcrumb .sep {
  color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   6. 數據條 Stats
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stats--3 {
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  background: var(--white);
  padding: clamp(24px, 3vw, 38px) clamp(20px, 2.4vw, 32px);
}

.stat__num {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.stat__num small {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 500;
  margin-left: 3px;
}

.stat__label {
  margin-top: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.06em;
}

.stat__note {
  margin-top: 6px;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.7;
}

.section--deep .stats {
  background: var(--navy-line);
  border-color: var(--navy-line);
}

.section--deep .stat {
  background: var(--navy);
}

.section--deep .stat__num {
  color: var(--white);
}

.section--deep .stat__label {
  color: rgba(255, 255, 255, 0.92);
}

.section--deep .stat__note {
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   7. 卡片 Cards
   ========================================================================== */
.grid {
  display: grid;
  gap: 24px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(26px, 3vw, 38px);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--gold-soft);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card__index {
  font-family: var(--latin);
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}

.card__title {
  font-size: 1.16rem;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.card__title a {
  color: var(--navy);
}

.card__title a:hover {
  color: var(--teal);
}

.card__text {
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 22px;
}

.card__foot {
  margin-top: auto;
}

.card--feature {
  border-color: var(--gold-soft);
  background: linear-gradient(180deg, #fffdf7, var(--white));
}

.card--dark {
  background: var(--navy);
  border-color: var(--navy);
  color: rgba(255, 255, 255, 0.76);
}

.card--dark .card__title,
.card--dark .card__title a {
  color: var(--white);
}

.card--dark .card__text {
  color: rgba(255, 255, 255, 0.66);
}

.card--dark:hover {
  border-color: var(--gold);
}

.card__tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(44, 143, 138, 0.3);
  padding: 4px 10px;
  margin-bottom: 16px;
  align-self: flex-start;
}

/* ==========================================================================
   8. 圖文分欄 Split
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}

.split--narrow-left {
  grid-template-columns: 0.85fr 1.15fr;
}

.split__media {
  position: relative;
}

.split__media img {
  width: 100%;
  object-fit: cover;
}

.split__media--framed {
  padding: 0 24px 24px 0;
}

.split__media--framed::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 62%;
  height: 62%;
  border: 1px solid var(--gold-line);
  z-index: 0;
  pointer-events: none;
}

.split__media--framed img {
  position: relative;
  z-index: 1;
}

.split__quote {
  border-left: 2px solid var(--gold);
  padding-left: 24px;
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.9;
  color: var(--navy);
  margin: 26px 0;
}

.split__body > p:last-child {
  margin-bottom: 0;
}

/* 清單 */
.list-check {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.list-check li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 7px;
  border-left: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}

.list-check--light li {
  color: rgba(255, 255, 255, 0.78);
}

/* ==========================================================================
   9. 資格 / 經歷 Credentials
   ========================================================================== */
.cred {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cred__item {
  background: var(--white);
  padding: clamp(24px, 2.6vw, 34px);
}

.cred__label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  display: block;
}

.cred__value {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.cred__note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.7;
}

/* 時間軸 */
.timeline {
  position: relative;
  padding-left: 28px;
  margin: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.timeline li {
  position: relative;
  padding-bottom: 30px;
  margin: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--gold);
}

.timeline__year {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.timeline__title {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.timeline__text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

/* ==========================================================================
   10. 流程 Process
   ========================================================================== */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.process--5 {
  grid-template-columns: repeat(5, 1fr);
}

.step {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--gold);
}

.step__num {
  font-family: var(--latin);
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}

.step__title {
  font-family: var(--serif);
  font-size: 1.04rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.step__text {
  font-size: 0.86rem;
  line-height: 1.85;
  color: var(--muted);
  margin: 0;
}

.section--deep .step {
  border-color: var(--navy-line);
}

.section--deep .step__title {
  color: var(--white);
}

.section--deep .step__text {
  color: rgba(255, 255, 255, 0.62);
}

/* ==========================================================================
   11. 比較表 Compare
   ========================================================================== */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--white);
}

.compare {
  min-width: 720px;
  margin: 0;
  border: 0;
}

.compare th {
  background: var(--navy);
  color: var(--white);
  font-weight: 500;
  letter-spacing: 0.08em;
  border: 0;
}

.compare td {
  font-size: 0.9rem;
}

.compare tbody tr:nth-child(even) {
  background: #fbfaf7;
}

.compare td:first-child,
.compare th:first-child {
  font-weight: 600;
  color: var(--navy);
  width: 24%;
}

.compare th:first-child {
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   12. 文章列表 Posts
   ========================================================================== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.post-card {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  transition: border-color 0.3s var(--ease);
}

.post-card:hover {
  border-bottom-color: var(--gold);
}

.post-card__thumb {
  display: block;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--ivory);
  aspect-ratio: 16 / 10;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.post-card:hover .post-card__thumb img {
  transform: scale(1.04);
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.post-card__cat {
  color: var(--teal);
  font-weight: 600;
}

.post-card__title {
  font-family: var(--serif);
  font-size: 1.14rem;
  line-height: 1.55;
  margin: 0 0 12px;
}

.post-card__title a {
  color: var(--navy);
}

.post-card__title a:hover {
  color: var(--teal);
}

.post-card__excerpt {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 0 16px;
}

.post-card__more {
  margin-top: auto;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--navy);
  font-weight: 600;
}

.post-card__more::after {
  content: " →";
}

/* 媒體卡片 */
.media-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: all 0.3s var(--ease);
}

.media-card:hover {
  border-color: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.media-card__badge {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 9px;
  border: 1px solid rgba(44, 143, 138, 0.32);
  color: var(--teal);
  height: fit-content;
  white-space: nowrap;
}

.media-card__badge--gold {
  border-color: var(--gold-line);
  color: var(--gold);
}

.media-card__source {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.media-card__title {
  font-family: var(--serif);
  font-size: 1.06rem;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.6;
}

.media-card__text {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

/* ==========================================================================
   13. 個案 Case
   ========================================================================== */
.case-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(28px, 3.4vw, 44px);
}

.case-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 26px;
}

.case-card__label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.case-card__title {
  font-family: var(--serif);
  font-size: 1.28rem;
  color: var(--navy);
  margin: 0;
}

.case-data {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.case-data__item {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.case-data__item:first-child {
  border-left: 0;
  padding-left: 0;
}

.case-data__label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.case-data__value {
  font-family: var(--serif);
  font-size: 1.24rem;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.case-before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  background: var(--ivory);
  padding: 28px;
  margin-bottom: 26px;
}

.ba__box {
  text-align: center;
}

.ba__label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.ba__amount {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--navy);
  font-weight: 600;
  line-height: 1;
}

.ba__amount small {
  font-size: 0.72rem;
  font-family: var(--sans);
  color: var(--muted);
  display: block;
  margin-top: 8px;
  letter-spacing: 0.06em;
  font-weight: 400;
}

.ba__arrow {
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
}

.ba__box--after .ba__amount {
  color: var(--teal);
}

.case-bank-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.case-bank-list li {
  background: var(--white);
  padding: 14px 16px;
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.case-bank-list strong {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--navy);
  margin-top: 4px;
}

.case-note {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.8;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
  margin: 0;
}

/* ==========================================================================
   14. FAQ
   ========================================================================== */
.faq {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  background: none;
  border: 0;
  padding: 24px 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.04rem;
  color: var(--navy);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.faq__q:hover {
  color: var(--teal);
}

.faq__icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 6px;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.faq__icon::before {
  left: 0;
  top: 7px;
  width: 16px;
  height: 1px;
}

.faq__icon::after {
  left: 7px;
  top: 0;
  width: 1px;
  height: 16px;
}

.faq__item.is-open .faq__icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease);
}

.faq__a-inner {
  padding: 0 40px 26px 0;
  font-size: 0.94rem;
  line-height: 1.95;
  color: var(--ink-soft);
}

.faq__a-inner p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   15. 聯絡 CTA / Contact
   ========================================================================== */
.cta-band {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(52px, 6vw, 84px) 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--navy-line);
  display: none;
}

.cta-band__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 40px;
  align-items: center;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.96rem;
  max-width: 46ch;
  line-height: 1.9;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 4vw, 60px);
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  align-items: baseline;
}

.contact-list dt,
.contact-list .label {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list .value {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.contact-list .value a {
  color: var(--navy);
}

.contact-list .value a:hover {
  color: var(--teal);
}

.contact-list .note {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.contact-panel {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: clamp(26px, 3vw, 36px);
}

.contact-panel h3 {
  font-size: 1.16rem;
  margin-bottom: 10px;
}

.contact-panel p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.9;
}

/* 表單 */
.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(44, 143, 138, 0.12);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 12px;
}

/* ==========================================================================
   16. 內文 Prose
   ========================================================================== */
.prose {
  font-size: 1rem;
  line-height: 2;
  color: var(--ink-soft);
}

.prose > h2 {
  margin-top: 2.2em;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.prose > h3 {
  margin-top: 1.9em;
  font-size: 1.2rem;
}

.prose > h2:first-child,
.prose > h3:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 1.4em;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
  margin-bottom: 1.6em;
}

.prose li {
  margin-bottom: 0.7em;
}

.prose strong {
  color: var(--navy);
  font-weight: 600;
}

.prose a {
  color: var(--teal);
  border-bottom: 1px solid rgba(44, 143, 138, 0.32);
}

.prose a:hover {
  border-bottom-color: var(--teal);
}

.prose img {
  margin: 2em 0;
}

.prose figure {
  margin: 2em 0;
}

.prose figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

.prose table {
  font-size: 0.9rem;
}

.prose .lead {
  font-size: 1.1rem;
  line-height: 1.95;
  color: var(--navy-soft);
}

.prose blockquote {
  background: var(--ivory);
  border-left: 2px solid var(--gold);
  padding: 22px 26px;
  font-size: 1.02rem;
}

/* 文章頁 */
.article-head {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 26px;
}

.article-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line);
  display: inline-block;
}

.article-body {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.article-foot {
  max-width: var(--container-narrow);
  margin: 60px auto 0;
  padding: 32px var(--gutter) 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.author-box {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
  align-items: start;
  background: var(--ivory);
  padding: 24px;
}

.author-box img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
}

.author-box__name {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.author-box__role {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 10px;
}

.author-box__text {
  font-size: 0.86rem;
  line-height: 1.85;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   17. 分頁 / 導覽
   ========================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.post-nav a {
  display: block;
  padding: 20px 24px;
  border: 1px solid var(--line);
  transition: all 0.3s var(--ease);
}

.post-nav a:hover {
  border-color: var(--gold-soft);
  background: var(--ivory);
}

.post-nav .dir {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.post-nav .title {
  font-family: var(--serif);
  font-size: 0.98rem;
  color: var(--navy);
}

/* ==========================================================================
   18. 頁尾 Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.6);
  padding: clamp(56px, 6vw, 84px) 0 0;
  font-size: 0.88rem;
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.footer__brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.footer__brand-name {
  font-family: var(--serif);
  font-size: 1.14rem;
  color: var(--white);
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.footer__brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-top: 3px;
}

.footer__desc {
  font-size: 0.84rem;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.55);
  max-width: 34ch;
  margin-bottom: 0;
}

.footer__col h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__col li {
  margin-bottom: 11px;
}

.footer__col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.footer__col a:hover {
  color: var(--gold-soft);
}

.footer__contact li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.footer__contact .k {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.footer__contact .v {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.footer__contact .v a {
  color: rgba(255, 255, 255, 0.82);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.04em;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.5);
}

.footer__legal a:hover {
  color: var(--gold-soft);
}

.footer__disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0 26px;
  font-size: 0.72rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.36);
  max-width: 110ch;
}

/* 浮動 WhatsApp */
.float-contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 880;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-contact a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(11, 31, 54, 0.28);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.float-contact a:hover {
  transform: translateY(-3px);
  background: var(--teal);
  color: var(--white);
}

.float-contact svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ==========================================================================
   19. 動畫 On-scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] {
  transition-delay: 0.08s;
}

.reveal[data-delay="2"] {
  transition-delay: 0.16s;
}

.reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   20. WordPress 核心樣式
   ========================================================================== */
.alignleft {
  float: left;
  margin: 0 28px 20px 0;
}

.alignright {
  float: right;
  margin: 0 0 20px 28px;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignwide {
  width: min(1100px, calc(100% + 60px));
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 8px;
}

.sticky .post-card__title::before {
  content: "★ ";
  color: var(--gold);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* 區塊編輯器前台對齊 */
.entry-content > * {
  max-width: 100%;
}

/* 404 */
.error-page {
  text-align: center;
  padding: clamp(70px, 10vw, 140px) 0;
}

.error-page__code {
  font-family: var(--latin);
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 1;
  color: var(--gold-soft);
  letter-spacing: 0.06em;
}

.error-page h1 {
  margin-top: 10px;
}

/* ==========================================================================
   21. 響應式 Responsive
   ========================================================================== */
@media (max-width: 1440px) {
  .nav__menu > li > a {
    padding: 12px 11px;
    font-size: 0.86rem;
  }

  .nav__menu > .menu-item-has-children > a {
    padding-right: 20px;
  }
}

@media (max-width: 1280px) {
  .brand__sub {
    display: none;
  }

  .nav__menu > li > a {
    padding: 12px 9px;
    font-size: 0.83rem;
  }
}

@media (max-width: 1180px) {
  .nav__menu > li > a {
    padding: 12px 8px;
    font-size: 0.8rem;
  }

  .header__phone {
    display: none;
  }
}

@media (max-width: 1024px) {
  :root {
    --gutter: 24px;
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero__figure {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .hero__portrait {
    height: clamp(380px, 62vw, 520px);
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .process,
  .process--5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .split--narrow-left {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cta-band__inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .page-hero__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .page-hero__aside {
    text-align: left;
  }

  .case-data {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-bank-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .topbar__links {
    display: none;
  }

  .header__inner {
    min-height: 72px;
  }

  .brand__logo {
    height: 38px;
    width: auto;
    max-width: 170px;
    flex-basis: auto;
  }

  .brand__name {
    font-size: 1.06rem;
  }

  .header__actions .btn {
    display: none;
  }

  .stats,
  .stats--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .cred {
    grid-template-columns: 1fr;
  }

  .post-grid,
  .post-grid--2 {
    grid-template-columns: 1fr;
  }

  .process,
  .process--5 {
    grid-template-columns: 1fr;
  }

  .case-data,
  .case-bank-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-before-after {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }

  .ba__arrow {
    transform: rotate(90deg);
  }

  .hero__meta {
    gap: 18px 0;
  }

  .hero__meta-item {
    padding-right: 20px;
    margin-right: 20px;
  }

  .contact-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .author-box {
    grid-template-columns: 1fr;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .float-contact {
    right: 14px;
    bottom: 14px;
  }

  .float-contact a {
    width: 46px;
    height: 46px;
  }

  .hero__caption {
    position: static;
    max-width: 100%;
    margin-top: 14px;
  }
}

@media (max-width: 420px) {
  .stats,
  .stats--3 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   22. 表單提示與補充元件
   ========================================================================== */
.form-notice {
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  line-height: 1.8;
  border-left: 2px solid var(--teal);
  background: var(--teal-pale);
  color: var(--navy);
}

.form-notice--error {
  border-left-color: #b34a3a;
  background: #fbeeeb;
  color: #7a2d22;
}

.post-card__thumb-fallback {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 55%, var(--teal) 140%);
}

.contact-form .grid--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 560px) {
  .contact-form .grid--2 {
    grid-template-columns: 1fr;
  }
}

.prose--intro {
  border-top: 1px solid var(--line);
  padding-top: clamp(30px, 3.5vw, 48px);
}

.prose--intro > p:first-child {
  font-size: 1.08rem;
  line-height: 1.95;
  color: var(--navy-soft);
}

/* 表單提示與定位（提交後跳回表單，避免被固定頁首遮住） */
.contact-form {
  scroll-margin-top: 120px;
}

.form-notice strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.form-notice a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   23. 首屏說明條與專業資格頁的外鏈樣式
   ========================================================================== */
.hero__caption-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f7f4ec;
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 195, 154, 0.9);
  padding-bottom: 1px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.hero__caption-link:hover,
.hero__caption-link:focus-visible {
  color: var(--gold-soft);
  border-bottom-color: var(--gold-soft);
  outline: none;
}

.hero__caption-link .link-ext,
.cred__link .link-ext {
  font-size: 0.85em;
  line-height: 1;
  opacity: 0.9;
  margin-left: 2px;
}

.cred__link {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-line);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.cred__link:hover,
.cred__link:focus-visible {
  color: var(--teal);
  border-bottom-color: var(--teal);
  outline: none;
}

@media (max-width: 760px) {
  .hero__caption-link {
    padding: 8px 0 6px;
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   24. 頁首防擠壓（v1.0.6）
   問題：容器固定 1200px，7 個選單項 + 電話 + CTA 加起來超過 1200，
        選單會溢出並與右側電話重疊。
   解法：放大螢幕放寬頁首容器；空間不足先隱藏電話，再不夠就換漢堡選單。
   ========================================================================== */
.nav {
  overflow: hidden;
}

.header__actions {
  position: relative;
  z-index: 3;
  padding-left: 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, #ffffff 14px);
}

@media (min-width: 1400px) {
  .header__inner {
    max-width: 1360px;
  }
}

@media (max-width: 1500px) {
  .header__phone {
    display: none;
  }
}

@media (max-width: 1359px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}
