/* =========================================================================
   GreenerClean V2 — Vibe Coding 視覺系統
   深色 #0a0a0a / 卡片 #131313 / 螢光綠 #a7f069
   清潔品牌感：玻璃卡片、微光、水滴泡泡、擦拭 reveal
   ========================================================================= */

:root {
  --brand: #a7f069;
  --brand-2: #7fe34d;
  --brand-glow: rgba(167, 240, 105, 0.4);
  --bg: #0a0a0a;
  --bg-2: #0d100c;
  --bg-card: #131313;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(167, 240, 105, 0.4);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-dim: rgba(255, 255, 255, 0.4);
  --radius: 24px;
  --radius-sm: 16px;
  --pill: 100px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --maxw: 1200px;
  --pad-section: 120px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang TC", "PingFang SC",
          "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}

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

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--pad-section) 0; position: relative; }
.section--tight { padding: 80px 0; }

/* 標題系統 */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand);
  padding: 6px 14px; border: 1px solid var(--border-hover);
  border-radius: var(--pill); background: rgba(167, 240, 105, 0.06);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); }
.section-title { font-size: clamp(32px, 5vw, 56px); margin: 20px 0 16px; }
.section-lead { color: var(--text-muted); font-size: clamp(15px, 1.4vw, 18px); max-width: 640px; }
.section-head { margin-bottom: 56px; }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin: 0 auto; }

/* 按鈕 */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px;
  padding: 14px 28px; border-radius: var(--pill);
  transition: all 0.4s var(--ease); border: 1px solid transparent; cursor: pointer;
}
.btn--primary { background: var(--brand); color: #0a0a0a; box-shadow: 0 0 0 rgba(167,240,105,0); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 40px var(--brand-glow); }
.btn--ghost { border-color: var(--border); color: var(--text); background: var(--bg-glass); }
.btn--ghost:hover { border-color: var(--border-hover); color: var(--brand); }
.btn svg { width: 18px; height: 18px; }

/* ===================== Header ===================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand__name span { color: var(--brand); }
.brand__sub { font-size: 11px; color: var(--text-dim); letter-spacing: 0.1em; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-size: 15px; font-weight: 600; color: var(--text-muted);
  padding: 10px 16px; border-radius: var(--pill); transition: all 0.3s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--text); background: var(--bg-glass); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .phone { font-size: 14px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.header-cta .phone svg { width: 16px; height: 16px; color: var(--brand); }

.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 12px;
  width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--text); transition: all 0.3s var(--ease); position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: rotate(45deg); top: 0; }
body.nav-open .nav-toggle span::after { transform: rotate(-45deg); top: 0; }

/* 手機選單 */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99; background: rgba(10,10,10,0.97);
  backdrop-filter: blur(20px); display: flex; flex-direction: column; justify-content: center;
  gap: 8px; padding: 0 32px; transform: translateX(100%); transition: transform 0.5s var(--ease);
}
body.nav-open .mobile-nav { transform: translateX(0); }
.mobile-nav a { font-size: 28px; font-weight: 800; color: var(--text); padding: 12px 0; letter-spacing: -0.02em; }
.mobile-nav a:hover { color: var(--brand); }
.mobile-nav .btn { margin-top: 24px; align-self: flex-start; }

/* ===================== Hero ===================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding-top: 76px; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; filter: saturate(0.9) contrast(1.05); }
.hero__bg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 70% 30%, rgba(167,240,105,0.12), transparent 60%),
              linear-gradient(180deg, rgba(10,10,10,0.72), rgba(10,10,10,0.97)); }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; width: 100%; }
.hero__copy { max-width: 660px; }
.hero__title { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.04; text-wrap: balance; position: relative; z-index: 2; }
.hero__title .headline-line { display: block; white-space: nowrap; }
.hero__title .accent { color: var(--brand); }
.hero__en { display: block; font-size: clamp(16px, 2vw, 24px); font-weight: 600; color: var(--text-muted); margin-top: 14px; letter-spacing: -0.01em; }
.hero__lead { color: var(--text-muted); font-size: clamp(16px, 1.5vw, 19px); margin: 28px 0 36px; max-width: 520px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__visual { position: relative; }

/* 浮卡（玻璃卡） */
.glass-card {
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--radius); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 28px; position: relative; overflow: hidden;
}
.hero__float { display: grid; gap: 18px; }
.hero__float .glass-card { transition: transform 0.5s var(--ease); }
.float-stat { display: flex; align-items: baseline; gap: 12px; }
.float-stat__num { font-size: 40px; font-weight: 800; color: var(--brand); letter-spacing: -0.03em; }
.float-stat__label { color: var(--text-muted); font-size: 14px; }

/* 水滴 / 泡泡裝飾 */
.bubble { position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(167,240,105,0.35), rgba(167,240,105,0.05) 60%, transparent);
  border: 1px solid rgba(167,240,105,0.14); pointer-events: none; opacity: 0.62; }

/* ===================== KPI ===================== */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.kpi { text-align: center; padding: 36px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); position: relative; overflow: hidden; transition: all 0.4s var(--ease); }
.kpi::before { content: ""; position: absolute; inset: -50%; background: radial-gradient(circle, var(--brand) 0%, transparent 60%); opacity: 0; filter: blur(60px); transition: opacity 0.4s ease; }
.kpi:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.kpi:hover::before { opacity: 0.18; }
.kpi__num { font-size: clamp(36px, 4vw, 56px); font-weight: 800; color: var(--brand); letter-spacing: -0.03em; position: relative; }
.kpi__label { color: var(--text-muted); font-size: 14px; margin-top: 8px; position: relative; }

/* ===================== 卡片網格（服務 / 案例 / 文章） ===================== */
.card-grid { display: grid; gap: 22px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; position: relative; transition: all 0.4s var(--ease); display: flex; flex-direction: column;
}
.card::before { content: ""; position: absolute; inset: -50%; background: radial-gradient(circle, var(--brand) 0%, transparent 60%); opacity: 0; filter: blur(60px); transition: opacity 0.4s ease; z-index: 0; }
.card:hover { transform: translateY(-4px); border-color: var(--border-hover); }
.card:hover::before { opacity: 0.16; }
.card__media { aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--bg-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 24px; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__tag { font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: 0.06em; text-transform: uppercase; }
.card__title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.card__excerpt { color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }
.card__link { margin-top: auto; color: var(--brand); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.card__link::after { content: "→"; transition: transform 0.3s var(--ease); }
.card:hover .card__link::after { transform: translateX(4px); }

/* 服務圖示 */
.svc-icon { width: 48px; height: 48px; color: var(--brand); transition: transform 0.4s var(--ease); }
.card:hover .svc-icon { transform: scale(1.1); }

/* ===================== 流程 ===================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); position: relative; }
.step__num { font-size: 14px; font-weight: 800; color: #0a0a0a; background: var(--brand); width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step__title { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.step__desc { color: var(--text-muted); font-size: 14px; }

/* ===================== 為何選擇 ===================== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why { padding: 32px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); position: relative; overflow: hidden; transition: all 0.4s var(--ease); }
.why::before { content: ""; position: absolute; inset: -50%; background: radial-gradient(circle, var(--brand) 0%, transparent 60%); opacity: 0; filter: blur(60px); transition: opacity 0.4s ease; }
.why:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.why:hover::before { opacity: 0.14; }
.why__icon { width: 44px; height: 44px; color: var(--brand); margin-bottom: 16px; position: relative; }
.why__title { font-size: 18px; font-weight: 800; margin-bottom: 8px; position: relative; }
.why__desc { color: var(--text-muted); font-size: 14.5px; position: relative; }

/* ===================== 評價 ===================== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); display: flex; flex-direction: column; gap: 16px; }
.testi__stars { color: var(--brand); letter-spacing: 2px; font-size: 14px; }
.testi__text { color: rgba(255,255,255,0.82); font-size: 15px; line-height: 1.7; flex: 1; }
.testi__who { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--border); padding-top: 16px; }
.testi__avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #0a0a0a; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.testi__name { font-weight: 700; font-size: 15px; }
.testi__svc { font-size: 13px; color: var(--text-dim); }

/* ===================== FAQ ===================== */
.faq-group { margin-bottom: 48px; }
.faq-group__title { font-size: 22px; font-weight: 800; margin-bottom: 20px; color: var(--brand); }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: var(--bg-card); transition: border-color 0.3s var(--ease); }
.faq-item[open] { border-color: var(--border-hover); }
.faq-item summary { padding: 20px 24px; font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand); font-size: 24px; font-weight: 400; transition: transform 0.3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body { padding: 0 24px 22px; color: var(--text-muted); font-size: 15px; line-height: 1.7; }

/* ===================== CTA 區塊 ===================== */
.cta-band { text-align: center; padding: 80px 24px; border: 1px solid var(--border-hover); border-radius: 32px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(167,240,105,0.12), transparent 70%), var(--bg-card); position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 16px; }
.cta-band p { color: var(--text-muted); max-width: 560px; margin: 0 auto 32px; }
.cta-band .hero__actions { justify-content: center; }

/* ===================== 服務單頁 ===================== */
.svc-hero { padding: 140px 0 60px; position: relative; }
.svc-hero__grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: 48px; align-items: center; }
.svc-hero__media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/3; }
.svc-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-hero h1 { font-size: clamp(34px, 5vw, 60px); margin: 18px 0 16px; }
.svc-block { margin: 56px 0; }
.svc-block h2 { font-size: 28px; margin-bottom: 20px; }
.quick-answer { border-left: 3px solid var(--brand); padding: 20px 24px; background: var(--bg-glass); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: rgba(255,255,255,0.86); font-size: 16px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 18px; border: 1px solid var(--border); border-radius: var(--pill); background: var(--bg-card); font-size: 14px; color: var(--text-muted); }
.feature-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.feature-list li { padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-card); display: flex; gap: 12px; align-items: flex-start; }
.feature-list li::before { content: "✓"; color: var(--brand); font-weight: 800; flex: none; }

/* ===================== Footer ===================== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 72px 0 32px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-col h4 { font-size: 14px; font-weight: 800; letter-spacing: 0.04em; margin-bottom: 18px; color: var(--text); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a, .footer-col p { color: var(--text-muted); font-size: 14px; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--brand); }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { line-height: 1.7; max-width: 320px; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.footer-social a:hover { border-color: var(--border-hover); color: var(--brand); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-dim); font-size: 13px; }
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--brand); }

/* ===================== 頁面通用 hero ===================== */
.page-hero { padding: 150px 0 40px; text-align: center; position: relative; }
.page-hero h1 { font-size: clamp(34px, 5vw, 60px); }
.page-hero p { color: var(--text-muted); max-width: 600px; margin: 16px auto 0; }
.breadcrumb { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--brand); }

/* prose */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 28px; margin: 36px 0 16px; }
.prose h3 { font-size: 21px; margin: 28px 0 12px; color: var(--brand); }
.prose p { color: var(--text-muted); margin-bottom: 16px; }
.prose ul { margin: 0 0 16px 0; }
.prose ul li { color: var(--text-muted); padding-left: 24px; position: relative; margin-bottom: 10px; }
.prose ul li::before { content: "▸"; color: var(--brand); position: absolute; left: 0; }

/* ===================== 進場動畫初始狀態（GSAP 接管；no-anim/reduced-motion 還原） ===================== */
.reveal { opacity: 0; transform: translateY(60px); }
html.no-anim .reveal,
body.no-anim .reveal { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ===================== 響應式 ===================== */
@media (max-width: 1024px) {
  :root { --pad-section: 88px; }
  .hero__inner, .svc-hero__grid { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --pad-section: 64px; }
  .main-nav, .header-cta .phone, .header-cta .btn--ghost { display: none; }
  .nav-toggle { display: flex; }
  .card-grid--3, .card-grid--2, .card-grid--4, .kpi-grid, .why-grid, .testi-grid, .steps, .feature-list { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero__title { font-size: clamp(42px, 14vw, 58px); }
  .bubble { opacity: 0.36; }
}
