/* ==========================================================================
   青橙影業 TEAL ORANGE STUDIO — Design System
   v0.1  前置作業版本
   色彩／字級／間距全部集中在 :root，改這裡就能整站換皮。
   ========================================================================== */

:root {
  /* --- 品牌色：直接取樣自 LOGO 檔案 --- */
  --brand-teal:      #196466;  /* TOS 標誌的青 */
  --brand-teal-dark: #0F4547;
  --brand-teal-soft: #E7F0F0;
  --brand-orange:    #E5600D;  /* TOS 標誌的橙 */
  --brand-orange-dk: #B84A08;
  --brand-orange-sf: #FCEDE2;
  /* 青橙影業橫式標誌圓標裡的亮青，用於深底的細節點綴 */
  --brand-cyan:      #6FE0DC;

  /* --- 中性色 --- */
  --ink:        #14181A;
  --ink-2:      #3D474C;
  --ink-3:      #6B767C;
  --line:       #E4E8EA;
  --line-2:     #F0F3F4;
  --paper:      #FFFFFF;
  --paper-2:    #FAFBFB;
  --paper-3:    #F4F6F6;
  --night:      #101416;

  /* --- 狀態色 --- */
  --ok:      #2E8B57;
  --ok-soft: #E8F5EE;
  --warn:    #C98A00;
  --warn-soft:#FDF4E0;
  --busy:    #C0392B;
  --busy-soft:#FBEAE8;

  /* --- 字體 --- */
  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei",
               -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-en:   "Inter", "Helvetica Neue", Arial, sans-serif;

  /* --- 尺度 --- */
  --wrap: 1200px;
  --wrap-narrow: 820px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16,20,22,.06), 0 1px 3px rgba(16,20,22,.05);
  --shadow-md: 0 4px 16px rgba(16,20,22,.08);
  --shadow-lg: 0 12px 40px rgba(16,20,22,.12);
  --nav-h: 72px;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ========================= Reset ========================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  letter-spacing: .01em;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1,h2,h3,h4,h5 { color: var(--ink); font-weight: 700; line-height: 1.3; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 2.9vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
::selection { background: var(--brand-orange); color: #fff; }

/* ========================= Layout ========================= */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--paper2 { background: var(--paper-2); }
.section--paper3 { background: var(--paper-3); }
.section--night { background: var(--night); color: #C7D0D3; }
.section--night h2, .section--night h3 { color: #fff; }

.grid { display: grid; gap: 24px; }
/* grid/flex 子項預設 min-width:auto 會撐破版面，一律歸零 */
.grid > *, .acct-layout > *, .booking-layout > *, .footer__grid > * { min-width: 0; }
.side-nav { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.stack-lg { display: grid; gap: 40px; }

/* 主內容 + 側欄 */
.grid-sidebar { grid-template-columns: 1.4fr 1fr; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
/* 手機版：把桌機版的雙欄內距／並排強制收成單欄，避免橫向溢出 */
@media (max-width: 620px) {
  .panel { padding: 22px 18px; }
  .grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

/* ========================= Typography helpers ========================= */
.eyebrow {
  font-family: var(--font-en);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin: 0 0 .8em;
  display: block;
}
.lead { font-size: 1.075rem; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.tiny  { font-size: .78rem; }
.center { text-align: center; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; }

/* ========================= Buttons ========================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .78em 1.5em;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: .94rem; font-weight: 600;
  cursor: pointer;
  transition: all .18s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--brand-orange); color: #fff; }
.btn--primary:hover { background: var(--brand-orange-dk); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--teal { background: var(--brand-teal); color: #fff; }
.btn--teal:hover { background: var(--brand-teal-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.btn--light:hover { background: rgba(255,255,255,.2); }
.btn--sm { padding: .5em 1em; font-size: .84rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ========================= Header / Nav ========================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 32px;
}
/* --- 頁首：青橙影業 橫式標誌 --- */
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__wordmark { height: 42px; width: auto; }
/* 頁首右側的 TOS 圖標，讓兩組標誌同時在版面上出現 */
.brand__tos { height: 34px; width: auto; }
.brand__rule { width: 1px; height: 28px; background: var(--line); }

.nav__menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
  padding: .5em .85em; border-radius: var(--r-sm);
  font-size: .92rem; font-weight: 500; color: var(--ink-2);
  transition: all .16s var(--ease);
  white-space: nowrap;   /* 文字完整顯示在同一顆按鈕內，不換行 */
}
.nav__link:hover { color: var(--brand-teal); background: var(--brand-teal-soft); }
.nav__link.is-active { color: var(--brand-teal); font-weight: 700; }
.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: 20px; }

/* --- 語言切換鍵 --- */
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper-3); padding: 3px; gap: 2px;
  position: relative;
}
.lang-switch__icon {
  width: 15px; height: 15px; margin: 0 4px 0 7px;
  color: var(--ink-3); flex-shrink: 0;
}
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  padding: .34em .78em; border-radius: 999px;
  font-size: .78rem; font-weight: 600; color: var(--ink-3);
  transition: all .18s var(--ease); white-space: nowrap;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.is-active {
  background: #fff; color: var(--brand-teal);
  box-shadow: var(--shadow-sm); font-weight: 700;
}
/* 深底版本（頁尾等） */
.lang-switch--dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.lang-switch--dark .lang-switch__icon,
.lang-switch--dark button { color: rgba(255,255,255,.6); }
.lang-switch--dark button:hover { color: #fff; }
.lang-switch--dark button.is-active { background: rgba(255,255,255,.95); color: var(--brand-teal); }

.nav__toggle { display: none; border: 0; background: transparent; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: .2s; }

@media (max-width: 1040px) {
  .nav__toggle { display: block; margin-left: auto; order: 3; }
  .nav__menu {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; margin-left: 0;
    display: none; box-shadow: var(--shadow-md);
  }
  .nav__menu.is-open { display: flex; }
  .nav__link { padding: .8em .4em; border-bottom: 1px solid var(--line-2); border-radius: 0; }
  .nav__actions { order: 2; margin-left: auto; margin-right: 8px; }
}
@media (max-width: 760px) {
  /* 手機版頁首只留青橙影業橫式標誌，TOS 圖標讓給頁尾 */
  .brand__tos, .brand__rule { display: none; }
}
@media (max-width: 620px) {
  .nav { gap: 10px; }
  .brand__wordmark { height: 34px; }
  /* 只留頭像，不顯示姓名，避免擠壓導覽列 */
  [data-auth-slot] .small { display: none; }
}
/* 窄螢幕：語言鍵縮成「中 / EN」，把空間留給導覽 */
.lang-short { display: none; }
@media (max-width: 560px) {
  .site-header .lang-full { display: none; }
  .site-header .lang-short { display: inline; }
  .site-header .lang-switch__icon { display: none; }
  .site-header .lang-switch button { padding: .3em .6em; font-weight: 700; }
  .nav__actions { gap: 6px; }
  .nav__actions .btn { padding: .5em .8em; font-size: .78rem; }
}
@media (max-width: 400px) {
  .site-header .wrap { padding-inline: 16px; }
  .brand__wordmark { height: 28px; }
  .nav { gap: 6px; }
  .nav__actions .btn { padding: .45em .7em; font-size: .74rem; }
  .nav__toggle { padding: 6px 0 6px 6px; }
}
/* 極窄螢幕：登入鍵只留人像圖示 */
@media (max-width: 360px) {
  .nav-login__label { display: none; }
  .nav-login { padding: .5em .6em; }
  .brand__wordmark { height: 26px; }
}

/* ========================= Hero ========================= */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex; align-items: center;
  background: var(--night);
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 520px at 78% 12%, rgba(232,103,44,.30), transparent 62%),
    radial-gradient(900px 480px at 12% 88%, rgba(20,112,106,.42), transparent 60%),
    linear-gradient(160deg, #0B0F11 0%, #151B1E 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 100% 4px;
  opacity: .6;
}
/* Hero 右側的 TOS 圖標浮水印 */
.hero__mark {
  position: absolute; z-index: 1;
  right: -4%; top: 50%; transform: translateY(-50%);
  width: min(46vw, 560px); height: auto;
  opacity: .16; pointer-events: none;
  filter: saturate(1.2);
}
@media (max-width: 900px) { .hero__mark { right: -18%; opacity: .1; width: 70vw; } }
.hero__inner { position: relative; z-index: 2; padding-block: 96px; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero__sub { font-size: 1.1rem; color: rgba(255,255,255,.72); max-width: 560px; margin-bottom: 2rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 64px; }
.hero__stat b { display: block; font-family: var(--font-en); font-size: 2rem; color: #fff; line-height: 1; }
.hero__stat span { font-size: .82rem; color: rgba(255,255,255,.55); }

/* 內頁小 hero */
.pagehead { background: var(--night); color: #fff; padding: clamp(64px, 9vw, 112px) 0 clamp(48px,7vw,80px); position: relative; overflow: hidden; }
.pagehead__bg { position:absolute; inset:0; background: radial-gradient(800px 400px at 85% 0%, rgba(20,112,106,.45), transparent 60%), linear-gradient(160deg,#0B0F11,#161C1F); }
.pagehead .wrap { position: relative; z-index: 2; }
.pagehead h1 { color: #fff; margin-bottom: .3em; }
.pagehead p { color: rgba(255,255,255,.7); max-width: 620px; margin: 0; }
.breadcrumb { font-size: .78rem; color: rgba(255,255,255,.45); margin-bottom: 1.2em; }
.breadcrumb a:hover { color: #fff; }

/* ========================= Cards ========================= */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: all .2s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--ink-3); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card__media {
  aspect-ratio: 16 / 10; background: var(--paper-3);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); font-size: .78rem; letter-spacing: .1em;
  position: relative; overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { margin-bottom: .4em; font-size: 1.06rem; }
.card p { font-size: .9rem; color: var(--ink-3); margin-bottom: 0; }
.card__foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* 數字條列的服務卡 */
.svc { border-top: 2px solid var(--ink); padding-top: 22px; }
.svc__no { font-family: var(--font-en); font-size: .72rem; font-weight: 700; letter-spacing: .16em; color: var(--brand-orange); }
.svc ul { margin: .8em 0 0; padding-left: 1.1em; font-size: .875rem; color: var(--ink-3); }
.svc li { margin-bottom: .3em; }

/* ========================= 主打業務 ========================= */
.flagship-head {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start;
}
@media (max-width: 860px) { .flagship-head { grid-template-columns: 1fr; gap: 28px; } }
.panel--flag { border-color: var(--brand-orange); background: linear-gradient(180deg, var(--brand-orange-sf) 0%, #fff 42%); }

/* 製作流程時間軸 */
.flow { list-style: none; margin: 20px 0 0; padding: 0; position: relative; }
.flow::before {
  content: ""; position: absolute; left: 19px; top: 12px; bottom: 12px;
  width: 2px; background: var(--line);
}
.flow__item { position: relative; display: flex; gap: 20px; padding-bottom: 26px; }
.flow__item:last-child { padding-bottom: 0; }
.flow__no {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-size: .82rem; font-weight: 700;
}
.flow__body {
  flex: 1; min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px 22px;
}
.flow__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.flow__head h4 { margin: 0; font-size: 1.02rem; color: var(--ink); font-weight: 700; }
.flow__body p { margin: .5em 0 0; }
.flow__out { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.flow__out .taglist { margin-top: 6px; }
@media (max-width: 560px) {
  .flow::before { left: 15px; }
  .flow__item { gap: 14px; }
  .flow__no { width: 32px; height: 32px; font-size: .74rem; }
  .flow__body { padding: 16px; }
}

/* ========================= Badge / Tag ========================= */
.badge {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .22em .7em; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  background: var(--paper-3); color: var(--ink-2);
  white-space: nowrap;   /* 標籤文字不斷行 */
}
.badge--teal   { background: var(--brand-teal-soft); color: var(--brand-teal); }
.badge--orange { background: var(--brand-orange-sf); color: var(--brand-orange-dk); }
.badge--ok     { background: var(--ok-soft); color: var(--ok); }
.badge--warn   { background: var(--warn-soft); color: var(--warn); }
.badge--busy   { background: var(--busy-soft); color: var(--busy); }
.badge--lock::before { content: "🔒"; font-size: .9em; }
/* 出清中可洽購（清單上標 ✨ 的品項） */
.badge--sale { background: #FFF3D6; color: #8A6100; }
/* 熱門品項（清單上標 🔶 的品項） */
.badge--hot  { background: var(--brand-orange); color: #fff; }
/* 器材卡上的品牌前綴 */
.gear-brand {
  font-family: var(--font-en); font-weight: 700; letter-spacing: .02em;
  color: var(--brand-teal);
}

.taglist { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: .45em 1em; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: .84rem; cursor: pointer; transition: all .16s var(--ease);
  color: var(--ink-2);
  white-space: nowrap;   /* 標籤文字不斷行 */
}
.chip:hover { border-color: var(--ink-3); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ========================= Forms ========================= */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink); margin-bottom: .45em; }
.field .hint { font-size: .76rem; color: var(--ink-3); margin-top: .4em; }
.input, .select, textarea.input {
  width: 100%; padding: .72em .9em;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: #fff; transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
  font-size: .94rem;
}
.input:focus, .select:focus, textarea.input:focus {
  outline: 0; border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(20,112,106,.12);
}
.checkline { display: flex; align-items: flex-start; gap: .6em; font-size: .86rem; color: var(--ink-2); }
.checkline input { margin-top: .35em; }

.panel {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 32px;
}
.panel--pad-sm { padding: 22px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.panel__head h3 { margin: 0; }

.note {
  border-left: 3px solid var(--brand-teal);
  background: var(--brand-teal-soft);
  padding: 14px 18px; border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: .86rem; color: var(--brand-teal-dark);
}
.note--orange { border-left-color: var(--brand-orange); background: var(--brand-orange-sf); color: var(--brand-orange-dk); }

/* ========================= Table ========================= */
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; white-space: nowrap; }
.table tbody tr:hover { background: var(--paper-2); }
.table td.num { font-family: var(--font-en); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 權限矩陣的勾勾 */
.perm-yes { color: var(--ok); font-weight: 700; }
.perm-no  { color: var(--line); }

/* ========================= Calendar (器材庫存日曆) ========================= */
.cal { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.cal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--paper-2);
}
.cal__title { font-weight: 700; color: var(--ink); font-size: .96rem; }
.cal__nav { display: flex; gap: 6px; }
.cal__nav button {
  width: 30px; height: 30px; border: 1px solid var(--line); background: #fff;
  border-radius: var(--r-sm); cursor: pointer; color: var(--ink-2);
}
.cal__nav button:hover { border-color: var(--ink); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__dow {
  text-align: center; padding: 8px 0; font-size: .7rem; font-weight: 700;
  color: var(--ink-3); border-bottom: 1px solid var(--line-2);
}
.cal__day {
  aspect-ratio: 1 / .82; border: 0; background: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-family: var(--font-en); font-size: .84rem; color: var(--ink-2);
  border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  position: relative; transition: background .12s var(--ease);
}
.cal__day:nth-child(7n) { border-right: 0; }
.cal__day .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }
.cal__day.is-out { color: var(--line); pointer-events: none; }
.cal__day.is-past { color: #C9D0D3; pointer-events: none; background: var(--paper-2); }
.cal__day.is-past .dot { background: var(--line); }
.cal__day.is-busy { color: var(--busy); background: var(--busy-soft); pointer-events: none; text-decoration: line-through; }
.cal__day.is-busy .dot { background: var(--busy); }
.cal__day.is-low .dot { background: var(--warn); }
.cal__day:not(.is-out):not(.is-past):not(.is-busy):hover { background: var(--brand-teal-soft); }
.cal__day.is-sel { background: var(--brand-teal); color: #fff; }
.cal__day.is-sel .dot { background: rgba(255,255,255,.8); }
.cal__day.is-range { background: var(--brand-teal-soft); color: var(--brand-teal-dark); }
.cal__legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--ink-3); }
.cal__legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; }

/* ========================= 器材列表 ========================= */
.filterbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line); margin-bottom: 32px;
}
.gear-price { font-family: var(--font-en); font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.gear-price small { font-weight: 400; color: var(--ink-3); font-size: .72rem; }

/* 預約側欄 */
.booking-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
@media (max-width: 940px) { .booking-layout { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: calc(var(--nav-h) + 24px); }

.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: .86rem; }
.cart-item__x { margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--ink-3); font-size: 1.1rem; line-height: 1; }
.cart-item__x:hover { color: var(--busy); }
.total-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .88rem; }
.total-row--big { font-size: 1.05rem; font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }

/* ========================= 會員中心 ========================= */
.acct-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .acct-layout { grid-template-columns: 1fr; } }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  padding: .7em 1em; border-radius: var(--r-md); font-size: .9rem; color: var(--ink-2);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  white-space: nowrap;   /* 分頁標籤文字不斷行 */
}
.side-nav a:hover { background: var(--paper-3); }
.side-nav a.is-active { background: var(--ink); color: #fff; font-weight: 600; }
@media (max-width: 860px) { .side-nav { flex-direction: row; overflow-x: auto; } .side-nav a { white-space: nowrap; } }

.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem;
}

/* 課程卡 */
.course-card { position: relative; }
.course-card.is-locked .card__media { filter: grayscale(1); opacity: .55; }
.course-lock {
  position: absolute; inset: 0; z-index: 3;
  background: rgba(255,255,255,.82); backdrop-filter: blur(2px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 24px;
}
.progress { height: 5px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--brand-teal); }

/* ========================= 影片嵌入 ========================= */
.video-embed {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--night); box-shadow: var(--shadow-md);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed--empty {
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-3); border: 1px dashed var(--line); box-shadow: none;
}

/* 主打案例：影片在左、說明在右 */
.work-feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .work-feature { grid-template-columns: 1fr; gap: 28px; } }

/* ========================= 社群連結 ========================= */
.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.social-link {
  display: inline-flex; align-items: center; gap: .5em;
  width: 40px; height: 40px; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--ink-2); transition: all .18s var(--ease);
}
.social-link:hover { border-color: var(--brand-teal); color: var(--brand-teal); background: var(--brand-teal-soft); }
.social-link:has(span) { width: auto; padding: 0 .95em; }
.social-link--dark { border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.7); }
.social-link--dark:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.1); }
/* 聯絡頁的社群清單 */
.social-item { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.social-item:last-child { border-bottom: 0; }
.social-item:hover .social-link { border-color: var(--brand-teal); color: var(--brand-teal); background: var(--brand-teal-soft); }

/* ========================= Footer ========================= */
.site-footer { background: var(--night); color: rgba(255,255,255,.55); padding: 64px 0 28px; font-size: .86rem; }
.site-footer h4 { color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.2em; font-family: var(--font-en); }
.site-footer a:hover { color: #fff; }
/* 頁尾：TOS 直式標誌 ＋ 青橙影業 橫式標誌（淺色版） */
.footer__logos { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.footer__tos { height: 132px; width: auto; }
.footer__wordmark { height: 40px; width: auto; opacity: .9; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6em; }
.footer__links li { overflow-wrap: anywhere; }
.footer__bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .78rem; color: rgba(255,255,255,.38);
}

/* ========================= Utilities ========================= */
.hidden { display: none !important; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.flex { display: flex; } .items-center { align-items: center; } .gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.justify-between { justify-content: space-between; }
.wrap-anywhere { overflow-wrap: anywhere; }

/* 語言切換：預設顯示中文 */
[data-lang-en] { display: none; }
html[lang="en"] [data-lang-zh] { display: none; }
html[lang="en"] [data-lang-en] { display: revert; }

/* 本機草稿提示條 */
.draft-bar {
  position: fixed; left: 12px; bottom: 12px; z-index: 8000;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  max-width: calc(100vw - 24px);
  background: var(--warn-soft); color: #6B4A00;
  border: 1px solid #E8CE8A; border-radius: var(--r-md);
  padding: .7em 1em; font-size: .82rem; box-shadow: var(--shadow-md);
}
.draft-bar a { font-weight: 700; text-decoration: underline; color: #6B4A00; }
.draft-bar button { border: 0; background: none; cursor: pointer; color: #6B4A00; font-size: 1rem; line-height: 1; }
@media (max-width: 640px) { .draft-bar { left: 12px; right: 12px; bottom: 76px; } }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: .8em 1.4em; border-radius: var(--r-md);
  font-size: .88rem; box-shadow: var(--shadow-lg); z-index: 2000;
  opacity: 0; pointer-events: none; transition: all .25s var(--ease);
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 開發標記：這些區塊在正式上線前要換成真實內容 */
.placeholder-note {
  font-size: .72rem; color: var(--ink-3);
  border: 1px dashed var(--line); border-radius: var(--r-sm);
  padding: .3em .6em; display: inline-block;
}

@media print { .site-header, .site-footer, .btn { display: none; } }
