@charset "utf-8";

/* ==========================================================================
   執簡顧問 Winnow AI Consulting — 全站樣式
   風格：「直筆」（2026-07-16 定案，取代麥田配色）
   白紙、墨藍字（藍黑墨水）、一方朱印。明體字撐骨氣。
   朱紅守「印章原則」：一頁只落在少數幾處（品牌印、主 CTA、當前頁標記、強調字）。
   ========================================================================== */

:root {
  /* 直筆配色 */
  --paper: #fcfbf7; /* 紙白 */
  --ink: #233d4d; /* 墨藍，藍黑墨水 */
  --seal: #b03a2e; /* 印朱，全站唯一強調色 */
  --mist-ink: #a5c3d6; /* 霧墨：面板、卡片與次要狀態 */
  --dawn-seal: #eabeba; /* 霞朱：柔性提示與強調底 */

  /* 流程圖語意色：僅用於資訊視覺，不作一般介面強調 */
  --flow-green: #18794e;
  --flow-green-soft: #e7f4ec;
  --flow-blue: #376b87;
  --flow-blue-soft: #e7f0f5;
  --flow-teal: #2d7a80;
  --flow-teal-soft: #e4f2f2;
  --flow-amber: #9a661b;
  --flow-amber-soft: #f7eedc;
  --flow-red: #a64b42;
  --flow-red-soft: #f6e8e5;
  --flow-neutral: #65737b;
  --flow-neutral-soft: #eef1f2;

  /* 由墨色推導（0.86：內文要有存在感，2026-07-16 Vincent 回饋調升） */
  --ink-75: rgba(35, 61, 77, 0.86);
  --ink-55: rgba(35, 61, 77, 0.58);
  --rule: rgba(35, 61, 77, 0.22);
  --rule-soft: rgba(35, 61, 77, 0.12);

  /* 版面 */
  --measure: 34em;
  --page: 68rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --space-section: clamp(4.5rem, 11vw, 8.5rem);

  --serif: "Noto Serif TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.3em;
  transition:
    color 0.15s,
    text-decoration-color 0.15s;
}

a:hover {
  color: var(--seal);
  text-decoration-color: var(--seal);
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

/* Body-copy line breaking and CJK justification */
p,
li,
blockquote,
figcaption {
  line-break: strict;
  word-break: normal;
  word-break: auto-phrase;
  text-wrap: pretty;
  text-align: justify;
  text-justify: inter-character;
  text-align-last: left;
}

em {
  font-style: normal;
  color: var(--seal);
}

/* ---------- 版面容器 ---------- */

.wrap {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.measure {
  max-width: var(--measure);
}

.section {
  padding-block: var(--space-section);
}

.section + .section {
  border-top: 1px solid var(--rule-soft);
}

/* ---------- 顧問服務：桌面側邊章節導覽 ---------- */

.service-page-nav {
  position: fixed;
  top: 50%;
  left: clamp(1rem, 2.4vw, 2.5rem);
  z-index: 40;
  display: grid;
  gap: 0.48rem;
  width: 1.5rem;
  padding: 0.35rem 0;
  overflow: hidden;
  transform: translateY(-50%);
  transition: width 0.2s ease;
}

.service-page-nav:hover,
.service-page-nav:focus-within {
  width: 10rem;
}

.service-page-nav__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: max-content;
  min-height: 1.45rem;
  color: var(--ink-55);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
}

.service-page-nav__link::before {
  width: 0.55rem;
  height: 2px;
  background: currentColor;
  content: "";
  flex: 0 0 auto;
}

.service-page-nav__link span {
  opacity: 0;
  transform: translateX(-0.4rem);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.service-page-nav:hover .service-page-nav__link span,
.service-page-nav:focus-within .service-page-nav__link span {
  opacity: 1;
  transform: translateX(0);
}

.service-page-nav__link:hover,
.service-page-nav__link:focus-visible {
  color: var(--seal);
  outline: none;
}

#service-structure,
#consulting-method,
#engagement-models,
#service-faq {
  scroll-margin-top: 7rem;
}

@media (max-width: 74rem) {
  .service-page-nav {
    display: none;
  }
}

/* ---------- 頁首（2026-07-16 v2：紅底反白、固定跟隨捲動、無底線） ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--seal);
  padding-block: 1.05rem;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--paper);
}

.brand:hover {
  color: var(--paper);
}

/* 品牌 logo：新版橫式 SVG；比例依 viewBox 485.74:108.37，避免載入前版面跳動 */
.brand__logo {
  display: block;
  height: 2.75rem;
  width: auto;
  aspect-ratio: 485.74 / 108.37;
  flex-shrink: 0;
}

@media (max-width: 30rem) {
  .brand__logo {
    height: 2.25rem;
  }
}

.brand__en {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(252, 251, 247, 0.75);
  text-transform: uppercase;
  font-family: "Times New Roman", Times, serif;
}

.nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.1rem);
  font-size: 0.95rem;
}

.nav a {
  color: rgba(252, 251, 247, 0.85);
  text-decoration: none;
  padding-bottom: 0.25rem;
}

.nav a:hover {
  color: var(--paper);
}

.nav a[aria-current="page"] {
  color: var(--paper);
  border-bottom: 2px solid var(--paper);
}

/* 語言切換器：頁首地球圖示 + 下拉（純 <details>，無 JS 也能開，爬蟲看得到連結） */
.lang-switch {
  position: relative;
}

.lang-switch__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  cursor: pointer;
  color: rgba(252, 251, 247, 0.85);
  list-style: none;
  padding-bottom: 0.25rem;
}

.lang-switch__toggle::-webkit-details-marker {
  display: none;
}

.lang-switch__toggle:hover,
.lang-switch[open] .lang-switch__toggle {
  color: var(--paper);
}

.lang-switch__caret {
  transition: transform 0.2s ease;
}

.lang-switch[open] .lang-switch__caret {
  transform: rotate(180deg);
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  min-width: 11.5rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 10px 26px rgba(35, 61, 77, 0.16);
  z-index: 70;
}

.lang-switch__menu a {
  display: block;
  padding: 0.5rem 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 3px;
  border-left: 2px solid transparent;
}

.lang-switch__menu a:hover {
  background: var(--flow-neutral-soft);
  color: var(--seal);
}

.lang-switch__menu a[aria-current="true"] {
  border-left-color: var(--seal);
  font-weight: 500;
}

/* 展示語言頁（越／印／泰）：B 層說明區塊 */
.lang-note {
  margin-top: 3rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--seal);
  background: var(--flow-neutral-soft);
}

.lang-note h2 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.lang-note p {
  margin: 0 0 0.65rem;
  color: var(--ink-75);
  line-height: 1.85;
}

.lang-note p:last-child {
  margin-bottom: 0;
}

@media (max-width: 48rem) {
  /* 展示語言頁的頁首只有 logo＋切換器，手機也維持精簡（紙白、小尺寸），不套用選單面板樣式 */
  .lang-page .lang-switch {
    width: auto;
    align-self: center;
  }

  .lang-page .lang-switch__toggle {
    color: rgba(252, 251, 247, 0.85);
    font-size: 1rem;
    font-weight: 400;
    padding: 0 0 0.25rem;
    border-bottom: 0;
  }

  .lang-page .lang-switch[open] .lang-switch__toggle {
    color: var(--paper);
  }

  .lang-page .lang-switch__menu {
    position: absolute;
    right: 0;
    min-width: 11.5rem;
    padding: 0.3rem;
    background: var(--paper);
    border: 1px solid var(--rule);
    box-shadow: 0 10px 26px rgba(35, 61, 77, 0.16);
  }

  .lang-page .lang-switch__menu a {
    font-size: 0.9rem;
    padding: 0.5rem 0.7rem;
  }

  .lang-switch {
    align-self: flex-start;
    width: 100%;
  }

  .lang-switch__toggle {
    color: var(--ink);
    font-size: 1.45rem;
    font-weight: 700;
    padding: 1.05rem 0;
    border-bottom: 1px solid var(--rule-soft);
    gap: 0.4rem;
  }

  .lang-switch[open] .lang-switch__toggle {
    color: var(--seal);
  }

  .lang-switch__menu {
    position: static;
    min-width: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0.4rem 0 0.6rem 0.6rem;
  }

  .lang-switch__menu a {
    font-size: 1.1rem;
    padding: 0.55rem 0;
  }
}

/* ==========================================================================
   手機頁首：品牌（中文標誌＋英文名）在左，「選單」按鈕在右。
   導覽項目共用同一個 <nav>——桌機是橫排，手機由 CSS 變成全螢幕清單。
   不另外複製一份選單，爬蟲與桌機看到的是同一組連結。
   開關是 checkbox，純 CSS，JS 掛掉照樣能開。
   ========================================================================== */

.nav-toggle__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle {
  display: none;
}

@media (max-width: 48rem) {
  .site-header {
    z-index: 60;
    padding-block: 0.8rem;
    transition: padding-block 0.25s ease;
  }

  .site-header .wrap {
    flex-wrap: nowrap;
    gap: 1rem;
  }

  /* 標誌與英文名改成上下排，橫向才放得下右邊的按鈕 */
  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.28rem;
    min-width: 0;
  }

  .brand__logo {
    height: 2.15rem;
  }

  .brand__en {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
  }

  /* 捲動後收掉英文名與部分留白，標誌保留 */
  .site-header.is-condensed {
    padding-block: 0.55rem;
  }

  .site-header.is-condensed .brand__en {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
  }

  .brand__en {
    max-height: 1.5rem;
    transition:
      max-height 0.25s ease,
      opacity 0.2s ease;
  }

  /* ---------- 選單按鈕 ---------- */

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    cursor: pointer;
    user-select: none;
    color: var(--paper);
    font-family: var(--sans);
    font-size: 0.88rem;
    letter-spacing: 0.1em;
    border: 1px solid rgba(252, 251, 247, 0.55);
    border-radius: 4px;
    padding: 0.45rem 0.9rem;
  }

  .nav-toggle__ico {
    font-size: 1rem;
    line-height: 1;
  }

  .nav-toggle__close {
    display: none;
  }

  .nav-toggle__input:checked ~ .nav-toggle .nav-toggle__open {
    display: none;
  }

  .nav-toggle__input:checked ~ .nav-toggle .nav-toggle__close {
    display: inline;
  }

  /* ---------- 全螢幕清單 ---------- */

  .nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    padding: 5.5rem var(--gutter) 3rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-toggle__input:checked ~ .nav {
    transform: translateY(0);
  }

  .nav a {
    color: var(--ink);
    font-size: 1.45rem;
    font-weight: 700;
    padding: 1.05rem 0;
    border-bottom: 1px solid var(--rule-soft);
  }

  .nav a:hover {
    color: var(--seal);
  }

  .nav a[aria-current="page"] {
    color: var(--seal);
    border-bottom: 1px solid var(--rule-soft);
  }
}

@media (max-width: 48rem) and (prefers-reduced-motion: reduce) {
  .site-header,
  .brand__en,
  .nav {
    transition: none;
  }
}

/* ---------- 開場 ---------- */

.hero {
  padding-block: clamp(4rem, 13vw, 9rem) clamp(3.5rem, 9vw, 6rem);
}

.hero--home {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.hero__grid {
  display: grid;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}

@media (min-width: 60rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 0.8fr);
  }
}

.hero__copy {
  min-width: 0;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.5;
  max-width: 18em;
  text-wrap: balance;
}

.title-line {
  display: block;
}

@media (min-width: 52rem) {
  .title-line {
    white-space: nowrap;
  }
}

.hero__lead {
  margin-top: 1.75rem;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 2;
  color: var(--ink-75);
  max-width: 27em;
}

.hero__summary {
  margin-top: 2.5rem;
  max-width: var(--measure);
  color: var(--ink-75);
}

.hero__cta {
  margin-top: 3rem;
}

.hero-visual {
  margin: 0;
  width: min(100%, 25rem);
  justify-self: center;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 57%;
  border: 1px solid var(--rule-soft);
  box-shadow: 0 1.6rem 4rem rgba(35, 61, 77, 0.09);
}

/* ---------- 標題與引導 ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--ink-55);
  margin-bottom: 1.5rem;
}

.section__title {
  font-size: clamp(1.55rem, 3.1vw, 2.15rem);
  max-width: 20em;
  text-wrap: balance;
}

.section__intro {
  margin-top: 1.5rem;
  max-width: var(--measure);
  color: var(--ink-75);
}

/* ---------- 痛點清單 ---------- */

.pains {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
}

@media (min-width: 56rem) {
  .pains {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 4vw, 3.25rem);
  }
}

.pain {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

.pain h3 {
  font-size: 1.13rem;
}

.pain h3::before {
  content: "・";
  color: var(--seal);
}

.pain p {
  margin-top: 0.85rem;
  color: var(--ink-75);
  font-size: 0.96rem;
}

/* ---------- 首頁：服務流程 ---------- */

.home-services {
  background: linear-gradient(180deg, rgba(165, 195, 214, 0.1), transparent 72%);
}

.home-service-flow {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 56rem) {
  .home-service-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-service {
  position: relative;
  min-width: 0;
}

@media (min-width: 56rem) {
  .home-service:not(:last-child)::after {
    position: absolute;
    top: 2.55rem;
    right: calc(clamp(2.5rem, 5vw, 4rem) * -0.67);
    width: calc(clamp(2.5rem, 5vw, 4rem) * 0.42);
    height: 1px;
    background: var(--rule);
    content: "";
  }

  .home-service:not(:last-child)::before {
    position: absolute;
    z-index: 1;
    top: calc(2.55rem - 0.22rem);
    right: calc(clamp(2.5rem, 5vw, 4rem) * -0.67);
    width: 0.44rem;
    height: 0.44rem;
    border-top: 1px solid var(--ink-55);
    border-right: 1px solid var(--ink-55);
    content: "";
    transform: rotate(45deg);
  }
}

.home-service__visual {
  width: min(100%, 11.25rem);
  padding: 0.55rem 0;
}

.home-service__visual svg {
  display: block;
  width: 100%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.home-service__dash {
  stroke-dasharray: 3 5;
}

.home-service--point { color: var(--flow-blue); }
.home-service--line { color: var(--flow-teal); }
.home-service--team { color: var(--flow-amber); }

.home-service__type {
  display: block;
  margin-top: 1.25rem;
  color: currentColor;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.home-service h3 {
  margin-top: 0.55rem;
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
}

.home-service p {
  margin-top: 0.7rem;
  color: var(--ink-75);
  font-size: 0.94rem;
  line-height: 1.75;
}

.home-services__more {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  font-size: 0.94rem;
}

/* ---------- 案例 ---------- */

.cases {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.case-row {
  display: grid;
  gap: 0.6rem 3rem;
  padding-block: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--rule);
  align-items: start;
}

.case-row:last-child {
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 52rem) {
  .case-row {
    grid-template-columns: 15rem 1fr auto;
    gap: 0.6rem 2.5rem;
  }
}

/* 案例列縮圖 */
.case-row__thumb {
  border: 1px solid var(--rule);
  background: var(--paper);
  overflow: hidden;
}

.case-row__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* 案例列表中的縮圖流程：資訊密度低、在小尺寸仍可辨識 */
.flow-mini {
  aspect-ratio: 2 / 1;
  display: grid;
  align-items: center;
  gap: 0.3rem;
  padding: 0.7rem;
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(176, 58, 46, 0.07),
      transparent 32%
    ),
    linear-gradient(145deg, #fff 0%, #f7f7f3 100%);
  font-family: var(--sans);
}

.flow-mini--service {
  grid-template-columns: 0.75fr auto 1.05fr auto 0.85fr auto 1fr;
}

.flow-mini--trade {
  grid-template-columns: 0.95fr auto 1.12fr auto 0.95fr auto 0.9fr;
}

.flow-mini__node {
  min-width: 0;
  min-height: 3.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.35rem 0.2rem;
  border: 1px solid var(--flow-neutral);
  border-radius: 6px;
  background: var(--flow-neutral-soft);
  text-align: center;
}

.flow-mini__node strong {
  font-size: 0.7rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.flow-mini__node span,
.flow-mini__result span {
  font-size: 0.6rem;
  line-height: 1.25;
  color: var(--ink-75);
}

.flow-mini__node--line {
  color: var(--flow-green);
  border-color: rgba(24, 121, 78, 0.38);
  background: var(--flow-green-soft);
}

.flow-mini__node--ai,
.flow-mini__node--core {
  color: var(--flow-blue);
  border-color: rgba(55, 107, 135, 0.38);
  background: var(--flow-blue-soft);
}

.flow-mini__node--docs {
  color: var(--flow-amber);
  border-color: rgba(154, 102, 27, 0.38);
  background: var(--flow-amber-soft);
}

.flow-mini__node--ship {
  color: var(--flow-red);
  border-color: rgba(166, 75, 66, 0.38);
  background: var(--flow-red-soft);
}

.flow-mini__arrow {
  position: relative;
  width: 0.6rem;
  height: 2px;
  background: var(--rule);
}

.flow-mini__arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 0.32rem;
  height: 0.32rem;
  border-top: 2px solid var(--ink-55);
  border-right: 2px solid var(--ink-55);
  transform: translateY(-50%) rotate(45deg);
}

.flow-mini__result {
  display: grid;
  gap: 0.3rem;
}

.flow-mini__result span {
  padding: 0.25rem 0.15rem;
  border-radius: 4px;
  text-align: center;
}

.flow-mini__result span:first-child {
  color: var(--flow-teal);
  background: var(--flow-teal-soft);
}

.flow-mini__result span:last-child {
  color: var(--flow-amber);
  background: var(--flow-amber-soft);
}

@media (max-width: 51.99rem) {
  .flow-mini {
    padding: clamp(0.8rem, 4vw, 1.35rem);
    gap: clamp(0.35rem, 1.5vw, 0.7rem);
  }

  .flow-mini__node {
    min-height: clamp(3.8rem, 16vw, 5.8rem);
  }

  .flow-mini__node strong {
    font-size: clamp(0.72rem, 2.8vw, 0.92rem);
  }

  .flow-mini__node span,
  .flow-mini__result span {
    font-size: clamp(0.62rem, 2.2vw, 0.76rem);
  }

  .flow-mini__arrow {
    width: clamp(0.7rem, 3vw, 1.2rem);
  }
}

.case-row__kind {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-55);
  letter-spacing: 0.1em;
  padding-top: 0.4rem;
}

.service-depth {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0.55rem 0 0.85rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  line-height: 1.5;
}

.service-depth__kicker {
  color: var(--ink-55);
  letter-spacing: 0.12em;
}

.service-depth__pill {
  display: inline-block;
  border: 1px solid rgba(176, 58, 46, 0.24);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  color: var(--seal);
  background: rgba(176, 58, 46, 0.06);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.service-depth__plus {
  color: var(--ink-55);
}

.hero--case .service-depth {
  justify-content: center;
  margin: -0.75rem 0 1.25rem;
}

.case-row__title {
  font-size: 1.22rem;
}

.case-row__title a {
  text-decoration: none;
}

.case-row__title a:hover {
  color: var(--seal);
}

.case-row__desc {
  margin-top: 0.6rem;
  color: var(--ink-75);
  font-size: 1rem;
  max-width: 32em;
}

.case-row__more {
  font-size: 0.9rem;
  white-space: nowrap;
  padding-top: 0.4rem;
}

/* ---------- 流程 ---------- */

.steps {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  counter-reset: step;
}

.step {
  display: grid;
  gap: 0.4rem 2.5rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--rule-soft);
}

.step:last-child {
  border-bottom: 1px solid var(--rule-soft);
}

@media (min-width: 46rem) {
  .step {
    grid-template-columns: 4rem 12rem 1fr;
    align-items: baseline;
  }
}

.step__no {
  counter-increment: step;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-55);
  letter-spacing: 0.1em;
}

.step__no::before {
  content: counter(step, decimal-leading-zero);
}

.step__name {
  font-size: 1.08rem;
  font-weight: 700;
}

.step__desc {
  color: var(--ink-75);
  font-size: 0.96rem;
  max-width: 34em;
}

.step__items {
  margin: 0;
  padding-left: 1.25em;
}

.step__items li + li {
  margin-top: 0.45rem;
}

/* ---------- 現場方法影像 ---------- */

.process-intro {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: end;
}

@media (min-width: 60rem) {
  .process-intro {
    grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr);
  }
}

.process-visual {
  margin: 0;
}

.process-visual img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--rule-soft);
  filter: saturate(0.82) contrast(0.98);
}

/* ---------- 引句 ---------- */

.pull {
  margin: clamp(3rem, 6vw, 4rem) 0 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--seal);
  font-size: clamp(1.12rem, 2.2vw, 1.42rem);
  line-height: 1.9;
  max-width: 28em;
}

/* ---------- 按鈕 ---------- */

.btn {
  display: inline-block;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 0.9rem 2.3rem;
  font-family: var(--serif);
  font-size: 0.98rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

/* 主 CTA＝落印處 */
.btn--solid {
  background: var(--seal);
  border-color: var(--seal);
  color: var(--paper);
}

.btn--solid:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ---------- 結尾行動區 ---------- */

.closing {
  padding-block: var(--space-section);
  border-top: 1px solid var(--rule);
}

.closing .wrap {
  text-align: center;
}

.closing h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  max-width: 18em;
  margin-inline: auto;
  text-wrap: balance;
}

.closing p {
  margin-top: 1.5rem;
  max-width: var(--measure);
  margin-inline: auto;
  color: var(--ink-75);
}

.closing .btn {
  margin-top: 2.5rem;
}

/* CTA 是控制元件，不屬於正文段落；固定置中。 */
.closing p:last-child {
  text-align: center;
  text-align-last: center;
}

/* ---------- 頁尾（與頁首一致：紅底反白、無橫線） ---------- */

.site-footer {
  background: var(--seal);
  padding-block: 3rem 3.5rem;
  font-size: 0.9rem;
  color: rgba(252, 251, 247, 0.78);
  margin-top: var(--space-section);
}

.site-footer .wrap {
  display: grid;
  gap: 2rem;
}

@media (min-width: 52rem) {
  .site-footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.site-footer__brand {
  color: rgba(252, 251, 247, 0.85);
}

.site-footer__brand strong {
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--paper);
}

.site-footer__meta {
  margin-top: 0.5rem;
  line-height: 2;
}

.site-footer__copyright {
  margin-top: 1rem;
  color: rgba(252, 251, 247, 0.58);
  font-size: 0.8rem;
}

.site-footer__company {
  color: rgba(252, 251, 247, 0.78);
  line-height: 2;
  text-align: right;
}

.site-footer__company p + p {
  margin-top: 0.15rem;
}

@media (max-width: 51.99rem) {
  .site-footer__company {
    text-align: left;
  }
}

.site-footer a {
  color: rgba(252, 251, 247, 0.78);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--paper);
}

/* 名字的由來：深藏入口＝頁尾英文公司名本身（外觀同一般文字，點了才知道） */
.site-footer__naming {
  color: inherit;
  text-decoration: none;
}

.site-footer__naming:hover {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* ---------- 無障礙 ---------- */

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--gutter);
  top: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 10;
}

:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 3px;
}

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

/* ==========================================================================
   內頁元件（服務/案例/關於/聯絡/命名）
   ========================================================================== */

/* ---------- 內頁開場（比首頁矮） ---------- */

.hero--page {
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4rem);
}

.hero--page h1 {
  font-size: clamp(1.8rem, 4.2vw, 2.7rem);
}

.hero--centered .wrap {
  text-align: center;
}

.hero--centered h1,
.hero--centered .hero__lead,
.hero--centered .hero__summary {
  margin-inline: auto;
}

.hero--centered h1 {
  max-width: 22em;
}

.hero--centered .hero__summary {
  max-width: 40rem;
}

.hero--case {
  padding-block: clamp(3rem, 7vw, 4.75rem);
}

.hero--case + .section {
  padding-top: clamp(3.5rem, 7vw, 5rem);
}

.section--centered .wrap {
  text-align: center;
}

.section--centered .section__title,
.section--centered .section__intro,
.section--centered .prose {
  margin-inline: auto;
}

.section--centered .section__title {
  max-width: 24em;
}

.section--centered .section__intro {
  max-width: 38em;
}

.section--centered .pull {
  margin-inline: auto;
  padding: 1.5rem 0 0;
  border-top: 3px solid var(--seal);
  border-left: 0;
}

.cases-section {
  padding-top: 0;
}

.cases-section .cases {
  margin-top: 0;
}

.contact-section {
  padding-top: clamp(3.5rem, 7vw, 5rem);
  scroll-margin-top: 7rem;
}

.hero--visual-page {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.page-hero-grid {
  display: grid;
  gap: clamp(2.75rem, 7vw, 5.5rem);
  align-items: center;
}

.page-hero-copy {
  min-width: 0;
}

.page-hero-visual {
  width: min(100%, 23rem);
  margin: 0;
  justify-self: center;
}

.page-hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--rule-soft);
  box-shadow: 0 1.6rem 4rem rgba(35, 61, 77, 0.09);
}

@media (min-width: 60rem) {
  .page-hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(17rem, 0.88fr);
  }

  .page-hero-visual {
    justify-self: end;
  }
}

/* ---------- 麵包屑 ---------- */

.crumb {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--ink-55);
  margin-bottom: 2rem;
}

.crumb a {
  color: var(--ink-55);
  text-decoration: none;
}

.crumb a:hover {
  color: var(--seal);
}

/* ---------- 內文文章區 ---------- */

.prose {
  max-width: var(--measure);
}

.prose h2 {
  font-size: 1.45rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.prose h3 {
  font-size: 1.12rem;
  margin-top: 2.25rem;
}

.prose h3::before {
  content: "・";
  color: var(--seal);
}

.prose p {
  margin-top: 1.25rem;
  color: var(--ink-75);
}

.prose ul {
  margin: 1.25rem 0 0;
  padding-left: 1.4em;
  color: var(--ink-75);
}

.prose li {
  margin-top: 0.5rem;
}

.prose li::marker {
  color: var(--ink-55);
}

/* ---------- 圖片與圖說 ---------- */

.figure {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  max-width: 46rem;
}

.figure__frame {
  border: 1px solid var(--rule);
  background: var(--paper);
}

.figure__frame img {
  width: 100%;
}

.figure figcaption {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-55);
  margin-top: 0.7rem;
  letter-spacing: 0.04em;
}

.figure--wide {
  width: min(
    calc(var(--page) - var(--gutter) - var(--gutter)),
    calc(100vw - var(--gutter) - var(--gutter))
  );
  max-width: none;
}

.figure__frame--screen {
  overflow: hidden;
  background: var(--mist-ink);
  box-shadow: 0 1.2rem 3.5rem rgba(35, 61, 77, 0.09);
}

.figure__frame--screen img {
  display: block;
  height: auto;
}

.figure__frame--dark {
  background: var(--ink);
}

/* 系統畫面可檢視細節；游標與焦點提示其可互動性。 */
.zoomable-image {
  cursor: zoom-in;
}

.zoomable-image:focus-visible {
  outline: 3px solid var(--seal);
  outline-offset: 3px;
}

.image-lightbox {
  width: min(96vw, 84rem);
  height: min(92vh, 60rem);
  padding: 0;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.3);
}

.image-lightbox::backdrop {
  background: rgba(18, 30, 37, 0.76);
}

.image-lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 3.4rem;
  padding: 0.65rem 0.8rem 0.65rem 1.2rem;
  border-bottom: 1px solid var(--rule);
}

.image-lightbox__bar p,
.image-lightbox__hint {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-75);
}

.image-lightbox__close {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox__viewport {
  display: grid;
  place-items: center;
  height: calc(100% - 6.25rem);
  overflow: hidden;
  background: var(--mist-ink);
  touch-action: none;
}

.image-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  transform-origin: center;
  will-change: transform;
}

.image-lightbox__hint {
  padding: 0.7rem 1.2rem;
  text-align: center;
  text-align-last: center;
}

@media (min-width: 48rem) {
  .image-lightbox__hint {
    visibility: hidden;
  }
}

/* ---------- 案例推進：理解 → 解決 → 成效 ---------- */

.case-journey {
  width: min(
    calc(var(--page) - var(--gutter) - var(--gutter)),
    calc(100vw - var(--gutter) - var(--gutter))
  );
  margin: clamp(3rem, 7vw, 4.75rem) 0;
  font-family: var(--sans);
}

.prose .case-journey__eyebrow {
  margin: 0 0 1rem;
  color: var(--ink-55);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.case-journey__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.prose .case-journey__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 14rem;
  margin: 0;
  padding: clamp(1.2rem, 3vw, 1.6rem);
  border: 1px solid var(--rule-soft);
  border-top: 4px solid currentColor;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0.8rem 2.2rem rgba(35, 61, 77, 0.06);
}

.case-journey__stage:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(clamp(1.75rem, 4vw, 3rem) * -0.76);
  width: calc(clamp(1.75rem, 4vw, 3rem) * 0.52);
  height: 2px;
  background: var(--rule);
}

.case-journey__stage:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: calc(50% - 0.23rem);
  right: calc(clamp(1.75rem, 4vw, 3rem) * -0.76);
  width: 0.46rem;
  height: 0.46rem;
  border-top: 2px solid var(--ink-55);
  border-right: 2px solid var(--ink-55);
  transform: rotate(45deg);
}

.case-journey__stage--understand {
  color: var(--flow-blue);
  background: linear-gradient(155deg, var(--flow-blue-soft), #fff 68%);
}

.case-journey__stage--solve {
  color: var(--flow-teal);
  background: linear-gradient(155deg, var(--flow-teal-soft), #fff 68%);
}

.case-journey__stage--impact {
  color: var(--flow-amber);
  background: linear-gradient(155deg, var(--flow-amber-soft), #fff 68%);
}

.case-journey__index {
  color: currentColor;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.case-journey__label {
  margin-top: 1.1rem;
  color: currentColor;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.case-journey__stage strong {
  display: block;
  margin-top: 0.55rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.prose .case-journey__stage p {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--ink-75);
  font-size: 0.88rem;
  line-height: 1.75;
}

@media (max-width: 51.99rem) {
  .case-journey__track {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .prose .case-journey__stage {
    min-height: 0;
  }

  .case-journey__stage:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -1.55rem;
    width: 2px;
    height: 1.1rem;
    transform: translateX(50%);
  }

  .case-journey__stage:not(:last-child)::before {
    top: auto;
    right: calc(50% - 0.23rem);
    bottom: -1.55rem;
    transform: rotate(135deg);
  }

  .prose .case-journey__stage p {
    margin-top: 0;
  }
}

/* ---------- 流程圖（網頁原生視覺） ---------- */

.web-flow {
  width: min(46rem, calc(100vw - 2.5rem));
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--rule-soft);
  border-radius: 12px;
  background:
    radial-gradient(circle at 92% 8%, rgba(176, 58, 46, 0.07), transparent 30%),
    linear-gradient(145deg, #fff 0%, #f7f7f3 100%);
  box-shadow: 0 1.25rem 3.5rem rgba(35, 61, 77, 0.08);
  font-family: var(--sans);
}

.service-map__retired {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--rule);
}

.flow-section-label {
  display: grid;
  gap: 0.15rem;
  flex-shrink: 0;
}

.flow-section-label span,
.flow-node__kicker {
  color: var(--ink-55);
  font-size: 0.68rem;
  line-height: 1.35;
  letter-spacing: 0.12em;
}

.flow-section-label span {
  color: var(--seal);
}

.flow-section-label strong {
  font-size: 0.82rem;
  line-height: 1.4;
}

.retired-channels {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.retired-channels span {
  position: relative;
  padding: 0.35rem 0.65rem 0.35rem 1.25rem;
  border: 1px solid rgba(101, 115, 123, 0.24);
  border-radius: 999px;
  background: var(--flow-neutral-soft);
  color: var(--flow-neutral);
  font-size: 0.68rem;
  line-height: 1.3;
}

.retired-channels span::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 50%;
  width: 0.38rem;
  height: 1px;
  background: currentColor;
}

.service-map__live,
.trade-map {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.75rem;
}

.flow-node {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 7.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.9rem;
  border: 1px solid rgba(101, 115, 123, 0.28);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 0.6rem 1.6rem rgba(35, 61, 77, 0.06);
}

.flow-node strong {
  font-size: 0.93rem;
  line-height: 1.4;
}

.flow-node small {
  color: var(--ink-55);
  font-size: 0.7rem;
  line-height: 1.55;
}

.flow-node--person {
  border-color: rgba(101, 115, 123, 0.3);
  background: var(--flow-neutral-soft);
}

.flow-node--line {
  border-color: rgba(24, 121, 78, 0.36);
  background: var(--flow-green-soft);
}

.flow-node--line .flow-node__kicker,
.flow-node--line strong {
  color: var(--flow-green);
}

.flow-node--ai,
.flow-node--core {
  border-color: rgba(55, 107, 135, 0.36);
  background: var(--flow-blue-soft);
}

.flow-node--ai .flow-node__kicker,
.flow-node--ai strong,
.flow-node--core .flow-node__kicker,
.flow-node--core strong {
  color: var(--flow-blue);
}

.flow-node--reply {
  border-color: rgba(45, 122, 128, 0.36);
  background: var(--flow-teal-soft);
}

.flow-node--reply .flow-node__kicker,
.flow-node--reply strong {
  color: var(--flow-teal);
}

.flow-node--review,
.flow-node--docs {
  border-color: rgba(154, 102, 27, 0.36);
  background: var(--flow-amber-soft);
}

.flow-node--review .flow-node__kicker,
.flow-node--review strong,
.flow-node--docs .flow-node__kicker,
.flow-node--docs strong {
  color: var(--flow-amber);
}

.flow-node--ship {
  border-color: rgba(166, 75, 66, 0.36);
  background: var(--flow-red-soft);
}

.flow-node--ship .flow-node__kicker,
.flow-node--ship strong {
  color: var(--flow-red);
}

.flow-arrow {
  position: relative;
  flex: 0 0 1.8rem;
  width: 1.8rem;
  height: 2px;
  background: var(--rule);
}

.flow-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-top: 2px solid var(--ink-55);
  border-right: 2px solid var(--ink-55);
  transform: translateY(-50%) rotate(45deg);
}

.flow-split {
  position: relative;
  flex: 1.18 1 0;
  display: grid;
  gap: 0.7rem;
  padding-left: 1.25rem;
}

.flow-split::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 2px;
  background: var(--rule);
}

.flow-split .flow-node {
  min-height: 5.45rem;
}

.flow-split .flow-node::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 50%;
  width: 1.25rem;
  height: 2px;
  background: var(--rule);
}

.flow-privacy {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  margin: 1.35rem 0 0 auto;
  color: var(--flow-blue);
}

.flow-privacy > span {
  width: 0.62rem;
  height: 0.62rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #fff;
  background: currentColor;
}

.flow-privacy strong {
  font-size: 0.75rem;
}

.flow-privacy small {
  color: var(--ink-55);
  font-size: 0.68rem;
}

.trade-map .flow-node--docs {
  flex-grow: 1.18;
}

.flow-node__badge {
  align-self: flex-start;
  margin-bottom: 0.15rem;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: rgba(55, 107, 135, 0.12);
  color: var(--flow-blue);
  font-size: 0.62rem;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.flow-node__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.15rem;
}

.flow-node__chips span {
  padding: 0.18rem 0.35rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink-75);
  font-size: 0.61rem;
  line-height: 1.35;
}

.trade-map__baseline {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.2rem;
  color: var(--ink-55);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.trade-map__baseline i {
  height: 1px;
  background: var(--rule);
}

@media (max-width: 44rem) {
  .service-map__retired {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .retired-channels {
    justify-content: flex-start;
  }

  .service-map__live,
  .trade-map {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .flow-node {
    min-height: auto;
    text-align: center;
  }

  .flow-node__badge {
    align-self: center;
  }

  .flow-node__chips {
    justify-content: center;
  }

  .flow-arrow {
    align-self: center;
    flex-basis: 1.7rem;
    width: 2px;
    height: 1.7rem;
    background: var(--rule);
  }

  .flow-arrow::after {
    right: 50%;
    top: auto;
    bottom: 0;
    transform: translateX(50%) rotate(135deg);
  }

  .flow-split {
    flex: auto;
    padding: 1.25rem 0 0;
  }

  .flow-split::before {
    left: 50%;
    top: 0;
    bottom: auto;
    width: 2px;
    height: 1.25rem;
    transform: translateX(-50%);
  }

  .flow-split .flow-node::before {
    display: none;
  }

  .flow-privacy {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .flow-privacy small {
    flex-basis: 100%;
    padding-left: 1.15rem;
  }

  .trade-map__baseline {
    display: none;
  }
}

/* ---------- 三層階梯（服務頁） ---------- */

.ladder {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  counter-reset: rung;
}

.rung {
  border-top: 1px solid var(--rule);
  padding-block: clamp(2rem, 4vw, 2.75rem);
  display: grid;
  gap: 0.8rem 3rem;
}

.rung:last-child {
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 52rem) {
  .rung {
    grid-template-columns: 5rem 15rem 1fr;
    align-items: start;
  }
}

.rung__no {
  counter-increment: rung;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-55);
  letter-spacing: 0.1em;
  padding-top: 0.45rem;
}

.rung__no::before {
  content: "第 " counter(rung, cjk-ideographic) " 層";
}

.rung__name {
  font-size: 1.35rem;
  font-weight: 700;
}

.rung__name small {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink-55);
  margin-top: 0.4rem;
}

.rung__body {
  color: var(--ink-75);
  max-width: 34em;
}

.rung__body p + p {
  margin-top: 1rem;
}

/* ---------- 兩種合作模式 ---------- */

.modes {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  gap: 2rem;
}

@media (min-width: 52rem) {
  .modes {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.mode {
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--paper);
}

.mode--featured {
  border-color: var(--ink);
  border-width: 2px;
}

.mode h3 {
  font-size: 1.3rem;
}

.mode__tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--seal);
  border: 1px solid currentColor;
  padding: 0.15rem 0.6rem;
  margin-bottom: 1rem;
}

.mode p {
  margin-top: 1rem;
  color: var(--ink-75);
  font-size: 0.98rem;
}

.mode--aside {
  grid-column: 1 / -1;
  background: transparent;
  border-style: dashed;
}

/* 三格並排（適合對象）：中間尺寸維持單欄，避免第三格掉排 */
@media (min-width: 52rem) {
  .modes--three {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 58rem) {
  .modes--three {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* ---------- FAQ ---------- */

.faq {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  max-width: 44rem;
}

.faq details {
  border-top: 1px solid var(--rule);
}

.faq details:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  cursor: pointer;
  padding: 1.3rem 2.5rem 1.3rem 0;
  font-size: 1.08rem;
  font-weight: 700;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* 開合記號以兩條線繪製，不依賴字體字元：收合＝＋，展開＝－ */
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 0.9rem;
  height: 1.5px;
  background: var(--ink-55);
}

.faq summary::before {
  transform: translateY(-50%) rotate(90deg);
  transition: opacity 0.15s;
}

.faq summary::after {
  transform: translateY(-50%);
}

.faq details[open] summary::before {
  opacity: 0;
}

.faq details > p {
  padding-bottom: 1.5rem;
  color: var(--ink-75);
  max-width: 38em;
}

/* ---------- 履歷時間軸（關於頁） ---------- */

.timeline {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.era {
  display: grid;
  gap: 0.6rem 3rem;
  padding-block: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--rule);
}

.era:last-child {
  border-bottom: 1px solid var(--rule);
}

.profile-name {
  margin-bottom: 0;
}

.reading-content {
  max-width: var(--measure);
  margin-inline: auto;
  text-align: left;
}

.reading-content .section__title {
  max-width: none;
}

.profile-essay {
  text-align: left;
}

@media (min-width: 52rem) {
  .era {
    grid-template-columns: 11rem 1fr;
  }
}

.era__when {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--ink-55);
  padding-top: 0.5rem;
}

.era__body h3 {
  font-size: 1.25rem;
}

.era__body p {
  margin-top: 1rem;
  color: var(--ink-75);
  max-width: 36em;
}

/* ---------- 聯絡頁 ---------- */

.contact-blocks {
  margin-top: clamp(3rem, 6vw, 4rem);
  margin-inline: auto;
  display: grid;
  gap: 1.5rem;
  max-width: 44rem;
}

@media (min-width: 46rem) {
  .contact-blocks {
    grid-template-columns: 1fr 1fr;
  }

  .contact-blocks > .contact-block:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 1.5rem) / 2);
    justify-self: center;
  }
}

.contact-block {
  border: 1px dashed var(--rule);
  padding: 1.75rem;
}

/* 全域 p/figcaption 的 justify 是直接規則，會壓過 .section--centered 繼承來的置中，
   卡片內必須明寫才會整格對齊 */
.contact-block p,
.contact-block figcaption {
  text-align: center;
  text-align-last: center;
}

.contact-block h3 {
  font-size: 1.1rem;
}

.contact-block p {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--ink-55);
}

/* LINE 那一格是主要入口，用實線與紙白底把它從虛線格裡提出來 */
.contact-block--line {
  border-style: solid;
  border-color: var(--ink);
  background: var(--paper);
}

.contact-block__id {
  font-family: var(--sans);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.contact-block__cta {
  margin-top: 1.25rem;
}

.contact-qr {
  margin: 1.5rem 0 0;
}

.contact-qr img {
  width: 8.5rem;
  max-width: 100%;
  height: auto;
  display: block;
  margin-inline: auto;
}

.contact-qr figcaption {
  margin-top: 0.6rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--ink-55);
}

/* 手機上掃自己的螢幕沒有意義，QR 只留給桌機 */
@media (max-width: 46rem) {
  .contact-qr {
    display: none;
  }
}

/* ---------- 快速詢問：右下角對話框 ---------- */

.quick-chat {
  position: fixed;
  z-index: 70;
  right: clamp(1rem, 3vw, 2rem);
  bottom: max(1rem, env(safe-area-inset-bottom));
  font-family: var(--sans);
}

/* The chat uses the semantic hidden attribute for its collapsed states. */
.quick-chat [hidden] {
  display: none !important;
}

.quick-chat__toggle,
.quick-chat__close,
.quick-chat__skip,
.quick-chat__send {
  cursor: pointer;
  font: inherit;
}

.quick-chat__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  border: 1px solid var(--seal);
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  background: var(--seal);
  color: var(--paper);
  box-shadow: 0 0.8rem 2rem rgba(35, 61, 77, 0.2);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.quick-chat__toggle:hover,
.quick-chat__toggle:focus-visible {
  background: #8e2e25;
  outline: 2px solid var(--paper);
  outline-offset: -5px;
}

.quick-chat__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.8rem);
  display: grid;
  grid-template-rows: auto auto minmax(8rem, 1fr) auto;
  width: min(23rem, calc(100vw - 2rem));
  max-height: min(36rem, calc(var(--quick-chat-vh, 100vh) - 6.5rem));
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 1.25rem 3.5rem rgba(35, 61, 77, 0.2);
}

.quick-chat__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
}

.quick-chat__header p {
  color: inherit;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.quick-chat__header span {
  display: block;
  margin-top: 0.2rem;
  color: rgba(252, 251, 247, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.quick-chat__close {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(252, 251, 247, 0.5);
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: var(--paper);
  font-size: 1.3rem;
  line-height: 1;
}

.quick-chat__close:hover,
.quick-chat__close:focus-visible {
  background: rgba(252, 251, 247, 0.15);
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

.quick-chat__notice {
  padding: 0.65rem 1.1rem;
  border-bottom: 1px solid var(--rule-soft);
  background: rgba(165, 195, 214, 0.14);
  color: var(--ink-75);
  font-size: 0.72rem;
  line-height: 1.6;
}

.quick-chat__messages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  padding: 1rem 1.1rem;
  overscroll-behavior: contain;
}

.quick-chat__message {
  align-self: flex-start;
  max-width: 87%;
  padding: 0.6rem 0.75rem;
  border-radius: 8px 8px 8px 1px;
  background: var(--flow-blue-soft);
  color: var(--ink);
}

.quick-chat__message--visitor {
  align-self: flex-end;
  border-radius: 8px 8px 1px;
  background: var(--dawn-seal);
}

.quick-chat__message--operator {
  border-left: 3px solid var(--seal);
  background: #fff;
  box-shadow: 0 0.2rem 0.7rem rgba(35, 61, 77, 0.08);
}

.quick-chat__message p {
  color: inherit;
  font-size: 0.84rem;
  line-height: 1.65;
  text-align: left;
  text-align-last: left;
  word-break: break-word;
}

.quick-chat__message time {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink-55);
  font-size: 0.63rem;
  line-height: 1.2;
  text-align: right;
}

.quick-chat__form {
  display: grid;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem max(0.9rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule-soft);
  background: #fff;
}

.quick-chat__label {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
}

.quick-chat__contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.quick-chat__contact-methods legend {
  width: 100%;
  margin-bottom: 0.15rem;
  font-size: 0.78rem;
  font-weight: 500;
}

.quick-chat__contact-methods label {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.74rem;
  line-height: 1.3;
}

.quick-chat__contact-methods input {
  accent-color: var(--seal);
}

.quick-chat__line-help {
  color: var(--ink-75);
  font-size: 0.76rem;
  line-height: 1.65;
  text-align: left;
  text-align-last: left;
}

.quick-chat__contact-fields {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.quick-chat__contact-field {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 0.5rem 0.65rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.83rem;
  line-height: 1.5;
}

.quick-chat__contact-field:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 2px;
}

.quick-chat__contact-field:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.quick-chat__input {
  width: 100%;
  min-height: 3.4rem;
  resize: vertical;
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 0.55rem 0.65rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.83rem;
  line-height: 1.55;
}

.quick-chat__input:focus-visible,
.quick-chat__skip:focus-visible,
.quick-chat__send:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 2px;
}

.quick-chat__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.quick-chat__skip,
.quick-chat__send {
  border-radius: 4px;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
}

.quick-chat__skip {
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-75);
}

.quick-chat__send {
  border: 1px solid var(--seal);
  background: var(--seal);
  color: var(--paper);
}

.quick-chat__skip:hover { border-color: var(--ink); color: var(--ink); }
.quick-chat__send:hover { background: #8e2e25; }
.quick-chat__send:disabled,
.quick-chat__skip:disabled,
.quick-chat__input:disabled { cursor: not-allowed; opacity: 0.6; }

.quick-chat__status {
  min-height: 1.2rem;
  color: var(--ink-55);
  font-size: 0.7rem;
  line-height: 1.45;
  text-align: left;
  text-align-last: left;
}

.quick-chat__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 34rem) {
  .quick-chat {
    right: 0.8rem;
    bottom: max(0.8rem, env(safe-area-inset-bottom));
  }

  .quick-chat__panel {
    position: fixed;
    right: 0.8rem;
    bottom: calc(4.25rem + env(safe-area-inset-bottom));
    width: calc(100dvw - 2rem);
    max-height: calc(var(--quick-chat-vh, 100vh) - 5.5rem);
  }
}

.contact-note {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  margin-inline: auto;
  max-width: 38rem;
  font-size: 0.95rem;
  color: var(--ink-75);
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

/* 左對齊版面裡的附註：取消置中，跟 .steps 齊左 */
.contact-note--flush {
  margin-inline: 0;
}

.contact-note h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.contact-note p + p {
  margin-top: 1rem;
}

.contact-note ul {
  margin: 1rem 0 0;
  padding-left: 1.25em;
}

.contact-note li + li {
  margin-top: 0.65rem;
}

/* ==========================================================================
   觀點（文章區）
   版面定案於 article-list-preview.html（2026-07-18）
   硬約束：分類篩選純 CSS、零 JS。全部文章都在原始 HTML 裡，只做視覺隱藏，
   否則不跑 JS 的 AI 爬蟲會看不到被篩掉的文章。
   ========================================================================== */

.art-head {
  padding-block: clamp(2.5rem, 6vw, 4rem) 0;
}

.art-head h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.art-date {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--ink-55);
}

.art-cat {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--seal);
  border: 1px solid rgba(176, 58, 46, 0.24);
  background: rgba(176, 58, 46, 0.06);
  border-radius: 999px;
  padding: 0.16rem 0.6rem;
}

/* ---------- 分類篩選（純 CSS） ---------- */

.art-filter__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.art-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  font-family: var(--sans);
}

.art-filter label {
  cursor: pointer;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--ink-75);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s;
  user-select: none;
}

.art-filter label:hover {
  border-color: var(--seal);
  color: var(--seal);
}

#f-all:checked ~ .art-filter label[for="f-all"],
#f-flow:checked ~ .art-filter label[for="f-flow"],
#f-agent:checked ~ .art-filter label[for="f-agent"],
#f-tech:checked ~ .art-filter label[for="f-tech"],
#f-obs:checked ~ .art-filter label[for="f-obs"] {
  background: var(--seal);
  border-color: var(--seal);
  color: var(--paper);
}

#f-all:focus-visible ~ .art-filter label[for="f-all"],
#f-flow:focus-visible ~ .art-filter label[for="f-flow"],
#f-agent:focus-visible ~ .art-filter label[for="f-agent"],
#f-tech:focus-visible ~ .art-filter label[for="f-tech"],
#f-obs:focus-visible ~ .art-filter label[for="f-obs"] {
  outline: 2px solid var(--seal);
  outline-offset: 3px;
}

/* ---------- 列表（鋪法 A：一行一篇） ---------- */

.art-index {
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.art-index__row {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  align-items: baseline;
  gap: 0.4rem 1.75rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--rule);
}

.art-index__row:first-child {
  border-top: 0;
}

.art-index__title {
  font-size: 1.14rem;
  font-weight: 700;
}

.art-index__title a {
  text-decoration: none;
}

.art-index__title a:hover {
  color: var(--seal);
}

.art-index__cat {
  justify-self: start;
}

#f-flow:checked ~ .art-index .art-index__row:not(.cat-flow) {
  display: none;
}
#f-agent:checked ~ .art-index .art-index__row:not(.cat-agent) {
  display: none;
}
#f-tech:checked ~ .art-index .art-index__row:not(.cat-tech) {
  display: none;
}
#f-obs:checked ~ .art-index .art-index__row:not(.cat-obs) {
  display: none;
}

@media (max-width: 46rem) {
  .art-index__row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .art-head h1 {
    text-align: left;
  }
}

/* ---------- 文章內頁 ---------- */

.art-meta {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--ink-55);
  margin-bottom: 0.9rem;
}

.art-timeliness {
  margin-top: 1.75rem;
  padding: 1rem 1.4rem;
  background: rgba(165, 195, 214, 0.1);
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--ink);
}

article.prose {
  margin-inline: auto;
}

/* ---------- 名字的由來（安靜頁） ---------- */

.story {
  max-width: 36em;
  margin-inline: auto;
  padding-block: clamp(4rem, 10vw, 7rem);
}

.story h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: left;
}

.story__open {
  margin-top: 3rem;
  text-align: justify;
  color: var(--ink-75);
  line-height: 2.2;
}

.story h2 {
  font-size: 1.4rem;
  margin-top: clamp(3.5rem, 7vw, 5rem);
  padding-top: clamp(3.5rem, 7vw, 5rem);
  border-top: 1px solid var(--rule-soft);
}

.story p {
  margin-top: 1.4rem;
  color: var(--ink-75);
  line-height: 2.15;
}

.story strong {
  color: var(--ink);
}

.story blockquote {
  margin: 2.25rem 0 0;
  padding: 1.25rem 0 1.25rem 1.5rem;
  border-left: 3px solid var(--seal);
  color: var(--ink);
  line-height: 2.1;
}

.story blockquote cite {
  display: block;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ink-55);
  margin-top: 0.6rem;
}

.story__close {
  margin-top: clamp(3.5rem, 7vw, 5rem);
  padding-top: clamp(3.5rem, 7vw, 5rem);
  border-top: 1px solid var(--rule-soft);
  text-align: left;
}
