:root {
  --bg: #05060f;
  --bg-2: #0c0e20;
  --panel: rgba(18, 22, 46, 0.55);
  --line: rgba(130, 160, 255, 0.14);
  --text: #eef1ff;
  --dim: #8e97bd;
  --cyan: #22e4ff;
  --violet: #8b5cff;
  --pink: #ff3d9a;
  --grad: linear-gradient(120deg, var(--cyan), var(--violet) 55%, var(--pink));
  --radius: 18px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans TC", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); letter-spacing: 0.05em; }
.dim { color: var(--dim); }
.accent { color: var(--cyan); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 背景 */
.bg-glow {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(139, 92, 255, .22), transparent 60%),
    radial-gradient(700px 500px at -5% 35%, rgba(34, 228, 255, .12), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(255, 61, 154, .10), transparent 60%);
}
.grid-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .4;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 15%, transparent 70%);
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px clamp(20px, 5vw, 56px);
  background: rgba(5, 6, 15, .7); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; font-family: "Orbitron", sans-serif; font-weight: 800; letter-spacing: .08em; }
.logo-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--grad); color: var(--bg); font-size: 13px; box-shadow: 0 0 16px rgba(34, 228, 255, .45);
}
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; white-space: nowrap; }
.nav-links a:not(.btn) { color: var(--dim); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--cyan); }

/* Buttons */
.btn {
  display: inline-flex; justify-content: center; align-items: center;
  padding: 12px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 7px 18px; font-size: 14px; background: var(--grad); color: var(--bg); }
.btn-primary { background: var(--grad); color: var(--bg); box-shadow: 0 0 24px rgba(139, 92, 255, .4); }
.btn-primary:hover { box-shadow: 0 0 34px rgba(34, 228, 255, .55); }
.btn-ghost { border-color: rgba(34, 228, 255, .45); color: var(--cyan); background: rgba(34, 228, 255, .05); }
.btn-ghost:hover { background: rgba(34, 228, 255, .12); }

/* Hero */
.hero { text-align: center; padding: clamp(80px, 14vh, 140px) 20px 40px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px;
  font-size: 12px; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
}
.rec { width: 8px; height: 8px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 10px #ff3b3b; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hero h1 { font-size: clamp(40px, 7vw, 78px); font-weight: 900; line-height: 1.15; margin: 26px 0 18px; }
.hero h1 .grad-text { filter: drop-shadow(0 0 20px rgba(139, 92, 255, .4)); }
.hero-sub { color: var(--dim); font-size: clamp(15px, 2vw, 18px); }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* Section */
.section { max-width: 1120px; margin: 0 auto; padding: 80px clamp(20px, 5vw, 40px); }
.section-head { text-align: center; margin-bottom: 28px; }
.label { font-size: 13px; color: var(--cyan); }
.section-head h2 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 900; }

/* Tabs */
.tabs {
  display: flex; width: fit-content; margin: 0 auto 36px; padding: 5px; gap: 4px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
}
.tabs button {
  padding: 8px 22px; border: 0; border-radius: 999px; background: none; color: var(--dim);
  cursor: pointer; transition: all .2s; font-weight: 500;
}
.tabs button:hover { color: var(--text); }
.tabs button.active { background: var(--grad); color: var(--bg); font-weight: 700; }

/* ===== 作品集 ===== */
.works {
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
}
.work {
  display: flex; flex-direction: column; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--panel); cursor: pointer; padding: 0;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.work.long { grid-column: span 2; }
.work:not(:disabled):hover { transform: translateY(-6px); border-color: rgba(34, 228, 255, .5); box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 24px rgba(34, 228, 255, .15); }
.work:disabled { cursor: default; }
.work-media {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 9 / 16; background-size: cover; background-position: center;
  background-color: var(--bg-2);
  background-image: linear-gradient(160deg, rgba(34, 228, 255, .14), rgba(139, 92, 255, .14) 50%, rgba(255, 61, 154, .12));
}
.work.long .work-media { aspect-ratio: 16 / 9; }
.work-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent 55%, rgba(5, 6, 15, .7));
}
.play {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 56px; height: 56px; padding-left: 4px; border-radius: 50%;
  background: rgba(5, 6, 15, .55); border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px); font-size: 18px; transition: all .3s;
}
.work:hover .play { background: var(--grad); color: var(--bg); border-color: transparent; transform: scale(1.1); box-shadow: 0 0 24px rgba(34, 228, 255, .6); }
.soon { position: relative; z-index: 1; font-size: 11px; color: var(--dim); border: 1px dashed var(--line); padding: 4px 10px; border-radius: 6px; }
.work-info { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; }
.work-tag { font-size: 12px; color: var(--cyan); }
.work-title { font-weight: 700; }

/* ===== 價目表 ===== */
.panel-sub { text-align: center; color: var(--dim); margin-bottom: 24px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plans-2 { grid-template-columns: repeat(2, 1fr); max-width: 740px; margin: 0 auto; }
.plan {
  position: relative; text-align: center; padding: 34px 20px 28px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  transition: transform .3s, border-color .3s;
}
.plan:hover { transform: translateY(-4px); border-color: rgba(34, 228, 255, .45); }
.plan.hot {
  border-color: transparent;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box;
  box-shadow: 0 0 36px rgba(139, 92, 255, .28);
}
.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 2px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--grad); color: var(--bg);
}
.plan-name { font-size: 17px; font-weight: 700; }
.price {
  font-family: "Orbitron", sans-serif; font-size: clamp(38px, 4.5vw, 48px); font-weight: 800; line-height: 1.3; margin: 8px 0 2px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price small { font-family: var(--mono); font-size: 14px; margin-right: 4px; -webkit-text-fill-color: var(--dim); }
.plan-meta { color: var(--dim); font-size: 14px; }

.info {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  margin-top: 28px; padding: 26px 30px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
}
.info h4 { font-size: 13px; color: var(--cyan); margin-bottom: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 3px 12px; border-radius: 999px; font-size: 14px; background: rgba(34, 228, 255, .08); border: 1px solid rgba(34, 228, 255, .25); }
.note { margin-top: 10px; font-size: 14px; color: var(--dim); }
.info ul { padding-left: 18px; color: #c9cff0; font-size: 15px; }
.info li::marker { color: var(--pink); }

/* ===== 聯絡 ===== */
.contact {
  text-align: center; padding: 56px 24px; border-radius: 24px;
  border: 1px solid transparent;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box;
  box-shadow: 0 0 50px rgba(139, 92, 255, .22);
}
.contact h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; }
.contact p { color: var(--dim); }
.contact-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

.footer { display: flex; justify-content: space-between; padding: 26px clamp(20px, 5vw, 56px); border-top: 1px solid var(--line); font-size: 12px; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: rgba(3, 4, 10, .88); backdrop-filter: blur(10px); animation: fade .25s;
}
@keyframes fade { from { opacity: 0; } }
.lb-frame { border-radius: 14px; overflow: hidden; box-shadow: 0 0 60px rgba(139, 92, 255, .35); background: #000; }
.lb-frame.short { height: min(86vh, 860px); aspect-ratio: 9 / 16; max-width: 92vw; }
.lb-frame.long { width: min(92vw, 1100px); aspect-ratio: 16 / 9; }
.lb-frame iframe, .lb-frame video { width: 100%; height: 100%; border: 0; display: block; }
.lb-close {
  position: absolute; top: 18px; right: 22px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 16px;
}
.lb-close:hover { border-color: var(--cyan); color: var(--cyan); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* RWD */
@media (max-width: 900px) {
  .works { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .plans-2 { grid-template-columns: 1fr; }
  .info { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 560px) {
  .works { gap: 12px; }
  .work.long { grid-column: span 2; }
  .work-info { padding: 10px 12px; }
  .nav-links { gap: 14px; font-size: 14px; }
  .logo { font-size: 14px; }
  .info { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.works-empty { grid-column: 1 / -1; text-align: center; color: var(--dim); padding: 60px 0; border: 1px dashed var(--line); border-radius: var(--radius); }
.work-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
