/*
Theme Name: Zhang Lawyer
Theme URI: https://www.brucechanglawyer.com
Author: Bruce Chang
Author URI: https://www.brucechanglawyer.com
Description: 張家銘律師個人官方網站主題 — 深海軍藍 × 金色，專業法律形象設計
Version: 3.9.4
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: zhang-lawyer
*/

/* ── CSS 變數 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0f2044;
  --navy-mid: #1a3460;
  --navy-light: #234080;
  --slate: #3d4f6b;
  --rock: #5a6478;
  --cream: #f5f3ee;
  --parchment: #ede9e0;
  --plaster: #e0ddd6;
  --white: #ffffff;
  --ink: #111111;
  --ink-mid: #111111;
  --ink-mute: #1a1a1a;
  --accent: #c4a35a;
  --accent-deep: #a8893a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans TC', sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 2.0;
  font-size: 18px;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--plaster); }
::-webkit-scrollbar-thumb { background: var(--navy-light); border-radius: 3px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 68px;
  background: rgba(245,243,238,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(90,100,120,0.12);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(15,32,68,0.1); }
.nav-logo { display: flex; align-items: baseline; gap: 8px; }
.nav-logo-cn { font-family: 'Noto Sans TC', sans-serif; font-size: 23px; font-weight: 700; color: var(--navy); letter-spacing: 2px; }
.nav-logo-en { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 400; color: var(--rock); letter-spacing: 2px; font-style: italic; margin-left: 4px; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a {
  text-decoration: none; font-family: 'Noto Sans TC', sans-serif;
  font-size: 17px; font-weight: 500; color: var(--ink-mid);
  letter-spacing: 1px; transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transition: transform 0.3s; transform-origin: left;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  background: var(--navy) !important; color: white !important;
  padding: 9px 22px !important; border-radius: 1px;
  font-size: 15px !important; letter-spacing: 1px !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--navy-mid) !important; }

/* 漢堡選單 */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── HERO ── */
.hero {
  min-height: 100vh; position: relative; overflow: hidden;
  display: flex; align-items: center;
  background-image: url('https://images.unsplash.com/photo-1453728013993-6d66e9c9123a?w=1800&q=80&auto=format&fit=crop');
  background-size: cover; background-position: center center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(8,15,32,0.86) 0%, rgba(10,20,50,0.78) 45%, rgba(8,15,32,0.60) 100%);
}
.hero-inner {
  max-width: 1160px; margin: 0 auto; width: 100%; padding: 0 6%;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100vh; position: relative; z-index: 1;
}
.hero-pretitle {
  font-family: 'Cormorant Garamond', serif; font-size: 20px; font-style: italic;
  color: var(--accent); letter-spacing: 5px; margin-bottom: 24px;
  display: flex; align-items: center; gap: 14px;
}
.hero-pretitle::before { content: ''; width: 32px; height: 1px; background: var(--accent); }
.hero-main-title {
  font-family: 'Noto Sans TC', sans-serif; font-size: 76px; font-weight: 700;
  color: white; letter-spacing: 3px; line-height: 1.35; margin-bottom: 12px;
}
.hero-main-title span { color: var(--accent); }
.hero-sub-title {
  font-family: 'Cormorant Garamond', serif; font-size: 26px; font-style: italic;
  color: rgba(255,255,255,0.52); letter-spacing: 3px; margin-bottom: 32px;
}
.hero-rule { width: 48px; height: 1px; background: var(--accent); margin-bottom: 32px; opacity: 0.7; }
.hero-desc {
  font-family: 'Noto Sans TC', sans-serif; font-size: 22px; line-height: 2.1;
  color: rgba(255,255,255,0.68); max-width: 560px; margin-bottom: 44px; font-weight: 300;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-gold {
  background: var(--accent); color: var(--navy);
  padding: 18px 44px; font-family: 'Noto Sans TC', sans-serif;
  font-size: 19px; font-weight: 700; letter-spacing: 2px;
  border: none; cursor: pointer; border-radius: 1px;
  transition: all 0.25s; text-decoration: none; display: inline-block;
}
.btn-gold:hover { background: #d4b570; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(196,163,90,0.3); }
.btn-ghost {
  background: transparent; color: rgba(255,255,255,0.78);
  padding: 18px 44px; font-family: 'Noto Sans TC', sans-serif;
  font-size: 19px; letter-spacing: 2px;
  border: 1px solid rgba(255,255,255,0.3); cursor: pointer; border-radius: 1px;
  transition: all 0.25s; text-decoration: none; display: inline-block;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── SECTION 通用 ── */
section { padding: 96px 5%; }
.sec-inner { max-width: 1160px; margin: 0 auto; width: 100%; }
.sec-en {
  font-family: 'Cormorant Garamond', serif; font-size: 22px;
  font-weight: 400; font-style: italic; color: var(--rock);
  letter-spacing: 3px; line-height: 1; display: block; margin-bottom: 10px;
}
.sec-cn {
  font-family: 'Noto Sans TC', sans-serif; font-size: 44px;
  font-weight: 700; color: var(--navy); letter-spacing: 3px;
  display: block; margin-bottom: 56px;
}
.sec-header-right { text-align: right; }

/* ── ABOUT ── */
.about-sec { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 360px 1fr; gap: 64px; align-items: start; }
.about-photo { width: 100%; aspect-ratio: 3/4; overflow: hidden; border-radius: 1px; border: 1px solid var(--plaster); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about-name-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; }
.about-name { font-family: 'Noto Sans TC', sans-serif; font-size: 52px; font-weight: 700; color: var(--navy); letter-spacing: 4px; }
.about-name-tag { font-family: 'Noto Sans TC', sans-serif; font-size: 26px; font-weight: 400; color: #1a1a1a; letter-spacing: 2px; }
.about-sub { font-family: 'Noto Sans TC', sans-serif; font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: 1px; margin: 24px 0 12px; }
.about-p { font-family: 'Noto Sans TC', sans-serif; font-size: 19px; line-height: 2.2; color: var(--ink-mid); font-weight: 400; margin-bottom: 10px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.badge { font-family: 'Noto Sans TC', sans-serif; font-size: 16px; letter-spacing: 2px; background: var(--navy); color: white; padding: 10px 20px; border-radius: 1px; }
.dot-list { list-style: none; margin-top: 4px; }
.dot-list li {
  font-family: 'Noto Sans TC', sans-serif; font-size: 19px; color: var(--ink-mid);
  padding: 11px 0; border-bottom: 1px solid var(--plaster);
  display: flex; align-items: center; gap: 10px; font-weight: 400; line-height: 1.8;
}
.dot-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ── EXPERTISE ── */
.expertise-sec { background: var(--cream); }
.expertise-box { padding: 40px 44px; background: var(--white); border: 1px solid var(--plaster); border-left: 3px solid var(--navy); border-radius: 1px; }
.expertise-intro { font-family: 'Noto Sans TC', sans-serif; font-size: 19px; color: var(--ink-mid); line-height: 2.2; margin-bottom: 28px; font-weight: 400; }
.etags { display: flex; flex-wrap: wrap; gap: 10px; }
.etag {
  font-family: 'Noto Sans TC', sans-serif; font-size: 18px; color: var(--navy);
  background: var(--cream); border: 1px solid rgba(15,32,68,0.2);
  padding: 11px 22px; border-radius: 1px; letter-spacing: 1px;
  transition: all 0.2s; cursor: default;
}
.etag:hover { background: var(--navy); color: white; border-color: var(--navy); }

/* ── SERVICES ── */
.services-sec { background: var(--white); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--plaster); }
.svc-card {
  background: var(--white); padding: 36px 28px;
  transition: all 0.3s; cursor: default; position: relative; overflow: hidden;
}
.svc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform 0.35s;
}
.svc-card:hover { background: var(--navy); }
.svc-card:hover::before { transform: scaleX(1); background: var(--accent); }
.svc-card:hover .svc-icon { border-color: rgba(196,163,90,0.25); }
.svc-card:hover .svc-title { color: white; }
.svc-card:hover .svc-desc { color: rgba(255,255,255,0.65); }
.svc-icon { font-size: 29px; width: 50px; height: 50px; border: 1px solid var(--plaster); border-radius: 1px; display: flex; align-items: center; justify-content: center; transition: border-color 0.3s; margin-bottom: 20px; }
.svc-title { font-family: 'Noto Sans TC', sans-serif; font-size: 24px; font-weight: 700; color: var(--navy); letter-spacing: 2px; margin-bottom: 12px; transition: color 0.3s; }
.svc-desc { font-family: 'Noto Sans TC', sans-serif; font-size: 18px; color: #1a1a1a; line-height: 2; transition: color 0.3s; font-weight: 400; }

/* ── CASES ── */
.cases-sec { background: var(--cream); }
.cases-block { background: var(--white); border: 1px solid var(--plaster); border-radius: 1px; padding: 40px 48px; }
.cases-block-title { font-family: 'Noto Sans TC', sans-serif; font-size: 26px; font-weight: 700; color: var(--navy); letter-spacing: 1px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--navy); }
.cases-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.cases-col-list { list-style: none; }
.cases-col-list li {
  font-family: 'Noto Sans TC', sans-serif; font-size: 18px; color: var(--ink-mid);
  padding: 12px 0; border-bottom: 1px solid var(--plaster);
  display: flex; align-items: flex-start; gap: 6px; line-height: 1.9; font-weight: 300;
}
.cases-col-list li:last-child { border-bottom: none; }
.cn { font-family: 'Cormorant Garamond', serif; font-size: 17px; color: #222222; min-width: 32px; flex-shrink: 0; font-style: italic; padding-top: 2px; }
.cr { font-size: 17px; color: var(--accent-deep); font-weight: 600; white-space: nowrap; margin-left: 2px; }

/* ── CONTACT ── */
.contact-sec { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; }
.c-section-label { font-family: 'Cormorant Garamond', serif; font-size: 23px; font-style: italic; letter-spacing: 3px; color: var(--rock); margin-bottom: 20px; display: block; }
.c-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--plaster); }
.c-ico { width: 46px; height: 46px; flex-shrink: 0; background: var(--navy); border-radius: 1px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: white; }
.c-lbl { font-family: 'Cormorant Garamond', serif; font-size: 15px; letter-spacing: 3px; color: var(--ink-mid); margin-bottom: 4px; font-style: italic; display: block; }
.c-val { font-family: 'Noto Sans TC', sans-serif; font-size: 22px; color: var(--ink); font-weight: 500; display: block; }
.c-val a { color: var(--ink); text-decoration: none; }
.c-val a:hover { color: var(--accent); }
.c-note { margin-top: 24px; padding: 22px 26px; background: var(--navy); border-radius: 1px; font-family: 'Noto Sans TC', sans-serif; font-size: 18px; color: rgba(255,255,255,0.75); line-height: 2.1; font-weight: 300; }
.c-note strong { color: var(--accent); }
.form-box { background: var(--cream); padding: 44px 40px; border: 1px solid var(--plaster); border-radius: 1px; }
.form-title { font-family: 'Noto Sans TC', sans-serif; font-size: 28px; font-weight: 700; color: var(--navy); letter-spacing: 1px; margin-bottom: 10px; }
.form-sub { font-family: 'Noto Sans TC', sans-serif; font-size: 17px; color: var(--ink-mid); margin-bottom: 24px; line-height: 2; font-weight: 400; }
.fg { margin-bottom: 18px; }
.fg label { display: flex; align-items: baseline; gap: 6px; margin-bottom: 9px; }
.fg label .lbl-cn { font-family: 'Noto Sans TC', sans-serif; font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: 1px; }
.fg label .lbl-en { font-family: 'Cormorant Garamond', serif; font-size: 14px; font-style: italic; color: #1a1a1a; letter-spacing: 2px; text-transform: uppercase; }
.fg input, .fg select, .fg textarea {
  width: 100%; border: 1px solid var(--plaster); background: var(--white);
  border-radius: 1px; padding: 14px 18px; font-size: 17px;
  font-family: 'Noto Sans TC', sans-serif; color: var(--ink);
  outline: none; transition: border-color 0.2s; appearance: none; font-weight: 300;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--navy); }
.fg textarea { height: 110px; resize: none; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-btn {
  width: 100%; background: var(--navy); color: white; border: none;
  padding: 16px; font-family: 'Noto Sans TC', sans-serif; font-size: 18px;
  font-weight: 700; letter-spacing: 3px; border-radius: 1px; cursor: pointer;
  transition: background 0.2s; margin-top: 4px;
}
.form-btn:hover { background: var(--navy-mid); }
.form-privacy { font-family: 'Cormorant Garamond', serif; font-size: 13px; color: #1a1a1a; text-align: center; margin-top: 12px; letter-spacing: 1px; font-style: italic; }

/* 表單成功/錯誤訊息 */
.form-msg { display: none; margin-top: 12px; padding: 14px 18px; border-radius: 1px; font-family: 'Noto Sans TC', sans-serif; font-size: 15px; }
.form-msg.success { background: rgba(196,163,90,0.1); border: 1px solid var(--accent); color: var(--navy); }
.form-msg.error { background: rgba(200,50,50,0.07); border: 1px solid rgba(200,50,50,0.3); color: #8b1a1a; }

/* ── FOOTER ── */
footer { background: #080f20; padding: 56px 5% 32px; }
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 40px; flex-wrap: wrap;
}
.footer-brand-cn { font-family: 'Noto Sans TC', sans-serif; font-size: 23px; font-weight: 700; color: white; letter-spacing: 3px; margin-bottom: 4px; }
.footer-brand-en { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-style: italic; color: rgba(196,163,90,0.6); letter-spacing: 3px; }
.footer-tagline { font-family: 'Noto Sans TC', sans-serif; font-size: 15px; color: rgba(255,255,255,0.35); margin-top: 14px; line-height: 1.9; max-width: 280px; }
.footer-links-group h4 { font-family: 'Cormorant Garamond', serif; font-size: 16px; letter-spacing: 3px; color: var(--accent); font-style: italic; margin-bottom: 16px; }
.footer-links-group a { display: block; text-decoration: none; font-family: 'Noto Sans TC', sans-serif; font-size: 15px; color: rgba(255,255,255,0.45); margin-bottom: 10px; letter-spacing: 0.5px; transition: color 0.2s; }
.footer-links-group a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-family: 'Cormorant Garamond', serif; font-size: 14px; color: rgba(255,255,255,0.2); letter-spacing: 1px; }
.footer-disclaimer { font-family: 'Noto Sans TC', sans-serif; font-size: 13px; color: rgba(255,255,255,0.2); max-width: 400px; text-align: right; line-height: 1.7; }

/* ── FLOAT ── */
.float-cta { position: fixed; right: 24px; bottom: 24px; z-index: 150; display: flex; flex-direction: column; gap: 10px; }
.float-btn {
  width: 50px; height: 50px; border-radius: 1px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  cursor: pointer; border: none; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.float-btn:hover { transform: translateY(-2px); }
.float-phone { background: var(--navy); }
.float-line { background: #06c755; }
.float-top { background: var(--rock); font-family: 'Cormorant Garamond', serif; font-size: 20px; color: white; font-style: italic; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-l.in { opacity: 1; transform: none; }
.reveal-r { opacity: 0; transform: translateX(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-r.in { opacity: 1; transform: none; }

/* ── KNOWLEDGE 頁 ── */
.page-hero { background: var(--navy); padding: 152px 5% 72px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(196,163,90,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(196,163,90,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
}
.page-hero-inner { max-width: 1160px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero-en { font-family: 'Cormorant Garamond', serif; font-size: 52px; font-weight: 600; font-style: italic; color: white; letter-spacing: 2px; line-height: 1; margin-bottom: 6px; }
.page-hero-cn { font-family: 'Noto Sans TC', sans-serif; font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.5); letter-spacing: 5px; }

.k-sec, .v-sec { background: var(--cream); padding: 72px 5%; }
.k-inner, .v-inner { max-width: 1160px; margin: 0 auto; }
.cat-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.cat-btn {
  font-family: 'Noto Sans TC', sans-serif; font-size: 14px; font-weight: 400;
  color: var(--navy); background: var(--white); border: 1px solid var(--plaster);
  padding: 7px 18px; border-radius: 1px; cursor: pointer; transition: all 0.2s; letter-spacing: 1px;
}
.cat-btn:hover, .cat-btn.active { background: var(--navy); color: white; border-color: var(--navy); }

/* 文章卡片 */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card { background: var(--white); border: 1px solid var(--plaster); border-radius: 1px; overflow: hidden; transition: all 0.3s; cursor: pointer; }
.article-card:hover { border-color: var(--navy); box-shadow: 0 6px 28px rgba(15,32,68,0.08); transform: translateY(-2px); }
.ac-top { background: var(--navy); padding: 28px 24px 22px; }
.ac-cat { font-family: 'Cormorant Garamond', serif; font-size: 12px; letter-spacing: 3px; color: var(--accent); font-style: italic; margin-bottom: 10px; }
.ac-title { font-family: 'Noto Sans TC', sans-serif; font-size: 17px; font-weight: 500; color: white; line-height: 1.7; }
.ac-body { padding: 20px 24px; }
.ac-date { font-family: 'Cormorant Garamond', serif; font-size: 12px; letter-spacing: 2px; color: #1a1a1a; font-style: italic; margin-bottom: 10px; }
.ac-excerpt { font-family: 'Noto Sans TC', sans-serif; font-size: 15px; color: var(--ink-mid); line-height: 1.9; font-weight: 400; }
.ac-more { font-family: 'Cormorant Garamond', serif; font-size: 13px; letter-spacing: 2px; color: var(--accent); margin-top: 14px; display: inline-block; font-style: italic; }

/* 成功案例卡片 */
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cc { background: var(--white); border: 1px solid var(--plaster); border-radius: 1px; overflow: hidden; transition: all 0.3s; }
.cc:hover { border-color: var(--accent); box-shadow: 0 6px 28px rgba(15,32,68,0.08); }
.cc-header { padding: 24px 28px 18px; border-bottom: 1px solid var(--plaster); display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.cc-type { font-family: 'Cormorant Garamond', serif; font-size: 12px; letter-spacing: 3px; color: var(--accent-deep); font-style: italic; margin-bottom: 8px; }
.cc-title { font-family: 'Noto Sans TC', sans-serif; font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.6; }
.cc-outcome { font-family: 'Noto Sans TC', sans-serif; font-size: 12px; font-weight: 700; color: white; background: var(--accent-deep); padding: 4px 12px; border-radius: 1px; white-space: nowrap; letter-spacing: 1px; }
.cc-body { padding: 18px 28px 24px; }
.cc-desc { font-family: 'Noto Sans TC', sans-serif; font-size: 15px; color: var(--ink-mid); line-height: 2; font-weight: 400; }
.cc-result { display: flex; align-items: center; gap: 9px; margin-top: 16px; padding: 10px 14px; background: rgba(196,163,90,0.07); border: 1px solid rgba(196,163,90,0.18); border-radius: 1px; }
.cc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.cc-result-text { font-family: 'Noto Sans TC', sans-serif; font-size: 14px; font-weight: 700; color: var(--navy); }
/* ── 成功案例：圖文卡片 ── */
.cc-image { position: relative; overflow: hidden; background: var(--navy); }
.cc-img { width: 100%; display: block; aspect-ratio: 16/10; object-fit: cover; opacity: 0.95; transition: opacity 0.3s; }
.cc:hover .cc-img { opacity: 1; }
.cc-outcome-img { position: absolute; top: 14px; right: 14px; font-family: 'Noto Sans TC', sans-serif; font-size: 13px; font-weight: 700; color: white; background: var(--accent-deep); padding: 5px 14px; border-radius: 1px; letter-spacing: 1px; box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.cc-header-img { border-top: none; }


/* 單篇文章 */
.single-article { max-width: 1080px; margin: 0 auto; padding: 80px 5% 96px; }
.article-meta { display: flex; gap: 20px; align-items: center; margin-bottom: 36px; }
.article-cat-badge { font-family: 'Cormorant Garamond', serif; font-size: 16px; letter-spacing: 3px; color: var(--accent-deep); font-style: italic; }
.article-date { font-family: 'Noto Sans TC', sans-serif; font-size: 16px; color: #1a1a1a; font-style: normal; font-weight: 500; }
.article-title { font-family: 'Noto Sans TC', sans-serif; font-size: 34px; font-weight: 700; color: var(--navy); letter-spacing: 1px; line-height: 1.5; margin-bottom: 40px; padding-bottom: 28px; border-bottom: 2px solid var(--navy); }
.article-content { font-family: 'Noto Sans TC', sans-serif; font-size: 17px; line-height: 2.2; color: var(--ink-mid); font-weight: 400; }
.article-content h2 { font-size: 23px; font-weight: 700; color: var(--navy); margin: 40px 0 16px; }
.article-content h3 { font-size: 19px; font-weight: 700; color: var(--navy-mid); margin: 28px 0 12px; }
.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { margin: 16px 0 20px 24px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote { border-left: 3px solid var(--accent); padding: 16px 24px; background: var(--cream); margin: 28px 0; font-style: italic; color: var(--ink-mid); }
.article-back { margin-top: 56px; }
.article-back a { font-family: 'Cormorant Garamond', serif; font-size: 16px; color: var(--accent-deep); font-style: italic; letter-spacing: 2px; text-decoration: none; }
.article-back a:hover { color: var(--navy); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; aspect-ratio: 3/4; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 68px; left: 0; right: 0; background: rgba(245,243,238,0.98); flex-direction: column; padding: 24px 5%; gap: 16px; border-bottom: 1px solid var(--plaster); backdrop-filter: blur(16px); }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 18px; }
  .nav-hamburger { display: flex; }
  .hero-main-title { font-size: 44px; }
  .hero-desc { font-size: 17px; }
  .sec-cn { font-size: 30px; }
  .svc-grid { grid-template-columns: 1fr; }
  .cases-columns { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .cases-block { padding: 28px 24px; }
  .form-box { padding: 28px 20px; }
  .fg-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-main-title { font-size: 36px; }
  .hero-btns { flex-direction: column; }
  .btn-gold, .btn-ghost { text-align: center; }
}

/* ── 參與案件（條列式，嵌入律師介紹下方） ── */
.cases-inline-sec {
  background: var(--cream);
  padding: 48px 0 80px;
  border-top: 1px solid #e0ddd6;
}
.cases-inline-header {
  margin-bottom: 32px;
}
.cases-inline-label {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 12px;
  letter-spacing: 5px;
  color: var(--accent);
  text-transform: uppercase;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--accent);
}
.cases-inline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid #d0cdc6;
}
.ci-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 20px 14px 0;
  border-bottom: 1px solid #e0ddd6;
}
.ci-item:nth-child(odd) { padding-right: 32px; border-right: 1px solid #e0ddd6; }
.ci-item:nth-child(even) { padding-left: 32px; }
.ci-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
  min-width: 24px;
}
.ci-text {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 15px;
  color: #111;
  line-height: 1.6;
  flex: 1;
}
.ci-result {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

@media(max-width: 768px){
  .cases-inline-grid { grid-template-columns: 1fr; }
  .ci-item:nth-child(odd) { border-right: none; padding-right: 0; }
  .ci-item:nth-child(even) { padding-left: 0; }
}

/* ── 關於律師區塊內的參與案件條列 ── */
.about-cases-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.about-case-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #e8e4dd;
  font-family: 'Noto Sans TC', sans-serif;
  line-height: 1.6;
}
.about-case-num {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  min-width: 22px;
}
.about-case-text {
  font-size: 15px;
  color: #111;
  flex: 1;
}
.about-case-result {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}
