/*
 * 搖滾艾斯 AlyesRock 視覺系統 v2（2026-10-15）
 * 單一樣式表，取代 bootstrap.min.css、main.css、theme-font、navigation、rtl、local-seo-refresh 與 seo-phase1.css。
 * 沿用 phase-* 類別名稱（產生器與既有頁面不需改動），新增：phase-split、phase-prose、phase-hero--media、ar-photo。
 * 色彩：墨藍黑（文字、頁尾）＋暖紙色（交替段落）＋搖滾橘（訊號：按鈕、標記、重點）。
 * 字型：系統繁中字型，不載入網路字型，避免影響速度。
 */

:root {
  --ink-900: #0e1726;
  --ink-800: #1a2433;
  --ink-700: #2d3747;
  --ink-500: #566173;
  --ink-300: #9aa3b1;
  --paper: #f6f3ee;
  --paper-2: #efeae2;
  --white: #ffffff;
  --line: #e2dcd2;
  --line-strong: #cfc7ba;
  --signal: #c2410c;
  --signal-hover: #a63a0b;
  --signal-bright: #f26b2c;
  --signal-soft: #fdf1e8;
  --teal: #0f6b6b;
  --ok: #1f7a4d;
  --warn: #9a5b00;
  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --shadow: 0 1px 2px rgba(14, 23, 38, .06), 0 8px 24px rgba(14, 23, 38, .06);
  --shadow-hover: 0 2px 4px rgba(14, 23, 38, .08), 0 14px 34px rgba(14, 23, 38, .10);
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", "Segoe UI", system-ui, -apple-system, sans-serif;
  --container: 1160px;
  --gutter: 20px;
  --prose: 44em;
  --header-h: 72px;
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink-800);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; color: var(--ink-900); line-height: 1.32; font-weight: 800; letter-spacing: .005em; text-wrap: balance; }
p, ul, ol, figure, table, details { margin: 0; }
ul, ol { padding-left: 1.25em; }
a { color: var(--ink-900); text-decoration: underline; text-decoration-color: rgba(194, 65, 12, .45); text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--signal); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--signal-bright); outline-offset: 2px; border-radius: 4px; }
strong { font-weight: 700; color: var(--ink-900); }
small { font-size: .875em; }
table { border-collapse: collapse; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #fbd5bd; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
@media (max-width: 600px) { :root { --gutter: 16px; } body { font-size: 16px; } }

/* ---------- Skip link ---------- */
.phase-skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink-900); color: var(--white); border-radius: var(--radius-s); text-decoration: none; }
.phase-skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Header ---------- */
.phase-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.phase-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.phase-logo { display: inline-flex; align-items: center; flex: none; }
.phase-logo img { width: 180px; height: auto; }
.phase-nav { display: flex; align-items: center; gap: 4px; }
.phase-nav a { position: relative; padding: 8px 12px; border-radius: var(--radius-s); color: var(--ink-700); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.phase-nav a:hover { color: var(--ink-900); background: var(--paper); }
.phase-nav a[aria-current="page"] { color: var(--ink-900); }
.phase-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--signal-bright); }
.phase-nav a:last-child { margin-left: 8px; padding: 9px 18px; background: var(--ink-900); color: var(--white); }
.phase-nav a:last-child:hover { background: var(--signal); color: var(--white); }
.phase-nav a:last-child[aria-current="page"]::after { display: none; }
.phase-menu-toggle { display: none; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--white); color: var(--ink-900); font-size: 15px; font-weight: 700; cursor: pointer; }
.phase-menu-toggle::before { content: ""; width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; box-shadow: inset 0 4px 0 -2px transparent; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
@media (max-width: 960px) {
  .phase-menu-toggle { display: inline-flex; }
  .phase-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(14, 23, 38, .08); }
  .phase-nav.is-open { display: flex; }
  .phase-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; }
  .phase-nav a:hover { background: transparent; }
  .phase-nav a[aria-current="page"]::after { left: 4px; right: auto; width: 28px; bottom: 8px; }
  .phase-nav a:last-child { margin: 12px 0 0; text-align: center; border-radius: var(--radius-s); border-bottom: 0; }
  .phase-logo img { width: 156px; }
}

/* ---------- Hero ---------- */
.phase-hero {
  position: relative;
  overflow: hidden;
  padding-block: 56px 64px;
  background:
    linear-gradient(90deg, rgba(14, 23, 38, .045) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgba(14, 23, 38, .045) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.phase-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 56px solid rgba(242, 107, 44, .10); pointer-events: none; }
.phase-hero > .container { position: relative; z-index: 1; }
.phase-hero h1 { max-width: 21em; font-size: clamp(1.95rem, 1.25rem + 2.7vw, 3.15rem); line-height: 1.24; letter-spacing: 0; }
.phase-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 22px; color: var(--ink-500); font-size: 14px; }
.phase-breadcrumb a { color: var(--ink-500); text-decoration: none; }
.phase-breadcrumb a:hover { color: var(--signal); text-decoration: underline; }
.phase-breadcrumb [aria-hidden="true"] { color: var(--ink-300); }
.phase-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--signal); font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.phase-eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--signal-bright); border-radius: 2px; transform: rotate(45deg); }
.phase-lead { max-width: 40em; margin-top: 18px; color: var(--ink-700); font-size: clamp(1.02rem, .96rem + .3vw, 1.18rem); line-height: 1.85; }
.phase-hero .phase-source-note { margin-top: 14px; }
.phase-hero .phase-actions { margin-top: 28px; }
.phase-hero--media > .container { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.phase-hero--media h1 { max-width: none; }
@media (max-width: 900px) {
  .phase-hero { padding-block: 40px 48px; }
  .phase-hero::after { width: 220px; height: 220px; border-width: 36px; right: -90px; top: -90px; }
  .phase-hero--media > .container { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* ---------- Buttons ---------- */
.phase-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.phase-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border: 2px solid transparent; border-radius: 999px; font-size: 16px; font-weight: 800; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.phase-btn:hover { transform: translateY(-1px); }
.phase-btn-primary { background: var(--signal); color: var(--white); }
.phase-btn-primary::after { content: "→"; font-weight: 700; }
.phase-btn-primary:hover, .phase-btn-primary:focus-visible { background: var(--signal-hover); color: var(--white); }
.phase-btn-secondary { background: transparent; color: var(--ink-900); border-color: var(--ink-900); }
.phase-btn-secondary:hover, .phase-btn-secondary:focus-visible { background: var(--ink-900); color: var(--white); }
.phase-btn-blue { background: var(--ink-900); color: var(--white); }
.phase-btn-blue:hover, .phase-btn-blue:focus-visible { background: var(--signal); color: var(--white); }
.phase-btn-outline { background: var(--white); color: var(--ink-900); border-color: var(--line-strong); }
.phase-btn-outline:hover, .phase-btn-outline:focus-visible { border-color: var(--ink-900); color: var(--ink-900); }
@media (max-width: 600px) { .phase-actions .phase-btn { flex: 1 1 100%; } }

/* ---------- Proof bar ---------- */
.phase-proofbar { background: var(--white); border-bottom: 1px solid var(--line); }
.phase-proofbar-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.phase-proof { display: flex; flex-direction: column; gap: 2px; padding: 22px 24px; border-left: 1px solid var(--line); }
.phase-proof:first-child { border-left: 0; padding-left: 0; }
.phase-proof strong { font-size: 18px; font-weight: 800; }
.phase-proof span { color: var(--ink-500); font-size: 14px; line-height: 1.6; }
@media (max-width: 760px) {
  .phase-proofbar-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase-proof { padding: 16px 12px; border-left: 0; border-top: 1px solid var(--line); }
  .phase-proof:nth-child(-n+2) { border-top: 0; }
  .phase-proof:first-child { padding-left: 12px; }
}

/* ---------- Sections ---------- */
.phase-section { padding-block: 76px; }
.phase-section-alt { background: var(--paper); }
.phase-section + .phase-section:not(.phase-section-alt):not(:has(+ .phase-section-alt)) { padding-top: 76px; }
.phase-section h2 { position: relative; max-width: 24em; padding-top: 22px; margin-bottom: 18px; font-size: clamp(1.5rem, 1.18rem + 1.25vw, 2.15rem); }
.phase-section h2::before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 4px; border-radius: 2px; background: var(--signal-bright); }
.phase-section h3 { font-size: 1.16rem; margin-bottom: 8px; }
.phase-section > .container > p, .phase-section .phase-prose p { max-width: var(--prose); }
.phase-section > .container > p + p, .phase-prose p + p { margin-top: 1em; }
.phase-section p + .phase-grid, .phase-section p + .phase-table-wrap, .phase-section p + .phase-checklist, .phase-section .phase-intro + * { margin-top: 28px; }
.phase-section .phase-table-wrap + p, .phase-section .phase-grid + p { margin-top: 20px; }
.phase-intro { max-width: var(--prose); color: var(--ink-500); font-size: 1.04rem; }
.phase-section ul:not([class]), .phase-section ol:not([class]) { max-width: var(--prose); margin-top: 12px; }
.phase-section li + li { margin-top: 6px; }
@media (max-width: 760px) { .phase-section { padding-block: 52px; } }

/* ---------- Split (轉換後的雙欄段落) ---------- */
.phase-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.phase-split > * { min-width: 0; }
.phase-prose > * + * { margin-top: 1em; }
.phase-prose h2 { margin-bottom: 4px; }
@media (max-width: 900px) { .phase-split { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- Grid & cards ---------- */
.phase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.phase-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .phase-grid-2 { grid-template-columns: minmax(0, 1fr); } }
.phase-card { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 26px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.phase-section-alt .phase-card { border-color: var(--line); }
.phase-card h3 { margin: 0; font-size: 1.12rem; }
.phase-card p { color: var(--ink-700); font-size: .98rem; line-height: 1.75; }
.phase-card p + p { margin-top: 2px; }
.phase-card ul { margin-top: 4px; font-size: .98rem; }
.phase-card a:not(.phase-btn) { font-weight: 700; }
.phase-card-num { display: inline-block; margin-bottom: 2px; color: var(--signal); font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.phase-card-num:empty { display: none; }

/* ---------- Checklist ---------- */
.phase-checklist { list-style: none; padding: 0; max-width: var(--prose); display: grid; gap: 12px; }
.phase-checklist li { position: relative; margin: 0; padding: 14px 18px 14px 52px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s); line-height: 1.7; }
.phase-checklist li::before { content: ""; position: absolute; left: 18px; top: 18px; width: 20px; height: 20px; border-radius: 50%; background: var(--signal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23c2410c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: inset 0 0 0 1px rgba(194, 65, 12, .35); }
.phase-card .phase-checklist li, .phase-split .phase-card .phase-checklist li { padding: 6px 0 6px 32px; background: none; border: 0; }
.phase-card .phase-checklist li::before { left: 0; top: 10px; }

/* ---------- Notes ---------- */
.phase-note { max-width: var(--prose); padding: 18px 22px; background: var(--signal-soft); border-left: 4px solid var(--signal-bright); border-radius: 0 var(--radius-s) var(--radius-s) 0; color: var(--ink-700); font-size: .96rem; line-height: 1.75; }
.phase-note strong { color: var(--signal-hover); }
.phase-note p { margin: 0; }
.phase-note strong + p { margin-top: 2px; }
.phase-note-spaced { margin-top: 24px; }
#summary .phase-note { max-width: 50em; padding: 26px 28px; background: var(--ink-900); border-left-color: var(--signal-bright); color: #e9edf3; font-size: 1.06rem; border-radius: 0 var(--radius) var(--radius) 0; }
#summary .phase-note strong { color: var(--signal-bright); }
#summary .phase-note-spaced { margin-top: 8px; }
.phase-source-note { color: var(--ink-500); font-size: 13.5px; line-height: 1.7; }
.phase-section .phase-source-note { max-width: var(--prose); }
.phase-status { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-700); font-size: 13px; font-weight: 700; }
.phase-status-review { background: #fff4d6; color: var(--warn); }

/* ---------- Tables ---------- */
.phase-table-wrap { width: 100%; overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.phase-table { width: 100%; min-width: 560px; font-size: .96rem; line-height: 1.7; font-variant-numeric: tabular-nums; }
.phase-table th, .phase-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.phase-table thead th { background: var(--ink-900); color: var(--white); font-size: .9rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.phase-table tbody th, .phase-table tbody td:first-child { color: var(--ink-900); font-weight: 700; }
.phase-table tbody tr:nth-child(even) { background: #fbf9f6; }
.phase-table tr:last-child td, .phase-table tr:last-child th { border-bottom: 0; }

/* ---------- FAQ ---------- */
.phase-faq { display: grid; gap: 12px; max-width: 50em; }
.phase-faq h2 { margin-bottom: 10px; }
.phase-faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s; }
.phase-faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.phase-faq summary { position: relative; padding: 18px 56px 18px 22px; color: var(--ink-900); font-weight: 800; line-height: 1.55; list-style: none; cursor: pointer; }
.phase-faq summary::-webkit-details-marker { display: none; }
.phase-faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--signal), var(--signal)) center / 14px 2px no-repeat, linear-gradient(var(--signal), var(--signal)) center / 2px 14px no-repeat; transition: transform .2s; }
.phase-faq details[open] summary::after { transform: rotate(45deg); }
.phase-faq details p { padding: 0 22px 20px; color: var(--ink-700); }

/* ---------- Related / inline links ---------- */
.phase-related { gap: 16px; }
.phase-related a { display: flex; flex-direction: column; gap: 4px; padding: 22px 52px 22px 22px; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-900); font-weight: 800; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.phase-related a::after { content: "→"; position: absolute; right: 22px; top: 22px; color: var(--signal); font-weight: 800; }
.phase-related a span { color: var(--ink-500); font-size: .92rem; font-weight: 500; }
.phase-related a:hover, .phase-related a:focus-visible { border-color: var(--ink-900); box-shadow: var(--shadow-hover); transform: translateY(-2px); color: var(--ink-900); }
.phase-inline-module { padding-block: 64px; background: var(--paper); border-top: 1px solid var(--line); }
.phase-inline-module > h2, .phase-inline-module > p, .phase-inline-module > .phase-inline-links { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.phase-inline-module > .container > h2, .phase-inline-module > h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.8rem); margin-bottom: 8px; }
.phase-inline-module p { color: var(--ink-500); }
.phase-inline-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; margin-top: 24px; }
.phase-inline-links a { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-900); font-weight: 800; text-decoration: none; }
.phase-inline-links a span { color: var(--ink-500); font-size: .9rem; font-weight: 500; }
.phase-inline-links a:hover { border-color: var(--ink-900); color: var(--ink-900); }

/* ---------- CTA ---------- */
.phase-cta { position: relative; overflow: hidden; padding-block: 72px; background: var(--ink-900); color: #d7dde6; text-align: left; }
.phase-cta::before { content: ""; position: absolute; left: -80px; bottom: -160px; width: 360px; height: 360px; border-radius: 50%; border: 48px solid rgba(242, 107, 44, .16); }
.phase-cta .container { position: relative; }
.phase-cta h2 { max-width: 20em; color: var(--white); font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); }
.phase-cta p { max-width: 40em; margin-top: 14px; color: #c3cad5; }
.phase-cta .phase-actions { margin-top: 28px; justify-content: flex-start !important; }
.phase-cta .phase-btn-primary { background: var(--signal-bright); color: var(--ink-900); }
.phase-cta .phase-btn-primary:hover { background: var(--white); color: var(--ink-900); }
.phase-cta .phase-btn-secondary { color: var(--white); border-color: rgba(255, 255, 255, .6); }
.phase-cta .phase-btn-secondary:hover { background: var(--white); color: var(--ink-900); border-color: var(--white); }

/* ---------- Footer ---------- */
.phase-footer { padding-block: 56px 28px; background: #0a111d; color: #aeb7c4; font-size: 15px; }
.phase-footer a { color: #dfe4eb; text-decoration: none; }
.phase-footer a:hover { color: var(--signal-bright); text-decoration: underline; }
.phase-footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; }
.phase-footer h2, .phase-footer h3 { color: var(--white); }
.phase-footer h2 { font-size: 1.25rem; margin-bottom: 10px; }
.phase-footer h3 { font-size: .95rem; margin-bottom: 10px; letter-spacing: .06em; }
.phase-footer p { max-width: 30em; line-height: 1.75; }
.phase-footer ul { list-style: none; padding: 0; }
.phase-footer li + li { margin-top: 6px; }
.phase-copyright { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); color: #8792a2; font-size: 13.5px; }
.phase-legal { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; }
.phase-legal a { color: #aeb7c4; }
.phase-legal a:hover, .phase-legal a:focus-visible { color: var(--signal-bright); }
@media (max-width: 760px) { .phase-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ---------- Forms ---------- */
.phase-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.phase-form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.phase-form-grid .phase-field-full { grid-column: 1 / -1; }
@media (max-width: 760px) { .phase-form-grid, .phase-form-grid-3 { grid-template-columns: minmax(0, 1fr); } }
.phase-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.phase-field label { color: var(--ink-900); font-size: .95rem; font-weight: 700; }
.phase-field small { color: var(--ink-500); line-height: 1.6; }
.phase-field input, .phase-field select, .phase-field textarea { width: 100%; min-height: 48px; padding: 10px 14px; background: var(--white); border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); color: var(--ink-900); }
.phase-field textarea { min-height: 140px; resize: vertical; }
.phase-field input:focus, .phase-field select:focus, .phase-field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(242, 107, 44, .22); }
.phase-field input[aria-invalid="true"] { border-color: #b42318; }
.phase-form { max-width: 720px; padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow); }
.phase-form .phase-actions { margin-top: 8px; }
.phase-form-consent { color: var(--ink-500); font-size: .9rem; }
.phase-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .phase-form { padding: 22px 18px; } }

/* ---------- Calculator（提案工具） ---------- */
.phase-calculator { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow); }
.phase-calculator-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.phase-calculator-heading h3 { font-size: 1.2rem; }
.phase-calculator-heading p { color: var(--ink-500); font-size: .95rem; }
.phase-calculator-divider { height: 1px; margin: 26px 0; background: var(--line); border: 0; }
.phase-calculator-errors { margin-top: 14px; color: #b42318; font-size: .95rem; }
.phase-calculator-toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.phase-result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; margin-top: 22px; }
.phase-result-card { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: var(--paper); border-radius: var(--radius); }
.phase-result-card span, .phase-scenario-result span { color: var(--ink-500); font-size: .9rem; }
.phase-result-card strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.phase-result-card small { color: var(--ink-500); }
.phase-result-card-primary { background: var(--ink-900); }
.phase-result-card-primary span, .phase-result-card-primary strong, .phase-result-card-primary small { color: var(--white); }
.phase-scenario-result { margin-top: 18px; padding: 18px 20px; background: #eaf5ef; border-radius: var(--radius); }
.phase-scenario-result strong { color: var(--ok); }
.phase-scenario-result p { margin-top: 4px; color: var(--ink-700); }
.phase-scenario-result[data-status="warning"] { background: #fff4d6; }
.phase-scenario-result[data-status="warning"] strong, .phase-scenario-result[data-status="warning"] p { color: var(--warn); }
.phase-formula-note { margin-top: 18px; color: var(--ink-500); font-size: .92rem; }
.phase-formula-note ul { margin-top: 6px; }
.phase-formula-note li + li { margin-top: 4px; }
.phase-result { padding: 16px 20px; background: var(--paper); border-radius: var(--radius); }
.phase-result strong { display: block; }

/* ---------- Download panel ---------- */
.phase-download-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding: 26px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow); }
.phase-download-panel strong { font-size: 1.1rem; }
.phase-download-panel p { color: var(--ink-500); font-size: .95rem; }
.phase-download-panel .phase-actions { margin: 0; }

/* ---------- Photo placeholder（照片預留，之後替換為實際照片） ---------- */
.ar-photo {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: var(--ratio, 4 / 3);
  overflow: hidden;
  border-radius: var(--radius-l);
  background:
    repeating-linear-gradient(135deg, rgba(14, 23, 38, .035) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #ebe5db 0%, #f4efe8 55%, #fbe7da 100%);
  box-shadow: inset 0 0 0 1px rgba(14, 23, 38, .06);
}
.ar-photo::after { content: ""; position: absolute; right: 22px; bottom: 22px; width: 54px; height: 54px; border-radius: 50%; border: 10px solid rgba(242, 107, 44, .28); }
.ar-photo--wide { --ratio: 16 / 9; }
.ar-photo--square { --ratio: 1 / 1; }
.phase-section .ar-photo { margin-top: 28px; }
.phase-hero .ar-photo { margin: 0; box-shadow: var(--shadow), inset 0 0 0 1px rgba(14, 23, 38, .06); }

/* ---------- 404 與雜項 ---------- */
.phase-section img { border-radius: var(--radius); }
hr { border: 0; height: 1px; background: var(--line); margin: 32px 0; }

/* 連結卡片（整張可點） */
.phase-card-link { color: var(--ink-900); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.phase-card-link:hover, .phase-card-link:focus-visible { border-color: var(--ink-900); box-shadow: var(--shadow-hover); transform: translateY(-2px); color: var(--ink-900); }
.phase-card-link p:last-child { margin-top: auto; padding-top: 6px; color: var(--signal); font-weight: 800; }

/* 卡片標籤只占文字寬度；程式碼在窄螢幕自動換行 */
.phase-card > .phase-status, .phase-card > .phase-card-num { align-self: flex-start; }
.phase-card > .phase-status { background: var(--signal-soft); color: var(--signal-hover); letter-spacing: .06em; }
code { padding: 1px 6px; background: var(--paper-2); border-radius: 4px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .9em; overflow-wrap: anywhere; }
pre { max-width: 100%; overflow-x: auto; padding: 16px; background: var(--ink-900); color: #e6eaf0; border-radius: var(--radius-s); }
pre code { padding: 0; background: none; color: inherit; }
.phase-section .ar-photo--wide { aspect-ratio: 21 / 9; }
@media (max-width: 760px) { .phase-section .ar-photo--wide { aspect-ratio: 16 / 9; } }

/* 標題即連結的卡片：整張卡片可點 */
.phase-card-linked h3 a { color: var(--ink-900); text-decoration: none; }
.phase-card-linked h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.phase-card-linked h3 a::before { content: "→"; position: absolute; right: 22px; top: 24px; color: var(--signal); font-weight: 800; }
.phase-card-linked { padding-right: 52px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.phase-card-linked:hover { border-color: var(--ink-900); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.phase-card-linked:focus-within { outline: 3px solid var(--signal-bright); outline-offset: 2px; }

/* 圖片、等寬雙欄與段落式行動呼籲 */
.phase-figure { margin: 0; }
.phase-figure img { width: 100%; height: auto; border-radius: var(--radius-l); box-shadow: var(--shadow); background: var(--paper); }
.phase-figure-wide { margin-top: 36px; }
.phase-section .phase-lead { max-width: 46em; color: var(--ink-700); }
.phase-section .phase-lead + .phase-actions { margin-top: 22px; }
.phase-split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.phase-split--even > div > h2 { margin-bottom: 18px; }
#local-seo-faq .phase-split--even { align-items: start; }
.phase-split .phase-faq { max-width: none; }
.phase-split .phase-source-note { margin-top: 16px; }
.phase-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: 36px 40px; background: var(--signal-soft); border: 1px solid #f6d3bd; border-radius: var(--radius-l); }
.phase-callout > div { flex: 1 1 420px; min-width: 0; }
.phase-callout h2 { margin-bottom: 10px; }
.phase-callout p { max-width: 40em; color: var(--ink-700); }
@media (max-width: 900px) { .phase-split--even { grid-template-columns: minmax(0, 1fr); } .phase-callout { padding: 26px 22px; } }
