/* ============================================
   home.css — 首頁專屬樣式
   ============================================ */

/* Hero 背景圖（與光暈同層） */
.bg-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70svh;
  background: url('../images/home/bg-hero.jpg') top center / cover no-repeat;
  z-index: 0;
}
@media (min-width: 768px) {
  .bg-glow::before {
    background-size: cover;
    background-position: center top;
    min-height: 720px;
  }
}
@media (min-width: 996px) {
  .bg-glow::before {
    background-size: cover;
    min-height: 800px;
  }
}
@media (min-width: 1400px) {
  .bg-glow::before {
    background-size: cover;
    min-height: 880px;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: transparent;
  min-height: 90svh;
  display: flex;
  flex-direction: column;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin-inline: auto;
  padding: 6rem 1.5rem 2rem;
  gap: 1rem;
  flex: 1;
}

/* 文字區 */
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  z-index: 1;
}

.hero__title {
  font-size: clamp(2rem, 6vw, 3.45rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-dark);
  letter-spacing: .1rem;
}

.hero__subtitle {
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  font-weight: 500;
  letter-spacing: .07em;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--color-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scroll Down — 獨立於圖文之外，底部置中 */
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  margin-top: 0;
  padding: .5rem .5rem .5rem 0;
  font-size: .8125rem;
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: .08em;
  align-self: center;
}
.hero__scroll-text {
  background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    var(--primary-color) 40%,
    var(--color-pink) 50%,
    var(--primary-color) 60%,
    var(--primary-color) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 1.5s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.hero__scroll-icon {
  width: 3.375rem;
  height: 3.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero__scroll-icon svg {
  width: 100%;
  height: 100%;
}

/* 視覺圖區 */
.hero__visual {
  position: relative;
  width: 100%;
  max-width: 32rem;
  aspect-ratio: 1;
  left: 1rem;
}
.hero__el {
  position: absolute;
  display: block;
  height: auto;
}
/* 軌道光暈 + 圓點（同層） */
.hero__el--orbit   { width: 96.8%;  left: -2.8%;  top: 22.3%; z-index: 2; }
.hero__el--dot-l,
.hero__el--dot-m,
.hero__el--dot-s   { z-index: 1; }
/* 手機主體 */
.hero__el--device  { width: 46.2%;  left: 22%;    top: 14.2%; z-index: 1; }
/* 泡泡圖示 */
/* --- 修改區塊 --- */
.hero__el--cloud,
.hero__el--user,
.hero__el--shield  { width: 38.3%; z-index: 3; }
.hero__el--cloud   { left: 4%;     top: 4.7%; }
.hero__el--user    { left: 39.2%;  top: -10.7%; }
.hero__el--shield  { left: 60.3%;  top: 21.2%; }
/* 卡片 */
.hero__el--piggy,
.hero__el--wallet,
.hero__el--transfer{ width: 52.7%; z-index: 2; }
.hero__el--piggy   { left: -1.3%;  top: 30%; }
.hero__el--wallet  { left: 27.7%;  top: 38.7%; }
.hero__el--transfer{ left: 4%;     top: 50.2%; }
/* 互動元素 */
.hero__el--ripple  { width: 38.3%;  left: 22%;    top: 50.2%; z-index: 2; opacity: 0; }
.hero__el--gesture { width: 38.3%;  left: 28%;    top: 54.8%; z-index: 2; }
/* 裝飾圓點 — 初始位置統一放軌道中心，由 GSAP 控制實際繞行 */
.hero__el--dot-l   { width: 10.4%;  left: 40%;  top: 45%; }
.hero__el--dot-m   { width: 7%;     left: 43%;  top: 45%; }
.hero__el--dot-s   { width: 5%;     left: 44%;  top: 45%; }



/* Desktop layout */
@media (min-width: 768px) {
  .hero { min-height: 65svh; }
  .hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 7rem 2rem 4rem;
    gap: 2rem;
  }
  .hero__inner { position: relative; }
  .hero__content { flex: 0 0 50%; max-width: 50%; margin-top: -100px; }
  .hero__subtitle { letter-spacing: .15em; }
  .hero__scroll { position: absolute; top: 65%; left: 2rem; }
  .hero__visual  { flex: 0 0 46%; max-width: 46%; }
}

@media (min-width: 1200px) {
  .hero__inner { padding-top: 8rem; max-width: 1200px; }
  .hero__content { flex: 0 0 46%; max-width: 46%; }
  .hero__visual  { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 1400px) {
  .hero__inner { max-width: 1400px; }
}


/* ============================================
   QUICK LINKS
   ============================================ */
.quick-links {
  padding: 2rem 1.5rem 4rem;
}

.quick-links__inner {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  max-width: 1200px;
  margin-inline: auto;
}

/* 外層卡片：為 circle 溢出留空間 */
.quick-links__card {
  position: relative;
  padding-top: 0;
  display: block;
  transition: transform var(--transition);
}
.quick-links__card:hover { transform: translateY(-4px); }
.quick-links__card:hover .quick-links__circle {
  transform: scale(1.08);
  box-shadow: 0 10px 30px var(--ql-shadow);
}
.quick-links__card:hover .quick-links__panel {
  box-shadow: 0 8px 30px rgba(108, 99, 255, .15);
}

/* Circle — 左側圖示（手機），右上（桌機覆蓋） */
.quick-links__circle {
  position: absolute;
  top: -1.2rem;
  left: 1.2rem;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
  transition: transform var(--transition), box-shadow var(--transition);
}
/* --- 修改區塊 --- */
.quick-links__circle { box-shadow: 4px 4px 6px var(--ql-shadow); }
.quick-links__card:nth-child(1) .quick-links__circle { --ql-shadow: rgba(255, 177, 255, .5); }
.quick-links__card:nth-child(2) .quick-links__circle { --ql-shadow: rgba(157, 175, 255, .5); }
.quick-links__card:nth-child(3) .quick-links__circle { --ql-shadow: rgba(150, 218, 255, .5); }
@media (min-width: 992px) {
  .quick-links__circle { box-shadow: 10px 10px 8px var(--ql-shadow); }
  .quick-links__card:nth-child(1) .quick-links__circle { --ql-shadow: rgba(255, 177, 255, .7); }
  .quick-links__card:nth-child(2) .quick-links__circle { --ql-shadow: rgba(157, 175, 255, .7); }
  .quick-links__card:nth-child(3) .quick-links__circle { --ql-shadow: rgba(150, 218, 255, .7); }
}
.quick-links__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Panel — 毛玻璃底板 */
.quick-links__panel {
  position: relative;
  background-color: rgba(255, 255, 255, .6);
  background-size: 120% auto;
  background-position: center;
  background-repeat: no-repeat;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 1.25rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  box-shadow: 0 4px 20px rgba(108, 99, 255, .08);
  transition: box-shadow var(--transition);
}

/* --- 修改區塊 --- */
.quick-links__card:nth-child(1) .quick-links__panel { background-image: url('../images/home/quicklink-panel-1.png'); }
.quick-links__card:nth-child(2) .quick-links__panel { background-image: url('../images/home/quicklink-panel-2.png'); }
.quick-links__card:nth-child(3) .quick-links__panel { background-image: url('../images/home/quicklink-panel-3.png'); }

/* Text */
.quick-links__label {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
  letter-spacing: .075rem;
  text-align: center;
  width: 100%;
}

/* Arrow */
.quick-links__arrow {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border: 1.5px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--primary-color);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.quick-links__card:hover .quick-links__arrow {
  background: var(--primary-color);
  color: var(--white);
  transform: translateX(3px);
}

/* Desktop: 橫排 */
@media (min-width: 768px) {
  .quick-links { padding: 1rem 1.5rem 11.25rem 1.5rem; }
  .quick-links__inner { flex-direction: row; }
  .quick-links__card { flex: 1; }
}

@media (min-width: 992px) {
  .quick-links__card { padding-top: 2.5rem; }
  .quick-links__circle { width: 6rem; height: 6rem; top: 0; left: auto; right: 2rem; }
  .quick-links__panel { min-height: 10rem; padding: 2.5rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; }
  .quick-links__label { font-size: 1.25rem; padding-top: 2.5rem; padding-left: 0; text-align: left; width: auto; }
  .quick-links__arrow { position: static; transform: none; align-self: flex-end; }
}


/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 2.5rem 0;
  margin-bottom: 2rem;
  background: rgba(240, 238, 240, 0.6);
  border-radius: 50% / 45vw;
  border: 1px solid #fff;
  box-shadow: 0 0 40px 0 rgba(106, 55, 212, 0.15);
}
@media (min-width: 768px) {
  .about {
    padding: 11.25rem 0;
    margin-bottom: 0;
    background: url('../images/home/bg-about.png') center center / auto 100% no-repeat;
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow: visible;
  }
}

.about__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin-inline: auto;
}

/* --- 左：軌道視覺 --- */
.about__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about__orbit-wrap {
  position: relative;
  top: -1rem;
  width: min(28rem, 90vw);
  height: min(28rem, 90vw);
}

/* 外軌道圓（靜態漸層線） */
.about__orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 2px;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

/* 內圓（靜態裝飾） */
.about__orbit-inner {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px solid rgba(108, 99, 255, .15);
  background: rgba(255, 255, 255, .3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    inset 0 0 40px rgba(255,255,255,.4),
    0 8px 32px rgba(108,99,255,.08);
}

/* 軌道上的點（定位 12 點鐘方向，GSAP 繞中心旋轉） */
.about__dot {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-brand);
  top: 8%;
  left: 50%;
}
.about__dot--1 { width: 18px; height: 18px; margin-left: -9px; margin-top: -8px; }
.about__dot--2 { width: 16px; height: 16px; margin-left: -8px; margin-top: -7px; }
.about__dot--3 { width: 12px; height: 12px; margin-left: -6px; margin-top: -5px; }

/* bg circle（呼吸燈） */
.about__circle {
  position: absolute;
  inset: 0;
  background: url('../images/home/about-circle.png') center center / contain no-repeat;
}

/* Logo（獨立定位，不受呼吸 scale 影響） */
.about__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6rem;
  height: auto;
  border-radius: 1.25rem;
  box-shadow: 0 8px 32px rgba(108, 99, 255, .2);
}

/* --- 右：文字 --- */
.about__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 2.5rem;
}

.about__title {
  font-size: 1.34rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-dark);
  text-align: center;
}

.about__en {
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .03em;
  margin-top: -.5rem;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--color-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.about__desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.9;
  text-align: justify;
  letter-spacing: .05rem;
  margin-top: .75rem;
}

.about__btn {
  margin-top: .75rem;
  align-self: center;
  letter-spacing: .075rem;
}

/* Desktop */
@media (min-width: 768px) {
  .about { padding: 4rem 1.5rem; min-height: 640px; display: flex; align-items: center; }
  .about__inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5rem;
  }
  .about__visual { flex: 0 0 auto; }
  .about__content { flex: 1; max-width: 26rem; padding: 0; }
  .about__orbit-wrap { top: 0; width: 31.25rem; height: 31.25rem; }
  .about__logo-card img { width: 7rem; }
  .about__title { font-size: clamp(1.25rem, 3vw, 1.75rem); text-align: left; }
  .about__en { font-size: 1.1rem; text-align: left; }
  .about__btn { align-self: flex-start; }
}


/* ============================================
   EVENTS SLIDER（樣式已移至 gallery.css 共用）
   ============================================ */
.events {
  padding: 3rem 0;
  background: transparent;
}
@media (min-width: 768px) {
  .events { padding: 11.25rem 0; }
}

/* ============================================
   NEWS 最新消息
   ============================================ */
.news {
  padding: 3rem 0 4rem;
  background: transparent;
  position: relative;
  z-index: 2;
}
.news__inner {
  max-width: 900px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  text-align: center;
  border-radius: 1.875rem;
}
@media (min-width: 768px) {
  .news { padding: 0 0 12rem; }
  .news__inner { padding-inline: 3.5rem; }
}
@media (min-width: 1200px) {
  .news__inner { max-width: 1150px; }
}

/* --- Card wrapper --- */
.news__card {
  border-radius: 1.25rem;
  overflow: hidden;
  background: #F0EEF0;
  box-shadow: 0 0 16px rgba(106, 55, 212, .15);
}

/* --- Tabs --- */
.news__tabs {
  display: flex;
  padding: 0;
  gap: 0;
  box-shadow: 0 0 16px rgba(106, 55, 212, .15);
  border-radius: 1.875rem;
}
.news__tab {
  flex: 1;
  padding: 1rem;
  border: none;
  background: transparent;
  border-radius: 1.875rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  letter-spacing: .1rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.news__tab.is-active {
  background: var(--gradient-brand);
  color: var(--white);
  border: 1px solid #fff;
}

/* --- Panel / List --- */
.news__panel {
  text-align: left;
  display: none;
  padding: .5rem 0;
  border-radius: 0 0 .75rem .75rem;
  overflow: hidden;
}
.news__panel.is-active { display: block; }

.news__list { padding: 0; }

.news__item {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  position: relative;
}
.news__item:nth-child(even) {
  background: linear-gradient(90deg, #F3E5F2 0%, #ECE8F4 100%);
}
.news__item:last-child { border-bottom: none; }

.news__date {
  font-family: 'Montserrat', sans-serif;
  font-size: .875rem;
  color: var(--text-base);
  letter-spacing: .05rem;
  padding-right: 20px;
  font-weight: 500;
  white-space: nowrap;
}
.news__divider {
  display: none;
}
.news__title {
  font-size: 1rem;
  color: var(--text-base);
  line-height: 1.6;
  letter-spacing: .05rem;
  padding-right: 3rem;
  transition: color var(--transition);
}
.news__title:hover {
  color: var(--primary-color);
}
.news__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1.5px solid #888;
  color: #888;
  font-size: 0;
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  transition: background var(--transition), color var(--transition);
}
.news__link-arrow {
  font-size: .75rem;
  margin-top: .1rem;
  line-height: .75rem;
}
.news__link:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* --- More Button --- */
.news__more {
  margin: 2rem auto 0;
  letter-spacing: .075rem;
}

/* --- Desktop --- */
@media (min-width: 768px) {
  .news__item {
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 1.25rem 2rem;
    border-bottom: none;
  }
  .news__date {
    flex: 0 0 8rem;
    text-align: center;
  }
  .news__divider {
    display: block;
    width: 2px;
    height: 1.25rem;
    background: var(--gradient-brand);
    margin-right: 1.5rem;
  }
  .news__title {
    flex: 1;
    padding-right: 0;
  }
  .news__link {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    border-radius: 2rem;
    padding: .4rem 1rem;
    font-size: .8125rem;
    border: 1.5px solid #888;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 1.5rem;
    gap: .5rem;
  }
  .news__link-arrow { font-size: .75rem; }
  .news__tabs { border-radius: 5rem; }
  .news__tab { border-radius: 5rem; }
}

/* ============================================
   320px 極小螢幕修正
   ============================================ */
@media (max-width: 320px) {
  .hero__title    { font-size: clamp(1.9rem, 6vw, 3.75rem); }
  .hero__subtitle { font-size: clamp(1.1rem, 2vw, 1.8rem); }
  .quick-links__label { text-align: center; width: 100%; padding: 0; }
  .about__desc    { margin-top: 0; }
}
