/* ===========================================================
   霏鳥科技 Fei Knowledge — 首頁樣式
   Tokens 對照霏鳥科技設計系統 project/tokens.json,
   變數命名與設計系統元件預覽(Button/Card/Chip)保持一致。
   =========================================================== */

:root {
  /* color */
  --red: #C73E3A;
  --red-dark: #8F2A27;
  --red-tint: #F2E7E5;
  --ink: #2B2725;
  --ink-2: #4A4441;
  --body: #5A534F;
  --muted: #655E5A;
  --soft: #7E7772;
  --faint: #9A918A;
  --bg: #FAF8F5;
  --bg-2: #F3EFEA;
  --bg-3: #F1EAE3;
  --ph: #EFE9E3;
  --surface: #FFFFFF;

  /* type */
  --font-sans: "Noto Sans TC", system-ui, -apple-system, sans-serif;
  --font-accent: "Outfit", system-ui, sans-serif;

  /* radius */
  --sm: 12px;
  --num: 14px;
  --md: 20px;
  --lg: 22px;
  --xl: 24px;
  --2xl: 28px;
  --pill: 999px;

  /* shadow */
  --shadow-button: 0 6px 18px rgba(199, 62, 58, .28);
  --shadow-card: 0 2px 12px rgba(43, 39, 37, .04);

  /* spacing / responsive pad */
  --pad: 56px;
  --section-pad: 84px;
}

@media (max-width: 1080px) {
  :root { --pad: 40px; --section-pad: 84px; }
}
@media (max-width: 560px) {
  :root { --pad: 24px; --section-pad: 64px; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.bg { background: var(--bg); }
.bg-2 { background: var(--bg-2); }
.bg-3 { background: var(--bg-3); }

/* ---------- type scale ---------- */
h1, h2, h3 { font-family: var(--font-sans); color: var(--ink); margin: 0; }
.display {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.22;
  font-weight: 900;
}
.heading {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.35;
  font-weight: 900;
}
.subheading { font-size: 21px; line-height: 1.4; font-weight: 700; }
.item-heading { font-size: 17px; line-height: 1.3; font-weight: 700; }
.lead {
  font-size: clamp(15px, 1.4vw, 16.5px);
  line-height: 1.9;
  color: var(--body);
  font-weight: 400;
}
.body-text { font-size: 14.5px; line-height: 1.95; color: var(--muted); }
.caption { font-size: 13px; line-height: 1.6; color: var(--ink-2); }

.eyebrow {
  font-family: var(--font-accent);
  font-size: 11.5px;
  letter-spacing: .16em;
  font-weight: 500;
  color: var(--red);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 14px;
}
.tag {
  font-family: var(--font-accent);
  font-size: 11px;
  letter-spacing: .1em;
  font-weight: 500;
  color: var(--red);
  text-transform: uppercase;
}
.stat-number {
  font-family: var(--font-accent);
  font-size: 30px;
  font-weight: 600;
  color: var(--red);
  line-height: 1;
}
.price {
  font-family: var(--font-accent);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}
.num-accent { font-family: var(--font-accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: var(--pill);
  font-size: 15.5px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: 0;
  font-family: var(--font-sans);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--red); color: var(--surface); box-shadow: var(--shadow-button); }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: var(--surface); border: 1px solid rgba(43,39,37,.16); color: var(--ink-2); }
.btn-ghost:hover { border-color: rgba(43,39,37,.4); color: var(--ink); }
.btn-light { background: var(--surface); color: var(--red); padding: 14px 28px; font-size: 14.5px; }
.btn-light:hover { background: var(--red-tint); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(43,39,37,.06);
}
body.nav-open .nav {
  backdrop-filter: none;
  background: var(--ink);
  border-bottom: 0;
  z-index: 150;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.nav-logo { position: relative; z-index: 110; }
.nav-logo img { height: 34px; width: auto; display: block; }
.nav-logo .logo-open { display: none; height: 30px; }
body.nav-open .nav-logo .logo-default { display: none; }
body.nav-open .nav-logo .logo-open { display: block; }
.nav-links { display: flex; align-items: center; }
.nav-links-items { display: flex; gap: 28px; align-items: center; }
.nav-links a.caption { color: var(--ink-2); }
.nav-links a.caption:hover { color: var(--red); }
.nav .btn { padding: 12px 24px; font-size: 14px; }
.nav-toggle {
  display: none;
  position: relative;
  z-index: 110;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 0;
}
.nav-toggle-icon { display: inline-flex; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-menu { display: none; }
.nav-toggle.open .icon-close { display: inline-flex; }
.nav-toggle.open {
  color: #fff;
}

@media (max-width: 760px) {
  .nav-links-items {
    display: none;
    position: fixed;
    inset: 0;
    margin-top: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: var(--ink);
    border: 0;
    border-radius: 0;
    padding: 80px var(--pad) 28px; /* 80px 淨空對應導覽列實際高度,清單才不會被蓋在導覽列底下 */
    box-shadow: none;
    z-index: 100;
    overflow-y: auto;
  }
  .nav-links-items.show { display: flex; }
  .nav-links-items a.caption {
    color: #fff;
    font-size: 19px;
    font-weight: 600;
    text-align: left;
    padding: 18px 2px;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav-links-items a.caption:hover { color: var(--red-tint); }
  .nav-links-items .btn {
    width: 100%;
    margin-top: auto;
    padding: 18px 24px;
    font-size: 16px;
  }
  .nav-toggle { display: inline-block; }
  body.nav-open { overflow: hidden; }
}

/* ---------- decorative brand mark (section background) ---------- */
/* 原站用法:鳥形標低透明度作「大背景」裝飾,疊在整個區塊底下、
   會被裁到區塊邊界,不是塞進某張縮圖/卡片裡。淺色底用紅色版本
   (約 6–7%),紅色或深色底用白色版本(約 10–14%)。 */
.section-bg-mark {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.hero { position: relative; overflow: hidden; }
.hero .section-bg-mark {
  width: 46%;
  min-width: 420px;
  top: -8%;
  right: -6%;
  opacity: .065;
}
.hero .wrap { position: relative; z-index: 1; }

.contact .section-bg-mark-white {
  width: 42%;
  min-width: 320px;
  bottom: -14%;
  left: -8%;
  opacity: .12;
}

/* ---------- hero ---------- */
.hero .wrap { padding-top: 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 32px; max-width: 480px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .hero-ctas { flex-wrap: nowrap; gap: 10px; }
  .hero-ctas .btn { padding: 13px 18px; font-size: 14px; flex: none; }
}
.hero-visual {
  background: var(--ph);
  border-radius: var(--md);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- trust / stat bar ---------- */
.trust .eyebrow { display: block; text-align: left; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4, 22px);
  margin-top: 28px;
}
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat-item { background: var(--surface); border: 1px solid rgba(43,39,37,.08); border-radius: var(--lg); padding: 26px 20px; }
.stat-item .stat-number { display: block; margin-bottom: 8px; }
.stat-item .stat-label { font-size: 12.5px; color: var(--soft); line-height: 1.5; }

.industry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip {
  display: inline-block;
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--bg-3);
  padding: 6px 12px;
  border-radius: var(--pill);
  font-family: var(--font-sans);
}

.confidential-note {
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--soft);
  line-height: 1.6;
}

/* ---------- service ---------- */
.service-flagship {
  background: var(--ink);
  border-radius: var(--lg);
  padding: 44px 40px;
  color: var(--surface);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 32px;
}
@media (max-width: 860px) { .service-flagship { grid-template-columns: 1fr; } }
.service-flagship .num {
  width: 44px; height: 44px; border-radius: var(--num);
  background: rgba(199,62,58,.25); color: #F0BFBD;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-accent); font-weight: 600; font-size: 14px;
  margin-bottom: 20px;
}
.service-flagship h3 { color: var(--surface); font-size: 24px; margin-bottom: 14px; }
.service-flagship p { color: rgba(255,255,255,.75); font-size: 14.5px; line-height: 1.95; margin: 0 0 20px; }
.service-flagship .row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.service-flagship .chip-d { color: var(--surface); background: rgba(255,255,255,.14); }
.service-flagship-side { border-left: 1px solid rgba(255,255,255,.14); padding-left: 32px; }
@media (max-width: 860px) { .service-flagship-side { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.14); padding-top: 24px; } }
.service-flagship-side .step { display: flex; gap: 14px; margin-bottom: 18px; }
.service-flagship-side .step:last-child { margin-bottom: 0; }
.service-flagship-side .step-num { font-family: var(--font-accent); font-weight: 600; color: #F0BFBD; font-size: 14px; }
.service-flagship-side .step-text { font-size: 13.5px; color: rgba(255,255,255,.75); line-height: 1.6; }

.service-other { margin-top: 24px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.service-other b { color: var(--ink); font-weight: 700; }

/* ---------- cases ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--lg); margin-top: 32px; }
@media (max-width: 900px) { .cases-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid rgba(43,39,37,.08);
  border-radius: var(--lg);
  padding: 30px 26px 32px;
  box-shadow: var(--shadow-card);
}
.card .tag { display: inline-block; margin-bottom: 14px; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card .case-label { font-size: 12.5px; color: var(--soft); margin-bottom: 18px; }
.card-field { margin-bottom: 14px; }
.card-field .field-label { font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; font-family: var(--font-accent); }
.card-field .field-value { font-size: 14px; color: var(--muted); line-height: 1.75; }
.card .result-number { font-size: 22px; font-family: var(--font-accent); font-weight: 600; color: var(--red); }
.card-note { margin-top: 18px; font-size: 12px; color: var(--faint); line-height: 1.5; border-top: 1px solid rgba(43,39,37,.08); padding-top: 14px; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 32px; border-radius: var(--lg); overflow: hidden; border: 1px solid rgba(43,39,37,.08); background: var(--surface); }
.faq-item { border-bottom: 1px solid rgba(43,39,37,.08); }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
}
.faq-q .item-heading { color: var(--ink); }
.faq-q .sign { font-family: var(--font-accent); font-size: 20px; color: var(--faint); flex-shrink: 0; margin-left: 16px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a-inner { padding: 0 26px 22px; font-size: 14.5px; line-height: 1.95; color: var(--muted); }
.faq-item.open .faq-a { max-height: 320px; }
.faq-item.open .sign { color: var(--red); }

/* ---------- contact ---------- */
.contact {
  background: var(--ink);
  border-radius: var(--2xl);
  padding: 56px 48px;
  margin-top: 0;
  color: var(--surface);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
.contact > div, .contact > form { position: relative; z-index: 1; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; padding: 40px 28px; } }
.contact h2 { color: var(--surface); margin-bottom: 16px; }
.contact .lead { color: rgba(255,255,255,.75); }
.contact-note { margin-top: 24px; font-size: 12.5px; color: rgba(255,255,255,.55); line-height: 1.7; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; color: rgba(255,255,255,.7); }
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--sm);
  padding: 13px 16px;
  color: var(--surface);
  font-family: var(--font-sans);
  font-size: 14.5px;
}
.form-field textarea { resize: vertical; min-height: 84px; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,.4); }
.form-submit-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; margin-top: 4px; flex-wrap: wrap; }
.form-submit-row .btn-primary { border: 0; font-family: var(--font-sans); }
.form-submit-note { font-size: 12.5px; color: rgba(255,255,255,.55); }

/* ---------- footer ---------- */
footer.bg-2 { padding-top: 56px; padding-bottom: 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-logo img { height: 30px; margin-bottom: 16px; }
.footer-info { font-size: 13px; color: var(--muted); line-height: 1.9; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 { font-size: 13px; color: var(--ink); margin: 0 0 14px; }
.footer-col a { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.footer-col a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid rgba(43,39,37,.1); padding-top: 20px; font-size: 12px; color: var(--soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-legal a { color: var(--soft); text-decoration: none; }
.footer-legal a:hover { color: var(--red); }
.footer-legal .sep { margin: 0 8px; color: var(--soft); }

/* ---------- section header shared ---------- */
.section-head { max-width: 640px; }
.section-head .heading { margin-bottom: 16px; }

/* ==================== NEW SECTIONS — 2026-09 homepage rewrite ==================== */

/* ---------- hero: trust list (replaces old numeric stat row) ---------- */
.hero-trust { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.ht-head { display: flex; align-items: center; gap: 9px; }
.ht-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }
.ht-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.ht-desc { margin: 6px 0 0 16px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* ---------- hero: visual (bird mark + floating cards) ---------- */
.hero-visual { overflow: visible; display: flex; align-items: center; justify-content: center; }
.hero-visual .hv-mark { width: 34%; height: auto; object-fit: contain; opacity: .92; filter: drop-shadow(0 16px 28px rgba(199,62,58,.16)); }
.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid rgba(43,39,37,.08);
  border-radius: var(--lg);
  box-shadow: 0 12px 30px rgba(43,39,37,.10);
  padding: 16px 18px;
  z-index: 2;
}
.fc-1 { top: 8%; left: -4%; }
.fc-1 .fc-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-accent); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.fc-1 .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: fc-pulse 1.6s ease-in-out infinite; }
@keyframes fc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.fc-1 .fc-title { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.fc-1 svg { display: block; }
.fc-2 { bottom: 6%; right: -4%; min-width: 190px; }
.fc-2 .fc-label { display: block; font-family: var(--font-accent); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.fc-2 .fc-row { display: flex; align-items: center; gap: 10px; }
.fc-2 .fc-icon { width: 30px; height: 30px; border-radius: var(--num); background: var(--red-tint); color: var(--red); display: flex; align-items: center; justify-content: center; font-family: var(--font-accent); font-weight: 600; font-size: 11px; flex: none; }
.fc-2 .fc-title { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.fc-2 .fc-sub { font-size: 12px; color: var(--soft); margin-top: 2px; }
@media (max-width: 640px) {
  .fc-1 { left: 2%; padding: 12px 14px; }
  .fc-2 { right: 2%; min-width: 160px; padding: 12px 14px; }
}

/* ---------- cost / panels ---------- */
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: var(--lg); margin-top: 32px; align-items: stretch; }
@media (max-width: 860px) { .panels { grid-template-columns: 1fr; } }
.panel { border-radius: var(--xl); padding: 34px 32px; }
.panel-a { background: var(--surface); border: 1px solid rgba(43,39,37,.08); }
.panel-b { background: var(--ink); display: flex; flex-direction: column; justify-content: center; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.mk { flex: none; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-family: var(--font-accent); font-weight: 600; margin-top: 1px; background: var(--red-tint); color: var(--red); }
.mk-yes { background: var(--red-tint); color: var(--red); }
.mk-no { background: rgba(43,39,37,.08); color: var(--soft); }
.panel-b .quote-mark { font-family: var(--font-accent); font-size: 48px; line-height: 1; color: rgba(199,62,58,.5); margin-bottom: 8px; }
.panel-b .quote { font-size: 21px; font-weight: 700; color: var(--surface); line-height: 1.5; margin-bottom: 14px; }
.panel-b .quote-sub { font-size: 13.5px; color: rgba(255,255,255,.65); line-height: 1.75; }

/* ---------- promise cards: generalized light .num ---------- */
.card .num {
  width: 44px; height: 44px; border-radius: var(--num);
  background: var(--red-tint); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-accent); font-weight: 600; font-size: 16px;
  margin-bottom: 18px;
}

/* ---------- service grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--lg); margin-top: 32px; }
@media (max-width: 980px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card h3 { font-size: 17px; margin: 10px 0 8px; }
.svc-card p { font-size: 13.5px; color: var(--muted); line-height: 1.8; margin: 0; }
.code-tag { display: inline-block; background: var(--red-tint); padding: 5px 11px; border-radius: var(--pill); font-weight: 600; }

/* ---------- fit check ---------- */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--lg); margin-top: 32px; }
@media (max-width: 860px) { .fit-grid { grid-template-columns: 1fr; } }
.fit-panel { border-radius: var(--xl); padding: 34px 32px; }
.fit-yes { background: var(--surface); border: 1px solid rgba(43,39,37,.08); }
.fit-no { background: var(--ink); }
.fit-panel h3 { font-size: 14px; font-family: var(--font-accent); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 22px; font-weight: 600; }
.fit-yes h3 { color: var(--red); }
.fit-no h3 { color: rgba(255,255,255,.5); }
.fit-no .check-list li { color: rgba(255,255,255,.78); }

/* ---------- process ---------- */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--lg); margin-top: 32px; }
@media (max-width: 980px) { .process-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-steps { grid-template-columns: 1fr; } }
.step-card { background: var(--surface); border: 1px solid rgba(43,39,37,.08); border-radius: var(--lg); padding: 28px 24px; box-shadow: var(--shadow-card); }
.step-card .num {
  width: 40px; height: 40px; border-radius: var(--num);
  background: var(--red-tint); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-accent); font-weight: 600; font-size: 14px;
  margin-bottom: 16px;
}
.step-card .item-heading { margin-bottom: 8px; }

/* ---------- cases: quote line ---------- */
.card .case-quote { font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.6; margin-bottom: 14px; }
.card .case-quote::before { content: '\201C'; color: var(--red); }
.card .case-quote::after { content: '\201D'; color: var(--red); }

/* ---------- articles ---------- */
.articles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--lg); margin-top: 32px; }
@media (max-width: 760px) { .articles-grid { grid-template-columns: 1fr; } }
a.article-card { display: block; text-decoration: none; }
.art-media { position: relative; aspect-ratio: 16 / 10; background: var(--bg-3); border-radius: var(--md); overflow: hidden; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; }
.art-mark { width: 26%; opacity: .5; }
.art-body .tag { margin-bottom: 12px; }
.art-body h3 { font-size: 18px; line-height: 1.4; margin-bottom: 10px; transition: color .15s ease; }
.art-body .body-text { margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.art-more { display: inline-block; font-family: var(--font-accent); font-size: 13px; font-weight: 600; color: var(--red); }
a.article-card:hover .art-more { color: var(--red-dark); }
a.article-card:hover .art-body h3 { color: var(--red); }
.article-soon { pointer-events: none; }
.article-soon .art-media { background: var(--bg-2); }
.article-soon .art-body h3 { color: var(--soft); }
.soon-label { position: absolute; top: 14px; left: 14px; font-family: var(--font-accent); font-size: 10px; font-weight: 600; letter-spacing: .08em; color: var(--soft); background: var(--surface); padding: 5px 10px; border-radius: var(--pill); }

/* ---------- LINE CTA (replaces old contact form) ---------- */
.contact.line-cta { text-align: center; }
.line-cta-inner { max-width: 520px; margin: 0 auto; position: relative; z-index: 1; }
.line-cta-inner .heading { color: var(--surface); margin-bottom: 14px; }
.line-cta-inner .lead { margin-bottom: 28px; }

/* ---------- article page (articles/*.html) ---------- */
.wrap-narrow { max-width: 700px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.back-link { display: inline-block; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.back-link:hover { color: var(--red); }
.art-page-head { padding-top: 40px; padding-bottom: 8px; }
.art-page-head .back-link { margin-bottom: 28px; }
.art-page-head .tag { display: inline-block; background: var(--red-tint); padding: 6px 14px; border-radius: var(--pill); margin-bottom: 20px; }
.art-page-head h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.32; font-weight: 900; margin-bottom: 18px; }
.art-page-head .meta { font-size: 13px; color: var(--soft); }
.art-page-body { padding-top: 8px; padding-bottom: 88px; }
.art-page-body p { font-size: 16px; line-height: 1.95; color: var(--body); margin: 0 0 26px; }
.art-page-body p.lede { font-size: 17.5px; color: var(--ink-2); font-weight: 500; }
.art-page-body h2 { font-size: 21px; line-height: 1.4; font-weight: 700; margin: 44px 0 18px; }
.art-closing { background: var(--surface); border: 1px solid rgba(43,39,37,.08); border-radius: var(--lg); padding: 32px 30px; margin-top: 12px; box-shadow: var(--shadow-card); }
.art-closing p { margin: 0 0 20px; font-size: 15px; color: var(--muted); }

/* ---------- promise: 3-card grid ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--lg); margin-top: 32px; }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr; } }

/* ==================== 2026-09-19 revision — real imagery + alignment fixes ==================== */

/* hero: real photo instead of abstract mark; single overlay status card */
.hero-visual .hv-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--md);
  display: block;
}
.fc-1 { top: auto; left: 20px; bottom: 20px; right: auto; }
@media (max-width: 640px) { .fc-1 { left: 14px; bottom: 14px; } }

/* checklist / promise icons: crisp inline SVG instead of a bare glyph */
.mk svg, .card .num svg { display: block; }
.check-list li { align-items: center; }
.mk { margin-top: 0; }

/* service cards: full-bleed top photo */
.svc-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--lg) var(--lg) 0 0;
  overflow: hidden;
  margin: -30px -26px 20px;
  background: var(--bg-3);
}
.svc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* LINE CTA: brand badge */
.line-badge {
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}
.line-badge img { width: 44px; height: 44px; }

/* ==================== 2026-09-19 revision 2 — feedback round 2 ==================== */

/* global: let a section host an absolutely-positioned decorative mark */
section { position: relative; overflow: hidden; }

/* cost panel: heading had zero space above the checklist ("擠在一起") */
.panel h3 { font-size: 19px; font-weight: 700; margin-bottom: 20px; }
.check-list { gap: 18px; }

/* hero: 3-photo bento (one tall + two stacked), replaces the single photo + status card */
.hero-visual {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  aspect-ratio: 4 / 3;
  background: var(--ph);
  border-radius: var(--md);
  overflow: hidden;
  position: relative;
}
.hero-visual .hv-a { grid-row: 1 / 3; grid-column: 1; }
.hero-visual .hv-b { grid-row: 1; grid-column: 2; }
.hero-visual .hv-c { grid-row: 2; grid-column: 2; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--md); display: block; }

/* decorative bird-mark accents sprinkled on otherwise flat sections (per design system:
   reuse the mark asset directly, low opacity, never redrawn/recolored) */
.mark-corner { width: 22%; min-width: 180px; bottom: -10%; right: -5%; top: auto; opacity: .05; }

/* homepage article cards: real photo fills the media area now (art-mark rule kept, unused) */
.art-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-soon .art-media img { opacity: .45; }

/* LINE CTA: full-bleed band (fixes the previous off-center ".contact" 2-col grid bug) */
.line-cta-band { background: var(--ink); color: var(--surface); text-align: center; }
.line-cta-band .section-bg-mark { width: 42%; min-width: 320px; bottom: -14%; left: -8%; top: auto; right: auto; opacity: .12; }
.line-cta-band .wrap { position: relative; z-index: 1; }
.line-cta-inner .lead { color: rgba(255,255,255,.75); }

/* article page: container system (see comment in the HTML) —
   .wrap 1160px chrome / .wrap-narrow 700px reading column / .wrap-wide 960px breakout media */
.wrap-wide { max-width: 960px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.art-page-media { margin: 32px auto 8px; }
.art-page-media img { width: 100%; border-radius: var(--lg); display: block; }
.art-inline-media { margin: 6px 0 30px; }
.art-inline-media img { width: 100%; border-radius: var(--lg); display: block; }

/* ==================== 2026-09-19 revision 3 — feedback round 4 ==================== */

/* hero: 3-photo bento — the placeholder colour (--ph) was showing through the grid
   gaps and reading as a flat "grey block" behind the photos; use a hairline gap instead
   so only the real photos are visible, and let the container's own radius+overflow
   clip the corners instead of rounding each image individually */
.hero-visual { gap: 6px; background: transparent; }
.hero-visual img { border-radius: 0; }

/* homepage 觀點 section: heading no longer names one specific narrative (the list will
   keep growing), and links through to the new all-articles page */
.articles-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 0; }
.view-all-link { font-family: var(--font-accent); font-size: 13.5px; font-weight: 600; color: var(--red); white-space: nowrap; padding-bottom: 6px; }
.view-all-link:hover { color: var(--red-dark); }

/* article page: wider reading column (was 700px) */
.wrap-narrow { max-width: 780px; }

/* article page: cap the lead/inline photo height so a tall source image doesn't
   dominate the page — crop to a consistent wide ratio instead */
.art-page-media img { aspect-ratio: 16 / 9; object-fit: cover; }
.art-inline-media img { aspect-ratio: 16 / 9; object-fit: cover; }

/* back-link: icon + label, reused on the article page and the new articles overview page */
.back-link { display: inline-flex; align-items: center; gap: 6px; }
.back-link svg { flex: none; }

/* FAQ: a real rotating chevron (lucide "chevron-down") instead of a static +/− glyph —
   the glyph never actually swapped when a different item was opened, this fixes that too */
.faq-q .sign { display: flex; }
.faq-q .sign svg { transition: transform .2s ease; }
.faq-item.open .sign svg { transform: rotate(180deg); }

/* articles overview page (articles/index.html) */
.articles-index-head { padding: 40px 0 8px; }
.articles-index-head .back-link { margin-bottom: 24px; }
.articles-index-head h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 900; margin-bottom: 10px; }
.articles-index-head .lead { max-width: 520px; margin-bottom: 0; }

/* ==================== 2026-09-20 — multi-page site (services / cases / about / faq) ==================== */

/* anchors land below the sticky nav */
[id] { scroll-margin-top: 84px; }

/* nav: current page */
.nav-links a.caption[aria-current="page"] { color: var(--red); font-weight: 500; }
@media (max-width: 760px) {
  .nav-links-items a.caption[aria-current="page"] { color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--red); padding-left: 16px; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .nav-links-items { gap: 18px; }
}

/* shared */
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.center { text-align: center; }
.text-link { color: var(--red); }
.text-link:hover { color: var(--red-dark); }
.section-more { text-align: center; margin-top: 32px; }

/* page head (sub-pages) */
.page-head { padding-top: 64px; padding-bottom: 64px; }
.page-head h1 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.25; font-weight: 900; margin-bottom: 18px; }
.page-head .lead { max-width: 620px; margin: 0; }
@media (max-width: 560px) { .page-head { padding-top: 44px; padding-bottom: 48px; } }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
a.chip { transition: color .15s ease, background .15s ease; }
a.chip:hover { color: var(--red); background: var(--red-tint); }

/* services: detail rows */
.svc-rows { display: flex; flex-direction: column; gap: 72px; }
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.svc-row:nth-child(even) .svc-row-media { order: 2; }
.svc-row-media { aspect-ratio: 4 / 3; border-radius: var(--lg); overflow: hidden; background: var(--bg-3); }
.svc-row-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-row-body h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 900; line-height: 1.35; margin: 14px 0 12px; }
.svc-row-body > .body-text { margin: 0 0 26px; }
.svc-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.svc-list h3 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.svc-list .check-list { gap: 12px; }
.svc-list .check-list li { font-size: 13.5px; align-items: flex-start; }
.svc-list .mk { margin-top: 1px; }
@media (max-width: 860px) {
  .svc-rows { gap: 56px; }
  .svc-row { grid-template-columns: 1fr; gap: 24px; }
  .svc-row:nth-child(even) .svc-row-media { order: 0; }
}
@media (max-width: 560px) { .svc-lists { grid-template-columns: 1fr; } }
.addon-note { display: flex; gap: 20px; align-items: flex-start; margin-top: 64px; background: var(--surface); border: 1px solid rgba(43,39,37,.08); border-radius: var(--lg); padding: 26px 28px; }
.addon-note .code-tag { flex: none; margin-top: 2px; }
.addon-note .item-heading { margin-bottom: 6px; }
.addon-note .body-text { margin: 0; }
@media (max-width: 560px) { .addon-note { flex-direction: column; gap: 12px; } }

/* cases page */
.cases-grid-2 { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
@media (max-width: 760px) { .cases-grid-2 { grid-template-columns: 1fr; } }
.case-card .case-quote { font-size: 16.5px; margin-bottom: 20px; }
.case-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(43,39,37,.08); }
.cases .section-more, #cases .section-more { margin-top: 32px; }

/* about: company info */
.info-panel { max-width: 780px; margin: 32px auto 0; background: var(--surface); border: 1px solid rgba(43,39,37,.08); border-radius: var(--xl); padding: 12px 32px 28px; }
.info-list { margin: 0; }
.info-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(43,39,37,.08); }
.info-row dt { font-size: 13.5px; color: var(--soft); }
.info-row dd { margin: 0; font-size: 15px; color: var(--ink); }
.info-note { font-size: 13px; line-height: 1.85; color: var(--muted); margin: 20px 0 0; }
@media (max-width: 560px) {
  .info-panel { padding: 8px 22px 24px; }
  .info-row { grid-template-columns: 1fr; gap: 4px; }
}

/* faq page: grouped lists */
.faq-wrap { max-width: 860px; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group .faq-list { margin-top: 18px; }
.faq-a-inner .text-link { color: var(--red); }

/* ==================== 2026-09-20 — about page: brand story ==================== */
.brand-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.brand-logo img { width: 100%; max-width: 440px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--xl); box-shadow: var(--shadow-card); display: block; margin: 0 auto; }
.brand-story .heading { margin-bottom: 20px; }
.brand-story .body-text { font-size: 15.5px; margin: 0 0 16px; }
.brand-story .body-text:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .brand-grid { grid-template-columns: 1fr; gap: 32px; }
  .brand-logo img { max-width: 400px; margin: 0 auto; }
}
a.link-card { display: block; transition: border-color .15s ease; }
a.link-card h3 { margin-top: 14px; transition: color .15s ease; }
a.link-card .body-text { margin: 0 0 14px; }
a.link-card:hover { border-color: rgba(199,62,58,.3); }
a.link-card:hover h3 { color: var(--red); }

/* ==================== 2026-09-20 — cookie notice (injected by js/main.js) ==================== */
.cookie-notice {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 960px;
  margin: 0 auto;
  z-index: 90;
  display: flex; align-items: center; gap: 24px;
  background: var(--surface);
  border: 1px solid rgba(43,39,37,.1);
  border-radius: var(--lg);
  box-shadow: 0 12px 36px rgba(43,39,37,.14);
  padding: 20px 24px;
  opacity: 0; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
}
.cookie-notice.show { opacity: 1; transform: none; }
.cookie-notice-text { margin: 0; font-size: 13.5px; line-height: 1.8; color: var(--muted); }
.cookie-notice-text a { color: var(--red); }
.cookie-notice-text a:hover { color: var(--red-dark); }
.cookie-notice-btn { flex: none; padding: 12px 26px; font-size: 14px; }
@media (max-width: 640px) {
  .cookie-notice { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 18px; bottom: 12px; left: 12px; right: 12px; }
  .cookie-notice-btn { width: 100%; }
}
