/* ===== Webomate - 白底質感風格 ===== */
:root {
  --color-bg: #fafafa;
  --color-bg-pure: #ffffff;
  --color-surface: #ffffff;
  --color-surface-2: #f5f5f7;
  --color-text: #1a1a1a;
  --color-text-muted: #6b6b73;
  --color-primary: #2d7a4f;
  --color-primary-hover: #236340;
  --color-accent: #3d8b5c;
  --color-line-green: #06c755;
  --color-border: #e8e8ec;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.04);
  --font-sans: 'Outfit', 'Noto Sans TC', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Header ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 6px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: block;
  text-decoration: none;
  line-height: 0;
}

.logo img {
  display: block;
  height: 90px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle:hover {
  color: var(--color-primary);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

@media (max-width: 768px) {
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-pure);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
  }
}

/* ----- Hero ----- */
.hero {
  min-height: 100vh;
  padding: 120px 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
}

/* 生活感背景圖：可替換為自己的圖片 url('你的圖片路徑') */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('https://images.unsplash.com/photo-1497366811353-6870744d04b2?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(250, 250, 250, 0.88) 100%);
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(45, 122, 79, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-inner {
  text-align: left;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  color: var(--color-primary);
  font-weight: 700;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.65;
}

.hero-desc strong {
  color: var(--color-primary);
}

.hero-spirit {
  margin-top: 28px;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.hero-spirit-sub {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  opacity: 0.9;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.hero-note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 對話框展示 */
.hero-chat {
  width: 100%;
  max-width: 360px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-header {
  padding: 14px 20px;
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

.chat-body {
  padding: 20px 16px 24px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.chat-msg {
  max-width: 85%;
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.chat-msg p {
  margin: 0;
}

.chat-bot {
  align-self: flex-start;
  background: var(--color-surface-2);
  color: var(--color-text);
  border-bottom-left-radius: 4px;
}

.chat-user {
  align-self: flex-end;
  background: var(--color-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-result {
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(45, 122, 79, 0.08) 0%, rgba(45, 122, 79, 0.04) 100%);
  border: 1px solid rgba(45, 122, 79, 0.2);
  border-radius: var(--radius);
  text-align: center;
}

.chat-result-url {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 6px 0;
  letter-spacing: 0.02em;
}

.chat-result-tag {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ----- 案例展示（左右滑動） ----- */
.cases {
  padding: 80px 0 100px;
  background: var(--color-bg-pure);
  position: relative;
}

.cases-head {
  text-align: center;
  margin-bottom: 40px;
}

.cases-head .section-desc {
  margin-bottom: 0;
}

.cases-wrap {
  margin: 0 auto;
  padding: 0 24px;
}

.cases-track {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 0 0 24px;
}

.case-card {
  flex: 0 0 280px;
  max-width: 300px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s, box-shadow 0.2s;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.case-card-img {
  aspect-ratio: 4 / 3;
  background: var(--color-surface-2);
  overflow: hidden;
}

.case-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.case-card-body {
  padding: 20px;
}

.case-card-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.case-card-body p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ----- LINE CTA / QR ----- */
.line-cta {
  padding: 100px 0;
  background: var(--color-surface-2);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-desc {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 48px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.line-cta-inner {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.line-cta-left {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.line-qr-block {
  text-align: center;
}

/* 提示詞技巧 */
.prompt-tips {
  flex: 1 1 320px;
  min-width: 280px;
  padding: 0;
}

.prompt-tips-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-text);
}

.prompt-tips-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.prompt-tips-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.prompt-tips-list li + li {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.prompt-tips-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.prompt-tips-icon svg {
  flex-shrink: 0;
}

.qr-placeholder {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  background: #fff;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 0.9rem;
  padding: 16px;
}

.qr-fallback small {
  font-size: 0.75rem;
  color: #666;
  margin-top: 4px;
}

.qr-hint {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.line-link-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.btn-line {
  background: var(--color-line-green);
  color: #fff;
  padding: 18px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}

.btn-line:hover {
  background: #05a84d;
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.line-icon {
  width: 28px;
  height: 28px;
}

.line-id {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ----- Features ----- */
.features {
  padding: 100px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-soft);
}

.feature-card:hover {
  border-color: rgba(45, 122, 79, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ----- How it works ----- */
.how-it-works {
  padding: 100px 0;
  background: var(--color-surface-2);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.step {
  text-align: center;
  padding: 0 16px;
}

.step-num {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.step p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ----- Pricing ----- */
.pricing {
  padding: 100px 0;
}

.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.pricing-card {
  flex: 1 1 320px;
  max-width: 420px;
  margin: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: rgba(45, 122, 79, 0.3);
  box-shadow: 0 0 0 1px rgba(45, 122, 79, 0.12), var(--shadow-soft);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
}

.pricing-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.price {
  margin-bottom: 8px;
}

.currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.amount {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.price-unit {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-left: 2px;
}

.price-note {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.pricing-card-custom .price-note-custom {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 32px;
}

.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
  flex: 1;
}

.price-features li {
  padding: 12px 0;
  padding-left: 28px;
  position: relative;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.pricing-card .btn {
  width: 100%;
  min-height: 52px;
  margin-top: auto;
}

/* ----- FAQ ----- */
.faq {
  padding: 100px 0;
  background: var(--color-surface-2);
}

.faq-list {
  max-width: 640px;
  margin: 48px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
  padding: 24px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--color-primary);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding-bottom: 24px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ----- Bottom CTA ----- */
.bottom-cta {
  padding: 100px 0;
  text-align: center;
}

.bottom-cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 12px;
}

.bottom-cta p {
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

/* ----- Footer ----- */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-pure);
}

.footer-spirit {
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.copyright {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-inner {
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-chat {
    margin: 0 auto;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .line-cta-inner {
    flex-direction: column;
    gap: 40px;
  }

  .section-desc {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .pricing-card {
    padding: 40px 24px;
  }

  .amount {
    font-size: 2.75rem;
  }
}
