/* ==============================================================================
 * Carousel Studio - 功能介紹頁樣式 (Features CSS)
 * 版本：v1.5.0: 全面升級現代玻璃擬態、漸層光影、擬真模型與響應式排版
 * ============================================================================== */

:root {
  color-scheme: light;
  --bg: #0f1416;
  --bg-secondary: #161c1f;
  --panel: rgba(26, 33, 36, 0.85);
  --panel-card: rgba(32, 41, 45, 0.95);
  --ink: #f0f4f5;
  --ink-secondary: #9aa7ab;
  --muted: #6b7a7f;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #20b2aa;
  --accent-light: #48d1cc;
  --accent-gradient: linear-gradient(135deg, #20b2aa 0%, #38ef7d 100%);
  --accent-warm: #ff6b6b;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(32, 178, 170, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(56, 239, 125, 0.06) 0%, transparent 45%);
}

a {
  color: inherit;
  text-decoration: none;
}

/* 頂部導覽列 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 36px;
  background: rgba(15, 20, 22, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.5px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  background: var(--accent-gradient);
  color: #0f1416;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(32, 178, 170, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 14px;
  color: var(--ink-secondary);
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.locale-wrap {
  display: inline-flex;
}

.locale-select {
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.locale-select:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* 按鈕風格 */
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  height: 42px;
  border-radius: var(--radius-pill);
  background: var(--accent-gradient);
  color: #0c1816;
  font-weight: 800;
  font-size: 14.5px;
  box-shadow: 0 6px 20px rgba(32, 178, 170, 0.35);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(32, 178, 170, 0.5);
  filter: brightness(1.08);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  height: 42px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-weight: 700;
  font-size: 14.5px;
  transition: var(--transition);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

/* 主要內容區容器 */
main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Hero 區塊 */
.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1.15fr);
  gap: 48px;
  align-items: center;
  min-height: calc(88vh - 72px);
  padding: 40px 0 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(32, 178, 170, 0.12);
  border: 1px solid rgba(32, 178, 170, 0.3);
  color: var(--accent-light);
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 10px var(--accent-light);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #ffffff 30%, #a2b7bd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 17px;
  color: var(--ink-secondary);
  line-height: 1.7;
  margin-bottom: 34px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-cta {
  height: 48px;
  padding: 0 28px;
  font-size: 16px;
}

/* 擬真編輯器視覺模型 */
.hero-visual {
  position: relative;
  perspective: 1200px;
}

.mockup-window {
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: var(--panel-card);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(32, 178, 170, 0.12);
  overflow: hidden;
  transform: rotateY(-3deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.mockup-window:hover {
  transform: rotateY(0) rotateX(0);
}

.mockup-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #111618;
  border-bottom: 1px solid var(--line);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.window-title {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

.window-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-light);
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(32, 178, 170, 0.15);
}

.mockup-workspace {
  display: grid;
  grid-template-columns: 110px 1fr 120px;
  min-height: 380px;
  background: #182023;
}

.mockup-sidebar {
  padding: 12px;
  background: #13191c;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-sidebar.right {
  border-right: none;
  border-left: 1px solid var(--line);
}

.sidebar-item {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-secondary);
  padding: 6px 8px;
  border-radius: 6px;
}

.sidebar-item.active {
  background: rgba(32, 178, 170, 0.15);
  color: var(--accent-light);
}

.sidebar-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 8px;
}

.grid-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  background: #253338;
}

.photo-1 { background: linear-gradient(135deg, #1f6f64, #20b2aa); }
.photo-2 { background: linear-gradient(135deg, #c6533b, #ff7675); }
.photo-3 { background: linear-gradient(135deg, #6c5ce7, #a29bfe); }
.photo-4 { background: linear-gradient(135deg, #0984e3, #74b9ff); }

.mockup-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: #0d1214;
  position: relative;
}

.canvas-carousel {
  display: flex;
  gap: 12px;
  align-items: center;
}

.canvas-page {
  width: 90px;
  aspect-ratio: 4 / 5;
  background: #202b2f;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.page-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 9px;
  background: var(--accent);
  color: #000;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 800;
}

.cover-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #20b2aa, #16a085);
}

.text-layer {
  position: absolute;
  bottom: 8px;
  left: 6px;
  right: 6px;
  font-size: 8px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.page-seamless {
  background: #202b2f;
}

.pano-left {
  width: 150%;
  height: 100%;
  background: linear-gradient(135deg, #e17055, #fdcb6e);
}

.pano-right {
  width: 150%;
  height: 100%;
  margin-left: -50%;
  background: linear-gradient(135deg, #e17055, #fdcb6e);
}

.seamless-guide-line {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-light);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(32, 178, 170, 0.12);
  border: 1px dashed rgba(32, 178, 170, 0.4);
}

.inspector-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}

.control-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--ink-secondary);
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ctrl-val {
  font-weight: 700;
  color: var(--accent-light);
}

/* 數據與特性摘要欄 */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 30px 0 70px;
}

.metric-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--panel-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.metric-card:hover {
  border-color: rgba(32, 178, 170, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.metric-icon {
  font-size: 26px;
  line-height: 1;
}

.metric-text strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.metric-text span {
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

/* 通用功能區塊 */
.feature-section {
  margin-bottom: 80px;
}

.feature-section.highlight-bg {
  background: var(--bg-secondary);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.section-header {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-tag {
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--accent-light);
  margin-bottom: 8px;
}

.section-heading {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #fff;
}

.section-subtext {
  font-size: 16px;
  color: var(--ink-secondary);
  line-height: 1.65;
}

/* 卡片網格 */
.cards-grid {
  display: grid;
  gap: 20px;
}

.cards-grid.four-columns {
  grid-template-columns: repeat(4, 1fr);
}

.cards-grid.three-columns {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  position: relative;
  background: var(--panel-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: rgba(32, 178, 170, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 24px rgba(32, 178, 170, 0.08);
}

.card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  font-family: monospace;
}

.card-icon-wrap {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 4px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* 左右分割版面 (Split Layout) */
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1.1fr);
  gap: 48px;
  align-items: center;
}

.split-layout.reverse {
  grid-template-columns: minmax(360px, 1.1fr) minmax(0, 1fr);
}

.split-layout.reverse .split-text {
  order: 2;
}

.split-layout.reverse .split-graphic {
  order: 1;
}

.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.feature-checklist li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.feature-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #0f1416;
  font-size: 11px;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.feature-checklist li strong {
  color: #fff;
}

/* 跨頁全景預覽圖示展示 */
.panorama-preview-frame {
  position: relative;
  padding: 32px 24px;
  background: #0f1416;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pano-strip {
  display: flex;
  gap: 8px;
  width: 100%;
}

.pano-page {
  flex: 1;
  aspect-ratio: 4 / 5;
  background: #1e282c;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.pano-segment {
  width: 300%;
  height: 100%;
  background: linear-gradient(135deg, #1f6f64, #fbfaf7 45%, #c6533b);
}

.seg-1 { margin-left: 0; }
.seg-2 { margin-left: -100%; }
.seg-3 { margin-left: -200%; }

.page-num {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.pano-overlay-pill {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-light);
  background: rgba(32, 178, 170, 0.15);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(32, 178, 170, 0.3);
}

/* 手機版模擬展示框 (Phone Mockup) */
.phone-mockup-frame {
  max-width: 300px;
  margin: 0 auto;
  background: #000;
  border: 6px solid #2d373c;
  border-radius: 36px;
  padding: 10px 8px;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 0, 0, 0.6);
  position: relative;
}

.phone-notch {
  width: 90px;
  height: 14px;
  background: #2d373c;
  border-radius: 0 0 10px 10px;
  margin: 0 auto 8px;
}

.phone-screen {
  background: #121719;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 480px;
}

.phone-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #182023;
  font-size: 12px;
  color: var(--ink-secondary);
}

.phone-btn {
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.phone-btn.primary {
  background: var(--accent-gradient);
  color: #000;
  font-weight: 800;
}

.phone-canvas-demo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
}

.demo-card {
  width: 90px;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  background: linear-gradient(145deg, #20b2aa, #16a085);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.phone-sheet-demo {
  background: #1c2427;
  border-radius: 16px 16px 0 0;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--line-strong);
}

.sheet-handle {
  width: 32px;
  height: 4px;
  background: var(--line-strong);
  border-radius: 2px;
  margin: 0 auto 8px;
}

.sheet-title {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.sheet-chips {
  display: flex;
  gap: 6px;
}

.chip {
  font-size: 9.5px;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-secondary);
}

.chip.active {
  background: var(--accent);
  color: #000;
  font-weight: 800;
}

.phone-bottom-nav {
  display: flex;
  justify-content: space-around;
  padding: 8px 6px;
  background: #141a1c;
  border-top: 1px solid var(--line);
}

.nav-icon {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted);
  gap: 2px;
}

.nav-icon small {
  font-size: 8.5px;
}

.nav-icon.active {
  color: var(--accent-light);
}

/* 底部 CTA 橫幅 */
.cta-banner {
  margin: 60px 0 30px;
  padding: 60px 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(32, 178, 170, 0.15) 0%, rgba(56, 239, 125, 0.1) 100%), var(--bg-secondary);
  border: 1px solid rgba(32, 178, 170, 0.35);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(32, 178, 170, 0.15);
  text-align: center;
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-heading {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  color: #fff;
}

.cta-desc {
  font-size: 16.5px;
  color: var(--ink-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.cta-large-btn {
  height: 52px;
  padding: 0 36px;
  font-size: 17px;
}

/* 頁尾 */
.site-footer {
  border-top: 1px solid var(--line);
  background: #0b0f10;
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 14px;
  color: var(--ink-secondary);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
  width: 100%;
  margin-top: 14px;
}

/* 響應式佈局 (Mobile & Tablet) */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .mockup-window {
    transform: none;
  }

  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid.four-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-layout,
  .split-layout.reverse {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .split-layout.reverse .split-text {
    order: 0;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 12px 18px;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-top: 6px;
  }

  main {
    padding: 20px 16px 60px;
  }

  .metrics-strip,
  .cards-grid.four-columns,
  .cards-grid.three-columns {
    grid-template-columns: 1fr;
  }

  .feature-section.highlight-bg {
    padding: 28px 18px;
  }

  .mockup-workspace {
    grid-template-columns: 1fr;
  }

  .mockup-sidebar {
    display: none;
  }

  .cta-banner {
    padding: 40px 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
