/* ========================================
   ViewEC Marketing Homepage
   Ink #111111 · Orange #F04A1F · Sand #EDEAE4 · Sky #C2D9ED
   ========================================
   SECTION INDEX — grep for §NAME to jump directly
   ─────────────────────────────────────────
   §ROOT          CSS 變數 / tokens
   §BUTTONS       共用按鈕樣式（btn-accent, btn-hero, btn-hero-ghost）
   §NAV           頂部導覽 + dropdown
   §HERO          Hero 分欄佈局
   §SECTION-TAG   小標籤 + section-header 包覆層
   §PARTNERS      跑馬燈 Logo 條
   §JOURNEY       深色全版卡片區
   §COMPARISON    前後對比滑桿
   §FAQ           手風琴問答
   §ABOUT         左文右圖說明區
   §FOOTER        頁尾格線
   §ANIMATIONS    滾動進場動畫
   §RESPONSIVE    RWD media queries
   §COMPARE-LAYOUT 對比滑桿左右並排版型
   §SHOWCASE      作品輪播
   §SERVICES-V2   現代化服務卡片
   §PLAN-V2       現代化方案比較
   ======================================== */

/* §ROOT */
:root {
  --color-primary:       #111111;
  --color-primary-dark:  #000000;
  --color-primary-light: #2a2a2a;
  --color-accent:        #F04A1F;
  --color-accent-hover:  #d63d14;
  --color-accent-light:  #FEE8E2;
  --color-sky:           #C2D9ED;
  --color-sky-light:     #EAF3FA;
  --color-bg-light:      #ffffff;
  --color-bg-gray:       #F0EDE9;
  --color-bg-dark:       #111111;
  --color-text-primary:  #111111;
  --color-text-secondary:#6a6460;
  --color-text-light:    #ffffff;
  --color-text-muted:    rgba(255,255,255,0.60);
  --color-border:        #E3DED9;

  --font-family:      'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  --container-width:  1200px;
  --spacing-xs:  8px;
  --spacing-sm:  16px;
  --spacing-md:  40px;
  --spacing-lg:  40px;
  --spacing-xl:  64px;
  --spacing-xxl: 80px;
  --radius:    8px;
  --radius-lg: 12px;
  --transition: 0.25s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-light);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

h1, h2, h3, h4 { font-weight: 500; line-height: 1.3; }

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

/* §BUTTONS ─────────────────────────────── */

.btn-accent {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 14px 36px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}
.btn-accent:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

/* §NAV =====================================
   Header / Nav
   ======================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-logo {
  font-size: 20px; font-weight: 700;
  color: #1e3a5f;
  letter-spacing: -0.03em;
  text-decoration: none;
  margin-right: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 20px;
}

.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 500;
  color: #3D3D3D;
  padding: 6px 14px; border-radius: 6px;
  text-decoration: none; transition: all 0.18s;
}
.nav-link:hover { color: #1e3a5f; background: #EAF3FA; }
.nav-link.active { color: #1e3a5f; background: #EAF3FA; font-weight: 600; }

/* Dropdown */
.nav-item { position: relative; }
.nav-dropdown-btn {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 14px; font-weight: 500; color: #3D3D3D;
  padding: 6px 14px; border-radius: 6px;
  transition: all 0.18s; cursor: default; user-select: none;
}
.nav-item:hover .nav-dropdown-btn { color: #1e3a5f; background: #EAF3FA; }
.nav-item:has(.nav-dropdown-menu a.active) .nav-dropdown-btn { color: #1e3a5f; background: #EAF3FA; font-weight: 600; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: #ffffff; border: 1px solid var(--color-border);
  border-radius: 8px; min-width: 144px; padding: 8px 0 4px;
  z-index: 200; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.nav-item:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 9px 16px;
  font-size: 14px; font-weight: 500; color: #3D3D3D;
  text-decoration: none; transition: background 0.15s;
}
.nav-dropdown-menu a:hover { background: #EAF3FA; color: #1e3a5f; }
.nav-dropdown-menu a.active { color: #1e3a5f; font-weight: 600; }

.nav-cta {
  display: inline-flex; align-items: center;
  font-size: 14px; font-weight: 600;
  color: #ffffff;
  background: #1e3a5f;
  padding: 9px 20px; border-radius: 6px;
  text-decoration: none; transition: background 0.2s;
}
.nav-cta:hover { background: #0f172a; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--color-text-primary);
  transition: var(--transition);
}

/* §HERO =====================================
   Hero — Light, split layout
   Ink H1 left · Sky blue organic shape right
   ======================================== */

.hero {
  background: #ffffff;
  min-height: 100svh;
  display: flex;
  flex-direction: column;   /* stacks body + partners strip */
}

/* Center the hero content in the remaining space */
.hero > .container {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
}

/* Partners strip pinned to bottom of hero */
.hero-partners {
  background: var(--color-bg-gray);
  border-top: 1px solid var(--color-border);
  overflow: hidden;
  padding: 20px 0;
  flex-shrink: 0;
}
/* Fade gradients match the strip background */
.hero-partners .marquee-wrapper::before {
  background: linear-gradient(to right, var(--color-bg-gray), transparent);
}
.hero-partners .marquee-wrapper::after {
  background: linear-gradient(to left, var(--color-bg-gray), transparent);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  width: 100%;
  padding: 64px 0;
}

/* ── Left: content ── */
.hero-content { color: var(--color-text-primary); }

.hero-title {
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 600px;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 48px;
}

/* Primary CTA — orange */
.btn-hero {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 13px 32px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-hero:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

/* Eyebrow tag above H1 */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 20px;
}
.hero-eyebrow::before { content: none; }

/* Ghost link — ink on white */
.btn-hero-ghost {
  display: inline-block;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2px;
}
.btn-hero-ghost:hover {
  color: var(--color-text-primary);
  border-color: var(--color-text-secondary);
}

/* Stats — inline, below CTA */
.hero-stats {
  display: flex;
  gap: 0;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  padding-right: 16px;
}
.hero-stat + .hero-stat {
  padding-left: 16px;
  padding-right: 16px;
  border-left: 1px solid var(--color-border);
}
.hero-stat:last-child { padding-right: 0; }

.stat-fig {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
}

/* ── Right: sky blue organic shape ── */
.hero-media {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-media-inner {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1.1;
  background: var(--color-sky);          /* sky blue fill */
  border-radius: 28px 28px 120px 28px;   /* organic asymmetric shape */
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* GIF / video fills the shape */
.hm-gif-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(0,0,0,0.22);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-media-inner img,
.hero-media-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* §SECTION-TAG ==============================
   Section Tag + Header
   ======================================== */

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.section-tag::before {
  content: '';
  display: inline-block;
  width: 24px; height: 3px;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* Left-aligned section header */
.section-header {
  margin-bottom: var(--spacing-lg);
}
.section-header .section-title {
  text-align: left;
  font-size: 2.25rem;
  color: var(--color-text-primary);
}
.section-header .section-subtitle {
  text-align: left;
}

/* Centered variant */
.section-header--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-header--center .section-title,
.section-header--center .section-subtitle {
  text-align: center;
}

/* §PARTNERS ================================
   Partners
   ======================================== */


.marquee-wrapper {
  overflow: hidden;
  position: relative;
}
.marquee-wrapper::before, .marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 1;
  pointer-events: none;
}
.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg-gray), transparent);
}
.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg-gray), transparent);
}

.marquee-track {
  display: flex;
  animation: marquee 35s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

.marquee-content {
  display: flex;
  gap: var(--spacing-xl);
  padding: 0 var(--spacing-lg);
}

.partner-logo {
  width: 140px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.partner-logo img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.45;
  transition: var(--transition);
}
.partner-logo:hover img { filter: grayscale(0%); opacity: 1; }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* §JOURNEY =================================
   Journey  ·  Dark section
   ======================================== */

.journey {
  padding: var(--spacing-xxl) 0;
  background: var(--color-bg-dark);   /* #111111 */
}

/* Title on dark bg */
.journey .section-title {
  color: #ffffff;
  font-size: 2.25rem;
  letter-spacing: -0.01em;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.journey-card {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.38);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: left;
  transition: background 0.28s ease, border-color 0.28s ease,
              transform 0.28s ease, box-shadow 0.28s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.journey-card::before {
  content: attr(data-num);
  position: absolute;
  top: -12px; right: 10px;
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.13);
  pointer-events: none;
  user-select: none;
  transition: color 0.28s ease;
}

/* Solid-fill hover — like shift5.io active card */
.journey-card:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-6px);
}
.journey-card:hover::before {
  color: rgba(255,255,255,0.28);  /* white ghost on orange bg */
}

.journey-phase {
  display: inline-block;
  font-size: 14px;
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  padding: 4px 0;
  margin-bottom: 14px;
  transition: color 0.28s ease;
}
.journey-card:hover .journey-phase {
  color: rgba(255,255,255,0.7);
}

.journey-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: #ffffff;
  transition: color 0.28s ease;
}
.journey-card:hover .journey-title { color: #ffffff; }

.journey-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
  flex: 1;
  transition: color 0.28s ease;
}
.journey-card:hover .journey-desc { color: rgba(255,255,255,0.88); }

/* Orange filled CTA button for journey cards */
.journey-cta {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  background: var(--color-accent);
  color: #fff;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.28s ease, color 0.28s ease, transform 0.2s ease;
  white-space: nowrap;
}
.journey-cta:hover {
  transform: translateY(-2px);
}
/* When card itself is hovered, flip button to white/orange */
.journey-card:hover .journey-cta {
  background: #ffffff;
  color: var(--color-accent);
  transform: none;
}

/* §COMPARISON ==============================
   Comparison
   ======================================== */

.comparison {
  padding: var(--spacing-xxl) 0;
}


.compare-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--color-primary-dark);
}

.compare-image {
  position: absolute;
  top: 0; bottom: 0;
  overflow: hidden;
}
.compare-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.compare-before { left: 0; right: 50%; }
.compare-after  { left: 50%; right: 0; }

.compare-label {
  position: absolute;
  bottom: 20px;
  background: #111111;
  color: white;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
}
.compare-before .compare-label { left: 20px; }
.compare-after  .compare-label { right: 20px; }

.compare-slider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%; width: 3px;
  background: white;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.compare-handle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}



/* §FAQ =====================================
   FAQ
   ======================================== */

.faq {
  padding: var(--spacing-xxl) 0;
}

.faq-list {
  max-width: 760px;
  margin: var(--spacing-lg) auto 0;
}

.faq-category {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--color-accent-light);
}
.faq-category:first-of-type { margin-top: 0; }

.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:last-child { border-bottom: none; }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--spacing-md) 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  transition: var(--transition);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { color: var(--color-primary-dark); }

.faq-icon {
  position: relative;
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-left: var(--spacing-sm);
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: var(--transition);
}
.faq-icon::before {
  top: 50%; left: 0;
  width: 100%; height: 2px;
  transform: translateY(-50%);
}
.faq-icon::after {
  top: 0; left: 50%;
  width: 2px; height: 100%;
  transform: translateX(-50%);
}
.faq-item[open] .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  padding-bottom: var(--spacing-md);
}

/* §ABOUT ===================================
   About
   ======================================== */

.about { padding: var(--spacing-xxl) 0; }

.about-content {
  display: flex;
  gap: var(--spacing-xl);
  align-items: center;
}

.about-text { flex: 1; }

.about-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
}

.about-text p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.9;
  margin-bottom: var(--spacing-sm);
}

.about-highlight {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-accent) !important;
  margin-top: var(--spacing-md) !important;
}

.about-image {
  width: 400px; height: 300px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-sky) 0%, #a8c8e0 100%);
}
.about-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* §FOOTER ==================================
   Footer
   ======================================== */

.footer { background: #0f172a; padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -.02em; display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.48); line-height: 1.75; max-width: 280px; }
.footer-heading { font-size: 0.75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-link { font-size: 14px; color: rgba(255,255,255,.58); text-decoration: none; transition: color .18s; }
.footer-link:hover { color: #fff; }
.footer-contact { font-size: 14px; color: rgba(255,255,255,.52); margin-bottom: 9px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 14px; color: rgba(255,255,255,.28); }

/* §ANIMATIONS ==============================
   Scroll Reveal Animations
   ======================================== */

/* Generic data-reveal: fade + slide up */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--delay, 0s);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide from left */
[data-reveal="left"] {
  transform: translateX(-24px);
}
[data-reveal="left"].is-visible {
  transform: translateX(0);
}

/* Slide from right */
[data-reveal="right"] {
  transform: translateX(24px);
}
[data-reveal="right"].is-visible {
  transform: translateX(0);
}

/* Fade only */
[data-reveal="fade"] {
  transform: none;
}
[data-reveal="fade"].is-visible {
  transform: none;
}

/* §RESPONSIVE ==============================
   Responsive
   ======================================== */

@media (max-width: 968px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 40px; }
  .hero-media { display: none; }
  .hero > .container { align-items: flex-start; padding-top: 20px; }

  .about-content { flex-direction: column; }
  .about-image { width: 100%; height: 240px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--spacing-md); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {

  .journey-grid { grid-template-columns: 1fr; }

  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 15px; white-space: normal; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-stat + .hero-stat { border-left: none; padding-left: 0; }

  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}

@media (max-width: 480px) {
  :root { --spacing-xxl: 60px; }
  .section-title { font-size: 1.5rem; }
  .hero-title { font-size: 30px; }
}

/* §COMPARE-LAYOUT ==========================
   Comparison — new left/right layout
   ======================================== */

.compare-layout {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: var(--spacing-xxl) 0;
}
.compare-layout .compare-wrapper {
  flex: 0 0 52%;
  aspect-ratio: 4 / 3;
  max-width: none;
  margin: 0;
}
.compare-text {
  flex: 1;
}
.compare-heading {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 8px 0 16px;
  color: var(--color-primary-dark);
}
.compare-desc {
  color: var(--color-text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
  font-size: 15px;
}
@media (max-width: 768px) {
  .compare-layout { flex-direction: column; gap: 24px; }
  .compare-layout .compare-wrapper { flex: none; width: 100%; }
}

/* §SHOWCASE ================================
   Work Showcase Carousel
   ======================================== */

.showcase {
  padding: var(--spacing-xxl) 0;
  overflow: hidden;
}

.showcase-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}

.showcase-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.showcase-subtitle {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.showcase-nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.sc-prev, .sc-next {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
  transition: var(--transition);
}
.sc-prev:hover, .sc-next:hover {
  border-color: var(--color-text-primary);
  background: var(--color-text-primary);
  color: #fff;
}

.showcase-track-wrap {
  overflow: hidden;
}

.showcase-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.sc-slide {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 0;
}

.sc-img-wrap {
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.sc-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-meta { padding: 0 4px; }

.sc-cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.sc-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.sc-note {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.showcase-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.sc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  padding: 0;
}
.sc-dot.active {
  background: var(--color-text-primary);
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 968px) {
  .sc-slide { flex: 0 0 calc(50% - 12px); }
  .showcase-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 600px) {
  .sc-slide { flex: 0 0 calc(80% - 12px); }
}

/* §SERVICES-V2 =============================
   Bento Grid — 橘色調 + 藍色調
   ======================================== */

.services-v2 {
  padding: 56px 0;
  background: var(--color-bg-gray);
}

/* ── Bento grid — 3 欄 ── */
.svc2-bento {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

/* ── Row 1 ── */

/* 視覺設計內容 — 白卡，跨左兩欄 */
.svc2-tile--visual {
  grid-column: 1 / 3;
  grid-row: 1;
  background-color: #ffffff;
}

/* 照片 tile — 公定橘色 #F04A1F */
.svc2-tile--photo {
  grid-column: 3;
  grid-row: 1;
  background:
    radial-gradient(ellipse at 25% 30%, rgba(255,120,70,0.45) 0%, transparent 55%),
    var(--color-accent);
  position: relative;
  overflow: hidden;
}

/* ── Row 2 ── */

/* BPO 圖片 1 — 左，公定藍色漸層 */
.svc2-tile--bpo-photo {
  grid-column: 1;
  grid-row: 2;
  background: linear-gradient(145deg, var(--color-sky-light) 0%, var(--color-sky) 100%);
  position: relative;
  overflow: hidden;
}

/* BPO 圖片 2 — 中，公定藍色漸層 */
.svc2-tile--bpo-photo-2 {
  grid-column: 2;
  grid-row: 2;
  background: linear-gradient(160deg, var(--color-sky) 0%, var(--color-sky-light) 100%);
  position: relative;
  overflow: hidden;
}

/* BPO 內容 — 白卡，右兩欄 */
.svc2-tile--bpo {
  grid-column: 2 / 4;
  grid-row: 2;
  background-color: #ffffff;
}

/* ── 共用 tile 樣式 ── */
.svc2-tile {
  border-radius: 16px;
  overflow: hidden;
}

.svc2-tile-body {
  padding: 32px 32px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ── 文字 — 白卡深色系統 ── */
.svc2-name {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin: 0 0 10px 0;
}

.svc2-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.svc2-stats {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  align-items: stretch;
}

.svc2-stat {
  flex: 1;
  padding: 0 20px;
}

.svc2-stat + .svc2-stat {
  border-left: 1px solid var(--color-border);
}

.svc2-stat:first-child {
  padding-left: 0;
}

/* 數字用 h2 — reset margin，沿用系統字重 */
.svc2-stat h2 {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  line-height: 1;
  margin: 0 0 4px 0;
}

.svc2-stat h2 sup {
  font-size: 0.55em;
  vertical-align: super;
}

.svc2-stat span {
  font-size: 14px;
  color: var(--color-text-secondary);
  letter-spacing: 0.01em;
}

/* ── 按鈕群組 ── */
.svc2-btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── 按鈕 — 統一橘色 ── */
.svc2-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  align-self: flex-start;
  background: var(--color-accent);
  color: #ffffff;
}

.svc2-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.svc2-btn--ghost {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}
.svc2-btn--ghost:hover {
  background: var(--color-accent-light);
  transform: translateY(-1px);
}

/* ── 照片 tile — 絕對定位不撐高 grid row ── */
.svc2-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.svc2-photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
}

.svc2-photo-overlay span {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}

/* ── RWD ── */
@media (max-width: 768px) {
  .svc2-bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .svc2-tile--visual,
  .svc2-tile--photo,
  .svc2-tile--bpo-photo,
  .svc2-tile--bpo-photo-2,
  .svc2-tile--bpo {
    grid-column: 1;
    grid-row: auto;
  }
  .svc2-tile--visual { grid-column: 1; }
  .svc2-tile--photo,
  .svc2-tile--bpo-photo,
  .svc2-tile--bpo-photo-2 { min-height: 160px; }
  .svc2-tile-body { padding: 28px 24px; }
}

/* §PLAN-V2 =================================
   Modernized Plan Comparison
   ========================================= */

.plan-v2 {
  padding: var(--spacing-xxl) 0;
  background: var(--color-bg-gray);
}
.plan-v2-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.plan-v2-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--color-primary);
  margin-bottom: 16px;
}
/* Cards */
.plan-v2-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.plan-v2-card {
  background: #fff;
  border: none;
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}
.plan-v2-card:hover {
  transform: translateY(-4px);
}
.plan-v2-card--featured {
  background: #111111;
  outline: none;
}
.plan-v2-card--featured .plan-v2-name {
  color: #ffffff;
}
.plan-v2-card--featured .plan-v2-desc {
  color: rgba(255,255,255,0.55);
}
.plan-v2-card--featured .plan-v2-tags span {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.75);
}

/* 卡片圖片 tile */
.plan-v2-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}
.plan-v2-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.plan-v2-recommend {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-accent);
  padding: 5px 10px;
  border-radius: 4px;
}

.plan-v2-meta { padding: 4px 10px 16px; display: flex; flex-direction: column; flex: 1; }
.plan-v2-rowtop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.plan-v2-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin: 0;
}
.plan-v2-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  letter-spacing: 0.02em;
}
.plan-v2-pill--muted {
  background: var(--color-bg-gray);
  color: var(--color-text-secondary);
}
.plan-v2-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0 0 18px;
}
.plan-v2-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.plan-v2-tags span {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-primary);
}

/* Compare table */
.plan-v2-compare {
  background: #fff;
  border: none;
  border-radius: 16px;
  overflow: hidden;
}

.plan-v2-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.plan-v2-table thead th {
  padding: 18px 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-bg-gray);
  letter-spacing: 0.01em;
}
.plan-v2-table thead th:first-child { text-align: left; color: var(--color-primary); }
.plan-v2-col-hl {
  background: rgba(240, 74, 31, 0.07) !important;
  position: relative;
}
.plan-v2-col-tag {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--color-accent);
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  vertical-align: middle;
}
.plan-v2-table tbody th {
  padding: 18px 28px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
}
.plan-v2-table tbody td {
  padding: 18px 24px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.plan-v2-table tbody tr:last-child th,
.plan-v2-table tbody tr:last-child td { border-bottom: none; }
.plan-v2-table tbody td.plan-v2-col-hl { background: rgba(240, 74, 31, 0.05) !important; }

/* Photo header row */
.plan-v2-row--photo th {
  padding: 20px 16px 24px;
  vertical-align: top;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}
.plan-v2-dim-col {
  width: 16%;
  background: #ffffff !important;
}
.plan-v2-col-plain {
  background: #ffffff !important;
}
.plan-v2-col-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}
.plan-v2-col-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.plan-v2-col-info {
  text-align: center;
}
.plan-v2-col-info .plan-v2-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}
.plan-v2-col-hl .plan-v2-col-info .plan-v2-name {
  color: var(--color-accent);
}
.plan-v2-col-info .plan-v2-tags {
  justify-content: center;
  margin-top: 0;
  margin-bottom: 10px;
}
.plan-v2-col-info .plan-v2-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
  text-align: center;
}
.plan-v2-col-hl .plan-v2-col-img {
  box-shadow: 0 0 0 2.5px var(--color-accent);
}
.plan-v2-col-hl .plan-v2-tags span {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}

/* Dots rating */
.dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.dots::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow:
    12px 0 0 0 var(--color-primary),
    24px 0 0 0 var(--color-primary),
    36px 0 0 0 var(--color-primary),
    48px 0 0 0 var(--color-primary);
}
.dots[data-fill="1"]::before {
  background: var(--color-primary);
  box-shadow:
    12px 0 0 0 var(--color-border),
    24px 0 0 0 var(--color-border),
    36px 0 0 0 var(--color-border),
    48px 0 0 0 var(--color-border);
}
.dots[data-fill="2"]::before {
  background: var(--color-primary);
  box-shadow:
    12px 0 0 0 var(--color-primary),
    24px 0 0 0 var(--color-border),
    36px 0 0 0 var(--color-border),
    48px 0 0 0 var(--color-border);
}
.dots[data-fill="3"]::before {
  background: var(--color-primary);
  box-shadow:
    12px 0 0 0 var(--color-primary),
    24px 0 0 0 var(--color-primary),
    36px 0 0 0 var(--color-border),
    48px 0 0 0 var(--color-border);
}
.dots[data-fill="4"]::before {
  background: var(--color-primary);
  box-shadow:
    12px 0 0 0 var(--color-primary),
    24px 0 0 0 var(--color-primary),
    36px 0 0 0 var(--color-primary),
    48px 0 0 0 var(--color-border);
}
.plan-v2-col-hl .dots::before { background: var(--color-accent); }
.plan-v2-col-hl .dots[data-fill="1"]::before {
  background: var(--color-accent);
  box-shadow:
    12px 0 0 0 rgba(240,74,31,0.2),
    24px 0 0 0 rgba(240,74,31,0.2),
    36px 0 0 0 rgba(240,74,31,0.2),
    48px 0 0 0 rgba(240,74,31,0.2);
}
.plan-v2-col-hl .dots[data-fill="2"]::before {
  background: var(--color-accent);
  box-shadow:
    12px 0 0 0 var(--color-accent),
    24px 0 0 0 rgba(240,74,31,0.2),
    36px 0 0 0 rgba(240,74,31,0.2),
    48px 0 0 0 rgba(240,74,31,0.2);
}
.plan-v2-col-hl .dots[data-fill="3"]::before {
  background: var(--color-accent);
  box-shadow:
    12px 0 0 0 var(--color-accent),
    24px 0 0 0 var(--color-accent),
    36px 0 0 0 rgba(240,74,31,0.2),
    48px 0 0 0 rgba(240,74,31,0.2);
}
.plan-v2-col-hl .dots[data-fill="4"]::before {
  background: var(--color-accent);
  box-shadow:
    12px 0 0 0 var(--color-accent),
    24px 0 0 0 var(--color-accent),
    36px 0 0 0 var(--color-accent),
    48px 0 0 0 rgba(240,74,31,0.2);
}
.plan-v2-col-hl .dots[data-fill="5"]::before {
  background: var(--color-accent);
  box-shadow:
    12px 0 0 0 var(--color-accent),
    24px 0 0 0 var(--color-accent),
    36px 0 0 0 var(--color-accent),
    48px 0 0 0 var(--color-accent);
}

@media (max-width: 968px) {
  .plan-v2-cards { grid-template-columns: 1fr; }
  .plan-v2-table { font-size: 14px; }
  .plan-v2-table thead th,
  .plan-v2-table tbody th,
  .plan-v2-table tbody td { padding: 14px 12px; }
  .dots::before {
    box-shadow:
      10px 0 0 0 var(--color-primary),
      20px 0 0 0 var(--color-primary),
      30px 0 0 0 var(--color-primary),
      40px 0 0 0 var(--color-primary);
  }
}

/* §INLINE-EXTRACTED ========================
   從 index.html <style> 標籤合併進來的樣式
   來源：第 11–2087 行（共 2077 行）
   處理：與原 styles.css 內容完全重疊，
         已去除重複 selector，保留此檔案
         中已統一修正後的版本為準。
   ======================================== */
