/* ==========================================================
   AIPCB.cc — 台灣風格樣式層
   載入位置：繁體（根目錄）頁面，於 style.css 之後
   說明：不改動既有元件結構，僅疊加台灣企業官網的排版慣例
        （繁體字型優先、較大字級與行距、左側色條標題、
          公告條、表列式最新消息、聯絡資訊區塊）
   ========================================================== */

html[lang="zh-Hant"] {
  --font-sans: "Inter", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC",
               "Heiti TC", "LiHei Pro", "Segoe UI", sans-serif;
  --tw-ink: #14303f;
  --tw-ink-2: #2c4a58;
  --tw-green: #0f8a5f;
  --tw-notice-bg: #12303f;
}

/* ---------- 1. 繁體排版：字級放大、行距加寬、字距微調 ---------- */
html[lang="zh-Hant"] body { font-size: 16.5px; line-height: 1.9; }
html[lang="zh-Hant"] h1,
html[lang="zh-Hant"] h2,
html[lang="zh-Hant"] h3 { letter-spacing: 0.02em; color: var(--tw-ink); }
html[lang="zh-Hant"] p { color: var(--tw-ink-2); }
html[lang="zh-Hant"] .eyebrow { letter-spacing: 0.18em; }
html[lang="zh-Hant"] .lead { line-height: 1.95; }
html[lang="zh-Hant"] .btn { letter-spacing: 0.03em; }
html[lang="zh-Hant"] .tag { letter-spacing: 0.02em; }

/* ---------- 2. 頂部公告條（台灣站標配） ---------- */
.tw-notice { background: var(--tw-notice-bg); color: rgba(255, 255, 255, 0.88); }
.tw-notice-inner { display: flex; align-items: center; gap: 12px; min-height: 38px; font-size: 13.5px; }
.tw-notice .lab {
  background: #10b981; color: #fff; font-weight: 700; font-size: 12px;
  padding: 2px 9px; border-radius: 4px; letter-spacing: 0.1em; flex-shrink: 0;
}
.tw-notice .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-notice a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.4); }
.tw-notice a:hover { border-bottom-color: #fff; }
.tw-notice .dt { margin-left: auto; opacity: 0.66; font-family: var(--font-mono); font-size: 12.5px; flex-shrink: 0; }
@media (max-width: 640px) { .tw-notice .dt { display: none; } }

/* ---------- 3. 區塊標題：左側綠色色條 ---------- */
html[lang="zh-Hant"] .section-head .sec-title { position: relative; padding-left: 17px; }
html[lang="zh-Hant"] .section-head .sec-title::before {
  content: ""; position: absolute; left: 0; top: 0.16em; bottom: 0.16em; width: 5px;
  border-radius: 3px; background: linear-gradient(180deg, #10b981, var(--tw-green));
}

/* ---------- 4. 產品／應用卡：台灣站慣用的白底細框 + 底部更多 ---------- */
html[lang="zh-Hant"] .prod-card { border-color: var(--line-1); }
html[lang="zh-Hant"] .prod-card:hover { border-color: var(--accent); }
html[lang="zh-Hant"] .prod-card .spec li { font-size: 13.5px; }
html[lang="zh-Hant"] .grid-4 > .card,
html[lang="zh-Hant"] .grid-3 > .card { border-radius: 10px; }

/* ---------- 5. 最新消息：表列式（日期｜分類｜標題｜箭頭） ---------- */
.tw-msg { border-top: 2px solid var(--line-2); margin-top: 6px; }
.tw-msg-row {
  display: grid; grid-template-columns: 92px 96px minmax(0, 1fr) 24px;
  gap: 18px; align-items: center; padding: 16px 6px;
  border-bottom: 1px solid var(--line-1); transition: background 0.16s;
}
.tw-msg-row:hover { background: var(--bg-1); }
.tw-msg-row .d { font-family: var(--font-mono); font-size: 14px; color: var(--txt-2); }
.tw-msg-row .t { font-size: 16px; color: var(--tw-ink); font-weight: 600; }
.tw-msg-row .arrow { color: var(--line-2); display: flex; justify-content: flex-end; }
.tw-msg-row:hover .arrow { color: var(--accent); }
.tw-msg-row .arrow svg { width: 17px; height: 17px; }
a.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--accent); font-weight: 600; font-size: 14.5px; }
a.more svg { width: 16px; height: 16px; }
@media (max-width: 720px) {
  .tw-msg-row { grid-template-columns: 78px minmax(0, 1fr) 20px; gap: 12px; }
  .tw-msg-row .c { display: none; }
  .tw-msg-row .t { font-size: 15px; }
}

/* ---------- 6. 聯絡資訊區塊 ---------- */
.tw-contact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tw-contact .it {
  border: 1px solid var(--line-1); border-radius: 12px; background: #fff;
  padding: 22px 20px; box-shadow: var(--shadow-1);
}
.tw-contact .it .ic {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-dim); color: var(--accent-2); margin-bottom: 12px;
}
.tw-contact .it .ic svg { width: 19px; height: 19px; }
.tw-contact .it .k { font-size: 12.5px; color: var(--txt-2); letter-spacing: 0.08em; margin-bottom: 5px; }
.tw-contact .it .v { font-size: 16px; font-weight: 600; color: var(--tw-ink); word-break: break-all; }
.tw-contact .it .v a { color: var(--tw-ink); }
.tw-contact .it .v a:hover { color: var(--accent-2); }
@media (max-width: 900px) { .tw-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tw-contact { grid-template-columns: 1fr; } }

/* ---------- 7. 實績數據帶：深墨藍底（台灣站常見） ---------- */
html[lang="zh-Hant"] .stat-band {
  background: linear-gradient(120deg, #12303f, #0d4032);
  border-color: transparent; box-shadow: var(--shadow-2);
}
html[lang="zh-Hant"] .stat-band .stat-cell { background: transparent; }
html[lang="zh-Hant"] .stat-band .stat-cell .v,
html[lang="zh-Hant"] .stat-band .stat-cell .v small { color: #34d399; }
html[lang="zh-Hant"] .stat-band .stat-cell .k { color: rgba(255, 255, 255, 0.75); }

/* ---------- 7b. 深底元件的文字色保護（避免墨色標題蓋過白字） ---------- */
html[lang="zh-Hant"] .cta-banner h2 { color: #ffffff; }
html[lang="zh-Hant"] .cta-banner p { color: rgba(255, 255, 255, 0.78); }
html[lang="zh-Hant"] .cta-banner .btn-ghost { color: #ffffff; border-color: rgba(255, 255, 255, 0.45); }
html[lang="zh-Hant"] .cta-banner .btn-ghost:hover { color: #ffffff; background: rgba(255, 255, 255, 0.12); border-color: #ffffff; }

/* ---------- 8. 頁尾：台灣站資訊密集風 ---------- */
html[lang="zh-Hant"] .footer h5 { font-size: 14.5px; letter-spacing: 0.06em; }
html[lang="zh-Hant"] .footer a.flink { font-size: 14px; }
html[lang="zh-Hant"] .footer .fdesc { line-height: 1.85; }

/* ---------- 9. 服務流程：步驟編號加框（台灣站表格感） ---------- */
html[lang="zh-Hant"] .flow-step {
  background: #fff; border: 1px solid var(--line-1); border-radius: 10px;
  padding: 18px 16px;
}
html[lang="zh-Hant"] .flow-step .n { color: var(--tw-green); letter-spacing: 0.1em; }
