/* 1stepproduction.com/edit：One Step Edit 影片剪輯服務頁（客戶介面在 edit.1stepproduction.com，另一個專案）。
   配色與字體沿用官網；版面照 taste-skill「dark room」設計單（seed 1188322558），首屏改用「片名壓在畫面底邊」：
   2026-10-14 使用者說第一版「很像草稿」，要大畫面、有完成感。 */
:root {
  --bg: #111614;
  --surface: #19201b;
  --surface-2: #232c26;
  --ink: #eeeee5;
  --muted: #b7bbb3;
  --accent: #d7ef7a;
  --on-accent: #141c13;

  --s-name: clamp(80px, 13.4vw, 236px);
  --s-xl: clamp(32px, 3.4vw, 54px);
  --s-l: clamp(24px, 2.5vw, 38px);
  --s-m: 20px;
  --s-b: 17px;
  --s-s: 15px;

  --m: clamp(20px, 5vw, 72px);
  --gut: 24px;
  --r: 4px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: hidden;
  font: 400 var(--s-b)/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
.skip { position: fixed; left: 16px; top: -80px; z-index: 50; background: var(--accent); color: var(--on-accent); padding: 12px 16px; border-radius: var(--r); }
.skip:focus { top: 12px; }

h2 { font-size: var(--s-xl); font-weight: 400; letter-spacing: -0.035em; line-height: 1.05; text-wrap: balance; }
html[lang="zh-Hans"] h2 { letter-spacing: -0.01em; line-height: 1.2; }

/* 唯一的實心亮色：主要動作 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: var(--r); background: var(--accent); color: var(--on-accent); font-size: var(--s-s); font-weight: 600; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #e6f8a2; } }

/* ---------- 頂列（疊在影片上） ---------- */
.bar { position: absolute; top: 0; left: 0; right: 0; z-index: 4; display: flex; align-items: center; gap: 28px; height: 84px; padding-inline: var(--m); font-size: var(--s-s); }
.mark { display: flex; align-items: center; gap: 10px; margin-right: auto; font-weight: 500; }
.mark img { width: 15px; height: 31px; object-fit: contain; }
.bar nav { display: flex; gap: 28px; }
.bar nav a, .quiet a { transition: color var(--t-hover) ease; }
.bar nav a:hover, .quiet a:hover { color: var(--accent); }
.lang { display: flex; gap: 2px; }
.lang button { min-width: 36px; min-height: 36px; border-radius: var(--r); font-size: var(--s-s); color: var(--muted); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.lang button[aria-pressed="true"] { background: rgba(238, 238, 229, 0.16); color: var(--ink); }

/* ---------- 首屏：整面影片，片名壓在底邊 ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: #0b0f0d; }
.hero-film, .hero-poster, .clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 首屏是 AI 生成的剪接室畫面（不放客戶作品），慢慢推近 */
@media (prefers-reduced-motion: no-preference) {
  .hero-poster { animation: drift 24s var(--ease-soft) both; }
  @keyframes drift { from { transform: scale(1.1); } to { transform: scale(1); } }
}
/* 字下面的中性暗幕（只在字的位置，taste-skill 唯一允許的漸層） */
.hero::before, .hero::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.hero::before { top: 0; height: 150px; background: linear-gradient(rgba(8, 11, 9, 0.62), rgba(8, 11, 9, 0)); } /* taste-skill-ignore */
.hero::after { bottom: 0; height: 46%; background: linear-gradient(rgba(8, 11, 9, 0), rgba(8, 11, 9, 0.86)); } /* taste-skill-ignore */
.hero-text { position: absolute; left: var(--m); right: var(--m); bottom: 30px; z-index: 2; display: grid; grid-template-columns: 1fr; align-items: end; row-gap: 22px; }
.hero-line { max-width: 34ch; font-size: var(--s-b); line-height: 1.5; }
.hero h1 { grid-column: 1 / -1; font-size: var(--s-name); font-weight: 600; letter-spacing: -0.06em; line-height: 0.78; margin-left: -0.04em; white-space: nowrap; }
.hero h1 span { display: inline; }
.band-cap a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }

/* ---------- 導言：右半段一段話，左邊一張照片垂下來 ---------- */
.intro { padding: 144px var(--m) 120px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); }
.intro-text { grid-column: 5 / 13; grid-row: 1; margin-top: 0; font-size: var(--s-l); line-height: 1.3; text-indent: 3em; }
html[lang="zh-Hans"] .intro-text { line-height: 1.55; text-indent: 2em; }
.intro-photo { grid-column: 1 / 5; grid-row: 2; margin-top: -2vw; }
.intro-photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; filter: brightness(0.9); }
.intro-note { grid-column: 6 / 9; grid-row: 2; align-self: end; margin-top: 0; max-width: 26ch; font-size: var(--s-s); color: var(--muted); line-height: 1.5; }

/* ---------- 審片播放器：亮著的那一件，旁邊是留言 ---------- */
.player { padding: 160px var(--m) 0; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: calc(var(--gut) * 2); align-items: start; }
.pl { grid-column: 1 / 9; border-radius: var(--r); overflow: hidden; background: #0b0f0d; font-size: 13px; }
.pl-screen { position: relative; aspect-ratio: 16 / 9; background: #000; }
.pl-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pl-tabs { position: absolute; left: 14px; top: 14px; display: flex; background: rgba(10, 14, 12, 0.88); border: 1px solid #38443c; /* taste-skill-ignore：介面控制項 */ border-radius: 4px; padding: 2px; }
.pl-tabs button { min-width: 42px; min-height: 30px; border-radius: 3px; color: var(--muted); }
.pl-tabs button[aria-selected="true"] { background: var(--ink); color: var(--on-accent); font-weight: 600; }
.pl-bar { display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 16px; background: #0e1311; }
.pl-play { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; flex: none; transition: transform var(--t-press) var(--ease-out); }
.pl-play:active { transform: scale(0.94); }
.tri { width: 0; height: 0; border-left: 10px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.pl-play.is-playing .tri { width: 10px; height: 12px; border: 0; margin: 0; background: linear-gradient(90deg, var(--ink) 35%, transparent 35% 65%, var(--ink) 65%); } /* taste-skill-ignore：暫停圖示 */
.pl-time { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 30px; }
.track { position: relative; flex: 1; height: 100%; cursor: crosshair; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: #38423c; }
.progress { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; width: 0; border-radius: 2px; background: var(--ink); }
.pin { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--accent); border: 3px solid #0e1311; transition: transform var(--t-press) var(--ease-out); }
.pin:hover, .pin.is-active { transform: scale(1.3); }

.pl-side { grid-column: 9 / 13; display: flex; flex-direction: column; gap: 20px; }
.pl-lead { color: var(--muted); }
.notes { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.note { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); font-size: var(--s-s); transition: background-color var(--t-ui) ease; }
.note .who { font-weight: 600; }
.note .tc { color: var(--accent); font-variant-numeric: tabular-nums; }
.note .txt { grid-column: 1 / -1; font-size: var(--s-b); line-height: 1.45; }
.note.is-active { background: var(--surface-2); }
.note.is-new { animation: note-in 420ms var(--ease-out); }
@keyframes note-in { from { opacity: 0; transform: translateY(8px); } }
.approve-box { margin-top: 8px; display: flex; flex-direction: column; gap: 12px; }
.approve { width: 100%; justify-content: flex-start; }
.after { font-size: var(--s-s); color: var(--muted); line-height: 1.5; }
.approve-box.is-done .approve { background: var(--surface-2); color: var(--accent); }
.dl { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 14px 16px; border-radius: var(--r); background: var(--surface); color: var(--ink); font-size: var(--s-s); }
.dl b { color: var(--accent); font-weight: 600; }

/* ---------- 功能索引：一種字級，三欄名稱 ---------- */
/* 服務和問答各鋪一層亮一階的底，段落分明、不再一整片空 */
.index, .faq { background: var(--surface); }
.index { padding: 140px var(--m) 140px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); }
.index h2 { grid-column: 1 / 7; font-size: var(--s-l); color: var(--muted); margin-bottom: 72px; letter-spacing: -0.02em; }
.idx-cols { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); align-items: start; }
.idx { grid-column: span 3; font-size: var(--s-m); line-height: 1.35; }
.idx li { color: var(--muted); padding: 4px 0; cursor: default; transition: color var(--t-hover) ease; }
.idx li:hover, .idx li:focus-visible, .idx li.is-on { color: var(--ink); outline: none; }
/* 分類名稱：大一級、粗一點、下面一條萊姆綠短線，和項目一眼分開 */
.idx .grp { position: relative; color: var(--ink); font-size: var(--s-l); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 18px; padding-bottom: 14px; }
.idx .grp::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 2px; background: var(--accent); }
.idx-desc { grid-column: 10 / 13; grid-row: 1; padding-top: 4px; font-size: var(--s-b); line-height: 1.5; color: var(--ink); min-height: 4.5em; }

/* ---------- 一整條不等寬的畫面 ---------- */
.band-wrap h2 { padding-left: calc(var(--m) + (100vw - 2 * var(--m)) / 6); margin-bottom: 64px; }
.band { display: flex; height: 68svh; min-height: 420px; }
.panel { position: relative; flex: 2 1 0; min-width: 0; overflow: hidden; transition: flex-grow 500ms var(--ease-out); }
.panel.p1 { flex-grow: 5; }
.panel:nth-child(3) { flex-grow: 3; }
.panel img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.88); transition: filter 500ms ease; }
@media (hover: hover) and (pointer: fine) {
  .band:hover .panel { flex-grow: 2; }
  .band .panel:hover { flex-grow: 6; }
  .panel:hover img { filter: brightness(1); }
}
.panel figcaption { position: absolute; left: 0; top: 0; padding: 24px 28px 48px 24px; display: flex; flex-direction: column; font-size: var(--s-l); line-height: 1.15; letter-spacing: -0.02em; background: radial-gradient(at 0 0, rgba(8, 11, 9, 0.6), rgba(8, 11, 9, 0) 70%); } /* taste-skill-ignore：角落暗幕 */
.panel figcaption span:last-child { color: var(--accent); }
.band-cap { padding: 20px var(--m) 0; font-size: 16px; font-size: 16px; color: var(--muted); }

/* ---------- 流程：可以拖的一排 ---------- */
.how { padding-top: 160px; }
.how-head { display: flex; justify-content: space-between; align-items: end; padding-inline: var(--m); }
.how-head h2 { font-size: var(--s-xl); }
.how-btns { display: flex; gap: 8px; }
.sq { width: 48px; height: 48px; border-radius: var(--r); background: var(--surface-2); font-size: 20px; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.sq:hover { background: #2e3931; }
.sq:active { transform: scale(0.95); }
.how-bar { margin: 28px var(--m) 40px; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.how-bar span { display: block; height: 100%; width: 20%; background: var(--ink); border-radius: 3px; transform-origin: left; }
.row { display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--m); padding: 0 var(--m) 8px; scrollbar-width: none; cursor: grab; }
.row::-webkit-scrollbar { display: none; }
.row.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.mo { flex: none; width: 340px; scroll-snap-align: start; display: flex; flex-direction: column; }
.mo h3 { font-size: var(--s-b); font-weight: 600; line-height: 1.3; }
.mo p { margin-top: 8px; font-size: 16px; color: var(--muted); line-height: 1.5; min-height: 3em; }
.mo img { margin-top: calc(var(--sp, 96px) * 0.6); width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; pointer-events: none; user-select: none; }

/* ---------- 問答：大問題，答案在旁邊，全部打開 ---------- */
.faq { margin-top: 140px; padding: 120px var(--m) 140px; display: flex; flex-direction: column; gap: 56px; }
.qa { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); align-items: baseline; }
.q { grid-column: 1 / 7; font-size: var(--s-l); font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; }
.q.soft { color: var(--muted); font-weight: 400; }
/* 中文問句短，用大一級的字，一行就讀完 */
html[lang="zh-Hans"] .q { font-size: var(--s-xl); line-height: 1.15; }
html[lang="zh-Hans"] .a { font-size: 18px; }
.a { grid-column: 8 / 13; max-width: 42ch; line-height: 1.55; }

/* ---------- 收尾：最後一張滿版照片，字在右半邊 ---------- */
.last { position: relative; margin-top: 0; height: 90svh; min-height: 560px; overflow: hidden; }
.last-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; filter: brightness(0.85); }
.last-text { position: absolute; right: var(--m); bottom: 14%; width: calc((100vw - 2 * var(--m)) * 5 / 12); display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.last-text h2 { font-size: var(--s-xl); font-weight: 300; }
.last-text p { max-width: 44ch; }
.last-text p a { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }

/* ---------- 頁尾 ---------- */
.quiet { padding: 40px var(--m) 30px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: baseline; font-size: var(--s-s); color: var(--muted); }
.quiet .links { display: flex; gap: 24px; color: var(--ink); }
.quiet .year { text-align: right; }

/* ---------- 進場 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out) var(--d, 0ms), transform 900ms var(--ease-out) var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .hero h1 { opacity: 0; transform: translateY(0.12em); animation: rise 1100ms var(--ease-out) 150ms forwards; }
  .js .hero-line, .js .hero-text .btn { opacity: 0; animation: fade 900ms var(--ease-out) 650ms forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes fade { to { opacity: 1; } }
}

/* ---------- 平板與手機 ---------- */
@media (max-width: 900px) {
  :root { --s-xl: 32px; --s-l: 24px; --s-b: 17px; }
  .bar { height: 68px; gap: 14px; }
  .bar nav { display: none; }
  .mark span { display: none; }
  .hero-text { grid-template-columns: 1fr; bottom: 22px; }
  .bar .btn { min-height: 44px; padding: 0 16px; }
  .hero h1 { font-size: 19vw; line-height: 0.82; white-space: normal; }
  .hero h1 span { display: block; }
  .intro { padding: 96px var(--m); grid-template-columns: repeat(10, 1fr); }
  .intro-text { grid-column: 1 / -1; margin-top: 0; text-indent: 0; }
  .intro-photo { grid-column: 4 / -1; grid-row: 2; margin-top: 40px; }
  .intro-photo img { aspect-ratio: 4 / 5; }
  .intro-note { grid-column: 1 / 4; grid-row: 2; align-self: end; margin-top: 0; }
  .player { grid-template-columns: 1fr; row-gap: 28px; }
  .pl, .pl-side { grid-column: 1 / -1; }
  /* 手機：標題 → 播放器 → 留言 → 確認 */
  .pl-side { display: contents; }
  .pl-side h2 { order: 1; }
  .pl-lead { order: 2; margin-top: -12px; }
  .pl { order: 3; }
  .notes { order: 4; margin-top: 0; }
  .approve-box { order: 5; margin-top: 0; }
  .index { padding: 96px var(--m); grid-template-columns: 1fr; }
  .index h2 { grid-column: 1; margin-bottom: 40px; }
  .idx-cols { grid-template-columns: 1fr; row-gap: 40px; }
  .idx { grid-column: 1; }
  .idx li[data-d]::after { content: none; }
  .idx-desc { display: none; }
  .band-wrap h2 { padding-left: var(--m); margin-bottom: 28px; }
  .band { flex-wrap: wrap; height: 84svh; }
  .panel { flex: none !important; height: 50%; }
  .panel:nth-child(1) { width: 64%; }
  .panel:nth-child(2) { width: 36%; }
  .panel:nth-child(3) { width: 36%; }
  .panel:nth-child(4) { width: 64%; }
  .how { padding-top: 112px; }
  .how-btns { display: none; }
  .how-bar { margin: 20px var(--m) 28px; }
  .row { gap: 16px; }
  .mo { width: 72vw; }
  .mo img { margin-top: calc(var(--sp, 96px) / 2.4); }
  .faq { margin-top: 96px; padding: 96px var(--m); gap: 56px; }
  .qa { grid-template-columns: 1fr; row-gap: 12px; }
  .q, .a { grid-column: 1; }
  .last { height: auto; min-height: 0; margin-top: 0; overflow: visible; }
  .last-photo { position: relative; width: 100%; height: 70svh; }
  .last-text { position: static; width: auto; padding: 32px var(--m) 0; }
  .last-text .btn { width: 100%; }
  .quiet { grid-template-columns: 1fr; gap: 8px; padding-top: 20svh; font-size: 14px; }
  .quiet .links { flex-wrap: wrap; gap: 8px 20px; }
  .quiet .year { text-align: left; }
}
@media (max-width: 560px) {
  .lang button { min-width: 32px; min-height: 44px; }
  .pl-bar { gap: 10px; padding: 0 12px; }
  .pl-time:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0ms !important; animation: none !important; }
}
