/* ==========================================================================
   橙築國際 — 全站共用樣式
   深墨配色 · 昭源宋體 + 昭源黑體
   ========================================================================== */

:root {
  /* 深墨底 */
  --paper:       #15181c;
  --paper-2:     #1c2026;
  --paper-3:     #242a31;
  --line:        #2f3740;
  --line-soft:   #262d35;

  /* 文字 */
  --ink:         #e9ecf0;
  --ink-mid:     #a3acb8;
  --ink-soft:    #737d8a;

  /* 橙築橙 — 主色 / CTA */
  --orange:      #ff7a4d;
  --orange-deep: #ff9068;
  --orange-bg:   #37201a;

  /* 系統青 — 資料流、架構圖、技術標籤 */
  --teal:        #4fb3c7;
  --teal-bg:     #14282e;

  /* 深板 — 系統架構區塊 */
  --slate:       #0e1114;
  --slate-2:     #171b20;
  --slate-line:  #2b333b;
  --slate-ink:   #dfe5ea;
  --slate-soft:  #8f9aa5;

  --shadow-sm:   0 1px 2px rgba(0, 0, 0, .2);
  --shadow:      0 1px 2px rgba(0, 0, 0, .2), 0 10px 28px -18px rgba(0, 0, 0, .5);

  --serif: "IBM Plex Sans TC", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --sans:  "IBM Plex Sans TC", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* 紙張顆粒 */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.14 0 0 0 0 0.12 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0;
  mix-blend-mode: multiply;
}
header, main, footer { position: relative; z-index: 1; }

.container { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.section { padding: 92px 0; }
.section-tight { padding: 64px 0; }

/* --------------------------------------------------------------- 導覽 */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(21, 24, 28, .93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 28px;
  height: 64px; display: flex; align-items: center; gap: 30px;
}
.nav-brand {
  font-family: var(--serif); font-size: 1.16rem; font-weight: 600;
  letter-spacing: .02em; white-space: nowrap;
  display: flex; align-items: center;
}
.nav-brand .dot { color: var(--orange); }
.nav-logo { height: 30px; width: auto; display: block; margin-right: 11px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a {
  font-size: .9rem; color: var(--ink-mid);
  transition: color .18s ease; white-space: nowrap;
}
.nav-links a:hover { color: var(--orange); }
.nav-cta {
  font-size: .875rem; font-weight: 500;
  background: var(--orange); color: #fff !important;
  padding: 8px 17px; border-radius: 3px;
  transition: background .18s ease;
}
.nav-cta:hover { background: var(--orange-deep); color: #fff !important; }

@media (max-width: 940px) {
  .nav-inner { height: auto; padding: 12px 20px; flex-wrap: wrap; gap: 12px 20px; }
  .nav-links { margin-left: 0; width: 100%; gap: 18px; overflow-x: auto; padding-bottom: 2px; }
  .nav-links a { font-size: .85rem; }
}

/* --------------------------------------------------------------- 排版 */
.eyebrow {
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--orange); display: block; margin-bottom: 16px;
}
.eyebrow-teal { color: var(--teal); }
.eyebrow-light { color: var(--slate-soft); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; text-wrap: balance; }

.h-display {
  font-size: clamp(2.1rem, 5.6vw, 3.5rem); line-height: 1.28;
  letter-spacing: -.015em;
}
.h-section {
  font-size: clamp(1.55rem, 3.2vw, 2.1rem); line-height: 1.4;
  letter-spacing: -.01em; margin-bottom: 16px;
}
.h-card { font-size: 1.08rem; line-height: 1.55; }

.lede {
  font-size: 1.06rem; color: var(--ink-mid); max-width: 60ch; line-height: 1.95;
}
.prose { max-width: 64ch; }
.prose p + p { margin-top: 14px; }

.kw {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .02em;
  color: var(--ink-soft); line-height: 1.8;
}
.num { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- 按鈕 */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .95rem; font-weight: 500; padding: 12px 24px;
  border-radius: 3px; border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-deep); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-light { border-color: var(--slate-line); color: var(--slate-ink); }
.btn-light:hover { border-color: var(--slate-ink); }

/* --------------------------------------------------------------- 數據列 */
.stats {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
}
.stat { background: var(--paper-2); padding: 20px 22px; }
.stat .v {
  display: block; font-family: var(--mono); font-size: 1.72rem; font-weight: 600;
  color: var(--orange); line-height: 1.2; font-variant-numeric: tabular-nums;
}
.stat .l {
  display: block; margin-top: 5px; font-size: .82rem;
  color: var(--ink-mid); line-height: 1.6;
}

/* --------------------------------------------------------------- 卡片 */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.card {
  background: var(--paper-2); border: 1px solid var(--line-soft);
  border-radius: 3px; padding: 24px 24px 22px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
a.card:hover {
  border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-2px);
}
.card-icon {
  width: 38px; height: 38px; margin-bottom: 14px;
  color: var(--teal); flex-shrink: 0;
}
.card .no {
  font-family: var(--mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .1em; color: var(--orange); margin-bottom: 10px;
}
.card .h-card { margin-bottom: 9px; }
.card p {
  font-size: .9rem; color: var(--ink-mid); line-height: 1.8; margin-bottom: 14px;
}
.card .kw { margin-top: auto; padding-top: 4px; }
.card .more {
  margin-top: 14px; font-size: .85rem; font-weight: 500; color: var(--orange);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  a.card:hover { transform: none; }
}

/* --------------------------------------------------------------- 深板 */
.slab {
  background: var(--slate); color: var(--slate-ink);
  padding: 84px 0; position: relative; z-index: 1;
}
.slab .h-section { color: #fff; }
.slab .lede { color: var(--slate-soft); }
.slab .card {
  background: var(--slate-2); border-color: var(--slate-line);
  box-shadow: none;
}
.slab .card .h-card { color: #fff; }
.slab .card p { color: var(--slate-soft); }
.slab .card .kw { color: var(--slate-soft); opacity: .8; }
.slab .card .no { color: #7fc0cf; }

/* 系統架構圖 — 桌機用 SVG 輻輳圖，窄螢幕改用節點列表 */
.os-svg { display: none; }

.os-core {
  margin: 34px auto 0; max-width: 250px; text-align: center;
  border: 1px solid #4d8f9d; background: rgba(47, 125, 140, .16);
  border-radius: 4px; padding: 20px 18px;
}
.os-core .t {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  color: #7fc0cf; display: block;
}
.os-core .b {
  font-family: var(--serif); font-size: 1.14rem; color: #fff;
  margin-top: 5px; display: block;
}
.os-ring {
  display: grid; gap: 12px; margin-top: 26px;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
}
.os-node {
  border: 1px solid var(--slate-line); border-radius: 3px;
  padding: 15px 16px; background: rgba(255, 255, 255, .025);
}
.os-node .k {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .11em;
  color: #7fc0cf; display: block; margin-bottom: 5px;
}
.os-node .v { font-size: .89rem; color: var(--slate-ink); line-height: 1.65; }

/* 切換必須放在 .os-core / .os-ring 定義之後，否則同權重下會被後面的規則覆蓋 */
@media (min-width: 800px) {
  .os-svg { display: block; width: 100%; height: auto; margin-top: 34px; }
  .os-core, .os-ring { display: none; }
}

/* --------------------------------------------------------------- 流程列 */
.steps { display: grid; gap: 0; margin-top: 30px; }
.step {
  display: grid; grid-template-columns: 62px 1fr; gap: 22px;
  padding: 24px 0; border-top: 1px solid var(--line-soft);
}
.step:first-child { border-top: 1px solid var(--line); }
.step .n {
  font-family: var(--mono); font-size: 1.34rem; font-weight: 600;
  color: var(--orange); line-height: 1.3; font-variant-numeric: tabular-nums;
}
.step h4 { font-size: 1.04rem; margin-bottom: 6px; }
.step p { font-size: .91rem; color: var(--ink-mid); max-width: 62ch; }

@media (max-width: 600px) {
  .step { grid-template-columns: 42px 1fr; gap: 15px; }
}

/* --------------------------------------------------------------- 標籤 */
.chip {
  display: inline-block; font-family: var(--mono);
  font-size: .68rem; font-weight: 500; letter-spacing: .05em;
  padding: 3px 9px; border-radius: 2px; white-space: nowrap;
}
.chip-orange { background: var(--orange-bg); color: var(--orange-deep); }
.chip-teal   { background: var(--teal-bg);   color: var(--teal); }
.chip-quiet  { background: var(--paper-3);   color: var(--ink-soft); }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }

/* --------------------------------------------------------------- 聯絡 */
.contact-grid {
  display: grid; gap: 44px;
  grid-template-columns: minmax(260px, .8fr) 1.2fr;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 30px; } }

.contact-list {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.contact-item { background: var(--paper-2); padding: 16px 19px; }
.contact-item .label {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px;
}
.contact-item .value { font-size: 1rem; font-weight: 500; }
.contact-item .value a:hover { color: var(--orange); }
.contact-item .sub {
  font-family: var(--mono); font-size: .74rem; color: var(--ink-soft); margin-top: 2px;
}

/* 收尾 */
.closing { padding: 76px 0; border-top: 1px solid var(--line); text-align: center; }
.signoff {
  font-family: var(--serif); font-size: 1.14rem; line-height: 2.15; color: var(--ink-mid);
}
.signature {
  margin-top: 20px; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .2em; color: var(--ink-soft);
}

/* --------------------------------------------------------------- 頁尾 */
footer { border-top: 1px solid var(--line); background: var(--paper-2); }
.footer-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 40px 28px 30px;
  display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-start;
}
.footer-brand { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.footer-brand .dot { color: var(--orange); }
.footer-logo { height: 46px; width: auto; display: block; margin-bottom: 12px; }
.footer-brand .sub {
  display: block; margin-top: 5px; font-family: var(--mono);
  font-size: .66rem; letter-spacing: .16em; color: var(--ink-soft);
}
.footer-cols { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-left: auto; }
.footer-cols a { font-size: .88rem; color: var(--ink-mid); }
.footer-cols a:hover { color: var(--orange); }
.footer-copy {
  max-width: var(--wrap); margin: 0 auto;
  padding: 15px 28px 30px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-family: var(--mono); font-size: .7rem; color: var(--ink-soft); letter-spacing: .02em;
}

/* --------------------------------------------------------------- 頁首圖形 */
/* 抽象幾何：多路資料收斂到單一核心。放在版面右側，不與文字爭注意力。
   內容欄以 .container 的 max-width 收住，圖形只在還有餘裕時出現。 */
/* 尺寸用絕對 px 而非百分比：百分比會隨區塊高度放大，在高的 hero 上
   圖形會寬到蓋住內文。固定寬度才能確保圖永遠只佔右側。 */
.hero-art {
  position: relative;
  background-image: url("/assets/hero-converge.svg");
  background-repeat: no-repeat;
  background-position: right -30px center;
  background-size: 760px auto;
}
.hero-art > .container { position: relative; }
/* 用 px 而非 ch：ch 會隨字級放大，套在 clamp 到 56px 的大標題上等於沒有限制，
   標題一長就會鑽到圖形底下。下列數值是各斷點下「圖形左緣扣掉容器內距」的安全寬度。 */
.hero-art .lede,
.hero-art .h-display,
.hero-art .standfirst { max-width: 660px; }

@media (max-width: 1399px) {
  .hero-art { background-size: 620px auto; background-position: right -60px center; }
  .hero-art .lede, .hero-art .h-display, .hero-art .standfirst { max-width: 565px; }
}
@media (max-width: 1099px) {
  .hero-art { background-size: 500px auto; background-position: right -80px center; }
  .hero-art .lede, .hero-art .h-display, .hero-art .standfirst { max-width: 535px; }
}
@media (max-width: 939px) {
  .hero-art { background-image: none; }
  .hero-art .lede, .hero-art .h-display, .hero-art .standfirst { max-width: 60ch; }
}

/* --------------------------------------------------------------- 內頁頭 */
.page-head { padding: 66px 0 46px; border-bottom: 1px solid var(--line); }
.crumb {
  font-family: var(--mono); font-size: .72rem; color: var(--ink-soft);
  letter-spacing: .04em; margin-bottom: 20px;
}
.crumb a:hover { color: var(--orange); }

/* --------------------------------------------------------------- 方案子頁 */

/* 痛點卡 */
.pain {
  background: var(--paper-2); border: 1px solid var(--line-soft);
  border-left: 3px solid var(--orange); border-radius: 0 3px 3px 0;
  padding: 20px 22px;
}
.pain h4 { font-size: 1rem; margin-bottom: 8px; }
.pain p { font-size: .9rem; color: var(--ink-mid); line-height: 1.8; }

/* 適用對象 */
.who {
  border: 1px solid var(--line-soft); background: var(--paper-2);
  border-radius: 3px; padding: 18px 20px; text-align: center;
}
.who .t { font-family: var(--serif); font-size: 1rem; font-weight: 600; }
.who .s { font-size: .82rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.6; }

/* 功能區塊 */
.feat {
  display: grid; gap: 36px; padding: 44px 0;
  border-top: 1px solid var(--line-soft);
  grid-template-columns: minmax(240px, .8fr) 1.2fr;
}
.feat:first-of-type { border-top: 0; }
.feat h3 { font-size: 1.24rem; line-height: 1.5; margin-bottom: 12px; }
.feat .desc { font-size: .95rem; color: var(--ink-mid); line-height: 1.9; }
.feat .items { display: grid; gap: 18px; }
.feat .item h4 { font-size: .98rem; margin-bottom: 6px; }
.feat .item p { font-size: .9rem; color: var(--ink-mid); line-height: 1.8; }
.feat .item .tick {
  font-family: var(--mono); font-size: .7rem; color: var(--teal);
  letter-spacing: .05em; display: block; margin-bottom: 5px;
}
@media (max-width: 860px) {
  .feat { grid-template-columns: 1fr; gap: 20px; padding: 34px 0; }
}

/* 價格 */
.price {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 3px; padding: 26px 26px 24px; display: flex; flex-direction: column;
}
.price.featured { border-color: var(--orange); }
.price .tier {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px;
}
.price .note {
  font-family: var(--serif); font-size: 1.06rem; font-weight: 600;
  color: var(--ink); line-height: 1.5;
}
.price ul { list-style: none; margin: 18px 0 20px; display: grid; gap: 8px; }
.price li {
  font-size: .89rem; color: var(--ink-mid); padding-left: 19px; position: relative; line-height: 1.7;
}
.price li::before {
  content: "+"; position: absolute; left: 0; top: 0;
  font-family: var(--mono); color: var(--teal); font-size: .85rem;
}
.price .btn { margin-top: auto; justify-content: center; }

/* FAQ */
.faq { border-top: 1px solid var(--line-soft); }
.faq:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 17px 0 17px 32px; font-weight: 500; font-size: 1rem; line-height: 1.65;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; position: absolute; left: 8px; top: 17px;
  font-family: var(--mono); color: var(--orange); line-height: 1.65;
}
.faq[open] summary::before { content: "\2013"; }
.faq .a {
  padding: 0 0 18px 32px; max-width: 66ch;
  font-size: .93rem; color: var(--ink-mid); line-height: 1.85;
}

/* 案例 */
.case-row {
  display: grid; gap: 36px; padding: 46px 0;
  border-top: 1px solid var(--line-soft);
  grid-template-columns: minmax(250px, .85fr) 1.15fr;
}
.case-row:first-of-type { border-top: 0; }
.case-row h2 { font-size: 1.36rem; line-height: 1.45; margin-bottom: 12px; }
.case-row .desc { font-size: .95rem; color: var(--ink-mid); line-height: 1.9; }
.case-stats {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr)); margin-bottom: 18px;
}
.case-stats .s { background: var(--paper-2); padding: 14px 15px; }
.case-stats .v {
  display: block; font-family: var(--mono); font-size: 1.2rem; font-weight: 600;
  color: var(--orange); line-height: 1.25; font-variant-numeric: tabular-nums;
}
.case-stats .l {
  display: block; font-size: .76rem; color: var(--ink-mid); margin-top: 3px; line-height: 1.55;
}
.case-row .stack {
  font-family: var(--mono); font-size: .73rem; color: var(--ink-soft);
  line-height: 1.85; padding-top: 14px; border-top: 1px solid var(--line-soft);
}
@media (max-width: 860px) {
  .case-row { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; }
}

/* 引述 */
.quote {
  border-left: 3px solid var(--teal); padding: 4px 0 4px 20px;
  font-family: var(--serif); font-size: 1.06rem; line-height: 1.9; color: var(--ink);
}
.quote .by {
  display: block; margin-top: 10px; font-family: var(--sans);
  font-size: .82rem; color: var(--ink-soft); letter-spacing: .02em;
}
