/* =========================================================================
   張奕晨律師 — 設計系統
   風格取自 BootstrapMade「Instant」模板的設計語言（深黑底 + 琥珀金），
   以 Bootstrap 5 為底自行重寫，未使用該模板的原始檔案。

   要調整整站配色或圓角，只改下方 :root 即可。
   ========================================================================= */

:root {
  /* -- 配色 ---------------------------------------------------------- */
  --background-color: #040000;
  --surface-color: #191919;
  --surface-raised: #232020;
  --default-color: #f8f8f8;
  --heading-color: #ffffff;
  --accent-color: #e59d02;
  --accent-soft: rgba(229, 157, 2, 0.12);
  --contrast-color: #ffffff;
  --muted-color: rgba(248, 248, 248, 0.62);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(229, 157, 2, 0.35);
  --danger-color: #d64545;

  /* -- 字型 ----------------------------------------------------------
     Raleway / Roboto 沒有中文字符，必須接上 Noto Sans TC，
     否則中文會掉回系統預設字體。                                      */
  --heading-font: "Raleway", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei",
    sans-serif;
  --default-font: "Roboto", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei",
    sans-serif;
  --nav-font: var(--heading-font);

  /* -- 尺寸 ---------------------------------------------------------- */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 50px;
  --header-height: 76px;
  --section-padding: 96px;
}

/* =========================================================================
   基礎
   ========================================================================= */

* {
  scroll-behavior: smooth;
}

body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  font-size: 16px;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), white 25%);
}

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

::selection {
  background: var(--accent-color);
  color: #000;
}

/* 捲軸 */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--background-color);
}
::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* =========================================================================
   通用區塊
   ========================================================================= */

section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: var(--section-padding) 0;
  scroll-margin-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.light-background {
  background-color: var(--surface-color);
}

.gradient-background {
  background: linear-gradient(180deg, var(--background-color) 0%, #120f0c 100%);
}

/* 區塊標題 — Instant 的招牌：h2 左右各一條金色橫槓 */
.section-title {
  text-align: center;
  padding-bottom: 56px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
}

.section-title h2::before,
.section-title h2::after {
  content: "";
  width: 50px;
  height: 2px;
  background: var(--accent-color);
  display: inline-block;
  vertical-align: middle;
}

.section-title h2::before {
  margin: 0 15px 8px 0;
}

.section-title h2::after {
  margin: 0 0 8px 15px;
}

.section-title p {
  margin-bottom: 0;
  color: var(--muted-color);
  max-width: 720px;
  margin-inline: auto;
}

.section-label {
  display: inline-block;
  font-family: var(--heading-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 10px;
}

/* =========================================================================
   按鈕
   ========================================================================= */

.btn-accent,
.btn-accent:focus {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1a1200;
  background: var(--accent-color);
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 30px;
  border: 0;
  border-radius: var(--radius-pill);
  transition: 0.3s;
  white-space: nowrap;
}

.btn-accent:hover {
  color: #1a1200;
  background: color-mix(in srgb, var(--accent-color), white 18%);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(229, 157, 2, 0.28);
}

.btn-outline-accent,
.btn-outline-accent:focus {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--default-color);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 15px;
  padding: 11px 28px;
  border-radius: var(--radius-pill);
  transition: 0.3s;
  white-space: nowrap;
}

.btn-outline-accent:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background: var(--accent-soft);
}

.btn-line,
.btn-line:focus {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  background: #06c755;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 30px;
  border-radius: var(--radius-pill);
  transition: 0.3s;
  white-space: nowrap;
}

.btn-line:hover {
  color: #fff;
  background: #05b34c;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(6, 199, 85, 0.28);
}

/* =========================================================================
   頁首 / 導覽列
   ========================================================================= */

.header {
  --header-bg: transparent;
  background-color: var(--header-bg);
  color: var(--default-color);
  padding: 14px 0;
  transition: 0.4s;
  z-index: 997;
}

.header.scrolled {
  --header-bg: rgba(4, 0, 0, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
}

.header .logo {
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 事務所 logo 原檔是深藍色，在深底上會看不見，轉成白色 */
.header .logo img {
  max-height: 42px;
  filter: brightness(0) invert(1);
  transition: 0.3s;
}

.header .logo:hover img {
  filter: brightness(0) saturate(100%) invert(68%) sepia(72%) saturate(1670%)
    hue-rotate(1deg) brightness(96%) contrast(101%);
}

.header .logo .sitename {
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0;
  letter-spacing: 0.02em;
}

.header .logo .siteslogan {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--accent-color);
  letter-spacing: 0.18em;
  margin-top: 3px;
}

.header .header-phone {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.header .header-phone i {
  color: var(--accent-color);
  font-size: 20px;
}

.header .header-phone small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted-color);
  letter-spacing: 0.12em;
}

/* -- 桌機導覽 -------------------------------------------------------- */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu > ul > li {
    white-space: nowrap;
    padding: 15px 14px;
  }

  .navmenu > ul > li:last-child {
    padding-right: 0;
  }

  .navmenu a {
    color: var(--default-color);
    font-family: var(--nav-font);
    font-size: 15px;
    font-weight: 500;
    padding: 0 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
  }

  .navmenu a i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
  }

  .navmenu > ul > li > a::before {
    content: "";
    position: absolute;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--accent-color);
    visibility: hidden;
    width: 0;
    transition: all 0.3s ease-in-out;
  }

  .navmenu a:hover::before,
  .navmenu li:hover > a::before,
  .navmenu .active::before {
    visibility: visible;
    width: 100%;
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus,
  .navmenu li:hover > a {
    color: var(--accent-color);
  }

  /* 下拉選單 */
  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--surface-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 6px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    z-index: 99;
    min-width: 210px;
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 8px 18px;
    font-size: 15px;
  }

  .navmenu .dropdown:hover > ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }
}

/* -- 手機導覽 -------------------------------------------------------- */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--heading-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 4px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: var(--radius);
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    height: fit-content;
    max-height: calc(100vh - 90px);
  }

  .navmenu a {
    color: var(--default-color);
    padding: 12px 22px;
    font-family: var(--nav-font);
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i {
    font-size: 13px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: var(--accent-soft);
  }

  .navmenu a:hover,
  .navmenu .active {
    color: var(--accent-color);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 6px 0;
    margin: 6px 20px;
    border-radius: var(--radius-sm);
    background-color: var(--surface-raised);
    border: 1px solid var(--border-color);
    box-shadow: none;
    inset: auto;
  }

  .navmenu .dropdown > .dropdown-active {
    display: block;
    background-color: rgba(255, 255, 255, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: var(--accent-color);
  }

  .mobile-nav-active .navmenu > ul {
    display: block;
  }

  .mobile-nav-active::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9996;
  }
}

/* =========================================================================
   Hero
   ========================================================================= */

.hero {
  padding: calc(var(--header-height) + 70px) 0 70px 0;
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/bg-courthouse.jpg") center center / cover no-repeat;
  opacity: 0.28;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      100deg,
      var(--background-color) 12%,
      rgba(4, 0, 0, 0.82) 48%,
      rgba(4, 0, 0, 0.55) 100%
    );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent-color);
  font-family: var(--heading-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.hero .hero-eyebrow .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-color);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(229, 157, 2, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(229, 157, 2, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(229, 157, 2, 0);
  }
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.28;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

.hero h1 .accent {
  color: var(--accent-color);
}

.hero .typed-wrap {
  font-family: var(--heading-font);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 18px;
  min-height: 38px;
}

.hero .typed-cursor {
  color: var(--accent-color);
  font-weight: 400;
}

.hero p.lead {
  font-size: 17px;
  color: var(--muted-color);
  max-width: 560px;
  margin-bottom: 30px;
}

.hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero .hero-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero .hero-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(25, 25, 25, 0.72);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 13px 20px;
  backdrop-filter: blur(6px);
  transition: 0.3s;
}

.hero .hero-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.hero .hero-card i {
  font-size: 24px;
  color: var(--accent-color);
}

.hero .hero-card strong {
  display: block;
  font-family: var(--heading-font);
  font-size: 17px;
  color: var(--heading-color);
  line-height: 1.3;
}

.hero .hero-card span {
  font-size: 12px;
  color: var(--muted-color);
}

/* 去背人像 */
.hero .hero-portrait {
  position: relative;
  text-align: center;
}

.hero .hero-portrait::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(229, 157, 2, 0.30) 0%,
    rgba(229, 157, 2, 0.07) 45%,
    transparent 70%
  );
  z-index: 0;
}

.hero .hero-portrait img {
  position: relative;
  z-index: 1;
  max-height: 560px;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.75));
}

/* 方形正式大頭照用的樣式。
   去背照可以直接浮在深色背景上，但有底色的方形照不行——會出現一塊突兀的
   淺色矩形。這裡用圓角卡片框住，加金色細邊與由下往上的深色漸層，讓照片
   下緣融進黑底。 */
.hero .hero-portrait.framed::before {
  width: 92%;
  top: 50%;
}

.hero .hero-portrait.framed .portrait-frame {
  position: relative;
  z-index: 1;
  display: inline-block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
  line-height: 0;
  max-width: 400px;
}

.hero .hero-portrait.framed .portrait-frame img {
  max-height: 540px;
  width: 100%;
  object-fit: cover;
  filter: none;
  display: block;
}

/* 照片下緣的漸層，讓灰底自然收進黑底 */
.hero .hero-portrait.framed .portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(4, 0, 0, 0.35) 82%,
    rgba(4, 0, 0, 0.85) 100%
  );
  pointer-events: none;
}

/* 左下角的執業標記 */
.hero .hero-portrait.framed .portrait-tag {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  font-family: var(--heading-font);
  text-align: left;
  line-height: 1.35;
}

.hero .hero-portrait.framed .portrait-tag strong {
  display: block;
  font-size: 18px;
  color: var(--heading-color);
}

.hero .hero-portrait.framed .portrait-tag span {
  font-size: 12px;
  color: var(--accent-color);
  letter-spacing: 0.12em;
}

/* =========================================================================
   緊急警示條
   ========================================================================= */

.alert-bar {
  background: linear-gradient(
    100deg,
    rgba(214, 69, 69, 0.16) 0%,
    rgba(229, 157, 2, 0.12) 100%
  );
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  padding: 30px 0;
}

.alert-bar .alert-icon {
  font-size: 40px;
  color: var(--accent-color);
  line-height: 1;
}

.alert-bar h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.alert-bar p {
  margin: 0;
  color: var(--default-color);
}

.alert-bar strong {
  color: var(--accent-color);
}

/* =========================================================================
   卡片元件
   ========================================================================= */

/* -- 服務卡（帶編號） ------------------------------------------------ */
.service-card {
  position: relative;
  height: 100%;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 34px 30px;
  overflow: hidden;
  transition: 0.35s;
  display: block;
}

.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 0;
  background: var(--accent-color);
  transition: width 0.35s;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5);
}

.service-card:hover::after {
  width: 100%;
}

.service-card .card-number {
  position: absolute;
  right: 20px;
  top: 12px;
  font-family: var(--heading-font);
  font-size: 60px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  transition: 0.35s;
}

.service-card:hover .card-number {
  color: var(--accent-soft);
}

.service-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--accent-color);
  margin-bottom: 20px;
  transition: 0.35s;
}

.service-card:hover .card-icon {
  background: var(--accent-color);
  color: #1a1200;
}

.service-card h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--muted-color);
  font-size: 15px;
  margin-bottom: 16px;
}

.service-card .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.service-card .tag-list span {
  font-size: 12.5px;
  color: var(--muted-color);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 3px 11px;
}

.service-card .card-more {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.service-card:hover .card-more i {
  transform: translateX(4px);
}

.service-card .card-more i {
  transition: 0.3s;
}

/* -- 案例卡 ---------------------------------------------------------- */
.case-card {
  height: 100%;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.35s;
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5);
}

.case-card .case-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0d0d0d;
}

.case-card .case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.85;
  transition: 0.5s;
}

.case-card:hover .case-media img {
  transform: scale(1.05);
  opacity: 1;
}

.case-card .case-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  background: var(--accent-color);
  color: #1a1200;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 13px;
  border-radius: var(--radius-pill);
}

.case-card .case-result {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(4, 0, 0, 0.88);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  text-align: right;
}

.case-card .case-result strong {
  display: block;
  font-family: var(--heading-font);
  font-size: 22px;
  color: var(--accent-color);
  line-height: 1.2;
}

.case-card .case-result span {
  font-size: 11px;
  color: var(--muted-color);
}

.case-card .case-body {
  padding: 26px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-card .case-body h3 {
  font-size: 18px;
  line-height: 1.55;
  margin-bottom: 16px;
}

.case-block + .case-block {
  margin-top: 14px;
}

.case-block h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-color);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.case-block p {
  font-size: 14.5px;
  color: var(--muted-color);
  margin: 0;
  line-height: 1.85;
}

/* -- 收費卡 ---------------------------------------------------------- */
.pricing-card {
  height: 100%;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  transition: 0.35s;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5);
}

.pricing-card.featured {
  border-color: var(--border-strong);
  background: linear-gradient(
    180deg,
    rgba(229, 157, 2, 0.09) 0%,
    var(--surface-color) 55%
  );
}

.pricing-card .plan-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  color: var(--accent-color);
  transition: 0.35s;
}

.pricing-card:hover .plan-icon {
  background: var(--accent-color);
  color: #1a1200;
}

.pricing-card h3 {
  font-size: 19px;
  margin-bottom: 14px;
}

.pricing-card .price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  margin-bottom: 6px;
}

.pricing-card .price .currency {
  font-family: var(--heading-font);
  font-size: 20px;
  color: var(--accent-color);
  font-weight: 700;
}

.pricing-card .price .amount {
  font-family: var(--heading-font);
  font-size: 40px;
  font-weight: 800;
  color: var(--heading-color);
  line-height: 1;
}

.pricing-card .price .unit {
  font-size: 15px;
  color: var(--muted-color);
}

.pricing-card .period {
  font-size: 13px;
  color: var(--accent-color);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.pricing-card .note {
  font-size: 14px;
  color: var(--muted-color);
  margin: 0;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

/* -- 專訪卡 ---------------------------------------------------------- */
.media-card {
  height: 100%;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-color);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: 0.35s;
  display: flex;
  flex-direction: column;
}

.media-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5);
  background: var(--surface-raised);
}

.media-card .media-topic {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--accent-color);
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  margin-bottom: 14px;
  align-self: flex-start;
}

.media-card h3 {
  font-size: 19px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.media-card .media-link {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* =========================================================================
   內頁標題橫幅
   ========================================================================= */

.page-title {
  position: relative;
  padding: calc(var(--header-height) + 74px) 0 60px;
  text-align: center;
  overflow: hidden;
}

.page-title::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/bg-courthouse.jpg") center center / cover no-repeat;
  opacity: 0.22;
}

.page-title::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 0, 0, 0.9) 0%,
    rgba(4, 0, 0, 0.75) 55%,
    var(--background-color) 100%
  );
}

.page-title .container {
  position: relative;
  z-index: 2;
}

.page-title h1 {
  font-size: 40px;
  margin-bottom: 12px;
}

.page-title .lead {
  color: var(--muted-color);
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 0;
}

.breadcrumbs {
  margin-top: 16px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: var(--muted-color);
}

.breadcrumbs ol li + li {
  padding-left: 10px;
}

.breadcrumbs ol li + li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: rgba(255, 255, 255, 0.3);
}

/* =========================================================================
   關於 / 律師介紹
   ========================================================================= */

.about-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.about-figure img {
  width: 100%;
  display: block;
}

.about-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 0, 0, 0.7) 100%);
}

.credential-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
}

.credential-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border-color);
  color: var(--default-color);
}

.credential-list li:last-child {
  border-bottom: 0;
}

.credential-list i {
  color: var(--accent-color);
  font-size: 18px;
  margin-top: 5px;
  flex-shrink: 0;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-color);
}

.info-list li:last-child {
  border-bottom: 0;
}

.info-list i {
  color: var(--accent-color);
  font-size: 20px;
  margin-top: 4px;
  flex-shrink: 0;
}

.info-list strong {
  display: block;
  font-family: var(--heading-font);
  font-size: 13px;
  color: var(--muted-color);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.info-list span,
.info-list a {
  font-size: 16px;
  color: var(--heading-color);
}

.info-list a:hover {
  color: var(--accent-color);
}

/* =========================================================================
   數字條
   ========================================================================= */

.stats-section {
  background: linear-gradient(180deg, #100d0a 0%, var(--background-color) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 64px 0;
}

.stat-item {
  text-align: center;
}

.stat-item i {
  font-size: 30px;
  color: var(--accent-color);
  margin-bottom: 10px;
  display: block;
}

.stat-item .stat-value {
  font-family: var(--heading-font);
  font-size: 44px;
  font-weight: 800;
  color: var(--heading-color);
  line-height: 1.1;
  display: block;
}

.stat-item .stat-value .suffix {
  font-size: 22px;
  color: var(--accent-color);
}

.stat-item p {
  color: var(--muted-color);
  font-size: 14.5px;
  margin: 6px 0 0;
}

/* =========================================================================
   CTA 區塊
   ========================================================================= */

.cta-panel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  padding: 52px 46px;
  background: var(--surface-color);
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/bg-scales.jpg") center center / cover no-repeat;
  opacity: 0.14;
}

.cta-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(25, 25, 25, 0.96) 30%,
    rgba(25, 25, 25, 0.7) 100%
  );
}

.cta-panel > * {
  position: relative;
  z-index: 2;
}

.cta-panel h2 {
  font-size: 30px;
  margin-bottom: 12px;
}

.cta-panel p {
  color: var(--muted-color);
  margin-bottom: 0;
}

/* 免費下載自救指南 */
.guide-panel {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.guide-panel .guide-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--accent-color);
  color: #1a1200;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 20px;
}

.emergency-service {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px 20px;
  height: 100%;
  transition: 0.3s;
}

.emergency-service:hover {
  border-color: var(--border-strong);
  background: var(--accent-soft);
}

.emergency-service i {
  font-size: 26px;
  color: var(--accent-color);
  flex-shrink: 0;
}

.emergency-service strong {
  display: block;
  font-family: var(--heading-font);
  font-size: 16px;
  color: var(--heading-color);
}

.emergency-service span {
  font-size: 13px;
  color: var(--muted-color);
}

/* =========================================================================
   FAQ
   ========================================================================= */

.faq-item {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  transition: 0.3s;
}

.faq-item.active {
  border-color: var(--border-strong);
}

.faq-item .faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--heading-font);
  font-size: 17px;
  font-weight: 600;
  color: var(--heading-color);
  transition: 0.3s;
}

.faq-item .faq-question:hover,
.faq-item.active .faq-question {
  color: var(--accent-color);
}

.faq-item .faq-question i {
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--accent-color);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item .faq-answer p {
  padding: 0 24px 22px;
  margin: 0;
  color: var(--muted-color);
  font-size: 15.5px;
}

/* =========================================================================
   聯絡
   ========================================================================= */

.contact-card {
  height: 100%;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  transition: 0.35s;
}

.contact-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-5px);
}

.contact-card i {
  font-size: 32px;
  color: var(--accent-color);
  margin-bottom: 14px;
  display: block;
}

.contact-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.contact-card p,
.contact-card a {
  color: var(--muted-color);
  font-size: 15px;
  margin: 0;
  word-break: break-word;
}

.contact-card a:hover {
  color: var(--accent-color);
}

.map-frame {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
  filter: grayscale(1) invert(0.92) contrast(0.85);
}

.map-frame iframe {
  width: 100%;
  height: 380px;
  border: 0;
}

.region-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent-color);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 15px;
}

/* =========================================================================
   免責聲明
   ========================================================================= */

.disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 13.5px;
  color: var(--muted-color);
  line-height: 1.75;
}

.disclaimer i {
  color: var(--accent-color);
  font-size: 17px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* =========================================================================
   頁尾
   ========================================================================= */

.footer {
  background: #0b0908;
  border-top: 1px solid var(--border-color);
  padding-top: 64px;
  font-size: 15px;
}

.footer .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer .footer-logo img {
  max-height: 46px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer .footer-logo .sitename {
  font-family: var(--heading-font);
  font-size: 21px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0;
}

.footer .footer-logo .siteslogan {
  display: block;
  font-size: 11px;
  color: var(--accent-color);
  letter-spacing: 0.16em;
  margin-top: 3px;
}

.footer h4 {
  font-size: 16px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  position: relative;
}

.footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: var(--accent-color);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  padding: 5px 0;
}

.footer ul a {
  color: var(--muted-color);
  font-size: 14.5px;
}

.footer ul a:hover {
  color: var(--accent-color);
  padding-left: 4px;
}

.footer .footer-contact p {
  color: var(--muted-color);
  margin-bottom: 6px;
  font-size: 14.5px;
}

.footer .footer-contact strong {
  color: var(--default-color);
}

.footer .footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer .footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--default-color);
  font-size: 17px;
  transition: 0.3s;
}

.footer .footer-social a:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #1a1200;
}

.footer .copyright {
  border-top: 1px solid var(--border-color);
  margin-top: 46px;
  padding: 24px 0;
  font-size: 13.5px;
  color: var(--muted-color);
}

.footer .legal-note {
  font-size: 12.5px;
  color: rgba(248, 248, 248, 0.4);
  margin-top: 6px;
}

/* =========================================================================
   浮動元件
   ========================================================================= */

/* 手機底部固定 CTA — 緊急案件當事人多半用手機，這是最重要的轉換入口 */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 996;
  display: none;
  background: rgba(4, 0, 0, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}

.mobile-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 15.5px;
}

.mobile-cta .cta-phone {
  background: var(--accent-color);
  color: #1a1200;
}

.mobile-cta .cta-line {
  background: #06c755;
  color: #fff;
}

@media (max-width: 991px) {
  .mobile-cta {
    display: flex;
  }

  body {
    padding-bottom: 72px;
  }
}

/* 回到頂端 */
.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 995;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #1a1200;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s;
  border: 0;
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  color: #1a1200;
  background: color-mix(in srgb, var(--accent-color), white 18%);
}

@media (max-width: 991px) {
  .scroll-top {
    bottom: 84px;
  }
}

/* 載入動畫 */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
}

#preloader::before {
  content: "";
  width: 44px;
  height: 44px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================================
   響應式
   ========================================================================= */

@media (max-width: 1199px) {
  .hero h1 {
    font-size: 44px;
  }
}

@media (max-width: 991px) {
  :root {
    --section-padding: 68px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 46px);
    text-align: center;
  }

  .hero p.lead {
    margin-inline: auto;
  }

  .hero .hero-actions,
  .hero .hero-cards {
    justify-content: center;
  }

  .hero .hero-portrait {
    margin-top: 40px;
  }

  .hero .hero-portrait img {
    max-height: 400px;
  }

  .cta-panel {
    padding: 38px 26px;
    text-align: center;
  }

  .guide-panel {
    padding: 30px 24px;
  }

  .page-title {
    padding-top: calc(var(--header-height) + 46px);
  }
}

@media (max-width: 767px) {
  .hero h1 {
    font-size: 33px;
  }

  .hero .typed-wrap {
    font-size: 19px;
  }

  .section-title h2 {
    font-size: 25px;
  }

  .section-title h2::before,
  .section-title h2::after {
    width: 26px;
  }

  .page-title h1 {
    font-size: 29px;
  }

  .stat-item .stat-value {
    font-size: 34px;
  }

  .cta-panel h2 {
    font-size: 23px;
  }

  .hero .hero-actions a,
  .hero .hero-cards {
    width: 100%;
  }

  .hero .hero-actions a {
    justify-content: center;
  }

  .hero .hero-card {
    width: 100%;
  }
}

/* 使用者偏好減少動態效果時，關掉所有動畫 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
