:root {
  --wine: #7A2119;
  --wine-dark: #541610;
  --wine-light: #A84A3D;
  --gold: #C7A15A;
  --gold-light: #E4CEA5;

  --cream: #F6F1E9;
  --cream-dark: #EDE4D7;

  --black: #151515;
  --black-soft: #202020;

  --text: #292929;
  --muted: #77716A;

  --white: #FFFFFF;
}

    @media (max-width: 600px) {

      .floating-contact {
        right: 12px;
        bottom: 20px;

        gap: 8px;
      }


      .floating-contact a {
        width: 46px;
        height: 46px;

        font-size: 20px;
      }

    }

/* ===== 右側浮動聯絡按鈕 ===== */

.floating-contact {
  position: fixed;

  right: 20px;
  bottom: 30px;

  display: flex;
  flex-direction: column;

  gap: 12px;

  z-index: 9999;
}

.floating-contact a {
  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #151515;

  border: 1px solid rgba(255,255,255,0.2);

  border-radius: 50%;

  box-shadow:
    0 6px 18px rgba(0,0,0,0.25);

  transition: all 0.25s ease;

  position: relative;
}

.floating-contact a:hover {
  transform: translateY(-3px);
}

.floating-contact .floating-label {
  position: absolute;

  right: 65px;

  top: 50%;

  transform: translateY(-50%);

  white-space: nowrap;

  background: #151515;

  color: #FFFFFF;

  padding: 6px 12px;

  border-radius: 4px;

  font-size: 13px;

  opacity: 0;

  pointer-events: none;

  transition: opacity 0.2s ease;
}

.floating-contact a:hover .floating-label {
  opacity: 1;
}
  
    .floating-contact a svg {
      width: 26px;
      height: 26px;

      display: block;
    }
  
/* =========================
   基礎
========================= */

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

a {
  text-decoration: none !important;
  color: inherit !important;
}
    
html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Microsoft JhengHei",
    "Noto Sans TC",
    Arial,
    sans-serif;

  color: #292929;

background-color: #E8E1D7;

background-image:
  radial-gradient(
    circle at 20% 20%,
    rgba(199,161,90,0.08) 0px,
    transparent 2px
  ),
  radial-gradient(
    circle at 80% 80%,
    rgba(122,33,25,0.04) 0px,
    transparent 2px
  ),
  repeating-linear-gradient(
    45deg,
    transparent 0px,
    transparent 8px,
    rgba(122,33,25,0.025) 9px,
    transparent 10px
  ),
  repeating-linear-gradient(
    -45deg,
    transparent 0px,
    transparent 8px,
    rgba(199,161,90,0.025) 9px,
    transparent 10px
  );

  line-height: 1.8;
}

/* =========================
   頂部資訊列
========================= */

.topbar {
  background: var(--black);
  color: #D8D0C5;

  text-align: center;

  padding: 9px 15px;

  font-size: 12px;

  letter-spacing: 2px;

  border-bottom: 1px solid rgba(199,161,90,0.35);
}


/* =========================
   Header
========================= */

header {
  background: rgba(255,255,255,0.97);

  border-bottom: 1px solid var(--gold-light);

  position: relative;
  z-index: 10;
}

.header-inner {
  max-width: 1240px;

  min-height: 96px;

  margin: auto;

  padding: 14px 30px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 30px;
}

.brand {
  display: flex;

  align-items: center;

  gap: 16px;
}

.brand img {
  width: 68px;
  height: 68px;

  object-fit: contain;

  filter: drop-shadow(
    0 4px 8px rgba(0,0,0,0.08)
  );
}

.brand-title {
  font-family:
    "Noto Serif TC",
    "Microsoft JhengHei",
    serif;

  font-size: 32px;
  font-weight: 700;

  letter-spacing: 3px;

  color: #E87520 !important;

  line-height: 1.2;
}

.brand-title,
.brand-title:visited,
.brand-title:hover,
.brand-title:active {
  color: #E87520 !important;
  text-decoration: none !important;
}
.brand-subtitle {
  margin-top: 3px;

  color: var(--wine);

  font-size: 13px;

  font-weight: bold;

  letter-spacing: 3px;
}

.header-phone {
  color: var(--wine);

  font-weight: 800;

  font-size: 18px;

  letter-spacing: 1px;
}



.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.language-switch a {
  text-decoration: none !important;
  color: var(--wine) !important;
}

.language-switch a.active {
  font-weight: 700;
}

.language-switch a:hover {
  opacity: 0.7;
}  
/* =========================
   Hero
========================= */

.hero {
  position: relative;

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.30),
      rgba(255,255,255,0.08)
    ),

    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.08) 0px,
      rgba(255,255,255,0.08) 1px,
      rgba(0,0,0,0.025) 2px,
      rgba(0,0,0,0.025) 3px
    );

  padding: 115px 20px 125px;

  border-bottom: 1px solid rgba(122,33,25,0.18);
}
    
.hero::before {
  content: "";

  position: absolute;

  width: 420px;
  height: 420px;

  right: -150px;
  top: -180px;

  border: 1px solid rgba(199,161,90,0.35);

  border-radius: 50%;
}

.hero::after {
  content: "";

  position: absolute;

  width: 300px;
  height: 300px;

  right: -90px;
  top: -120px;

  border: 1px solid rgba(199,161,90,0.18);

  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 2;

  max-width: 1240px;

  margin: auto;

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 40px;
}


/* Hero 左側 */

.hero h1 {
  font-size: clamp(52px, 6vw, 82px);

  line-height: 1.08;

  letter-spacing: 5px;

  margin-bottom: 30px;

  color: var(--black);
}

.hero h1 span {
  display: inline-block;

  margin-top: 12px;

  color: var(--wine);

  font-size: 0.42em;

  letter-spacing: 6px;

  position: relative;
}

.hero h1 span::after {
  content: "";

  display: block;

  width: 75px;

  height: 2px;

  background: var(--gold);

  margin-top: 15px;
}

.hero p {
  max-width: 650px;

  color: var(--muted);

  font-size: 18px;

  line-height: 2;

  margin-bottom: 32px;
}


/* =========================
   標籤
========================= */

.tags {
  display: flex;

  flex-wrap: wrap;

  gap: 9px;

  margin-bottom: 34px;
}

.tag {
  background: rgba(255,255,255,0.75);

  border: 1px solid #D9C39B;

  border-radius: 3px;

  padding: 7px 14px;

  font-size: 13px;

  font-weight: bold;

  letter-spacing: 0.5px;

  color: #51483E;
}


/* =========================
   按鈕
========================= */

.buttons {
  display: flex;

  flex-wrap: wrap;

  gap: 13px;
}

.btn {
  display: inline-block;

  padding: 14px 28px;

  border-radius: 3px;

  font-weight: bold;

  text-align: center;

  letter-spacing: 1px;

  transition: all 0.25s ease;
}

.btn-main {
  background:
    linear-gradient(
      135deg,
      #FF9A3C 0%,
      #E87520 50%,
      #C95712 100%
    );

  color: #FFFFFF;

  box-shadow:
    0 8px 20px rgba(122,33,25,0.22);
}

.btn-main:hover {
  transform: translateY(-2px);

  box-shadow:
    0 12px 25px rgba(122,33,25,0.28);
}

.btn-line {
  background:
    linear-gradient(
      135deg,
      #FF9A3C 0%,
      #E87520 50%,
      #C95712 100%
    );

  color: #FFFFFF;

  border: 1px solid #F2A15E;

  box-shadow:
    0 8px 22px rgba(201,87,18,0.22);
}
.btn-line:hover {
  background: #292929;

  transform: translateY(-2px);
}


/* =========================
   Hero 右側品牌卡
========================= */

.hero-card {
  position: relative;

  background:
    linear-gradient(
      145deg,
      #26201D 0%,
      #151515 100%
    );

  color: #fff;

  border: 1px solid rgba(199,161,90,0.55);

  border-radius: 5px;

  padding: 45px;

  box-shadow:
    0 30px 70px rgba(30,20,15,0.20);
 
  width: 100%;
  max-width: 1100px;
}

  
.hero-card::before {
  content: "";

  position: absolute;

  left: 0;
  top: 28px;

  width: 3px;
  height: 70px;

  background: var(--gold);
}

.hero-card h2 {
  color: #fff;

  font-size: 25px;

  letter-spacing: 2px;

  margin-bottom: 25px;
}

.hero-card p {
  color: #CFC7BD;

  font-size: 16px;

  margin-bottom: 20px;
}

.hero-card li {
  list-style: none;

  padding: 14px 0;

  border-bottom: 1px solid rgba(255,255,255,0.10);

  color: #E8E1D8;

  font-size: 15px;
}

.hero-card li:last-child {
  border-bottom: none;
}


/* =========================
   Section
========================= */

section {
  padding: 95px 20px;
}

.container {
  max-width: 1240px;

  margin: auto;
}

.section-title {
  text-align: center;

  margin-bottom: 55px;
}

.section-title h2 {
  position: relative;

  display: inline-block;

  font-size: 38px;

  letter-spacing: 3px;

  margin-bottom: 14px;

  color: var(--black);
}

.section-title h2::after {
  content: "";

  display: block;

  width: 45px;

  height: 2px;

  background: var(--gold);

  margin: 15px auto 0;
}

.section-title p {
  color: var(--muted);

  font-size: 15px;
}


/* =========================
   服務卡
========================= */

.services {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 18px;
}

.service {
  position: relative;

background:
  linear-gradient(
    145deg,
    rgba(255,255,255,0.72),
    rgba(240,237,232,0.62)
  );

  padding: 38px 24px;

  text-align: center;

  border: 1px solid #E2D8CB;

  border-radius: 5px;

box-shadow:
  0 12px 35px rgba(30,25,20,0.08),
  inset 0 1px 0 rgba(255,255,255,0.65);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.service::before {
  content: "";

  position: absolute;

  top: 0;
  left: 50%;

  transform: translateX(-50%);

  width: 35px;
  height: 2px;

  background: var(--gold);
}

.service:hover {
  transform: translateY(-6px);

  border-color: #CDB582;

  box-shadow:
    0 20px 45px rgba(45,35,27,0.10);
}

.service .icon {
  font-size: 37px;

  margin-bottom: 17px;
}

.service h3 {
  font-size: 20px;

  letter-spacing: 1px;

  margin-bottom: 10px;
}

.service p {
  color: var(--muted);

  font-size: 14px;

  line-height: 1.8;
}


/* =========================
   Why
========================= */

.why {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.07) 0px,
      rgba(255,255,255,0.07) 1px,
      rgba(0,0,0,0.025) 2px,
      rgba(0,0,0,0.025) 3px
    );

  border-top: 1px solid rgba(122,33,25,0.15);
  border-bottom: 1px solid rgba(122,33,25,0.15);
}


/* =========================
   Local
========================= */

.local {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.08) 0px,
      rgba(255,255,255,0.08) 1px,
      rgba(0,0,0,0.025) 2px,
      rgba(0,0,0,0.025) 3px
    );
}

.local .hero-card {
  max-width: 900px;

  margin: auto;

  padding: 50px;
}

.local .hero-card h2 {
  color: #fff;

  font-size: 30px;

  margin-bottom: 20px;
}


/* =========================
   聯絡區
========================= */

.contact {
  background: var(--black);

  color: #fff;
}

.contact .section-title h2 {
  color: #fff;
}

.contact .section-title p {
  color: #AAA39A;
}

.contact .hero-card {
  max-width: 900px;

  margin: auto;

  background:
    linear-gradient(
      145deg,
      #241C19,
      #111111
    );

  border-color:
    rgba(199,161,90,0.5);
}

.contact-info h2 {
  font-size: 30px;
  letter-spacing: 2px;
  margin-bottom: 22px;
  color: #E87520 !important;
  text-decoration: none !important;
}

.contact-info p {
  color: #C8C0B6;

  margin-bottom: 9px;

  font-size: 15px;
}


/* =========================
   Footer
========================= */

footer {
  background: #0D0D0D;

  color: #fff;

  text-align: center;

  padding: 55px 20px;

  border-top: 1px solid rgba(199,161,90,0.3);
}

.footer-brand {
  font-size: 29px;

  font-weight: bold;

  letter-spacing: 4px;

  margin-bottom: 5px;
}

footer p {
  color: #AAA39A;
}

.footer-line {
  width: 55px;

  height: 1px;

  background: var(--gold);

  margin: 25px auto;
}

.footer-copy {
  font-size: 12px;

  color: #777;
}


/* =========================
   平板
========================= */

@media (max-width: 900px) {

  .header-inner {
    min-height: 82px;

    padding: 12px 20px;
  }

  .brand img {
    width: 56px;
    height: 56px;
  }

  .brand-title {
    font-size: 22px;

    letter-spacing: 2px;
  }

  .brand-subtitle {
    font-size: 11px;

    letter-spacing: 2px;
  }

  .header-phone {
    font-size: 14px;
  }

  .hero {
    padding: 80px 20px
  }

  .hero-inner {
    grid-template-columns: 1fr;

    gap: 20px;
  }

  .hero h1 {
    font-size: 55px;
  }

  .hero-card {
    padding: 38px 30px;
  }

  section {
    padding: 75px 20px;
  }

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

}


/* =========================
   手機
========================= */

@media (max-width: 600px) {

  .language-switch {
  font-size: 12px;
  gap: 5px;
}

  .topbar {
    font-size: 11px;

    letter-spacing: 1px;

    padding: 7px 10px;
  }

  .header-inner {
    padding: 10px 15px;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand-title {
    font-size: 19px;

    letter-spacing: 1px;
  }

  .brand-subtitle {
    font-size: 10px;

    letter-spacing: 1px;
  }

  .header-phone {
    display: none;
  }

  .hero {
    padding: 65px 18px 75px;
  }

  .hero h1 {
    font-size: 43px;

    letter-spacing: 2px;
  }

  .hero h1 span {
    font-size: 0.48em;

    letter-spacing: 3px;
  }

  .hero p {
    font-size: 16px;

    line-height: 1.9;
  }

  .staff-contact {
    margin-bottom: 30px;
  }
  
  .tags {
    gap: 7px;
  }

  .tag {
    font-size: 12px;

    padding: 6px 11px;
  }

  .buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-card {
    padding: 32px 24px;
  }

  .hero-inner {
    gap: 20px;
  }

  .hero-card h2 {
    font-size: 21px;
  }

  section {
    padding: 65px 18px;
  }

  .section-title {
    margin-bottom: 38px;
  }

  .section-title h2 {
    font-size: 28px;

    letter-spacing: 2px;
  }

  .services {
    grid-template-columns: 1fr;

    gap: 45px;
  }

  .service {
    padding: 30px 20px;
  }

  .local .hero-card {
    padding: 32px 24px;
  }

  .local .hero-card h2 {
    font-size: 24px;
  }

  .contact-info h2 {
    font-size: 25px;
  }

}

/* =========================
   異業合作成功案例
========================= */

.partner-section {
  padding: 140px 20px 100px;
  background: var(--cream);
}

.partner-section .section-title {
  max-width: 800px;
  margin: 0 auto 55px;
  text-align: center;
}

.partner-section .section-title h2 {
  margin-bottom: 18px;
  color: var(--wine);
  font-size: 36px;
  line-height: 1.4;
}

.partner-section .section-title p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.partner-cases {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.partner-case {
  background: #fff;
  border-radius: 18px;
  padding: 36px 40px;
  border: 1px solid rgba(122, 33, 25, 0.12);
  box-shadow: 0 8px 25px rgba(122, 33, 25, 0.08);
}

.case-top {
  border-bottom: 1px solid rgba(122, 33, 25, 0.12);
  padding-bottom: 20px;
  margin-bottom: 18px;
}

.case-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  background: #FFF1E4;
  color: #D86516;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
}

.case-top h3 {
  margin: 0;
  color: var(--wine);
  font-size: 25px;
}

.case-info {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

.case-info p {
  margin: 0;
}

.case-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.case-content > div {
  padding: 22px;
  background: #FAF7F2;
  border-radius: 12px;
}

.case-content h4 {
  margin: 0 0 12px;
  color: #D86516;
  font-size: 17px;
}

.case-content p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.case-content strong {
  color: var(--wine);
}

.case-result {
  border: 1px solid rgba(247, 147, 30, 0.3);
}

.partner-cta {
  max-width: 800px;
  margin: 55px auto 0;
  padding: 38px 30px;
  text-align: center;
  background: var(--black);
  color: #fff;
  border-radius: 18px;
}

.partner-cta h3 {
  margin: 0 0 12px;
  font-size: 25px;
}

.partner-cta p {
  margin: 0 0 25px;
  color: #ddd;
  line-height: 1.8;
}

.partner-btn {
  display: inline-block;
  padding: 13px 26px;
  background: #F7931E;
  color: #000;
  border-radius: 7px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.2s;
}

.partner-btn:hover {
  transform: translateY(-2px);
}


/* 手機版 */
@media (max-width: 800px) {

  .partner-section {
    padding: 70px 18px;
  }

  .partner-section .section-title h2 {
    font-size: 28px;
  }

  .partner-case {
    padding: 28px 22px;
  }

  .case-top h3 {
    font-size: 21px;
  }

  .case-content {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .case-info {
    flex-direction: column;
    gap: 7px;
  }

  .partner-cta {
    padding: 30px 20px;
  }

}

    /* ===== 浮動按鈕 ICON ===== */

    .floating-contact a img {
      width: 28px;
      height: 28px;

      display: block;

      object-fit: contain;
    }


    .floating-contact .phone-icon {
      font-size: 25px;

      line-height: 1;

      color: #FFFFFF;
    }
    .floating-map {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .floating-map img {
      width: 24px;
      height: 24px;
      object-fit: contain;
    }


/* ===== 懸浮按鈕動畫 ===== */

/* 按鈕輕微上下浮動 */
.floating-contact a {
    transition: all 0.3s ease;
    animation: floatingButton 3s ease-in-out infinite;
}

/* 滑鼠移上去 */
.floating-contact a:hover {
    transform: translateY(-5px) scale(1.08);
}

/* 圖示微微放大 */
.floating-contact a img,
.floating-contact .phone-icon {
    transition: transform 0.3s ease;
}

.floating-contact a:hover img,
.floating-contact a:hover .phone-icon {
    transform: scale(1.15);
}

/* 上下浮動動畫 */
@keyframes floatingButton {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* Google 地圖偶爾提醒動畫 */
.floating-map {
    animation: mapAttention 4s ease-in-out infinite;
}

@keyframes mapAttention {
    0%, 75%, 100% {
        transform: scale(1);
    }

    80% {
        transform: scale(1.12);
    }

    85% {
        transform: scale(0.96);
    }

    90% {
        transform: scale(1.08);
    }

    95% {
        transform: scale(1);
    }
}

/* ===== 網站進場動畫 ===== */

/* Hero 背景先顯示 */
.hero {
    opacity: 0;
    animation: heroFadeIn 1s ease forwards;
}

/* Hero 裡面的文字 */
.hero h1 {
    opacity: 0;
    transform: translateY(20px);
    animation: textFadeIn 1.2s ease forwards;
    animation-delay: 0.8s;
}

/* Hero 副文字 */
.hero p {
    opacity: 0;
    transform: translateY(15px);
    animation: textFadeIn 1.2s ease forwards;
    animation-delay: 1.3s;
}

/* Hero 按鈕 */
.hero .btn,
.hero .hero-tags {
    opacity: 0;
    transform: translateY(15px);
    animation: textFadeIn 1s ease forwards;
    animation-delay: 1.8s;
}


/* 背景淡入 */
@keyframes heroFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* 文字往上＋淡入 */
@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================================
   三川首頁｜高級 Landing Page 動畫
================================= */

/* Hero 整體進場 */
.hero {
  position: relative;
  overflow: hidden;
  animation: heroEnter 1s ease-out both;
}

/* Hero 背景橘色光暈 */
.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  top: -180px;
  background: radial-gradient(
    circle,
    rgba(247, 147, 30, 0.13) 0%,
    rgba(247, 147, 30, 0.05) 35%,
    transparent 70%
  );
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

/* 左下淡淡的第二層光影 */
.hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  left: -180px;
  bottom: -200px;
  background: radial-gradient(
    circle,
    rgba(199, 161, 90, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
  animation: heroGlow2 10s ease-in-out infinite alternate;
}


/* Hero 標題 */
.hero h1 {
  opacity: 0;
  transform: translateY(30px);
  animation: heroTextEnter 1s ease-out forwards;
  animation-delay: 0.25s;
}


/* Hero 說明文字 */
.hero p {
  opacity: 0;
  transform: translateY(20px);
  animation: heroTextEnter 0.9s ease-out forwards;
  animation-delay: 0.55s;
}


/* 標籤區 */
.hero .tags {
  opacity: 0;
  transform: translateY(20px);
  animation: heroTextEnter 0.9s ease-out forwards;
  animation-delay: 0.8s;
}


/* 標籤微互動 */
.hero .tag {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.hero .tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}


/* 專員區 */
.staff-contact {
  opacity: 0;
  transform: translateY(20px);
  animation: heroTextEnter 0.9s ease-out forwards;
  animation-delay: 1s;
}


/* 專員按鈕 */
.staff-contact + * a {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.staff-contact + * a:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 25px rgba(247, 147, 30, 0.25);
}


/* Hero 卡片 */
.hero-card {
  opacity: 0;
  transform: translateY(25px);
  animation: heroTextEnter 1s ease-out forwards;
  animation-delay: 1.15s;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-4px);
}


/* =================================
   動畫
================================= */

@keyframes heroEnter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


@keyframes heroTextEnter {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes heroGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-40px, 30px, 0) scale(1.12);
  }
}


@keyframes heroGlow2 {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(35px, -25px, 0);
  }
}


/* =================================
   手機版：降低動畫幅度
================================= */

@media (max-width: 768px) {

  .hero::before {
    width: 360px;
    height: 360px;
    right: -160px;
    top: -120px;
  }

  .hero::after {
    width: 280px;
    height: 280px;
    left: -150px;
    bottom: -150px;
  }

}


/* 使用者若設定減少動畫，尊重系統設定 */
@media (prefers-reduced-motion: reduce) {

  .hero,
  .hero h1,
  .hero p,
  .hero .tags,
  .staff-contact,
  .hero-card {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero::before,
  .hero::after {
    animation: none;
  }

}

/* =================================
   三川｜Scroll Reveal 滾動動畫
================================= */

/* 預設隱藏 */
.scroll-reveal {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}


/* 進入畫面 */
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* 卡片依序出現 */
.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
}

.reveal-delay-3 {
  transition-delay: 0.36s;
}

.reveal-delay-4 {
  transition-delay: 0.48s;
}


/* =================================
   高級服務卡片 Hover
================================= */

.service-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}


/* 滑過去微微浮起 */
.service-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.18);
}


/* 橘色光線掃過 */
.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(247, 147, 30, 0.10),
    transparent
  );

  transform: skewX(-18deg);
  transition: left 0.7s ease;

  pointer-events: none;
}


.service-card:hover::after {
  left: 140%;
}


/* =================================
   區塊標題
================================= */

.section-title {
  transition:
    transform 0.3s ease;
}


/* =================================
   行動裝置
================================= */

@media (max-width: 768px) {

  .service-card:hover {
    transform: translateY(-4px);
  }

}


/* =================================
   減少動畫
================================= */

@media (prefers-reduced-motion: reduce) {

  .scroll-reveal,
  .scroll-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .service-card {
    transition: none;
  }

}
