/* ==========================================================================
   原創周邊・廣告頁提案（三款，各一頁；尺寸同資訊軟體廣告頁 1192 x 520）
   共用 software-ad.css 的 .ad4 基礎（cqw 等比縮放、金箔雜點、英文大字字體）
   底圖：assets/images/ad-kcb-circles.webp（藍紫圓環鏈）
   ========================================================================== */
.adk {
  aspect-ratio: 1192 / 520;
  color: #14191c;
  background-color: #fbfaf6;
  background-image: linear-gradient(90deg, rgba(251, 250, 246, .0) 0%, rgba(251, 250, 246, 0) 100%), url("assets/images/ad-kcb-circles.webp");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: right 46%;
}
.adk::before { opacity: .22; }
.adk .ad4-meta { top: 2.3cqw; color: #cf4a26; }
.adk-display {
  position: absolute;
  font-family: 'BodoniModaAd', 'Bodoni Moda', 'Didot', serif;
  font-size: 12.6cqw;
  line-height: 1;
  letter-spacing: -.025em;
  font-variant-ligatures: none;
  white-space: nowrap;
  color: #14191c;
  z-index: 2;
}
.adk-title { margin: 0; font: 400 5.2cqw/1.1 var(--font-brand-gong); letter-spacing: .16em; color: #14191c; }
.adk-micro { margin: 0; font: 400 max(1.02cqw, 7px)/1.6 var(--font-mono); letter-spacing: .11em; text-transform: uppercase; color: #cf4a26; }
.adk-desc { margin: 0; font: 400 max(1.26cqw, 9px)/1.85 var(--font-sans); color: #2b373d; }
.adk-chip {
  display: inline-flex;
  align-items: center;
  gap: .9cqw;
  padding: .66cqw 1.4cqw;
  border: 1px solid rgba(24, 54, 93, .3);
  border-radius: 3px;
  background: rgba(255, 255, 255, .72);
  font: 400 max(1.2cqw, 8px)/1.5 var(--font-sans);
  letter-spacing: .08em;
  color: #18365d;
  white-space: nowrap;
}
.adk-chip::before { content: ""; width: .5cqw; height: .5cqw; background: #cf4a26; transform: rotate(45deg); flex-shrink: 0; }
/* 蝦皮賣場按鈕 */
.adk-shop {
  display: inline-flex;
  align-items: center;
  gap: 1cqw;
  padding: .8cqw 1.7cqw;
  background: linear-gradient(90deg, #d9502b, #e0693f);
  color: #fff;
  font: 500 max(1.2cqw, 8px)/1.4 var(--font-sans);
  letter-spacing: .08em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 .5cqw 1.4cqw rgba(209, 83, 48, .22);
  position: relative;
  z-index: 6;
}
.adk-shop::after { content: "↗"; }
.adk-logo { height: 4.4cqw; width: auto; display: block; }

/* ---------- 版本一：左文＋右側四格（與資訊軟體第一張同構圖） ---------- */
.adk-1 .adk-display { left: 4.2cqw; top: 4.2cqw; }
.adk-1-body {
  position: absolute;
  left: 4.6cqw;
  right: 6cqw;
  top: 20.4cqw;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 29cqw;
  column-gap: 5cqw;
  align-items: stretch;
  z-index: 4;
}
.adk-1-text { display: flex; flex-direction: column; align-items: flex-start; }
.adk-1-text .adk-micro { margin-top: auto; padding-top: 2.2cqw; }
.adk-1-text .adk-desc { margin-top: 1cqw; }
.adk-1-side { display: flex; flex-direction: column; justify-content: space-between; gap: 1cqw; padding-top: .6cqw; }
.adk-1-side .adk-shop { justify-content: space-between; }

/* ---------- 版本二（選定）：品牌標誌＋文字，右側圓環鏈 ---------- */
.adk-2 {
  background-image: none;
  --adk-teal: #5ab7c1;        /* 藍綠：取自「透抽」字樣 */
  --adk-violet: #9aa7ea;      /* 藍紫：圓環重疊處的色調（小菱形用，略加深才看得見） */
}
/* 圓環鏈：略放大，底部兩顆貼齊版面下緣 */
.adk-2-bg {
  position: absolute;
  right: .5cqw;
  bottom: -1.5%;
  height: 108%;
  aspect-ratio: 16 / 9;
  background: url("assets/images/ad-kcb-circles.webp") right bottom / contain no-repeat;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
.adk-2::after {
  background-image: url("assets/images/ad-gold-flecks-kcb.webp");
  -webkit-mask-image: none;
  mask-image: none;
}
.adk-2 .ad4-meta, .adk-2 .adk-micro { color: var(--adk-teal); }
.adk-2-left {
  position: absolute;
  left: 4.6cqw;
  top: 7.4cqw;
  bottom: 3.3cqw;
  width: 52cqw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 4;
}
.adk-2-brand { display: flex; align-items: flex-end; gap: 1.6cqw; }
.adk-2-brand .adk-logo { height: 6.6cqw; }
.adk-2-brand .adk-title { font-size: 4.6cqw; color: #18365d; }
.adk-2-lead { margin: 1.4cqw 0 0; font: 500 2.3cqw/1.5 var(--font-brand-gong); color: #E27AA6; letter-spacing: .04em; }
/* firmianis 標準字：粉紅色版本的圖檔（assets/logo-text-en-pink.png）
   不用 CSS 遮罩上色，因為直接從資料夾開啟網頁時，瀏覽器會擋下遮罩圖片 */
.adk-2-wordmark {
  display: inline-block;
  width: 11.6cqw;
  height: auto;
  margin: 0 1cqw 0 .9cqw;
  vertical-align: -.12em;
}
/* 01 / 02 兩條長色塊（沿用版本三的做法），放在原本說明文字的位置 */
.adk-2-bar {
  position: absolute;
  left: 0;
  width: 58cqw;
  height: 6.4cqw;
  box-sizing: border-box;
  padding: 0 2cqw 0 4.6cqw;
  display: grid;
  grid-template-columns: 4cqw 15.5cqw minmax(0, 1fr);
  column-gap: 1.4cqw;
  align-items: center;
  box-shadow: 0 10px 24px rgba(38, 50, 72, .09);
  color: #14233a;
  z-index: 3;
}
.adk-2-bar.b1 { top: 20.9cqw; background: linear-gradient(90deg, #9cc6f3 0%, #b9d8f7 55%, #d6e6fa 100%); }
.adk-2-bar.b2 { top: 28.5cqw; left: 4.4cqw; background: linear-gradient(90deg, #d8cdf2 0%, #e4dcf6 100%); }
.adk-2-bar-num { font: 400 2.9cqw/1 'BodoniModaAd', serif; }
.adk-2-bar-kicker { display: block; font: 500 max(.66cqw, 6px)/1.5 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }
.adk-2-bar h3 { margin: .35cqw 0 0; font: 400 1.9cqw/1.3 var(--font-brand-gong); letter-spacing: .06em; white-space: nowrap; }
.adk-2-bar p { margin: 0; padding-left: 1.4cqw; border-left: 1px solid rgba(20, 35, 58, .35); font: 400 max(1.1cqw, 9px)/1.75 var(--font-sans); }
.adk-2-row { display: flex; flex-wrap: wrap; align-items: center; gap: .9cqw; margin-top: auto; }
.adk-2 .adk-chip::before { background: var(--adk-violet); }
/* 放在原創周邊頁最上方時的外框：寬度與下方內容大框相同 */
.adk-hero { width: min(1480px, calc(100% - 56px)); margin: 0 auto 28px; padding-top: calc(var(--header-h) + 2rem); }
@media (max-width: 680px) { .adk-hero { width: calc(100% - 20px); } }

/* ---------- 版本三：橫幅色塊＋底部大標語（與資訊軟體第二張同構圖） ---------- */
.adk-3 { background-position: right 62%; }
.adk-3-bar {
  position: absolute;
  left: 0;
  width: 60cqw;
  height: 9.6cqw;
  box-sizing: border-box;
  padding: 0 2.4cqw 0 4.6cqw;
  display: grid;
  grid-template-columns: 4.6cqw 19cqw minmax(0, 1fr);
  column-gap: 1.6cqw;
  align-items: center;
  box-shadow: 0 14px 30px rgba(38, 50, 72, .1);
  color: #14233a;
  z-index: 3;
}
.adk-3-bar.b1 { top: 5cqw; background: linear-gradient(90deg, #9cc6f3 0%, #b9d8f7 55%, #d6e6fa 100%); }
.adk-3-bar.b2 { top: 16.2cqw; left: 6.4cqw; background: linear-gradient(90deg, #d8cdf2 0%, #e4dcf6 100%); }
.adk-3-num { font: 400 3.4cqw/1 'BodoniModaAd', serif; }
.adk-3-kicker { display: block; font: 500 max(.7cqw, 6px)/1.5 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }
.adk-3-bar h3 { margin: .6cqw 0 0; font: 400 2.1cqw/1.3 var(--font-brand-gong); letter-spacing: .06em; white-space: nowrap; }
.adk-3-bar p { margin: 0; padding-left: 1.6cqw; border-left: 1px solid rgba(20, 35, 58, .35); font: 400 max(1.16cqw, 9px)/1.85 var(--font-sans); }
.adk-3-slogan {
  position: absolute;
  left: 4.6cqw;
  right: 4.6cqw;
  bottom: 5cqw;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font: 400 5.6cqw/1.1 var(--font-title-longmen);
  white-space: nowrap;
  color: #14191c;
  z-index: 5;
}
.adk-3-slogan i { font-style: normal; font-family: 'BodoniModaAd', serif; font-size: 4cqw; color: #cf4a26; }
.adk-3 .ad4-meta { top: auto; bottom: 1.7cqw; }
.adk-3-shop { position: absolute; right: 4.6cqw; top: 5cqw; z-index: 6; display: flex; flex-direction: column; align-items: flex-end; gap: 1.2cqw; }

/* 提案頁外框 */
.adk-stack { width: min(1192px, calc(100% - 40px)); margin: 0 auto; padding: calc(var(--header-h) + 2rem) 0 6rem; display: grid; gap: 2.6rem; }
.adk-tag { margin: 0 0 .7rem; font: 500 .78rem/1.5 var(--font-mono); letter-spacing: .12em; color: #18365d; }
.adk-tag b { display: inline-block; margin-right: .6rem; padding: .3rem .6rem; background: #18365d; color: #fff; font-weight: 500; }
