/* ========================================
   ZYLUS INTERACTIVE LIMITED - 暖橙活力年輕風
   主色 #ea580c | 輔色 #facc15 | 強調 #fb7185
   ======================================== */

/* ---------- 變量 ---------- */
:root {
  --primary: #ea580c;
  --primary-dark: #c2410c;
  --secondary: #facc15;
  --accent: #fb7185;
  --accent-dark: #e11d48;
  --bg-cream: #fffbeb;
  --bg-white: #ffffff;
  --text: #1c1917;
  --text-light: #78716c;
  --text-muted: #a8a29e;
  --border: #f5f5f4;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-btn: 12px;
  --shadow-sm: 0 2px 8px rgba(234, 88, 12, 0.08);
  --shadow: 0 8px 30px rgba(28, 25, 23, 0.10);
  --shadow-lg: 0 20px 60px rgba(234, 88, 12, 0.15);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK", "Microsoft JhengHei", "Heiti TC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max-width: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ---------- 排版 ---------- */
h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }

p { color: var(--text-light); }

.highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.highlight-accent { color: var(--accent); }

/* 手繪底線 SVG */
.underline-svg {
  position: absolute;
  bottom: -8px;
  left: -4px;
  width: calc(100% + 8px);
  height: 14px;
  pointer-events: none;
}

/* ---------- 容器 ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.45);
}

.btn-secondary {
  background: var(--text);
  color: #fff;
}
.btn-secondary:hover {
  transform: translateY(-2px);
  background: #292524;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2.5px solid var(--text);
  padding: 12px 30px;
}
.btn-outline:hover {
  background: var(--text);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.2);
}

.btn-lg { padding: 16px 38px; font-size: 1.05rem; }

/* ---------- 導航列 ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.is-scrolled {
  background: rgba(255, 251, 235, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(234, 88, 12, 0.08), 0 4px 20px rgba(0,0,0,0.04);
  padding: 12px 0;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  transform: rotate(-6deg);
  transition: transform 0.3s ease;
}
.logo:hover .logo-icon { transform: rotate(6deg) scale(1.05); }

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

.nav-link {
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-btn);
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover { background: rgba(234, 88, 12, 0.08); color: var(--primary); }

.nav-link.is-active {
  color: var(--primary);
  background: rgba(234, 88, 12, 0.10);
}

.nav-cta {
  margin-left: 10px;
  background: var(--text);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.nav-cta:hover { background: var(--primary); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: all 0.3s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 160px 0 100px;
  background: var(--bg-cream);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content { max-width: 620px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(234, 88, 12, 0.10);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-light);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 2px dashed rgba(234, 88, 12, 0.15);
}
.hero-stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}
.hero-stat-num span { color: var(--primary); }
.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
}

/* Hero 裝飾色塊 */
.hero-decor {
  position: relative;
  height: 460px;
}
.decor-blob {
  position: absolute;
  border-radius: 50%;
}
.decor-orange {
  width: 280px; height: 280px;
  background: var(--primary);
  top: 40px; right: 20px;
  border-radius: 42% 58% 63% 37% / 42% 38% 62% 58%;
  animation: morph 8s ease-in-out infinite;
}
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 42% 38% 62% 58%; }
  50% { border-radius: 58% 42% 37% 63% / 62% 58% 38% 42%; }
}
.decor-yellow {
  width: 120px; height: 120px;
  background: var(--secondary);
  top: 10px; left: 30px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  transform: rotate(-12deg);
}
.decor-pink {
  width: 90px; height: 90px;
  background: var(--accent);
  bottom: 60px; left: 10px;
  border-radius: 50%;
}
.decor-ring {
  width: 60px; height: 60px;
  border: 8px solid var(--primary);
  bottom: 140px; right: 60px;
  border-radius: 50%;
  background: transparent;
}
.decor-square {
  width: 70px; height: 70px;
  background: var(--secondary);
  bottom: 30px; right: 120px;
  border-radius: 16px;
  transform: rotate(15deg);
}
.decor-dots {
  position: absolute;
  top: 200px; left: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.decor-dots span {
  width: 10px; height: 10px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.3;
}
.decor-wave {
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  pointer-events: none;
}

/* 內頁通用頁首（非首頁） */
.page-hero {
  position: relative;
  padding: 150px 0 80px;
  background: var(--bg-cream);
  overflow: hidden;
}
.page-hero-decor .decor-orange {
  width: 200px; height: 200px;
  top: -40px; right: 5%;
  opacity: 0.15;
}
.page-hero-decor .decor-yellow {
  width: 80px; height: 80px;
  bottom: 20px; right: 20%;
  opacity: 0.3;
}
.page-hero-decor .decor-pink {
  width: 50px; height: 50px;
  top: 60px; left: 8%;
  opacity: 0.2;
}
.page-hero-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(234,88,12,0.10);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.page-hero h1 { margin-bottom: 20px; max-width: 700px; }
.page-hero p { font-size: 1.15rem; max-width: 600px; }

/* ---------- 通用 Section ---------- */
.section {
  padding: 100px 0;
}
.section-cream { background: var(--bg-cream); }
.section-white { background: var(--bg-white); }

.section-header {
  margin-bottom: 56px;
  max-width: 680px;
}
.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}
.section-header.center .section-eyebrow::before { display: none; }

.section-title { margin-bottom: 16px; }
.section-desc { font-size: 1.1rem; }

/* ---------- 服務卡片（色塊） ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card-orange { background: var(--primary); color: #fff; }
.service-card-yellow { background: var(--secondary); color: var(--text); }
.service-card-pink   { background: var(--accent); color: #fff; }
.service-card-dark   { background: var(--text); color: #fff; }

.service-card h3 {
  color: inherit;
  margin-bottom: 14px;
}
.service-card-orange h3,
.service-card-pink h3,
.service-card-dark h3 { color: #fff; }
.service-card p {
  color: inherit;
  opacity: 0.88;
  font-size: 0.98rem;
  flex-grow: 1;
}
.service-card .service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.service-card-yellow .service-icon { background: rgba(28,25,23,0.10); }
.service-card-dark .service-icon { background: rgba(234,88,12,0.25); }

.service-card .service-num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 3rem;
  font-weight: 900;
  opacity: 0.12;
  line-height: 1;
}
.service-card .service-link {
  margin-top: 20px;
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}
.service-card:hover .service-link { gap: 12px; }

/* ---------- 關於簡述（首頁） ---------- */
.about-brief {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-brief-text h2 { margin-bottom: 20px; }
.about-brief-text p { margin-bottom: 16px; font-size: 1.08rem; }
.about-brief-visual {
  position: relative;
  height: 380px;
}
.about-visual-card {
  position: absolute;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 28px;
  text-align: center;
}
.about-card-1 {
  width: 220px; height: 220px;
  background: var(--primary);
  top: 20px; left: 20px;
  color: #fff;
  z-index: 2;
  transform: rotate(-4deg);
}
.about-card-2 {
  width: 180px; height: 180px;
  background: var(--secondary);
  bottom: 30px; right: 10px;
  color: var(--text);
  z-index: 1;
  transform: rotate(5deg);
}
.about-card-3 {
  width: 100px; height: 100px;
  background: var(--accent);
  top: 0; right: 60px;
  color: #fff;
  z-index: 3;
  border-radius: 50%;
  transform: rotate(8deg);
}
.about-visual-card .big-num {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}
.about-visual-card .small-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 6px;
  opacity: 0.9;
}

/* ---------- 價值觀 / 團隊文化 ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.value-card {
  padding: 36px 32px;
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}
.value-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.value-icon-1 { background: rgba(234,88,12,0.12); color: var(--primary); }
.value-icon-2 { background: rgba(250,204,21,0.20); color: #a16207; }
.value-icon-3 { background: rgba(251,113,133,0.15); color: var(--accent-dark); }
.value-icon-4 { background: rgba(28,25,23,0.08); color: var(--text); }
.value-card h3 { margin-bottom: 10px; font-size: 1.25rem; }
.value-card p { font-size: 0.98rem; }

/* 關於頁大字引言 */
.big-quote {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.big-quote .highlight { display: inline; }

/* 時間線 / 里程碑 */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.timeline-item {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  position: relative;
}
.timeline-item:nth-child(1) { background: rgba(234,88,12,0.08); }
.timeline-item:nth-child(2) { background: rgba(250,204,21,0.12); }
.timeline-item:nth-child(3) { background: rgba(251,113,133,0.08); }
.timeline-year {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 10px;
}
.timeline-item:nth-child(2) .timeline-year { color: #a16207; }
.timeline-item:nth-child(3) .timeline-year { color: var(--accent-dark); }
.timeline-item h3 { margin-bottom: 8px; font-size: 1.15rem; }
.timeline-item p { font-size: 0.95rem; }

/* ---------- 服務詳情（services.html） ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 80px;
}
.service-detail:last-child { margin-bottom: 0; }
.service-detail.reverse .service-detail-text { order: 2; }
.service-detail.reverse .service-detail-visual { order: 1; }

.service-detail-text h2 { margin-bottom: 16px; }
.service-detail-text > p { font-size: 1.08rem; margin-bottom: 24px; }
.service-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: var(--text);
}
.service-feature .check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.service-detail-visual {
  height: 340px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sd-visual-1 { background: linear-gradient(135deg, #ea580c, #fb7185); }
.sd-visual-2 { background: linear-gradient(135deg, #facc15, #ea580c); }
.sd-visual-3 { background: linear-gradient(135deg, #1c1917, #ea580c); }
.sd-visual-4 { background: linear-gradient(135deg, #fb7185, #facc15); }
.sd-visual-icon {
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.2);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
}
.sd-visual-tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.9);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}
.sd-visual-dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

/* ---------- CTA 區 ---------- */
.cta-section {
  padding: 80px 0;
  background: var(--bg-cream);
}
.cta-box {
  background: var(--text);
  border-radius: 28px;
  padding: 64px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.2;
}
.cta-box::after {
  content: "";
  position: absolute;
  bottom: -40px; left: -40px;
  width: 140px; height: 140px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.15;
}
.cta-box h2 {
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.cta-box p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.cta-box .btn { position: relative; z-index: 1; }

/* ---------- 聯絡頁：分屏式（左表單 + 右暖色漸變全高面板） ---------- */
.contact-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}

/* 共用內層：於各自半屏內置中 */
.duo-inner {
  width: 100%;
  max-width: 590px;
  margin: 0 auto;
  padding: 0 48px;
}

/* 左半：奶油底表單區 */
.duo-form {
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  padding: 88px 0;
}
.form-head { margin-bottom: 36px; }
.form-head h2 { margin-bottom: 10px; }
.form-head > p { font-size: 1rem; }

/* 右半：橙→黃漸變全高資訊面板 */
.duo-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #ea580c 0%, #f97316 42%, #facc15 100%);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 88px 0;
}
.panel-inner { position: relative; z-index: 2; }

/* 面板裝飾色塊（活潑幾何） */
.panel-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.panel-decor span { position: absolute; }
.pd-blob {
  width: 280px; height: 280px;
  background: #fff;
  opacity: 0.10;
  top: -80px; right: -70px;
  border-radius: 46% 54% 60% 40% / 42% 45% 55% 58%;
}
.pd-pink {
  width: 84px; height: 84px;
  background: var(--accent);
  opacity: 0.45;
  bottom: 90px; left: -28px;
  border-radius: 50%;
}
.pd-ring {
  width: 96px; height: 96px;
  border: 10px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  bottom: -30px; right: 14%;
}
.pd-square {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.16);
  border-radius: 14px;
  transform: rotate(16deg);
  top: 26%; right: 34px;
}
.pd-dots {
  width: 120px; height: 76px;
  top: 12%; left: 24px;
  background-image: radial-gradient(rgba(255,255,255,0.45) 3px, transparent 3px);
  background-size: 16px 16px;
  opacity: 0.5;
}

/* 面板內容：大字活潑排版 */
.panel-eyebrow {
  display: inline-block;
  padding: 7px 18px;
  background: rgba(255,255,255,0.18);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.panel-block { margin-bottom: 36px; }
.panel-block-first { margin-bottom: 40px; }
.panel-key {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border-bottom: 3px solid rgba(255,255,255,0.4);
  padding-bottom: 3px;
  margin-bottom: 14px;
}
.panel-mail {
  display: inline-block;
  font-size: clamp(1.3rem, 2.3vw, 1.8rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #fff;
  overflow-wrap: anywhere;
  transition: transform 0.2s ease, color 0.2s ease;
}
.panel-mail:hover {
  color: #fff7ed;
  transform: rotate(-1deg) scale(1.02);
}
.panel-addr {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.55;
  color: #fff;
}
.panel-addr-en {
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}
.panel-hours {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}
.panel-note {
  padding-top: 24px;
  border-top: 2px dashed rgba(255,255,255,0.4);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

/* 聯絡表格（左半表單區內） */
.form-group { margin-bottom: 22px; }
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.form-label .required { color: var(--primary); }
.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-white);
  transition: all 0.2s ease;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(234,88,12,0.10);
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-input.error,
.form-textarea.error {
  border-color: var(--accent-dark);
  background: rgba(251,113,133,0.05);
}
.form-error-msg {
  display: none;
  color: var(--accent-dark);
  font-size: 0.82rem;
  margin-top: 6px;
  font-weight: 600;
}
.form-error-msg.show { display: block; }

#form-success {
  display: none;
  padding: 20px 24px;
  background: rgba(234,88,12,0.08);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  margin-bottom: 24px;
  align-items: center;
  gap: 12px;
}
#form-success.show { display: flex; }
#form-success .success-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#form-success p {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- 頁腳（大字不對稱色塊式） ---------- */
.footer {
  position: relative;
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 0 0 32px;
  overflow: hidden;
}
.footer .container {
  position: relative;
  z-index: 2;
  padding-top: 64px;
}

/* 頂部漸變色帶 + 不規則色塊拼貼過渡（鋸齒底邊） */
.footer-band {
  position: relative;
  width: 100%;
  height: 30px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 85% 50%, 70% 100%, 55% 55%, 40% 100%, 25% 50%, 10% 100%, 0% 60%);
}

/* 散落不規則裝飾色塊 */
.footer-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.footer-deco .fd { position: absolute; }
.fd-blob-o {
  width: 220px; height: 220px;
  background: var(--primary);
  top: 70px; right: -60px;
  border-radius: 46% 54% 60% 40% / 42% 45% 55% 58%;
  opacity: 0.12;
}
.fd-sq-y {
  width: 64px; height: 64px;
  background: var(--secondary);
  top: 190px; left: 53%;
  border-radius: 14px;
  transform: rotate(14deg);
  opacity: 0.16;
}
.fd-circle-p {
  width: 46px; height: 46px;
  background: var(--accent);
  bottom: 150px; right: 40%;
  border-radius: 50%;
  opacity: 0.20;
}
.fd-ring {
  width: 72px; height: 72px;
  border: 6px solid var(--secondary);
  top: 210px; left: 7%;
  border-radius: 50%;
  background: transparent;
  opacity: 0.25;
}
.fd-dots {
  width: 56px; height: 32px;
  bottom: 110px; left: 44%;
  background-image: radial-gradient(var(--secondary) 4px, transparent 4px);
  background-size: 18px 18px;
  opacity: 0.35;
}

/* 頂部超大品牌名 */
.footer-brandname {
  font-size: clamp(2.8rem, 15vw, 12rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0 0 36px;
}
.footer-brandname .fn-accent { color: var(--primary); }

/* 中部左右不對稱 */
.footer-mid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.footer-left { max-width: 52%; }
.footer-slogan {
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 20px;
}
.footer-slogan .fs-hl { color: var(--secondary); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.footer-nav a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 100px;
  transition: all 0.2s ease;
}
.footer-nav a:hover {
  color: #fff;
  background: rgba(234,88,12,0.28);
}
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.2rem, 2.6vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
.footer-email:hover { color: var(--secondary); }
.footer-loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
}

/* 底部版權 */
.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}

/* ---------- 滾動動畫 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- 響應式 ---------- */
@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-decor { height: 300px; display: none; }
  .about-brief { grid-template-columns: 1fr; gap: 40px; }
  .about-brief-visual { height: 320px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; gap: 30px; margin-bottom: 60px; }
  .service-detail.reverse .service-detail-text { order: 1; }
  .service-detail.reverse .service-detail-visual { order: 2; }
  .service-detail-visual { height: 240px; }
  .values-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  /* 聯絡分屏：表單在上、漸變面板在下堆疊 */
  .contact-duo { grid-template-columns: 1fr; min-height: 0; }
  .duo-form { padding: 64px 0 72px; }
  .duo-panel { padding: 72px 0; }
  .duo-inner { max-width: 100%; padding: 0 28px; }
  .footer-left { max-width: 55%; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-cream);
    flex-direction: column;
    align-items: stretch;
    padding: 100px 28px 40px;
    gap: 4px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }
  .nav-menu.is-open { right: 0; }
  .nav-link {
    padding: 14px 18px;
    font-size: 1.05rem;
    border-radius: var(--radius);
  }
  .nav-cta {
    margin-left: 0;
    margin-top: 10px;
    text-align: center;
    padding: 14px;
  }

  .hero { padding: 130px 0 70px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-stat-num { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .section { padding: 70px 0; }
  .page-hero { padding: 120px 0 60px; }

  .cta-box { padding: 44px 28px; }
  .duo-form { padding: 52px 0 60px; }
  .duo-panel { padding: 60px 0; }
  .duo-inner { padding: 0 20px; }
  .panel-eyebrow { margin-bottom: 30px; }
  .panel-block { margin-bottom: 28px; }
  .pd-square { display: none; }

  .container { padding: 0 20px; }
  .nav-container { padding: 0 20px; }

  .footer-mid { flex-direction: column; align-items: flex-start; gap: 30px; }
  .footer-right { align-items: flex-start; }
  .footer-brandname { margin-bottom: 28px; }
  .footer .container { padding-top: 48px; }
  .fd-blob-o { width: 150px; height: 150px; top: 50px; right: -45px; }
  .fd-ring { display: none; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .service-card { padding: 32px 24px; min-height: auto; }
  .btn { padding: 12px 24px; font-size: 0.95rem; }
  .logo { font-size: 1.2rem; }
  .logo-icon { width: 32px; height: 32px; font-size: 1rem; }
  .footer-email { font-size: 1.05rem; }
  .footer-slogan { font-size: 1.15rem; }
  .footer-nav a { padding: 6px 11px; font-size: 0.88rem; }
}

/* ---------- 工具類 ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
