:root {
  --ciot-teal: #009fbb;
  --ciot-teal-dark: #007e97;
  --ciot-navy: #0a3149;
  --ciot-navy-deep: #000000;
  --ciot-blue-soft: #eaf6f8;
  --ciot-gray-100: #f6f8fa;
  --ciot-gray-200: #e8edf1;
  --ciot-gray-500: #414f56;
  --ciot-text: #17232d;
  --ciot-white: #ffffff;
  --ciot-border: #d9e2e7;
  --body-size: 17px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ciot-text);
  background: var(--ciot-white);
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  font-size: var(--body-size);
  line-height: 1.75;
}

.goog-te-gadget-simple img {
display: inline-block;
vertical-align: middle;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin-top: 0;
}

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.35;
  color: var(--ciot-navy-deep);
}

h1 {
  font-size: 48px;
  margin-bottom: 24px;
  font-weight: 700;
  letter-spacing: .01em;
}

h2 {
  font-size: 40px;
  margin-bottom: 18px;
  font-weight: 700;
}

.h2-subtitle{
	font-size: 20px;
	line-height: 2.3rem;
	font-weight: 300;
}
h3 {
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 700;
}

.site-container {
  width: calc(100% - 40px);
  max-width: 1100px;
  margin: 0 auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

[class*="col-"] {
  width: 100%;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
}

.align-items-center {
  align-items: center;
}

.align-items-start {
  align-items: flex-start;
}

.hero-section {
  position: relative;
  min-height: 590px;
  display: flex;
  align-items: center;
  background:
/* */
  url("../images/iot_security/2026/codesign/codesign_bg.png") center/cover no-repeat;
  overflow: hidden;
  color: #fff;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto -12% -45% 40%;
  height: 520px;
  background: radial-gradient(circle, rgba(0,159,187,.18) 0%, rgba(0,159,187,0) 68%);
  pointer-events: none;
}

.hero-section .site-container {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 84px;
}

.hero-section h1 {
  color: #fff;
}

.hero-section .eyebrow {
  color: #a8eaff;
}

/* ====== Section nav below hero (same pattern as CLM / KMS) ====== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--ciot-gray-200);
}

.navbar {
  min-height: 64px;
}

.navbar-nav.codesign-nav-scroll {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.navbar-nav.codesign-nav-scroll::-webkit-scrollbar {
  display: none;
}

.navbar-nav.codesign-nav-scroll .nav-item {
  flex: 0 0 auto;
}

.navbar-nav .codesign-nav-link {
  display: inline-block;
  color: var(--ciot-navy);
  font-size: 16px;
  padding: 8px 0;
}

.navbar-nav .codesign-nav-link:hover,
.navbar-nav .codesign-nav-link:focus {
  color: var(--ciot-teal);
}

.navbar-nav .nav-cta .codesign-nav-link {
  display: inline-block;
  color: var(--ciot-teal);
  border: 1px solid var(--ciot-teal);
  border-radius: 22px;
  padding: 5px 18px;
}

.navbar-nav .nav-cta .codesign-nav-link:hover {
  color: #fff;
  background: var(--ciot-teal);
}

@media (max-width: 991.98px) {
  .navbar-nav.codesign-nav-scroll {
    justify-content: flex-start;
    gap: 18px;
    padding: 12px 0;
  }
  .navbar-nav .codesign-nav-link {
    padding: 6px 0;
  }
}

.hero-row {
  min-height: 470px;
}

.hero-copy, .hero-visual {
  position: relative;
  z-index: 1;
}

.hero-lead {
  font-size: 20px;
  color: #fff;
  margin-bottom: 30px;
  max-width: 610px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual img {
  width: 100%;
  max-width: 520px;
}

.eyebrow {
  display: inline-block;
  color: var(--ciot-teal);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .09em;
  margin-bottom: 14px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 26px;
  border-radius: 4px;
  background: var(--ciot-teal);
  color: var(--ciot-white);
  font-weight: 500;
  transition: background .2s ease, transform .2s ease;
}

.btn-primary-custom:hover, .btn-primary-custom:focus {
  background: var(--ciot-teal-dark);
  transform: translateY(-1px);
  color: #fff;
}

.btn-text {
  color: var(--ciot-navy);
  font-weight: 700;
  border-bottom: 2px solid var(--ciot-teal);
  padding-bottom: 2px;
}

.hero-section .btn-text {
  color: #fff;
}

.section {
  padding: 82px 0;
}

.section-light {
  background: var(--ciot-gray-100);
}

.section-dark {
  background: var(--ciot-navy);
  color: #dce7ee;
}

.section-heading {
  max-width: 100%;
  margin-bottom: 42px;
}

.narrow-heading {
  max-width: 100%;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: #000;
}

.section-heading-light h2, .section-heading-light h3 {
  color: #fff;
}

.section-heading-light > p:last-child {
  color: #fff;
}

.feature-grid {
  display: grid;
  gap: 20px;
}

.four-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  background: #fff;
  border: 1px solid var(--ciot-border);
  padding: 28px 24px 26px;
  min-height: 245px;
}

.feature-card p {
  margin-bottom: 0;
  color: #000;
  line-height: 2rem;
}

.feature-index {
  display: block;
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
}

.scenario-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.scenario-card {
  border: 1px solid var(--ciot-border);
  padding: 34px 34px 30px;
  background: #fff;
}

.scenario-card p{
line-height: 2rem;	
}

.scenario-primary {
  border-top: 4px solid var(--ciot-teal);
}

.scenario-tag, .industry-tag {
  display: inline-block;
/*  background: var(--ciot-blue-soft);*/
  color: var(--ciot-teal);
  font-size: 16px;
  font-weight: 700;
/*  padding: 5px 9px;*/
  margin-bottom: 10px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 9px;
  line-height: 1.5rem;	
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .75em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ciot-navy-deep);
  transform: translateY(-50%);
}

.note {
  font-size: 14px;
  line-height: 1.5rem;
  color: #39464c;
  margin-top: 25px;
 display: block;
	text-align: left;
}

.architecture-panel {
  background: #fff;
  border-radius: 6px;
  padding: 30px;
  margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(25, 75, 105, .07);	
}

.arch-diagram {
  display: grid;
  grid-template-columns: 1fr 30px 1fr 30px 1fr 30px 1fr;
  grid-template-rows: auto 34px auto;
  row-gap: 14px;
  column-gap: 8px;
}

.arch-box {
/*  border-radius: 8px;*/
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 90px;
}

.arch-box strong {
  font-size: 19px;
  color: var(--ciot-navy-deep);
  margin-bottom: 6px;
}

.arch-box span {
  font-size: 16px;
  color: #5b6972;
  line-height: 1.5;
}

.arch-box--light {
  background: var(--ciot-gray-100);
  border: 1px solid var(--ciot-border);
}

.arch-box--navy {
  background: var(--ciot-navy);
  border: 1px solid var(--ciot-navy);
}

.arch-box--navy strong,
.arch-box--navy span {
  color: #fff;
}

.arch-box--teal {
  background: var(--ciot-blue-soft);
  border: 1px solid var(--ciot-teal);
}

.arch-box--dashed {
  background: var(--ciot-blue-soft);
  border: 1.5px dashed var(--ciot-teal);
}

.arch-arrow, .arch-arrow-down {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ciot-teal);
  font-size: 22px;
  font-weight: 700;
}

.arch-arrow-dashed {
  position: relative;
  align-self: center;
  height: 0;
  border-top: 2px dashed var(--ciot-teal);
  margin: 0 4px;
}

.arch-arrow-dashed::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid var(--ciot-teal);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.arch-cell--build { grid-column: 1; grid-row: 1; }
.arch-cell--arrow1 { grid-column: 2; grid-row: 1; }
.arch-cell--codesign { grid-column: 3; grid-row: 1; }
.arch-cell--arrow2 { grid-column: 4; grid-row: 1; }
.arch-cell--kms { grid-column: 5; grid-row: 1; }
.arch-cell--arrow3 { grid-column: 6; grid-row: 1; }
.arch-cell--hsm { grid-column: 7; grid-row: 1; }
.arch-cell--arrowdown { grid-column: 3; grid-row: 2; }
.arch-cell--signed { grid-column: 3; grid-row: 3; }
.arch-cell--arrow4 { grid-column: 4; grid-row: 3; }
.arch-cell--verify { grid-column: 5; grid-row: 3; }
.arch-cell--arrow5 { grid-column: 6; grid-row: 3; }
.arch-cell--clm { grid-column: 7; grid-row: 3; }

.architecture-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.architecture-grid article {
  background:#165270;
  border: 2px solid #CBC8C83;
  padding: 22px;
}

.architecture-grid h3 {
  color: #fff;
}

.architecture-grid p {
  margin-bottom: 0;
  color: #fff;
  line-height: 2rem;
}

.pqc-section {
  background: #fff;
}

.roadmap-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.roadmap-card h3{
	    background: var(--ciot-navy);
	color: #fff;
	padding: 3px 10px;
}

/* 無底色、無外框；階段之間以「>」箭頭區隔（原為垂直分隔線，見下方舊版註解） */
.roadmap-stage {
  position: relative;
  padding: 8px 32px;
}

/* 舊版（垂直分隔線，還原時取消註解並刪除下方 ::before 規則）：
.roadmap-stage + .roadmap-stage {
  border-left: 1px solid rgba(0, 159, 187, .45);
}
*/

/* 新版：兩階段交界處放一個青綠色「>」，垂直置中 */
.roadmap-stage + .roadmap-stage::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 20px;
  height: 46px;
  transform: translate(-50%, -50%);
  background: url("../images/iot_security/2026/codesign/roadmap-chevron.svg") center / contain no-repeat;
  /* 舊版（內嵌 data URI，線條較細，還原時取消註解並刪除上一行）：
  width: 16px; height: 42px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 420'%3E%3Cpolyline points='4,4 152,212 18,410' fill='none' stroke='%23009fbb' stroke-width='9'/%3E%3C/svg%3E") center / contain no-repeat;
  */
}

.roadmap-stage span {
  display: block;
  color: var(--ciot-teal);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.roadmap-stage strong {
  display: block;
  font-size: 19px;
  color: var(--ciot-navy-deep);
  margin-bottom: 12px;
}

.roadmap-stage p {
  margin-bottom: 0;
  color: #000;
  line-height: 2rem;
}

/* 兩組流程左右並排（桌機）：Firmware Trust ｜ Device Identity Extension */
.trust-flow-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 64px 48px;
}

.flow-group {
  display: grid;
  gap: 0;
}

/* 每組流程由上至下排列，箭頭向下 */
.trust-flow {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 0;
}

.flow-label {
  color: var(--ciot-navy-deep);
  text-align: center;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.3;
  padding-bottom: 10px;
  border-bottom: 4px solid var(--ciot-teal);
}

/* 步驟：無外框、無底色、置中；下方一條細分隔線，線與線之間以向下箭頭串接 */
.flow-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 7px 0 13px;
  border-bottom: 1px solid #c4cdd3;
}

/* 只作用在流程步驟內（原本的 ", span" 會套到全站所有 span，造成標題行距被壓縮） */
.flow-step h3,
.flow-step span {
 text-align: center;
 line-height: 1.2rem;
}

.flow-step h3,
.flow-step strong {
  margin: 0 0 6px;
  color: var(--ciot-navy-deep);
  font-size: 22px;
}

.flow-step span {
  color: #000;
  font-size: 17px;
}

.flow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  color: var(--ciot-teal);
  font-size: 22px;
  font-weight: 700;
  transform: rotate(90deg);
}

.industry-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.industry-card {
  flex: 0 0 calc((100% - 40px) / 3);
  border-top: 4px solid var(--ciot-teal);
  background:#fff;
  padding: 20px;
  border: 1px solid var(--ciot-border);
/*  min-height: 250px;*/
}

.industry-card p {
  margin-bottom: 0;
  color: #000;
  line-height: 2rem;
}

/* 卡片上方置中 icon（裝飾用，標題文字已說明內容） */
.industry-icon {
  display: block;
  width: 72px;
  height: 72px;
/*  margin: 4px auto 16px;*/
	margin: 10px 0 ;
}

.section-process {
    background: #fff;
}

/* ============================================================
   01~05 導入流程（.process-list）共四種樣式：E、F、D、A/B/C
   【新版 E】編號、標題、細線箭頭、說明全部放在淺藍色箭頭形色塊內
   【新版 F】編號與標題在色塊上方，色塊內只放說明（依 1517px 參考圖比例）
   E、F 不用動註解，直接用 HTML 切換：<ol> 加上 process-list-v2 = F；移除 = E
   【舊版 D】直列清單（左側粗線＋橫向分隔線＋向下箭頭）
   【舊版 A / B / C】五欄橫排（垂直分隔線）；B、C 是它在兩個 media query 內的規則
   要改用 D 或 A/B/C 時：先把 E 與 F 兩整段（NEW-E-START 到 NEW-F-END，段內刻意不放註解）
   用註解包起來，再把要啟用的那一組的註解取消
     D：「舊版 D」整段
     A/B/C：舊版 A 以及兩個 media query 內的舊版 B、C，三處需一起處理
   ============================================================ */

/* 【舊版 A】五欄橫排＋垂直分隔線（原先樣式，還原時取消此註解） */
/*
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 0;
}

( 無白底、無外框；步驟之間以垂直分隔線區隔 )
.process-list li {
  padding: 4px 16px;
}

.process-list li + li {
  border-left: 1px solid rgba(0, 159, 187, .45);
}

.process-list li:first-child {
  padding-left: 0;
}

.process-list li:last-child {
  padding-right: 0;
}

( 編號（01）與標題（需求確認）同一行，說明文字換到下一行 )
.process-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: baseline;
  align-content: start;
}

.process-list li > div {
  display: contents;
}

.process-list li > span {
  color: var(--ciot-teal);
  font-size: 18px;
  font-weight: 700;
}

.process-list h3 {
  margin: 0 0 14px;
}

.process-list p {
  grid-column: 1 / -1;
}

.process-list h3 {
  font-size: 22px;
}

.process-list p {
  margin-bottom: 0;
  color: #000;
  line-height: 2rem;
}
*/

/* 【舊版 D】直列清單（左側粗線＋橫向分隔線＋向下箭頭）：還原時取消下方註解 */
/*
.process-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 28px;
  border-left: 5px solid var(--ciot-teal);
}

.process-list li {
  display: grid;
  grid-template-columns: 36px 260px minmax(0, 1fr);
  column-gap: 12px;
  align-items: baseline;
  padding: 15px 0 0 30px;
}

.process-list li:last-child {
  padding-bottom: 15px;
}

.process-list li::before {
  content: "\2193";
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  align-self: start;
  width: 21px;
  margin: 4px 0 8px;
  text-align: center;
  color: var(--ciot-navy-deep);
  font-size: 20px;
  line-height: 1;
}

.process-list li::after {
  content: "";
  grid-column: 2 / -1;
  grid-row: 2;
  align-self: end;
  border-bottom: 1px solid rgba(0, 126, 151, .5);
}

.process-list li:last-child::before,
.process-list li:last-child::after {
  display: none;
}

.process-list li > div {
  display: contents;
}

.process-list li > span {
  grid-column: 1;
  grid-row: 1;
  color: var(--ciot-teal);
  font-size: 18px;
  font-weight: 700;
}

.process-list h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 22px;
}

.process-list p {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
  color: #000;
  line-height: 2rem;
}

@media (max-width: 991.98px) {
  .process-list li {
    grid-template-columns: 36px 190px minmax(0, 1fr);
  }
}

@media (max-width: 767.98px) {
  .process-list {
    padding-left: 16px;
    border-left-width: 6px;
  }
  .process-list li {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 15px 0 0 14px;
  }
  .process-list li:last-child {
    padding-bottom: 15px;
  }
  .process-list h3 {
    font-size: 20px;
  }
  .process-list p {
    grid-column: 2;
    grid-row: 2;
    margin-top: 6px;
  }
  .process-list li::before,
  .process-list li::after {
    grid-row: 3;
  }
}
*/

/* ---------- 新版 E NEW-E-START ---------- */
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
}

.process-list li {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
/*  padding: 27px 39px 27px 45px;*/
  padding: 22px 33px 26px 51px;
  background: #dcf2f7;
  clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 50%, calc(100% - 36px) 100%, 0 100%, 36px 50%);
}

.process-list li:first-child {
  padding-left: 26px;
  clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 50%, calc(100% - 36px) 100%, 0 100%);
}

.process-list li + li {
  margin-left: -24px;
}

.process-list li > div {
  display: block;
}

.process-list li > span {
  display: block;
  margin-bottom: 4px;
  color: var(--ciot-teal);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.process-list h3 {
  margin: 0;
  font-size: 22px;
}

.process-list h3::after {
  content: "";
  display: block;
  height: 1px;
  margin: 10px 0 14px;
  background: #000;
}

.process-list p {
  position: relative;
  margin: 0;
  color: #000;
  font-size: 15px;
  line-height: 1.7;
	letter-spacing: -1px;
}

.process-list p::before {
  content: "";
  position: absolute;
  top: -19px;
  right: 0;
  width: 0;
  height: 0;
  border-left: 8px solid #000;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
}

@media (max-width: 1199.98px) {
  .process-list p {
    font-size: 14px;
  }
}

@media (max-width: 991.98px) {
  .process-list {
    flex-direction: column;
  }
  .process-list li,
  .process-list li:first-child {
    flex: none;
    padding: 38px 28px;
    clip-path: polygon(0 0, 50% 28px, 100% 0, 100% calc(100% - 28px), 50% 100%, 0 calc(100% - 28px));
  }
  .process-list li:first-child {
    padding-top: 24px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 50% 100%, 0 calc(100% - 28px));
  }
  .process-list li + li {
    margin-left: 0;
    margin-top: -18px;
  }
  .process-list p {
    font-size: 15px;
  }
}
/* ---------- 新版 E NEW-E-END ---------- */

/* ---------- 新版 F NEW-F-START ---------- */
.process-list.process-list-v2 li,
.process-list.process-list-v2 li:first-child {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: none;
  clip-path: none;
}

.process-list.process-list-v2 li + li {
  margin-left: -32px;
}

.process-list.process-list-v2 li > div {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.process-list.process-list-v2 li > span {
  padding-left: 46px;
  margin-bottom: 2px;
  font-size: 22px;
}

.process-list.process-list-v2 h3 {
  margin: 0 0 8px;
  padding-left: 46px;
  font-size: 24px;
}

.process-list.process-list-v2 li:first-child > span,
.process-list.process-list-v2 li:first-child h3 {
  padding-left: 26px;
}

.process-list.process-list-v2 h3::after,
.process-list.process-list-v2 p::before {
  display: none;
}

.process-list.process-list-v2 p {
  flex: 1 1 auto;
  margin: 0;
  padding: 20px 34px 20px 53px;
  background: #dcf2f7;
  clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 50%, calc(100% - 48px) 100%, 0 100%, 48px 50%);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0;
}

.process-list.process-list-v2 li:first-child p {
  padding-left: 26px;
  clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 50%, calc(100% - 48px) 100%, 0 100%);
}

@media (max-width: 1199.98px) {
  .process-list.process-list-v2 p {
    font-size: 14px;
  }
}

@media (max-width: 991.98px) {
  .process-list.process-list-v2 li,
  .process-list.process-list-v2 li:first-child {
    flex: none;
    padding: 0;
    clip-path: none;
  }
  .process-list.process-list-v2 li + li {
    margin-left: 0;
    margin-top: 22px;
  }
  .process-list.process-list-v2 li > span,
  .process-list.process-list-v2 h3,
  .process-list.process-list-v2 li:first-child > span,
  .process-list.process-list-v2 li:first-child h3 {
    padding-left: 24px;
  }
  .process-list.process-list-v2 p,
  .process-list.process-list-v2 li:first-child p {
    padding: 22px 24px 46px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), 50% 100%, 0 calc(100% - 26px));
    font-size: 15px;
  }
}
/* ---------- 新版 F NEW-F-END ---------- */

.section-notes {
  padding-top: 60px;
  padding-bottom: 60px;
}

.notice-panel {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 46px;
  border-left: 5px solid var(--ciot-teal);
  background: var(--ciot-gray-100);
  padding: 34px 36px;
}

.notice-panel ul {
  margin: 0;
  padding-left: 22px;
}

.notice-panel li + li {
  margin-top: 8px;
}

.cta-section {
  padding: 58px 0;
  background: var(--ciot-navy);
  color: #dce8ee;
}

.cta-inner {
/*
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
*/
}

.cta-inner h2 {
  color: #fff;
  margin-bottom: 10px;
}

.cta-inner p:last-child {
  margin-bottom: 0;
  color: #fff;
}

.btn-light-custom {
  background: #fff;
  color: var(--ciot-navy-deep);
  flex: 0 0 auto;
}

.btn-light-custom:hover, .btn-light-custom:focus {
  background: #eaf5f7;
  color: var(--ciot-navy-deep);
}

@media (min-width: 992px) {
  .col-lg-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }
  .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .col-lg-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }
}

@media (max-width: 1199.98px) {
  h1 {
    font-size: 44px;
  }
  .site-container {
    max-width: 980px;
  }
  .four-col, .architecture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
/* 【舊版 B】1199px 以下三欄換行（還原舊版時取消此註解） */
/*
  .process-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  ( 三欄換行：每列第一個不加分隔線、靠左對齊 )
  .process-list li:nth-child(3n+1) {
    border-left: 0;
    padding-left: 0;
  }
  .process-list li:nth-child(3n) {
    padding-right: 0;
  }
*/
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
  }
  .hero-section .site-container {
    padding-top: 130px;
    padding-bottom: 76px;
  }
  .hero-row {
    min-height: auto;
  }
  .hero-visual {
    margin-top: 44px;
  }
  .section {
    padding: 68px 0;
  }
  .scenario-grid, .notice-panel {
    grid-template-columns: 1fr;
  }
  .industry-card {
    flex-basis: 100%;
  }
  .roadmap-card {
    grid-template-columns: 1fr;
  }
  /* 直排時，「>」旋轉成向下的「v」，放在兩階段交界處水平置中 */
  .roadmap-stage {
    padding: 24px 0;
  }
  .roadmap-stage:first-child {
    padding-top: 0;
  }
  .roadmap-stage:last-child {
    padding-bottom: 0;
  }
  /* 舊版（水平分隔線，還原時取消註解並刪除下方 ::before 規則）：
  .roadmap-stage + .roadmap-stage {
    border-left: 0;
    border-top: 1px solid rgba(0, 159, 187, .45);
  }
  */
  .roadmap-stage + .roadmap-stage::before {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
  }
  .trust-flow-wrap {
    grid-template-columns: 1fr;
  }
  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 17px;
  }
  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 29px;
  }
  .hero-section .site-container {
    padding-top: 112px;
    padding-bottom: 58px;
  }
  .site-container {
    width: calc(100% - 32px);
  }
  .four-col, .architecture-grid, .process-list {
    grid-template-columns: 1fr;
  }
/* 【舊版 C】767px 以下單欄直排（還原舊版時取消此註解） */
/*
  ( 單欄直排：垂直分隔線改為水平分隔線 )
  .process-list {
    gap: 0;
  }
  .process-list li,
  .process-list li:nth-child(3n+1),
  .process-list li:nth-child(3n),
  .process-list li:first-child,
  .process-list li:last-child {
    padding: 22px 0;
  }
  .process-list li:first-child {
    padding-top: 0;
  }
  .process-list li:last-child {
    padding-bottom: 0;
  }
  .process-list li + li {
    border-left: 0;
    border-top: 1px solid rgba(0, 159, 187, .45);
  }
*/
  .feature-card, .process-list li {
    min-height: auto;
  }
  .scenario-card {
    padding: 28px 24px 25px;
  }
  .architecture-panel {
    padding: 16px;
  }
  .arch-diagram {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .arch-arrow, .arch-arrow-down {
    transform: rotate(90deg);
    min-height: 18px;
  }
  .arch-arrow-dashed {
    width: 40px;
    align-self: center;
    transform: rotate(90deg);
    margin: 6px 0;
  }
}

@media (max-width: 575.98px) {
  h1 {
    font-size: 32px;
  }
  h2 {
    font-size: 27px;
  }
  .hero-lead {
    font-size: 18px;
  }
  .section {
    padding: 56px 0;
  }
  .section-heading {
    margin-bottom: 32px;
  }
  .notice-panel {
    padding: 28px 24px;
  }
  .btn-primary-custom {
    width: 100%;
  }
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
}

/* Keep section headings aligned with the content grid on desktop; allow natural wrapping on smaller screens. */
@media (min-width: 992px) {
  .section-heading h2 {
    max-width: 100%;
  }
  .section-heading > p:last-child {
    max-width: 100%;
  }
}


/* ====== CodeSign architecture flow (cs-arch) ====== */
/* 字級：區塊標題 20 > 小標 16 > 內文 14 > 英文註記 12 */
.cs-arch {
  background: var(--ciot-navy);
  padding: 56px 0;
}

.cs-arch-wrap {
  width: calc(100% - 40px);
  max-width: 1100px;
  margin: 0 auto;
}

.cs-arch-top {
  display: grid;
  grid-template-columns: minmax(0, .95fr) 28px minmax(0, 1.45fr) 28px minmax(0, 1.3fr);
  align-items: stretch;
}

.cs-arch-panel {
  padding: 18px 18px 20px;
  background: var(--ciot-white);
/*  border: 1px solid var(--ciot-border);*/
  color: #000;
}

.cs-arch-title {
  margin: 0 0 16px;
  font-size: 21px;
  line-height: 1.4;
  color: #000;
  font-weight: 800;
}

.cs-arch-num {
  margin-right: 8px;
  color: var(--ciot-teal);
}

/* 所有小標統一：16px 粗體黑 */
.cs-arch-sub {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: #000;
}

/* 內文：14px */
.cs-arch-text {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: #000;
}

/* 英文註記：12px 灰 */
.cs-arch-note {
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ciot-gray-500);
}

.cs-arch-panel hr {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid var(--ciot-border);
}

.cs-arch-arrow {
  align-self: center;
  color: var(--ciot-white);
  font-size: 28px;
  line-height: 1;
  text-align: center;
}

.cs-arch-svc {
  display: grid;
  grid-template-columns: 1fr 16px 1fr 16px 1fr;
  gap: 8px 0;
  align-items: stretch;
}

.cs-arch-node {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 78px;
  padding: 10px 6px;
  background: var(--ciot-white);
  border: 1px solid var(--ciot-border);
  text-align: center;
}

.cs-arch-mini {
  align-self: center;
  text-align: center;
  font-size: 14px;
  color: #000;
}

.cs-arch-row2 {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 16px;
  margin-top: 8px;
}

.cs-arch-core {
  margin-top: 16px;
  font-size: 12px;
  color: var(--ciot-gray-500);
}

.cs-arch-out {
  margin-bottom: 10px;
  padding: 8px 12px;
  background: var(--ciot-white);
  border: 1px solid var(--ciot-border);
}

.cs-arch-out:last-child {
  margin-bottom: 0;
}

.cs-arch-link {
  width: 1px;
  height: 28px;
  margin: 0 auto;
  background: var(--ciot-white);
  opacity: .6;
}

.cs-arch-key {
  max-width: 620px;
  margin: 0 auto;
  padding: 12px 16px 16px;
  border: 1px solid rgba(255, 255, 255, .55);
  color: var(--ciot-white);
  text-align: center;
}

.cs-arch-key-title {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ciot-white);
}

.cs-arch-key-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: left;
}

.cs-arch-key-grid > div {
  padding: 8px 10px;
  background: var(--ciot-white);
  border: 1px solid var(--ciot-border);
}

@media (max-width: 991.98px) {
  .cs-arch-top {
    grid-template-columns: 1fr;
  }
  .cs-arch-arrow {
    height: 44px;
    padding: 10px 0;
    transform: rotate(90deg);
  }
  .cs-arch-key-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .cs-arch-svc {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .cs-arch-mini {
    transform: rotate(90deg);
  }
  .cs-arch-row2 {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* 992 ~ 1399px：左欄加寬讓大標不斷行，右欄放直式流程圖 */
@media (min-width: 992px) and (max-width: 1399.98px) {
  .hero-row .hero-copy {
    flex: 0 0 66%;
    max-width: 66%;
  }
  .hero-row .hero-visual {
    flex: 0 0 34%;
    max-width: 34%;
  }
}

/* ≥ 1400px：加寬 hero，大標單行，流程圖改橫式（左 50% / 右 50%） */
@media (min-width: 1400px) {
  .hero-section .site-container {
    max-width: 1360px;
  }
  .hero-row .hero-copy {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .hero-row .hero-visual {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .hero-section h1 {
    white-space: nowrap;
  }
  .hero-visual .hero-flow-img {
    max-width: 660px;
  }
}

/* ====== Hero 右側流程圖（圖片版） ====== */
/* 預設與 < 992px（直排於文案下方）：置中，最大 520px，隨欄寬縮放 */
.hero-flow-img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
}

/* ====== CodeSign architecture flow：圖片版 ====== */
.section-arch-figure {
  padding: 56px 0;
}

.arch-figure {
  margin: 0;
}

.arch-figure img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 991.98px) {
  .section-arch-figure {
    padding: 44px 0;
  }
}

/* 手機：圖內文字會縮得太小，保留可讀寬度並允許橫向捲動 */
@media (max-width: 767.98px) {
  .arch-figure-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .arch-figure img {
    width: 720px;
    max-width: none;
  }
}
