﻿@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700;900&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bk: #171A1F;
  --wt: #F7F8F5;
  --gg: #E8ECE6;
  --gn: #087F5B;
  --gnd: #066B4D;
  --gnl: #0A9D71;
  --yl: #F2C94C;
  --rd: #D84A3A;
  --bd: #CED3CD;
  --t2: #5F6B67;
  --tl: #8A9490;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Noto Sans TC', 'Manrope', sans-serif; background: var(--wt); color: var(--bk); line-height: 1.6; letter-spacing: 0; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
p { color: var(--t2); max-width: 65ch; }
a { text-decoration: none; color: inherit; transition: color .2s; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 6px; font-family: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all .25s ease; border: none; letter-spacing: 0; }
.btn-primary { background: var(--gn); color: white; }
.btn-primary:hover { background: var(--gnd); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(8,127,91,.3); }
.btn-outline { background: transparent; color: var(--gn); border: 2px solid var(--gn); }
.btn-outline:hover { background: var(--gn); color: white; transform: translateY(-2px); }
.btn-white { background: white; color: var(--gn); }
.btn-white:hover { background: var(--gg); transform: translateY(-2px); }

.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(247,248,245,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--bd); transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 2px 20px rgba(23,26,31,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--bk); }
.logo-icon { font-size: 1.75rem; }
.logo span:last-child { color: var(--gn); font-family: 'Manrope',sans-serif; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--t2); position: relative; }
.nav-links a::after { content:''; position:absolute; bottom:-4px; left:0; width:0; height:2px; background:var(--gn); transition:width .25s; }
.nav-links a:hover { color: var(--gn); }
.nav-links a:hover::after { width: 100%; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--bk); transition: all .3s; }

.hero { position: relative; min-height: 100vh; display: flex; align-items: center; margin-top: 72px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: url('https://images.unsplash.com/photo-1505870359238-7e93b72f69d7?w=1920&q=80') center/cover no-repeat; }
.hero-bg::after { content:''; position:absolute; inset:0; background: linear-gradient(135deg,rgba(23,26,31,.85) 0%,rgba(23,26,31,.55) 50%,rgba(8,127,91,.25) 100%); }
.hero-content { position: relative; z-index: 1; color: white; max-width: 720px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(8,127,91,.2); border: 1px solid rgba(8,127,91,.4); padding: 8px 18px; border-radius: 100px; font-size: .85rem; font-weight: 500; margin-bottom: 28px; backdrop-filter: blur(4px); }
.hero-badge-dot { width: 8px; height: 8px; background: var(--gnl); border-radius: 50%; animation: pulse 2s infinite; }
.hero h1 { font-size: clamp(2.25rem,5.5vw,3.75rem); font-weight: 900; line-height: 1.15; margin-bottom: 20px; }
.hero h1 .highlight { color: var(--gnl); }
.hero p { color: rgba(255,255,255,.78); font-size: 1.15rem; max-width: 56ch; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 48px; }
.hero-stat-item h3 { font-size: 2rem; font-weight: 800; color: white; font-family:'Manrope',sans-serif; }
.hero-stat-item p { color: rgba(255,255,255,.6); font-size: .88rem; margin: 0; }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.section { padding: 100px 0; }
.section-alt { background: var(--gg); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-header .label { display:inline-block; color:var(--gn); font-size:.88rem; font-weight:600; text-transform:uppercase; letter-spacing:2px; margin-bottom:14px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { margin: 0 auto; }

.advantages-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.advantage-card { background: white; border: 1px solid var(--bd); border-radius: 8px; padding: 36px 28px; transition: all .3s ease; }
.advantage-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(23,26,31,.08); border-color: var(--gn); }
.adv-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; }
.advantage-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.advantage-card p { font-size: .92rem; margin: 0; }

.packages-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; align-items: start; }
.package-card { background: white; border: 2px solid var(--bd); border-radius: 10px; padding: 40px 32px; position: relative; transition: all .3s ease; }
.package-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(23,26,31,.1); }
.package-featured { border-color: var(--gn); box-shadow: 0 8px 32px rgba(8,127,91,.15); }
.package-ribbon { position: absolute; top: -1px; right: 28px; background: var(--gn); color: white; font-size: .78rem; font-weight: 700; padding: 6px 20px; border-radius: 0 0 8px 8px; }
.package-name { font-size: .88rem; font-weight: 600; color: var(--gn); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; }
.package-price { font-family:'Manrope',sans-serif; }
.package-price .currency { font-size: 1.25rem; font-weight: 600; vertical-align: top; }
.package-price .amount { font-size: 3rem; font-weight: 900; line-height: 1; }
.package-price .period { font-size: .95rem; color: var(--tl); }
.package-desc { font-size: .92rem; margin: 16px 0 28px; }
.package-features { list-style: none; margin-bottom: 32px; }
.package-features li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--gg); font-size: .92rem; }
.package-features li:last-child { border-bottom: none; }
.check-icon { color: var(--gn); font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.package-card .btn { width: 100%; justify-content: center; }

.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.service-card { background: white; border: 1px solid var(--bd); border-radius: 8px; padding: 36px 28px; transition: all .3s; text-align: center; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(23,26,31,.08); }
.service-icon { font-size: 2.5rem; margin-bottom: 18px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: .9rem; margin: 0 auto; }

.workflow-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.workflow-step { text-align: center; }
.step-number { width: 64px; height: 64px; background: var(--gn); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; font-family:'Manrope',sans-serif; margin: 0 auto 20px; }
.workflow-step h3 { margin-bottom: 10px; font-size: 1.05rem; }
.workflow-step p { font-size: .88rem; margin: 0 auto; }

.ai-preview { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.ai-tool-card { background: linear-gradient(145deg,#171A1F,#2A2E35); border-radius: 10px; padding: 36px 28px; color: white; transition: transform .3s; }
.ai-tool-card:hover { transform: translateY(-4px); }
.ai-tool-icon { font-size: 2.25rem; margin-bottom: 16px; }
.ai-tool-card h3 { color: white; margin-bottom: 10px; font-size: 1.1rem; }
.ai-tool-card p { color: rgba(255,255,255,.62); font-size: .88rem; margin: 0; }

.cta-band { background: linear-gradient(135deg,var(--gn),var(--gnd)); padding: 80px 0; text-align: center; color: white; }
.cta-band h2 { color: white; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,.82); margin: 0 auto 32px; font-size: 1.1rem; max-width: 54ch; }

.footer { background: var(--bk); color: white; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,.5); font-size: .9rem; max-width: 320px; }
.footer-col h4 { font-size: .95rem; margin-bottom: 20px; color: var(--gnl); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer-col a:hover { color: var(--gnl); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: rgba(255,255,255,.4); flex-wrap: wrap; gap: 8px; }
.footer-disclaimer { width: 100%; text-align: center; font-size: .78rem; color: rgba(255,255,255,.3); font-style: italic; margin-top: 4px; }

.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@media(prefers-reduced-motion:reduce) { .fade-in{opacity:1;transform:none;transition:none} }

@media(max-width:1024px) {
  .advantages-grid,.services-grid,.ai-preview{grid-template-columns:repeat(2,1fr)}
  .packages-grid{grid-template-columns:1fr;max-width:480px;margin:0 auto}
  .workflow-steps{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:768px) {
  .nav-links{display:none;position:absolute;top:72px;left:0;right:0;background:var(--wt);flex-direction:column;padding:24px;gap:20px;border-top:1px solid var(--bd)}
  .hamburger{display:flex}
  .hero-stats{flex-direction:column;gap:24px}
  .hero-btns{flex-direction:column}
  .hero-btns .btn{width:100%;justify-content:center}
  .advantages-grid,.services-grid,.ai-preview{grid-template-columns:1fr}
  .workflow-steps{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr;text-align:center}
  .footer-bottom{flex-direction:column;gap:12px;text-align:center}
  .footer-disclaimer{margin-top:8px}
  .container{padding:0 16px}
  .section{padding:60px 0}
}


/* ===== Page Hero (Inner Pages) ===== */
.page-hero {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, #171A1F 0%, #2D3139 100%);
  color: #fff;
  text-align: center;
}
.page-hero .label { color: #087F5B; background: rgba(8,127,91,0.15); }
.page-hero h1 { font-size: 2.5rem; color: #fff; margin-top: 12px; }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.7); max-width: 600px; margin: 16px auto 0; }

/* ===== Contact Page Styles ===== */
.contact-section { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

.contact-form-wrapper { background: #fff; border: 1px solid var(--bd); border-radius: 8px; padding: 40px; }
.contact-form-wrapper h2 { font-size: 1.5rem; margin-bottom: 12px; }
.contact-form-wrapper > p { color: var(--tl); margin-bottom: 28px; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .9rem; font-weight: 600; color: var(--bk); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--bd);
  border-radius: 6px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--bk);
  background: var(--wt);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gn);
  box-shadow: 0 0 0 3px rgba(8,127,91,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 8px; }

.contact-info h2 { font-size: 1.5rem; margin-bottom: 12px; }
.contact-info > p { color: var(--tl); margin-bottom: 28px; }

.contact-cards { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 8px;
  padding: 20px;
  transition: all .25s ease;
}
.contact-card:hover {
  border-color: var(--gn);
  transform: translateX(4px);
}
.contact-card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.contact-card-content h4 { font-size: .95rem; margin-bottom: 4px; color: var(--bk); }
.contact-card-content p { font-size: .88rem; color: var(--t2); margin: 0; line-height: 1.5; }
.contact-card-content a { color: var(--gn); font-weight: 500; }
.contact-card-content a:hover { text-decoration: underline; }
.text-muted { color: var(--tl); font-size: .85rem; }

.quick-response {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, rgba(8,127,91,.05), rgba(10,157,113,.08));
  border: 1px solid rgba(8,127,91,.15);
  border-radius: 8px;
  padding: 24px;
}
.quick-response-icon { font-size: 1.75rem; }
.quick-response-content h4 { font-size: 1rem; margin-bottom: 6px; color: var(--gn); }
.quick-response-content p { font-size: .88rem; color: var(--t2); margin: 0; }
.quick-response-content strong { color: var(--gn); }

/* Map Section */
.map-section { padding: 80px 0; background: var(--gg); }
.map-placeholder {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 8px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.map-placeholder-content { text-align: center; color: var(--tl); }
.map-placeholder-icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.text-sm { font-size: .85rem; }

/* FAQ Section */
.faq-section { padding: 80px 0; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: var(--gn); }
.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.25rem; color: var(--gn); font-weight: 700; transition: transform .2s; }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { color: var(--gn); }
.faq-answer { padding: 0 24px 18px; }
.faq-answer p { font-size: .92rem; color: var(--t2); margin: 0; line-height: 1.7; }

/* Text Accent (for inline highlights) */
.text-accent { color: var(--gnl); }

@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .contact-form-wrapper { padding: 24px; }
  .contact-section { padding: 60px 0; }
  .map-section, .faq-section { padding: 60px 0; }
  .map-placeholder { height: 250px; }
}

/* ===== Detail Package (Pricing Page) ===== */
.detail-package {
  background: #fff;
  border: 1px solid #CED3CD;
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 32px;
}
.detail-featured {
  border-color: #087F5B;
  box-shadow: 0 4px 24px rgba(8,127,91,0.12);
}
.detail-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.detail-header h2 { font-size: 1.6rem; color: #171A1F; }
.detail-price { font-size: 2rem; font-weight: 700; color: #087F5B; }
.detail-price .currency { font-size: 1.2rem; font-weight: 500; }
.detail-price .period { font-size: 1rem; color: #666; font-weight: 400; }
.detail-desc { font-size: 1.05rem; color: #555; line-height: 1.7; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid #E8ECE6; }

.detail-section-title { font-size: 1.1rem; font-weight: 600; color: #171A1F; margin: 24px 0 16px; }
.detail-grid { display: grid; gap: 14px; }
.detail-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; }
.item-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; min-width: 22px; color: #087F5B; font-size: .9rem; font-weight: bold; margin-top: 2px; }
.detail-item strong { color: #171A1F; font-size: .95rem; }
.detail-item p { font-size: .88rem; color: #777; margin-top: 3px; }
.detail-text { color: #555; line-height: 1.7; }
.detail-cta { margin-top: 28px; padding-top: 20px; border-top: 1px solid #E8ECE6; }

/* ===== Comparison Table ===== */
.comparison-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.comparison-table th { background: #171A1F; color: #fff; padding: 14px 18px; text-align: left; font-size: .92rem; font-weight: 600; white-space: nowrap; }
.comparison-table td { padding: 12px 18px; border-bottom: 1px solid #E8ECE6; font-size: .9rem; color: #444; }
.comparison-table tbody tr:hover { background: #F7F8F5; }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.price-row { background: #F7F8F5; }
.price-row td { font-size: 1rem; font-weight: 600; color: #087F5B; }

@media (max-width: 1024px) {
  .page-hero h1 { font-size: 2rem; }
  .detail-package { padding: 28px; }
  .detail-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .page-hero { padding: 100px 0 40px; }
  .page-hero h1 { font-size: 1.75rem; }
  .detail-package { padding: 20px; }
  .comparison-table { font-size: .82rem; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }
}

/* ===== About Page Styles ===== */
.about-intro { padding: 80px 0; }
.about-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-intro-text h2 { font-size: 2rem; margin-bottom: 20px; }
.about-intro-text > p { margin-bottom: 24px; }
.about-features { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.about-features li { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: var(--t2); }
.about-features .check { color: var(--gn); font-weight: 700; font-size: 1.1rem; }

.about-mission { padding: 80px 0; background: var(--gg); }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.mission-card, .vision-card { background: #fff; border-radius: 8px; padding: 40px; border: 1px solid var(--bd); }
.mission-card h3, .vision-card h3 { font-size: 1.35rem; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.mission-card p, .vision-card p { font-size: .95rem; }

.about-advantages { padding: 80px 0; }
.about-adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.about-adv-item { background: #fff; border: 1px solid var(--bd); border-radius: 8px; padding: 32px 24px; text-align: center; transition: all .3s ease; }
.about-adv-item:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(23,26,31,.08); border-color: var(--gn); }
.about-adv-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 1.5rem; }
.about-adv-item h4 { font-size: 1.05rem; margin-bottom: 8px; }
.about-adv-item p { font-size: .88rem; margin: 0; }

.about-team { padding: 80px 0; background: var(--gg); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid var(--bd); transition: all .3s ease; }
.team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(23,26,31,.08); }
.team-avatar { width: 100%; height: 220px; background: linear-gradient(135deg, var(--gg), var(--bd)); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; color: var(--tl); }
.team-info { padding: 20px; text-align: center; }
.team-info h4 { font-size: 1.05rem; margin-bottom: 4px; }
.team-info p { font-size: .85rem; color: var(--tl); margin: 0; }

/* ===== CSS 動畫系統 ===== */

/* 1. 滾動淡入動畫基礎 (增強版) */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 左滑入 */
.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* 右滑入 */
.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* 縮放淡入 */
.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* 2. Hero 區域動畫 */
.hero-content > * {
  animation: slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.4s; }
.hero-content > *:nth-child(4) { animation-delay: 0.55s; }
.hero-content > *:nth-child(5) { animation-delay: 0.7s; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero 背景緩慢漂浮 */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse at 30% 50%, rgba(8,127,91,.15) 0%, transparent 70%);
  animation: floatBg 15s ease-in-out infinite;
}
@keyframes floatBg {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(20px, -20px) rotate(1deg); }
  66% { transform: translate(-15px, 15px) rotate(-1deg); }
n}

/* Hero 統計數字計數器效果 */
.hero-stat-item {
  position: relative;
}
.hero-stat-item h3::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gnl);
  animation: expandLine 1s cubic-bezier(0.22, 1, 0.36, 1) 1s both;
}
@keyframes expandLine {
  from { width: 0; }
  to { width: 40px; }
}

/* 3. 卡片懸停增強效果 */
.advantage-card {
  position: relative;
  overflow: hidden;
}
.advantage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(8,127,91,.05), transparent);
  transition: left 0.5s ease;
}
.advantage-card:hover::before {
  left: 100%;
}

.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(8,127,91,.05), transparent);
  transition: left 0.5s ease;
}
.service-card:hover::before {
  left: 100%;
}

/* 服務圖示旋轉效果 */
.service-icon {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .service-icon {
  transform: scale(1.15) rotate(5deg);
}

/* 優勢圖標彈跳效果 */
.adv-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.advantage-card:hover .adv-icon {
  transform: scale(1.15) rotate(-5deg);
}

/* 4. 定價卡片動畫 */
.package-card {
  position: relative;
  overflow: hidden;
}
.package-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, transparent, var(--gn), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.package-card:hover::after {
  opacity: 1;
}

.package-featured {
  animation: featuredPulse 3s ease-in-out infinite;
}
@keyframes featuredPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(8,127,91,.15); }
  50% { box-shadow: 0 8px 48px rgba(8,127,91,.25); }
}

/* 5. 工作流程步驟動畫 */
.step-number {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.workflow-step:hover .step-number {
  transform: scale(1.15);
  box-shadow: 0 4px 20px rgba(8,127,91,.3);
}

/* 6. AI 工具卡發光效果 */
.ai-tool-card {
  position: relative;
  overflow: hidden;
}
.ai-tool-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(8,127,91,.1), transparent 30%);
  animation: rotateGlow 8s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.ai-tool-card:hover::before {
  opacity: 1;
}
@keyframes rotateGlow {
  to { transform: rotate(360deg); }
}

.ai-tool-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ai-tool-card:hover .ai-tool-icon {
  transform: scale(1.2) rotate(8deg);
}

/* 7. CTA 區塊動畫 */
.cta-band {
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255,255,255,.08) 0%, transparent 60%);
  animation: ctaPulse 4s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

.cta-band h2, .cta-band p, .cta-band .btn {
  position: relative;
  z-index: 1;
}

/* 8. 按鈕漣漪效果 */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,.25) 0%, transparent 70%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.5s, opacity 0.3s;
}
.btn-primary:hover::after {
  transform: scale(2.5);
  opacity: 1;
}

/* 9. 導航列動畫 */
.header {
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

/* 10. 頁面內容區塊交錯動畫延遲 */
.advantages-grid .advantage-card:nth-child(1) { animation-delay: 0.05s; }
.advantages-grid .advantage-card:nth-child(2) { animation-delay: 0.1s; }
.advantages-grid .advantage-card:nth-child(3) { animation-delay: 0.15s; }
.advantages-grid .advantage-card:nth-child(4) { animation-delay: 0.2s; }
.advantages-grid .advantage-card:nth-child(5) { animation-delay: 0.25s; }
.advantages-grid .advantage-card:nth-child(6) { animation-delay: 0.3s; }

.services-grid .service-card:nth-child(1) { animation-delay: 0.05s; }
.services-grid .service-card:nth-child(2) { animation-delay: 0.1s; }
.services-grid .service-card:nth-child(3) { animation-delay: 0.15s; }

.workflow-step:nth-child(1) .step-number { animation-delay: 0.05s; }
.workflow-step:nth-child(2) .step-number { animation-delay: 0.15s; }
.workflow-step:nth-child(3) .step-number { animation-delay: 0.25s; }
.workflow-step:nth-child(4) .step-number { animation-delay: 0.35s; }

/* 11. 聯絡卡片動畫 */
.contact-card {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-card:hover .contact-card-icon {
  transform: scale(1.1) rotate(-5deg);
}
.contact-card-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 12. 關於我們頁面動畫 */
.about-adv-item:hover .about-adv-icon {
  transform: scale(1.15) rotate(5deg);
}
.about-adv-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team-card:hover .team-avatar {
  transform: scale(1.05);
}
.team-avatar {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 13. 表單聚焦動畫 */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  animation: formFocus 0.3s ease;
}
@keyframes formFocus {
  0% { box-shadow: 0 0 0 0 rgba(8,127,91,0); }
  100% { box-shadow: 0 0 0 3px rgba(8,127,91,0.1); }
}

/* 14. Footer 連結動畫 */
.footer-col a {
  position: relative;
  display: inline-block;
}
.footer-col a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gnl);
  transition: width 0.3s ease;
}
.footer-col a:hover::after {
  width: 100%;
}

/* 15. 圖片載入動畫 */
.hero-image {
  animation: fadeInImg 1.2s ease 0.8s both;
}
@keyframes fadeInImg {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 0.15; transform: translateY(-50%) scale(1); }
}

.about-deco-img {
  animation: slideInRight 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.contact-deco-img {
  animation: slideInLeft 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 16. Ribbon 動畫 */
.ribbon {
  animation: ribbonBounce 2s ease-in-out infinite;
}
@keyframes ribbonBounce {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-4px) rotate(2deg); }
}

/* 17. 導航連結下劃線動畫 */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gn);
  transition: width 0.3s ease, left 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
  left: 0;
}

/* 導航條按鈕修正：避免被 nav-links 連結樣式覆蓋 */
.nav-links a.btn-primary { color: white; }
.nav-links a.btn-primary:hover { color: white; }
.nav-links a.btn-primary::after { display: none; }

/* ===== 響應式動畫優化 ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== DECORATION IMAGE ANIMATIONS ===== */
.about-deco-img {
  animation: slideInRight 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.contact-deco-img {
  animation: slideInLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ===== HERO BACKGROUND FIX - USE LOCAL IMAGE ===== */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('images/hero-bg.jpg') center/cover no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(23,26,31,0.85) 0%, rgba(23,26,31,0.6) 50%, rgba(8,127,91,0.3) 100%);
}
