/* ==========================================================================
   行銷頁的大區塊（2026-10 亮色改版）
   首頁 common/home_v2.py、定價頁、Basic 頁共用。（2026-10-02 起沒有 /classic、/intro
   個別產品頁了。）導覽列、頁尾、按鈕、標籤、方案卡、常見問題這些小零件在
   components.css，這裡只放「一整段」的版面。
   參考 tabella-phenomenon.netlify.app：暖灰大圓角面板裝內容、深色卡片拉對比，
   品牌藍只用在行動按鈕與手繪圈。
   ========================================================================== */

/* --------------------------------------------------------------------------
   開頭
   -------------------------------------------------------------------------- */
.v2-hero { padding-top: 8px; }

.v2-hero__panel {
  padding: clamp(28px, 5vw, 60px) clamp(16px, 3.4vw, 44px) clamp(16px, 3vw, 40px);
}

.v2-hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 24px 40px;
  align-items: start;
  padding-inline: clamp(4px, 1vw, 12px);
}

.v2-mark { position: relative; display: inline-block; white-space: nowrap; }

.v2-mark .v2-scribble {
  left: -19%;
  top: -24%;
  width: 132%;
  height: 145%;
  stroke-width: 2.2;
}

.v2-hero__icons { display: flex; gap: 8px; margin-bottom: 16px; }

.v2-hero__icons span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--v2-card);
  color: var(--v2-ink);
}

.v2-hero__icons .icon { width: 20px; height: 20px; }

.v2-hero__aside p { font-size: 1.0625rem; line-height: 1.7; color: var(--v2-ink); }

.v2-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(190px, 19vw, 250px);
  grid-auto-flow: dense;
  gap: clamp(12px, 1.5vw, 20px);
  margin-top: clamp(28px, 4vw, 48px);
}

.v2-tile {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--v2-r-lg);
  background: var(--v2-card);
  container-type: size;   /* 格子的寬高都是定的；設定視窗要用 cqmin 同時看寬和高 */
}

.v2-tile--wide { grid-column: span 2; }
.v2-tile--dark { background: var(--v2-dark); color: var(--v2-on-dark); }
.v2-tile--frame { background: var(--v2-dark); }

/* 寬那一格上下各挖一個小缺口（參考站的招牌造型） */
.v2-tile--notch {
  -webkit-mask:
    radial-gradient(circle 13px at 50% 0, transparent 96%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle 13px at 50% 100%, transparent 96%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle 13px at 50% 0, transparent 96%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle 13px at 50% 100%, transparent 96%, #000) bottom / 100% 51% no-repeat;
}

.v2-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.v2-tile__cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--v2-ink);
  background: var(--v2-card);
  box-shadow: var(--v2-shadow);
}

.v2-tile--dark .v2-tile__cap,
.v2-tile--frame .v2-tile__cap { background: var(--v2-dark-2); color: var(--v2-on-dark); }

.v2-cliptag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--v2-card);
  background: color-mix(in srgb, var(--v2-ink) 70%, transparent);
}

.v2-cliptag .icon { width: 10px; height: 10px; }

.v2-cta-cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 2px;
}

.v2-cta-cell__deco { display: flex; gap: 6px; color: var(--v2-ink); }
.v2-cta-cell__deco .v2-spark { width: 30px; height: 30px; }

.v2-cta-cell__link { display: flex; align-items: flex-end; gap: 10px; color: var(--v2-ink); }
.v2-cta-cell__link:hover { color: var(--v2-ink); }
.v2-cta-cell__link:hover .v2-roundbtn { transform: translateX(4px); }

.v2-cta-cell__text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

.v2-cta-cell__text span {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--v2-card);
  font-size: clamp(14px, 1.2vw, 17px);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   小介面示意（沒有實際畫面的格子先用這個）
   -------------------------------------------------------------------------- */
.v2-mock {
  position: absolute;
  inset: 0 0 46px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 4cqi, 16px);
  padding: 8cqi 8cqi 2cqi;
}

.v2-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 clamp(11px, 4.4cqi, 15px)/1 var(--v2-display);
  color: var(--v2-ink);
}

.v2-meter span { width: 2.2em; }

.v2-meter__bar {
  position: relative;
  flex: 1;
  height: clamp(9px, 3.6cqi, 14px);
  border-radius: 999px;
  overflow: hidden;
  background: var(--v2-panel);
}

.v2-meter__bar b {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform-origin: left;
}

.is-hp b { background: var(--v2-hp); transform: scaleX(.9); animation: v2-refill 5s ease-in-out infinite; }
.is-mp b { background: var(--v2-mp); transform: scaleX(.62); }

@keyframes v2-refill {
  0%, 28%   { transform: scaleX(.26); }
  46%, 84%  { transform: scaleX(.92); }
  100%      { transform: scaleX(.26); }
}

.v2-toast {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: clamp(10px, 4cqi, 14px);
  white-space: nowrap;
  color: var(--v2-card);
  background: var(--v2-ink);
  box-shadow: var(--v2-shadow);
  animation: v2-toast 5s ease-in-out infinite;
}

.v2-toast .icon { width: 1.1em; height: 1.1em; }

@keyframes v2-toast {
  0%, 26%   { opacity: .55; transform: scale(.97); }
  33%       { opacity: 1; transform: scale(1.05); }
  40%, 84%  { opacity: 1; transform: none; }
  100%      { opacity: .55; transform: scale(.97); }
}

.v2-tile--dark .v2-toast { color: var(--v2-ink); background: var(--v2-card); }

.v2-channel { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; }

.v2-ch {
  width: 28cqi;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: clamp(10px, 4cqi, 16px);
  background: var(--v2-dark-2);
}

.v2-ch small { font-size: clamp(10px, 3.6cqi, 13px); color: var(--v2-on-dark-2); }
.v2-ch strong { font: 500 clamp(22px, 11cqi, 42px)/1.1 var(--v2-display); color: var(--v2-on-dark); }
.v2-ch.is-new { background: var(--v2-accent); animation: v2-pulse 2.4s ease-in-out infinite; }
.v2-ch.is-new small { color: var(--v2-accent-soft); }
.v2-ch__go { color: var(--v2-on-dark-2); }
.v2-ch__go .icon { width: clamp(14px, 6cqi, 22px); height: clamp(14px, 6cqi, 22px); }

@keyframes v2-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 111, 224, .55); }
  60%      { box-shadow: 0 0 0 10px rgba(47, 111, 224, 0); }
}

.v2-channel .v2-toast { position: absolute; top: 7cqi; left: 7cqi; }

/* 手機上的小格子放不下提示泡泡，只留兩個頻道 */
@container (max-width: 260px) {
  .v2-channel .v2-toast { display: none; }
}

.v2-mini { padding: 7cqi; }

.v2-mini__field {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: clamp(8px, 3cqi, 14px);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .18), transparent 40%),
    repeating-linear-gradient(135deg, var(--v2-sand-1) 0 12px, var(--v2-sand-2) 12px 22px);
}

.v2-mini__target,
.v2-mini__cursor {
  position: absolute;
  left: 18%;
  top: 22%;
  animation: v2-wander 7s ease-in-out infinite;
}

.v2-mini__target {
  width: 22%;
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--v2-card);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5);
}

/* 游標落在目標正中：兩邊用同一組軌跡，游標晚一點點出發；% 的 margin 吃寬度，正好補正方形的位移 */
.v2-mini__cursor {
  width: 12%;
  aspect-ratio: 1;
  margin: 5% 0 0 5%;
  border-radius: 50%;
  border: 3px solid var(--v2-pink);
  background: color-mix(in srgb, var(--v2-pink) 25%, transparent);
  animation-delay: .35s;
}

@keyframes v2-wander {
  0%, 100% { left: 18%; top: 22%; }
  25%      { left: 58%; top: 16%; }
  50%      { left: 64%; top: 56%; }
  75%      { left: 24%; top: 60%; }
}

.v2-rest { justify-content: center; }

.v2-rest__row { display: flex; gap: 4px; height: clamp(36px, 15cqi, 56px); }

.v2-rest__seg {
  flex: var(--w) 1 0;
  min-width: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: var(--v2-panel);
  color: var(--v2-muted);
}

.v2-rest__seg .icon { width: clamp(12px, 5cqi, 18px); height: clamp(12px, 5cqi, 18px); }
.v2-rest__seg.is-on { background: var(--v2-accent); color: var(--v2-card); }
.v2-rest__seg b { font-size: clamp(10px, 3.8cqi, 14px); font-weight: 500; white-space: nowrap; }
.v2-rest__note { font-size: clamp(11px, 3.8cqi, 14px); color: var(--v2-muted); }

.v2-log { justify-content: center; }

.v2-log__head {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: clamp(11px, 3.6cqi, 13px);
  color: var(--v2-muted);
}

.v2-log__head span { width: 8px; height: 8px; border-radius: 50%; background: var(--v2-line-strong); }
.v2-log__head span:last-of-type { margin-right: 6px; }

.v2-log ol { display: flex; flex-direction: column; gap: 6px; }

.v2-log li {
  display: flex;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 9px;
  font-size: clamp(11px, 3.8cqi, 14px);
  color: var(--v2-ink);
  background: var(--v2-panel);
}

.v2-log time { font-family: var(--v2-mono); color: var(--v2-muted); }
.v2-log li.is-warn { background: color-mix(in srgb, var(--v2-hp) 12%, var(--v2-card)); color: var(--v2-hp-ink); }
.v2-log li.is-warn time { color: var(--v2-hp-ink); }

/* --------------------------------------------------------------------------
   為什麼用它
   -------------------------------------------------------------------------- */
.v2-why { overflow-x: clip; }
.v2-curve--why { left: -60px; bottom: -30px; width: 320px; height: 230px; }

.v2-why__grid {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 24px 40px;
}

.v2-statement {
  max-width: 30em;
  font: 400 clamp(1.375rem, 2.3vw, 1.875rem)/1.6 var(--v2-display);
  color: var(--v2-ink);
}

.v2-facts {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 32px clamp(32px, 6vw, 88px);
  margin-top: 48px;
}

.v2-fact__icon .v2-spark { width: 28px; height: 28px; color: var(--v2-ink); }

.v2-fact__num {
  margin-top: 14px;
  font: 400 clamp(2.75rem, 5vw, 4rem)/1 var(--v2-display);
  color: var(--v2-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.v2-fact__num small { margin-left: 4px; font-size: .36em; color: var(--v2-ink-2); }
.v2-fact__txt { margin-top: 10px; font-size: 15px; color: var(--v2-ink-2); }

/* --------------------------------------------------------------------------
   功能（寬螢幕捲動時停住、自動換分頁；其他情況直接排開）
   -------------------------------------------------------------------------- */
.v2-feat { padding-block: 0; }
.v2-feat__stage { padding-block: clamp(56px, 7.5vw, 104px) 0; }

.v2-feat__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin-bottom: 28px;
}

.v2-feat__head > div:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

.v2-tabs { display: none; flex-wrap: wrap; gap: 6px; }

.v2-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--v2-muted);
  background: var(--v2-panel);
  transition: background-color .2s ease, color .2s ease;
}

.v2-tab .icon { width: 15px; height: 15px; }
.v2-tab:hover { color: var(--v2-ink); }
.v2-tab.is-active { color: var(--v2-card); background: var(--v2-ink); }

.v2-feat__panel {
  position: relative;
  display: grid;
  gap: 28px;
  padding: clamp(16px, 2.4vw, 28px);
}

.v2-feat__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}

.v2-feat__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--v2-r-lg);
  background: var(--v2-card);
  container-type: size;
}

.v2-feat__media .v2-mock { inset: 0; padding: 7cqi 9cqi; }
.v2-feat__media:has(> .v2-shot) { background: var(--v2-dark); }
.v2-feat__media > img.v2-shot { object-fit: contain; }

.v2-feat__dots { display: none; gap: 6px; margin-bottom: 20px; }
.v2-feat__dots i { width: 22px; height: 4px; border-radius: 4px; background: var(--v2-line-strong); }
.v2-feat__dots i.is-on { background: var(--v2-ink); }

.v2-feat__kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--accent); }
.v2-feat__kicker .icon { width: 15px; height: 15px; }

.v2-feat__text h3 {
  margin: 6px 0 14px;
  font: 400 clamp(1.5rem, 2.6vw, 2.125rem)/1.25 var(--v2-display);
  color: var(--v2-ink);
}

.v2-feat__text > p { line-height: 1.85; color: var(--v2-ink-2); max-width: 30em; }
.v2-feat__text ul { display: grid; gap: 10px; margin-top: 20px; }
.v2-feat__text li { display: flex; align-items: flex-start; gap: 10px; color: var(--v2-ink); }
.v2-feat__text li .v2-spark { margin-top: 6px; }

@media (min-width: 720px) {
  .v2-feat__item { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}

@media (min-width: 960px) and (min-height: 600px) {
  .v2-tabs { display: flex; }
  .v2-feat__dots { display: flex; }

  /* 軌道給捲動距離，舞台黏在導覽列下面 */
  .v2-feat__track { height: calc(100vh + (var(--n) - 1) * 50vh); }

  .v2-feat__stage {
    position: sticky;
    top: var(--v2-head-h);
    height: calc(100vh - var(--v2-head-h));
    display: flex;
    flex-direction: column;
    padding-block: clamp(16px, 3vh, 36px) clamp(16px, 3vh, 32px);
  }

  .v2-feat__head { margin-bottom: clamp(14px, 2.4vh, 28px); }
  .v2-feat__stage > .v2-wrap:last-child { flex: 1; min-height: 0; }
  .v2-feat__panel { display: block; height: 100%; }

  .v2-feat__item {
    position: absolute;
    inset: clamp(16px, 2.4vw, 28px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility 0s linear .35s;
  }

  .v2-feat__item.is-active { opacity: 1; visibility: visible; transition: opacity .35s ease; }
  .v2-feat__media { aspect-ratio: auto; height: 100%; }
}

/* --------------------------------------------------------------------------
   先說清楚（深色面板 + 亮色卡）
   -------------------------------------------------------------------------- */
.v2-honest { padding: clamp(28px, 5vw, 60px) clamp(16px, 3.4vw, 44px); }
.v2-honest__head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 36px; }
.v2-honest .v2-h2 { color: var(--v2-on-dark); }
.v2-honest__head p { color: var(--v2-on-dark-2); }

.v2-honest__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.v2-honest__col { padding: 24px 26px 14px; border-radius: var(--v2-r-lg); background: var(--v2-panel); }
.v2-honest__col h3 { margin-bottom: 8px; font: 500 1.125rem/1.4 var(--v2-display); color: var(--v2-ink); }

.v2-honest__col li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 12px;
  border-top: 1px solid var(--v2-line);
  font-size: 14.5px;
  color: var(--v2-ink-2);
}

.v2-honest__col li .icon { width: 18px; height: 18px; margin-top: 3px; flex: none; color: var(--v2-ok); }
.v2-honest__col.is-limit li .icon { color: var(--v2-warn); }
.v2-honest__col li strong { display: block; font-weight: 500; color: var(--v2-ink); }

.v2-honest__risk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--v2-on-dark-2);
}

.v2-honest__risk .icon { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.v2-honest__risk a { color: var(--v2-on-dark); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   支援的遊戲
   -------------------------------------------------------------------------- */
.v2-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.v2-game { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--v2-r-xl); background: var(--v2-panel); }
.v2-game__art { aspect-ratio: 2 / 1; overflow: hidden; }
.v2-game__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.v2-game__body { display: flex; flex-direction: column; gap: 8px; padding: 24px 28px 28px; }
.v2-game h3 { font: 500 1.5rem/1.3 var(--v2-display); color: var(--v2-ink); }
.v2-game__sub { color: var(--v2-muted); }
.v2-game__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }

.v2-game__chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--v2-ink);
  background: var(--v2-card);
}

.v2-game__chips .icon { width: 13px; height: 13px; }
.v2-game__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }


/* 定價（v2_parts.pricing_section）
   首頁是四張卡一橫排（三個訂閱＋Basic 小工具）：寬螢幕剛好排得下；放不下就變成
   可以左右拖拉 / 滑動的一排，一次對齊一張（使用者 10-02：「可以橫向拖拉的4張卡片」）。
   ⚠ 這幾條要排在 components.css 的 .v2-plans 之後才蓋得過去（landing.css 本來就後載）。 */
.v2-plans--scroll {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: min(80%, 320px);   /* 放不下時：卡片固定寬，看得出後面還有 */
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  scrollbar-width: none;
}

/* 夠寬就四張平分一排，不用拖（臨界寬度只差幾十 px 的「半溢出」很難拖，所以用斷點切開） */
@media (min-width: 1140px) {
  .v2-plans--scroll { grid-auto-columns: minmax(0, 1fr); }
}

/* 要拖的時候讓整排延伸到螢幕兩邊（卡片滑出畫面，而不是在頁面留白那條線被切掉） */
@media (max-width: 1139px) {
  .v2-plans--scroll {
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
}

.v2-plans--scroll::-webkit-scrollbar { display: none; }
.v2-plans--scroll > * { scroll-snap-align: start; }
.v2-plans--scroll.is-overflow { cursor: grab; }

/* 滑鼠拖著的時候先關掉吸附（不然一直被拉回去），放開再交給它對齊 */
.v2-plans--scroll.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }

.v2-plans__hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-lo);
}

.v2-plans__hint .icon { width: 14px; height: 14px; }
.v2-plans.is-overflow + .v2-plans__hint { display: flex; }

/* Basic 小工具卡 */
.v2-plan__tag {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font: 500 12px/1.4 var(--font-sans);
  vertical-align: 4px;
  color: var(--text-mid);
  background: var(--bg-raised);
}

.v2-plan__per .v2-textlink { margin-top: 6px; font-size: 13.5px; }
.v2-curve--price { right: 4%; top: 30px; width: 120px; height: 170px; }

/* --------------------------------------------------------------------------
   最後
   -------------------------------------------------------------------------- */
.v2-final__in {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-block: 32px;
  text-align: center;
}

.v2-final__deco { display: flex; gap: 8px; color: var(--v2-ink); }
.v2-final__deco .v2-spark { width: 26px; height: 26px; }
.v2-final .v2-h2 { font-size: clamp(2.25rem, 5vw, 4rem); }
.v2-final p { font-size: 1.125rem; color: var(--v2-ink-2); }
.v2-final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

.v2-final__float {
  position: absolute;
  width: 240px;
  height: 150px;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-r-lg);
  background: var(--v2-card);
  box-shadow: var(--v2-shadow-lg);
  container-type: size;
}

.v2-final__float .v2-mock { inset: 0; }
.v2-final__float--l { left: var(--v2-gutter); top: 8%; transform: rotate(-4deg); }
.v2-final__float--r { right: var(--v2-gutter); bottom: 4%; transform: rotate(3deg); }

/* --------------------------------------------------------------------------
   產品式開頭（文字＋主視覺）、功能卡、系統需求 —— Basic 頁在用
   （原本也給 /classic、/intro 產品頁用，2026-10-02 那兩頁拿掉了）
   -------------------------------------------------------------------------- */
.v2-phero { padding-top: 8px; }

.v2-phero__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(20px, 3.6vw, 48px);
}

.v2-phero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-left: clamp(0px, 1vw, 12px); }
.v2-phero__title { font-size: clamp(2.4rem, 4.6vw, 4.25rem); }
.v2-phero__text .v2-lead a { text-decoration: underline; text-underline-offset: 3px; }

.v2-phero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 4px; }

.v2-phero__chips { display: flex; flex-wrap: wrap; gap: 8px; }

.v2-phero__chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 13px;
  color: var(--text-hi);
  background: var(--bg-raised);
}

.v2-phero__chips .icon { width: 13px; height: 13px; }

.v2-phero__art {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--bg-raised);
}

.v2-phero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }

.v2-phero__status {
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: var(--text-hi);
  background: var(--bg-raised);
  box-shadow: var(--v2-shadow);
}

.v2-phero__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--v2-ok); }

/* 功能卡 */
.v2-fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.v2-fcard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 26px 26px 24px;
  border-radius: var(--r-lg);
  background: var(--bg-panel);
}

.v2-fcard__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  border-radius: 14px;
  color: var(--text-hi);
  background: var(--bg-raised);
}

.v2-fcard__icon .icon { width: 20px; height: 20px; }
.v2-fcard h3 { font: var(--fw-medium) 1.25rem/1.35 var(--font-display); color: var(--text-hi); }
.v2-fcard p { flex: 1; font-size: 15px; line-height: 1.8; color: var(--text-mid); }

.v2-fcard__stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 13px;
  color: var(--text-hi);
  background: var(--bg-raised);
}

.v2-fcard__stat .icon { width: 13px; height: 13px; color: var(--accent); }

/* 系統需求 */
.v2-req { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.v2-req__card { padding: 24px 28px 14px; border-radius: var(--r-lg); background: var(--bg-panel); }
.v2-req__card.is-good { color: var(--text-on-dark-2); background: var(--bg-dark); }
.v2-req__card h3 { margin-bottom: 6px; font: var(--fw-medium) 1.125rem/1.4 var(--font-display); color: var(--text-hi); }
.v2-req__card.is-good h3 { color: var(--text-on-dark); }

.v2-req__card li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.v2-req__card.is-good li { border-top-color: var(--line-dark); }
.v2-req__card li .icon { width: 18px; height: 18px; flex: none; }

.v2-req__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-mid);
}

.v2-req__note .icon { width: 18px; height: 18px; margin-top: 3px; flex: none; color: var(--v2-warn); }

.v2-final__note { max-width: 40em; font-size: 14px !important; color: var(--text-lo) !important; }
.v2-final__note a { text-decoration: underline; text-underline-offset: 3px; }

.v2-pricing { overflow-x: clip; }

/* --------------------------------------------------------------------------
   定價頁（common/pricing_routes.py）
   -------------------------------------------------------------------------- */
.v2-pricing--page { padding-top: 0; }
.v2-pricing--page .v2-curve--price { top: -150px; }

/* 訂閱包含什麼：三張卡 */
.v2-incls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.v2-incl {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 26px 26px 24px;
  border-radius: var(--r-lg);
  background: var(--bg-panel);
}

.v2-incl__head { display: flex; align-items: center; justify-content: space-between; align-self: stretch; }

.v2-incl__ver {
  padding: 4px 11px;
  border-radius: var(--r-full);
  font-size: 12.5px;
  color: var(--text-mid);
  background: var(--bg-raised);
}

.v2-incl__sub { margin-top: 6px; font-size: 13.5px; color: var(--text-lo); }
.v2-incl h3 { font: var(--fw-medium) 1.375rem/1.3 var(--font-display); color: var(--text-hi); }
.v2-incl ul { display: grid; gap: 4px; margin: 8px 0 6px; align-self: stretch; }

.v2-incl li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-block: 8px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--text-mid);
}

.v2-incl li .icon { width: 16px; height: 16px; margin-top: 4px; flex: none; color: var(--v2-ok); }
.v2-incl__note { font-size: 13.5px; line-height: 1.7; color: var(--text-lo); }
.v2-incl .v2-textlink { margin-top: auto; padding-top: 10px; }

/* 只想要 Basic：深色長條，右邊價格 + 按鈕 */
.v2-buyout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
  gap: 24px clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 4.4vw, 56px);
  color: var(--text-on-dark-2);
}

.v2-buyout__text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.v2-buyout .v2-h2 { color: var(--text-on-dark); }
.v2-buyout ul { display: grid; gap: 8px; }
.v2-buyout li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-on-dark); }
.v2-buyout li .v2-spark { margin-top: 6px; }

.v2-buyout__buy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--bg-dark-2);
}

.v2-buyout__price {
  font: var(--fw-normal) clamp(2.5rem, 4vw, 3.25rem)/1 var(--font-display);
  color: var(--text-on-dark);
  font-variant-numeric: tabular-nums;
}

.v2-buyout__price small { margin-left: 8px; font-size: .34em; color: var(--text-on-dark-2); }
.v2-buyout__note { font-size: 13.5px; line-height: 1.7; }
.v2-buyout__note a { color: var(--text-on-dark); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Basic 小工具頁（products/artale2/intro_routes.py）：免費 vs 進階兩張卡
   -------------------------------------------------------------------------- */
.v2-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.v2-tier {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 30px 28px;
  border-radius: var(--r-xl);
  background: var(--bg-panel);
  color: var(--text-mid);
}

.v2-tier.is-pro { background: var(--bg-dark); color: var(--text-on-dark-2); }

.v2-tier__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.v2-tier h3 { font: var(--fw-medium) 1.5rem/1.3 var(--font-display); color: var(--text-hi); }
.v2-tier.is-pro h3 { color: var(--text-on-dark); }

.v2-tier__price {
  font: var(--fw-normal) clamp(2rem, 3vw, 2.6rem)/1 var(--font-display);
  color: var(--text-hi);
  font-variant-numeric: tabular-nums;
}

.v2-tier.is-pro .v2-tier__price { color: var(--text-on-dark); }
.v2-tier__price small { margin-left: 6px; font-size: .4em; color: var(--text-lo); }
.v2-tier.is-pro .v2-tier__price small { color: var(--text-on-dark-2); }

.v2-tier ul { flex: 1; }

.v2-tier li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 11px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}

.v2-tier.is-pro li { border-top-color: var(--line-dark); }
.v2-tier li .icon,
.v2-tier li .v2-spark { width: 16px; height: 16px; margin-top: 4px; flex: none; color: var(--v2-ok); }
.v2-tier.is-pro li .icon,
.v2-tier.is-pro li .v2-spark { color: var(--scribble-dark); }
.v2-tier li strong { display: block; font-weight: var(--fw-medium); color: var(--text-hi); }
.v2-tier.is-pro li strong { color: var(--text-on-dark); }
.v2-tier__note { font-size: 13.5px; line-height: 1.7; color: inherit; }

.v2-fgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --------------------------------------------------------------------------
   簡圖動畫（common/home_anims.py 產生的 SVG：打怪迴圈、固定／隨機路線）
   深色底上畫地圖骨架；格子與功能分頁都用深色底
   -------------------------------------------------------------------------- */
.v2-anim svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

.v2-feat__media:has(.v2-anim) { background: var(--v2-dark); }

/* 開頭格子：動畫停在說明膠囊上方（.v2-mock 底下留 46px），遠景的山要一路接到格子底，
   不然會看到一條色差的邊。46px 要跟 .v2-mock 的 inset 一致。 */
.v2-tile:has(> .v2-anim) { background: linear-gradient(to top, #252930 46px, var(--v2-dark) 46px); }
.v2-feat__media .v2-anim { padding: 3cqi 4cqi; }

.lp-hill { fill: #252930; }
.lp-hill--far { fill: #212429; }
.lp-cloud { fill: #2A2E36; }
.lp-route { fill: none; stroke: var(--scribble-dark); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; opacity: .5; }
.lp-ground { fill: #7B5B36; }
.lp-ground__top { fill: #C99E62; }
.lp-rock { fill: #96703F; }
.lp-plat { fill: #C99E62; }
.lp-rope { stroke: #B9BEC7; stroke-width: 2; stroke-linecap: round; }
.lp-rope--soft { stroke: #D9C49A; stroke-width: 2.2; stroke-dasharray: 3 3; }
.lp-rung { stroke: #B9BEC7; stroke-width: 1.6; stroke-linecap: round; }

.lp-hero__body { fill: var(--accent-solid); }
.lp-hero__head { fill: #F6D9BA; }
.lp-hero__hair { fill: #3B2A1D; }
.lp-hero__eye { fill: #15171B; }
.lp-hero__leg { fill: #24366B; }
.lp-hero__sword { stroke: #ECEDF0; stroke-width: 2.4; stroke-linecap: round; }

.lp-mob__body { fill: #F4A9BB; }
.lp-mob__ear { fill: #E28EA4; }
.lp-mob__snout { fill: #E07D96; }
.lp-mob__eye { fill: #15171B; }

.lp-slash { fill: none; stroke: #FFFFFF; stroke-width: 3.4; stroke-linecap: round; }
.lp-burst { fill: none; stroke: #FFD37B; stroke-width: 2; }

.lp-dmg {
  font: 700 16px/1 var(--font-display);
  fill: #FFB12E;
  stroke: #4A2F0C;
  stroke-width: 3.5px;
  stroke-linejoin: round;
  paint-order: stroke;
}

/* 固定／隨機路線：小地圖那種畫法（黃點是自己） */
.rt-route { fill: none; stroke: var(--scribble); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.rt-dot { fill: #F2C94C; }
.rt-dot__halo { fill: rgba(242, 201, 76, .22); }
.rt-chip rect { fill: rgba(255, 255, 255, .94); }
.rt-chip text { font: 500 15px/1 var(--font-sans); fill: var(--text-hi); }

/* --------------------------------------------------------------------------
   好用的介面：縮小版的設定視窗。近戰／遠程那顆切過去、「定時休息」被打開，6 秒一輪
   尺寸用 cqmin（容器寬、高取小的那個）：開頭那格在手機上是扁長條，只看寬度會撐破
   -------------------------------------------------------------------------- */
.v2-uim { padding: 7cqmin 7cqmin 6cqmin; justify-content: center; }
.v2-feat__media:has(.v2-uim) { background: var(--v2-dark); }
.v2-feat__media .v2-uim { padding: 8cqmin 9cqmin; }

.v2-uim__win {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 100%;
  overflow: hidden;
  border-radius: 3.2cqmin;
  background: #F6F5F2;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
  font-size: clamp(9px, 3.3cqmin, 14px);
  line-height: 1.3;
  color: var(--text-hi);
}

.v2-uim__bar {
  display: flex;
  align-items: center;
  gap: 1.1cqmin;
  padding: 1.9cqmin 2.8cqmin;
  background: #E8E6E1;
  color: var(--text-lo);
  font-weight: 500;
}

.v2-uim__bar i { width: 1.9cqmin; height: 1.9cqmin; border-radius: 50%; background: #CFCDC7; }
.v2-uim__bar i:first-child { background: #EE6A5F; }
.v2-uim__bar i:nth-child(2) { background: #F5BE4F; }
.v2-uim__bar i:nth-child(3) { background: #62C554; }
.v2-uim__bar span { margin-left: 1.4cqmin; }

.v2-uim__body {
  display: grid;
  grid-template-columns: 33% minmax(0, 1fr);
  gap: 2.4cqmin;
  padding: 2.8cqmin;
  min-height: 0;
}

.v2-uim__side { display: flex; flex-direction: column; gap: 1.8cqmin; min-width: 0; }

.v2-uim__status,
.v2-uim__prof,
.v2-uim__row {
  display: flex;
  align-items: center;
  gap: 1.4cqmin;
  padding: 1.5cqmin 2cqmin;
  border-radius: 1.8cqmin;
  background: #FFFFFF;
  white-space: nowrap;
}

.v2-uim__status b { width: 1.7cqmin; height: 1.7cqmin; border-radius: 50%; background: var(--v2-ok); flex: none; }
.v2-uim__btns { display: grid; gap: 1.4cqmin; }

.v2-uim__btns span {
  display: grid;
  place-items: center;
  padding: 1.6cqmin 0;
  border-radius: 1.8cqmin;
  font-weight: 500;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1px var(--line);
}

.v2-uim__btns .is-go { color: #FFFFFF; background: var(--accent-solid); box-shadow: none; }
.v2-uim__prof { margin-top: auto; justify-content: space-between; color: var(--text-mid); }

.v2-uim__main { display: flex; flex-direction: column; gap: 1.5cqmin; min-width: 0; }
.v2-uim__tabs { display: flex; gap: 1cqmin; }
.v2-uim__tabs span { padding: 1cqmin 2.4cqmin; border-radius: 999px; color: var(--text-lo); }
.v2-uim__tabs .is-on { color: #FFFFFF; background: var(--text-hi); }
.v2-uim__row { justify-content: space-between; }

/* 近戰／遠程：白色滑塊每 6 秒切一次 */
.v2-uim__seg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: .5cqmin;
  border-radius: 999px;
  background: #EAE8E3;
}

.v2-uim__seg span { position: relative; z-index: 1; padding: .5cqmin 2cqmin; text-align: center; }

.v2-uim__seg > i:first-child {
  position: absolute;
  top: .5cqmin;
  bottom: .5cqmin;
  left: .5cqmin;
  width: calc(50% - .5cqmin);
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(21, 23, 27, .2);
  animation: v2-seg 6s ease-in-out infinite;
}

@keyframes v2-seg {
  0%, 22%  { transform: none; }
  30%, 84% { transform: translateX(100%); }
  92%, 100% { transform: none; }
}

/* 開關：一般是開著的；「定時休息」那顆在 6 秒裡被打開又關回去 */
.v2-uim__tg {
  position: relative;
  flex: none;
  width: 6.4cqmin;
  height: 3.6cqmin;
  border-radius: 999px;
  background: #CFCDC7;
}

.v2-uim__tg::after {
  content: '';
  position: absolute;
  top: .45cqmin;
  left: .45cqmin;
  width: 2.7cqmin;
  height: 2.7cqmin;
  border-radius: 50%;
  background: #FFFFFF;
}

.v2-uim__tg.is-on { background: var(--v2-ok); }
.v2-uim__tg.is-on::after { transform: translateX(2.8cqmin); }
.v2-uim__tg--anim { animation: v2-tg 6s ease-in-out infinite; }
.v2-uim__tg--anim::after { animation: v2-tg-knob 6s ease-in-out infinite; }

@keyframes v2-tg {
  0%, 50%  { background: #CFCDC7; }
  56%, 90% { background: var(--v2-ok); }
  96%, 100% { background: #CFCDC7; }
}

@keyframes v2-tg-knob {
  0%, 50%  { transform: none; }
  56%, 90% { transform: translateX(2.8cqmin); }
  96%, 100% { transform: none; }
}

/* 點擊的漣漪：剛好落在切換的那一刻 */
.v2-uim__tap {
  position: absolute;
  right: -1cqmin;
  top: 50%;
  width: 4cqmin;
  height: 4cqmin;
  margin-top: -2cqmin;
  border-radius: 50%;
  border: 2px solid var(--accent-solid);
  opacity: 0;
  pointer-events: none;
}

.v2-uim__seg .v2-uim__tap { right: 18%; animation: v2-tap 6s ease-out infinite; animation-delay: 1.5s; }
.v2-uim__tg--anim .v2-uim__tap { right: -.8cqmin; animation: v2-tap 6s ease-out infinite; animation-delay: 3.1s; }

@keyframes v2-tap {
  0%       { opacity: .9; transform: scale(.4); }
  8%       { opacity: 0; transform: scale(1.6); }
  100%     { opacity: 0; transform: scale(1.6); }
}

/* 太窄放不下左欄（開頭那一格），只留設定 */
@container (max-width: 330px) {
  .v2-uim__body { grid-template-columns: minmax(0, 1fr); }
  .v2-uim__side { display: none; }
}

/* 格子不夠高就少放幾列（子項：1 分頁、2 攻擊、3 補血、4 換頻、5 休息、6 測謊）。
   「攻擊」跟「休息」兩列有動畫，最後才拿掉 */
@container (max-height: 260px) {
  .v2-uim__main > :nth-child(6) { display: none; }
}

@container (max-height: 215px) {
  .v2-uim__main > :nth-child(3) { display: none; }
}

@container (max-height: 170px) {
  .v2-uim__main > :nth-child(4) { display: none; }
}

/* --------------------------------------------------------------------------
   窄螢幕
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .v2-final__float { display: none; }
}

@media (max-width: 900px) {
  .v2-hero__top { grid-template-columns: minmax(0, 1fr); }
  /* 兩欄：格子用比例決定高度，招呼那一格變成一條橫的 */
  .v2-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .v2-tile { aspect-ratio: 5 / 4; }
  .v2-tile--wide,
  .v2-tile--frame { grid-column: span 2; aspect-ratio: 5 / 2; }
  .v2-cta-cell { grid-column: span 2; padding: 4px 2px; }
  .v2-cta-cell__deco { display: none; }
  .v2-cta-cell__link { align-items: center; justify-content: space-between; width: 100%; }
  .v2-cta-cell__text { flex-direction: row; flex-wrap: wrap; }

  .v2-why__grid { grid-template-columns: minmax(0, 1fr); }
  .v2-honest__cols { grid-template-columns: minmax(0, 1fr); }
  .v2-games { grid-template-columns: minmax(0, 1fr); }
  .v2-phero__panel { grid-template-columns: minmax(0, 1fr); }
  .v2-phero__art { order: -1; aspect-ratio: 16 / 9; }
  .v2-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-req { grid-template-columns: minmax(0, 1fr); }
  .v2-incls { grid-template-columns: minmax(0, 1fr); }
  .v2-buyout { grid-template-columns: minmax(0, 1fr); }
  .v2-tiers { grid-template-columns: minmax(0, 1fr); }
  .v2-fgrid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .v2-tile { aspect-ratio: 1; }
  .v2-tile--wide { aspect-ratio: 2 / 1; }
  .v2-tile--frame { aspect-ratio: 16 / 9; }
  .v2-tile .v2-cliptag { gap: 0; padding: 5px; font-size: 0; }
  .v2-tile .v2-cliptag .icon { width: 9px; height: 9px; }

  .v2-facts { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 36px; }
  .v2-fgrid,
  .v2-fgrid--4 { grid-template-columns: minmax(0, 1fr); }
  .v2-tier { padding: 26px 22px 22px; }
  .v2-fcard { padding: 22px 20px 20px; }
  .v2-fact__num { white-space: normal; }
}

/* 有開「減少動態效果」：動畫全部停在好讀的那一格 */
@media (prefers-reduced-motion: reduce) {
  .v2-toast { animation: none; opacity: 1; transform: none; }
  .is-hp b { animation: none; transform: scaleX(.9); }
  .v2-ch.is-new,
  .v2-mini__target,
  .v2-mini__cursor,
  .v2-uim__seg > i,
  .v2-uim__tg--anim,
  .v2-uim__tg--anim::after,
  .v2-uim__tap { animation: none; }
  .v2-uim__seg > i:first-child { transform: translateX(100%); }
  .v2-cta-cell__link:hover .v2-roundbtn { transform: none; }
}
