/* ==================================================
   琉急式｜贊助頁新版樣式＋動畫
   深海藍 × 白色卡片 × 暖金重點
================================================== */

:root {
  --nav-h: 60px;

  --ocean-950: #061e2b;
  --ocean-900: #082b39;
  --ocean-800: #0a3c4d;

  --primary: #006b7e;
  --primary-hover: #00586a;
  --primary-soft: #e7f5f7;

  --accent: #f6b94a;
  --accent-hover: #e9a933;
  --accent-soft: #fff7e6;

  --surface: #ffffff;
  --surface-soft: #f3f8fa;
  --page-bg: #edf4f6;

  --text: #0b2430;
  --text-muted: #55707b;
  --border: #d6e4e8;

  --success: #137a5a;
  --focus: #38bdf8;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-card:
    0 1px 2px rgba(6, 30, 43, 0.06),
    0 14px 36px rgba(6, 30, 43, 0.1);

  --shadow-featured:
    0 2px 4px rgba(6, 30, 43, 0.08),
    0 20px 48px rgba(0, 107, 126, 0.16);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==================================================
   基礎設定
================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--page-bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  font-family:
    "Noto Sans TC",
    "PingFang TC",
    "Microsoft JhengHei",
    system-ui,
    sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

body.with-fixed-nav {
  padding-top: var(--nav-h);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.content-wrapper {
  min-height: calc(100vh - var(--nav-h));
}

.content-wrapper > br {
  display: none;
}

/* ==================================================
   Hero 首屏
================================================== */

.hero-box {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(360px, 42vw, 500px);
  padding:
    clamp(4.5rem, 8vw, 7rem)
    clamp(1.25rem, 5vw, 3rem);
  color: #ffffff;
  background:
    linear-gradient(
      115deg,
      rgba(6, 30, 43, 0.96) 0%,
      rgba(6, 30, 43, 0.88) 48%,
      rgba(0, 73, 91, 0.72) 100%
    ),
    url("/圖片/DSC_1999.avif") center 45% / cover no-repeat;
  overflow: hidden;
  place-content: center;
  text-align: center;
  animation: hero-background-drift 18s ease-in-out infinite alternate;
}

.hero-box::after {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 0;
  background:
    radial-gradient(
      circle at 18% 20%,
      rgba(45, 212, 191, 0.2),
      transparent 24rem
    ),
    radial-gradient(
      circle at 86% 82%,
      rgba(56, 189, 248, 0.18),
      transparent 24rem
    );
  pointer-events: none;
  animation: hero-light-drift 12s ease-in-out infinite alternate;
}

.hero-box > * {
  position: relative;
  z-index: 1;
}

.support-badge {
  display: inline-flex;
  width: max-content;
  min-height: 32px;
  margin: 0 auto 1.25rem;
  padding: 0.35rem 0.9rem;
  align-items: center;
  justify-content: center;
  color: var(--ocean-950);
  background: var(--accent);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 22px rgba(246, 185, 74, 0.2);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  animation:
    badge-reveal 600ms var(--ease-out) 80ms both,
    badge-float 4s ease-in-out 1.2s infinite;
}

.hero-box h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(2rem, 1.3rem + 2.7vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.18;
  text-wrap: balance;
  animation: hero-rise 800ms var(--ease-out) 160ms both;
}

.hero-desc {
  max-width: 680px;
  margin: 1.25rem auto 0;
  color: #d7e8ed;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.12rem);
  line-height: 1.8;
  text-wrap: pretty;
  animation: hero-rise 800ms var(--ease-out) 280ms both;
}

.hero-cta {
  width: min(100%, 230px);
  margin: 1.75rem auto 0;
  animation: hero-rise 800ms var(--ease-out) 400ms both;
}

/* ==================================================
   共用區塊標題
================================================== */

.section-heading {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-eyebrow {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.65rem, 1.3rem + 1.25vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.section-heading p {
  margin: 0.8rem auto 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ==================================================
   贊助方案
================================================== */

.pricing-section {
  width: 100%;
  max-width: 1244px;
  margin: 0 auto;
  padding:
    clamp(3.5rem, 7vw, 5rem)
    clamp(1rem, 4vw, 2rem);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.card {
  position: relative;
  display: flex;
  min-width: 0;
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms var(--ease-out);
}

.card.featured {
  background:
    linear-gradient(
      180deg,
      var(--accent-soft) 0%,
      #ffffff 48%
    );
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-featured);
}

.card-inner {
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  flex-direction: column;
}

.card.featured .card-inner {
  padding-top: 2.25rem;
}

.popular-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.75rem;
  color: var(--ocean-950);
  background: var(--accent);
  border: 1px solid rgba(11, 36, 48, 0.08);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 0 rgba(246, 185, 74, 0);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.4;
  white-space: nowrap;
  animation: popular-tag-glow 3s ease-in-out infinite;
}

.icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: var(--primary-soft);
  border: 1px solid rgba(0, 107, 126, 0.12);
  border-radius: 20px;
  font-size: 2rem;
  place-items: center;
  transform-origin: center bottom;
}

.card.featured .icon {
  background: var(--accent-soft);
  border-color: rgba(246, 185, 74, 0.45);
}

.tier-name {
  margin: 0;
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.price {
  margin: 0.75rem 0 1rem;
  color: var(--primary);
  font-size: clamp(2rem, 1.55rem + 1.2vw, 2.65rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.2;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.price span {
  margin-right: 0.2rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.card-inner > p {
  min-height: 3.5rem;
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.benefit-list {
  flex-grow: 1;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  display: flex;
  min-width: 0;
  margin: 0.55rem 0;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.55;
}

.benefit-list i {
  margin-top: 0.28rem;
  color: var(--success);
  font-size: 0.78rem;
  flex: 0 0 auto;
}

/* ==================================================
   贊助按鈕＋掃光動畫
================================================== */

.btn-action {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 1rem;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms var(--ease-out);
}

.btn-action::before {
  content: "";
  position: absolute;
  top: -70%;
  left: -65%;
  z-index: -1;
  width: 34%;
  height: 240%;
  background: rgba(255, 255, 255, 0.32);
  pointer-events: none;
  transform: rotate(18deg);
  transition: left 600ms var(--ease-out);
}

.btn-action.primary,
.card.featured .btn-action {
  color: var(--ocean-950);
  background: var(--accent);
  border-color: var(--accent);
}

.btn-action:hover {
  color: #ffffff;
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 10px 22px rgba(0, 88, 106, 0.2);
  transform: translateY(-2px);
}

.btn-action:hover::before {
  left: 135%;
}

.btn-action.primary:hover,
.card.featured .btn-action:hover {
  color: var(--ocean-950);
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 10px 22px rgba(233, 169, 51, 0.22);
}

.btn-action:active {
  transform: translateY(1px);
}

.btn-action:focus-visible,
.info-col a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.btn-action[aria-disabled="true"],
.btn-action:disabled {
  color: #78909a;
  background: #dce7ea;
  border-color: #dce7ea;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==================================================
   贊助須知
================================================== */

.footer-info {
  width: 100%;
  max-width: 1244px;
  margin: 0 auto 2rem;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.info-glass {
  position: relative;
  max-width: none;
  margin: 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.info-glass::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(
    180deg,
    var(--primary),
    #2dd4bf
  );
  animation: side-line-glow 4s ease-in-out infinite;
}

.info-glass > h3 {
  display: flex;
  margin: 0 0 1.5rem;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.65rem);
  font-weight: 900;
  line-height: 1.4;
}

.info-glass > h3 i {
  color: var(--accent-hover);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.info-col {
  min-width: 0;
  padding: 1.25rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition:
    border-color 200ms ease,
    background-color 200ms ease,
    transform 200ms var(--ease-out);
}

.info-col h4 {
  margin: 0 0 0.45rem;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 900;
}

.info-col p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.info-col a {
  color: var(--primary);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

/* ==================================================
   贊助英雄榜
================================================== */

.supporters-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.supporters-header {
  max-width: 680px;
  margin: 0 auto 2rem;
  text-align: center;
}

.supporters-header i {
  display: inline-grid;
  width: 54px;
  height: 54px;
  margin-bottom: 0.8rem;
  color: var(--ocean-950);
  background: var(--accent);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(246, 185, 74, 0.2);
  font-size: 1.45rem;
  place-items: center;
  animation: crown-float 3.5s ease-in-out infinite;
}

.supporters-header h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.55rem, 1.3rem + 0.8vw, 2rem);
  font-weight: 900;
  line-height: 1.35;
}

.supporters-header p {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.supporters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.supporter-item {
  display: flex;
  min-width: 0;
  min-height: 170px;
  padding: 1.25rem;
  flex-direction: column;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  animation: supporter-fade 500ms var(--ease-out) both;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms var(--ease-out);
}

.supporter-top {
  display: flex;
  margin-bottom: 0.8rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.supporter-name {
  min-width: 0;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.supporter-amount {
  flex: 0 0 auto;
  padding: 0.2rem 0.55rem;
  color: var(--ocean-950);
  background: var(--accent-soft);
  border: 1px solid rgba(246, 185, 74, 0.45);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.5;
  white-space: nowrap;
}

.supporter-msg {
  flex-grow: 1;
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.supporter-date {
  margin-top: auto;
  color: #718992;
  font-size: 0.76rem;
  line-height: 1.4;
  text-align: right;
}

/* ==================================================
   載入、空資料與錯誤狀態
================================================== */

.loading-state,
.empty-state,
.error-state {
  display: flex;
  grid-column: 1 / -1;
  min-height: 150px;
  padding: 2rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: var(--text-muted);
  background: var(--surface-soft);
  border: 1px dashed #b8cdd3;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.loading-state i {
  color: var(--primary);
}

/* ==================================================
   訪問人數
================================================== */

.visitor-wrapper {
  display: flex;
  margin: 2.5rem 0 0;
  padding: 0 1rem 3.5rem;
  justify-content: center;
}

.visitor-pill {
  display: inline-flex;
  min-height: 40px;
  padding: 0.5rem 1rem;
  align-items: center;
  justify-content: center;
  color: #d9e9ed;
  background: var(--ocean-900);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 24px rgba(6, 30, 43, 0.12);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

/* ==================================================
   Hover 動畫
================================================== */

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    border-color: #9fc3cc;
    box-shadow:
      0 2px 4px rgba(6, 30, 43, 0.08),
      0 20px 46px rgba(6, 30, 43, 0.14);
    transform: translateY(-5px);
  }

  .card.featured:hover {
    border-color: var(--accent);
    box-shadow:
      0 2px 4px rgba(6, 30, 43, 0.08),
      0 24px 52px rgba(0, 107, 126, 0.2);
  }

  .card:hover .icon {
    animation: icon-hop 550ms var(--ease-out);
  }

  .info-col:hover {
    background: #f8fcfd;
    border-color: #aacbd2;
    transform: translateY(-2px);
  }

  .supporter-item:hover {
    border-color: #9fc3cc;
    box-shadow: 0 12px 28px rgba(6, 30, 43, 0.09);
    transform: translateY(-3px);
  }
}

/* ==================================================
   CSS 捲動淡入
================================================== */

@supports (animation-timeline: view()) {
  .section-heading,
  .card,
  .info-glass,
  .supporters-header,
  .loading-state,
  .visitor-pill {
    animation-name: scroll-reveal;
    animation-duration: 1ms;
    animation-fill-mode: both;
    animation-timing-function: linear;
    animation-timeline: view();
    animation-range: entry 5% cover 28%;
  }
}

/* 不支援捲動動畫的瀏覽器 */
@supports not (animation-timeline: view()) {
  .section-heading {
    animation: fallback-reveal 650ms var(--ease-out) 100ms both;
  }

  .card {
    animation: fallback-reveal 700ms var(--ease-out) both;
  }

  .card:nth-child(1) {
    animation-delay: 120ms;
  }

  .card:nth-child(2) {
    animation-delay: 220ms;
  }

  .card:nth-child(3) {
    animation-delay: 320ms;
  }

  .card:nth-child(4) {
    animation-delay: 420ms;
  }

  .info-glass {
    animation: fallback-reveal 700ms var(--ease-out) 280ms both;
  }
}

/* ==================================================
   動畫 Keyframes
================================================== */

@keyframes hero-background-drift {
  from {
    background-position: center 42%;
  }

  to {
    background-position: center 49%;
  }
}

@keyframes hero-light-drift {
  from {
    opacity: 0.65;
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }

  to {
    opacity: 1;
    transform: translate3d(1.5%, 1%, 0) scale(1.05);
  }
}

@keyframes badge-reveal {
  from {
    opacity: 0;
    filter: blur(6px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes badge-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popular-tag-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(246, 185, 74, 0);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(246, 185, 74, 0.14);
  }
}

@keyframes icon-hop {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  35% {
    transform: translateY(-8px) rotate(-4deg);
  }

  65% {
    transform: translateY(-3px) rotate(3deg);
  }
}

@keyframes side-line-glow {
  0%,
  100% {
    opacity: 0.75;
  }

  50% {
    opacity: 1;
    filter: brightness(1.25);
  }
}

@keyframes crown-float {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-5px) rotate(3deg);
  }
}

@keyframes supporter-fade {
  from {
    opacity: 0;
    filter: blur(4px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes scroll-reveal {
  from {
    opacity: 0;
    clip-path: inset(
      0 0 14% 0 round var(--radius-lg)
    );
    filter: blur(5px);
  }

  to {
    opacity: 1;
    clip-path: inset(
      0 0 0 0 round var(--radius-lg)
    );
    filter: blur(0);
  }
}

@keyframes fallback-reveal {
  from {
    opacity: 0;
    clip-path: inset(
      0 0 12% 0 round var(--radius-lg)
    );
    filter: blur(4px);
  }

  to {
    opacity: 1;
    clip-path: inset(
      0 0 0 0 round var(--radius-lg)
    );
    filter: blur(0);
  }
}

/* ==================================================
   平板
================================================== */

@media (max-width: 1023px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supporters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-inner > p {
    min-height: auto;
  }
}

/* ==================================================
   手機
================================================== */

@media (max-width: 639px) {
  .hero-box {
    min-height: 390px;
    padding: 4rem 1.25rem;
  }

  .hero-box h1 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .hero-desc {
    font-size: 0.96rem;
  }

  .pricing-section {
    padding: 3rem 1rem;
  }

  .section-heading {
    margin-bottom: 2rem;
    text-align: left;
  }

  .section-heading p {
    margin-left: 0;
  }

  .pricing-grid,
  .supporters-grid,
  .info-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    padding: 1.4rem 1.25rem;
  }

  .card.featured .card-inner {
    padding-top: 2.1rem;
  }

  .icon {
    width: 58px;
    height: 58px;
    margin-bottom: 1rem;
    border-radius: 17px;
    font-size: 1.75rem;
  }

  .price {
    margin-bottom: 0.8rem;
  }

  .footer-info {
    margin-bottom: 1rem;
    padding: 0 1rem;
  }

  .info-glass {
    padding: 1.35rem;
    border-radius: 20px;
  }

  .info-glass::before {
    inset: 0 0 auto;
    width: auto;
    height: 4px;
  }

  .info-col {
    padding: 1.1rem;
  }

  .supporter-item {
    min-height: auto;
  }

  .visitor-wrapper {
    margin-top: 2rem;
    padding-bottom: 2.5rem;
  }
}

/* ==================================================
   減少動畫偏好
================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .card:hover,
  .info-col:hover,
  .supporter-item:hover,
  .btn-action:hover,
  .btn-action:active {
    transform: none;
  }
}

/* ==================================================
   贊助英雄榜優化
================================================== */

.supporters-section .supporters-grid {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(min(100%, 250px), 270px)
    );
  gap: 1.25rem;
  justify-content: center;
  align-items: stretch;
}

/* 贊助者卡片 */
.supporters-section .supporter-item {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 180px;
  padding: 1.35rem;
  flex-direction: column;
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f3fafb 100%
    );
  border: 1px solid #cfe1e5;
  border-radius: 20px;
  box-shadow:
    0 2px 4px rgba(6, 30, 43, 0.04),
    0 12px 28px rgba(6, 30, 43, 0.08);
  overflow: hidden;
  animation: supporter-card-enter 550ms
    cubic-bezier(0.22, 1, 0.36, 1) both;
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* 卡片上方漸層線 */
.supporters-section .supporter-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    #006b7e,
    #2dd4bf,
    #38bdf8
  );
}

/* 右上角淡色裝飾 */
.supporters-section .supporter-item::after {
  content: "";
  position: absolute;
  top: -55px;
  right: -55px;
  z-index: 0;
  width: 130px;
  height: 130px;
  background: rgba(45, 212, 191, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.supporters-section .supporter-item > * {
  position: relative;
  z-index: 1;
}

/* 名稱區 */
.supporters-section .supporter-top {
  display: flex;
  margin: 0 0 0.9rem;
  align-items: center;
  justify-content: flex-start;
}

.supporters-section .supporter-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.55rem;
  color: #006b7e;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.supporters-section .supporter-name::before {
  content: "";
  width: 9px;
  height: 9px;
  background: #2dd4bf;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
  flex: 0 0 auto;
}

/* 強制隱藏舊金額 */
.supporters-section .supporter-amount {
  display: none !important;
}

/* 留言 */
.supporters-section .supporter-msg {
  flex-grow: 1;
  margin: 0;
  padding: 0.8rem 0.9rem;
  color: #55707b;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid #dce9ec;
  border-left: 3px solid #2dd4bf;
  border-radius: 12px;
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

/* 日期 */
.supporters-section .supporter-date {
  margin-top: 1rem;
  padding-top: 0.75rem;
  align-self: flex-end;
  color: #718992;
  border-top: 1px solid rgba(207, 225, 229, 0.7);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
}

/* 滑鼠互動 */
@media (hover: hover) and (pointer: fine) {
  .supporters-section .supporter-item:hover {
    border-color: #8fc3cc;
    box-shadow:
      0 3px 6px rgba(6, 30, 43, 0.05),
      0 18px 38px rgba(0, 107, 126, 0.13);
    transform: translateY(-4px);
  }

  .supporters-section
    .supporter-item:hover
    .supporter-name::before {
    animation: supporter-dot-pulse 900ms ease;
  }
}

/* 手機版改成完整單欄 */
@media (max-width: 560px) {
  .supporters-section .supporters-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .supporters-section .supporter-item {
    max-width: none;
    min-height: 165px;
    padding: 1.2rem;
  }
}

/* 動畫 */
@keyframes supporter-card-enter {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes supporter-dot-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 3px rgba(45, 212, 191, 0.18);
  }

  50% {
    box-shadow:
      0 0 0 7px rgba(45, 212, 191, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .supporters-section .supporter-item,
  .supporters-section .supporter-name::before {
    animation: none !important;
    transition: none !important;
  }

  .supporters-section .supporter-item:hover {
    transform: none;
  }
}
/* ==================================================
   自訂贊助金額
================================================== */

.custom-support-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(300px, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
  background:
    radial-gradient(
      circle at 0 0,
      rgba(45, 212, 191, 0.15),
      transparent 18rem
    ),
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f1fafb 100%
    );
  border: 1px solid #b9dce2;
  border-radius: var(--radius-lg, 24px);
  box-shadow:
    0 2px 4px rgba(6, 30, 43, 0.05),
    0 16px 38px rgba(0, 107, 126, 0.1);
  overflow: hidden;
}

.custom-support-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 5px;
  background: linear-gradient(
    90deg,
    #006b7e,
    #2dd4bf,
    #38bdf8
  );
}

.custom-support-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 1.25rem;
}

.custom-support-icon {
  display: grid;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  background: #e7f5f7;
  border: 1px solid rgba(0, 107, 126, 0.15);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(0, 107, 126, 0.1);
  font-size: 2rem;
  place-items: center;
  animation: custom-icon-float 4s ease-in-out infinite;
}

.custom-support-eyebrow {
  display: block;
  margin-bottom: 0.35rem;
  color: #006b7e;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.custom-support-copy h3 {
  margin: 0;
  color: #0b2430;
  font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.85rem);
  font-weight: 900;
  line-height: 1.35;
}

.custom-support-copy p {
  max-width: 540px;
  margin: 0.65rem 0 0;
  color: #55707b;
  font-size: 0.94rem;
  line-height: 1.7;
}

.custom-support-action {
  min-width: 0;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #d6e4e8;
  border-radius: 18px;
}

.custom-support-action > label {
  display: block;
  margin-bottom: 0.55rem;
  color: #0b2430;
  font-size: 0.88rem;
  font-weight: 900;
}

.custom-amount-field {
  display: flex;
  min-height: 54px;
  align-items: center;
  background: #ffffff;
  border: 2px solid #bfd6dc;
  border-radius: 12px;
  overflow: hidden;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.custom-amount-field:focus-within {
  border-color: #006b7e;
  box-shadow:
    0 0 0 4px rgba(56, 189, 248, 0.18);
}

.custom-amount-field > span {
  display: flex;
  align-self: stretch;
  padding: 0 0.9rem;
  align-items: center;
  color: #006b7e;
  background: #e7f5f7;
  border-right: 1px solid #d6e4e8;
  font-size: 0.86rem;
  font-weight: 900;
}

.custom-amount-field input {
  width: 100%;
  min-width: 0;
  padding: 0.7rem 0.9rem;
  color: #0b2430;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.custom-amount-field input::placeholder {
  color: #91a6ad;
  font-size: 0.9rem;
  font-weight: 500;
}

/* 移除數字輸入框箭頭 */
.custom-amount-field input::-webkit-inner-spin-button,
.custom-amount-field input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.custom-amount-field input[type="number"] {
  appearance: textfield;
}

.custom-amount-hint,
.custom-amount-error {
  margin: 0.45rem 0 0;
  font-size: 0.76rem;
  line-height: 1.5;
}

.custom-amount-hint {
  color: #718992;
}

.custom-amount-error {
  min-height: 1.15rem;
  color: #b42318;
  font-weight: 700;
}

.custom-support-button {
  margin-top: 0.7rem;
  font-family: inherit;
}

.custom-support-card.has-error
  .custom-amount-field {
  border-color: #b42318;
  box-shadow:
    0 0 0 4px rgba(180, 35, 24, 0.1);
}

.custom-support-card.is-valid
  .custom-amount-field {
  border-color: #137a5a;
}

@media (hover: hover) and (pointer: fine) {
  .custom-support-card {
    transition:
      border-color 200ms ease,
      box-shadow 200ms ease,
      transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .custom-support-card:hover {
    border-color: #8fc3cc;
    box-shadow:
      0 3px 6px rgba(6, 30, 43, 0.05),
      0 20px 46px rgba(0, 107, 126, 0.13);
    transform: translateY(-3px);
  }
}

@media (max-width: 760px) {
  .custom-support-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .custom-support-copy {
    align-items: flex-start;
  }

  .custom-support-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 1.6rem;
  }

  .custom-support-action {
    padding: 1rem;
  }
}

@media (max-width: 420px) {
  .custom-support-copy {
    flex-direction: column;
  }
}

@keyframes custom-icon-float {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-5px) rotate(3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .custom-support-card,
  .custom-support-icon,
  .custom-amount-field {
    animation: none !important;
    transition: none !important;
  }

  .custom-support-card:hover {
    transform: none;
  }
}
/* ==================================================
   五張方案一列＋整體緊湊化
================================================== */

.hero-box {
  min-height: clamp(320px, 36vw, 440px);
  padding: clamp(3.5rem, 6vw, 5rem) 1.5rem;
}

.hero-box h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.1rem);
}

.pricing-section {
  max-width: 1440px;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1rem, 2vw, 1.5rem);
}

.section-heading {
  margin-bottom: 1.8rem;
}

.section-heading h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.section-heading p {
  margin-top: 0.55rem;
  font-size: 0.92rem;
}

/* 桌機一列五張 */
.pricing-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}

/* 取消自訂方案跨整列 */
.custom-card {
  grid-column: auto;
  width: 100%;
  justify-self: stretch;
}

/* 縮小卡片 */
.pricing-grid > .card {
  min-width: 0;
  padding: 1.25rem 1rem;
  border-radius: 20px;
}

.card.featured .card-inner {
  padding-top: 1.75rem;
}

.popular-tag {
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.28rem 0.6rem;
  font-size: 0.65rem;
}

.pricing-grid .icon {
  width: 52px;
  height: 52px;
  margin-bottom: 0.85rem;
  border-radius: 16px;
  font-size: 1.55rem;
}

.pricing-grid .tier-name {
  font-size: 1rem;
}

.pricing-grid .price,
.custom-card .custom-price {
  margin: 0.55rem 0 0.75rem;
  font-size: clamp(1.75rem, 1.3rem + 1vw, 2.15rem);
}

.pricing-grid .price span {
  font-size: 0.72rem;
}

.pricing-grid .card-inner > p {
  min-height: 2.8rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.6;
}

.pricing-grid .benefit-list {
  margin-bottom: 1rem;
}

.pricing-grid .benefit-list li {
  margin: 0.4rem 0;
  gap: 0.4rem;
  font-size: 0.78rem;
}

.pricing-grid .benefit-list i {
  font-size: 0.7rem;
}

.pricing-grid .btn-action {
  min-height: 44px;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  font-size: 0.82rem;
}

/* 下方區塊一起縮小 */
.footer-info {
  max-width: 1440px;
  margin-bottom: 1.4rem;
  padding: 0 clamp(1rem, 2vw, 1.5rem);
}

.info-glass {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.info-grid {
  gap: 0.8rem;
}

.info-col {
  padding: 1rem;
}

.supporters-header {
  margin-bottom: 1.5rem;
}

.visitor-wrapper {
  margin-top: 1.8rem;
  padding-bottom: 2.5rem;
}

/* 中型螢幕：三張一列 */
@media (max-width: 1199px) {
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 平板：兩張一列 */
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 手機：一張一列 */
@media (max-width: 640px) {
  .hero-box {
    min-height: 330px;
    padding: 3.25rem 1.1rem;
  }

  .pricing-section {
    padding: 2.25rem 1rem;
  }

  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
  }

  .pricing-grid > .card {
    padding: 1.2rem;
  }

  .pricing-grid .card-inner > p {
    min-height: auto;
  }

  .custom-card {
    grid-column: auto;
    width: 100%;
  }
}
/* 推薦標籤固定右上角，不影響卡片內容位置 */
.card.featured .card-inner {
  padding-top: 0;
}

.card.featured .popular-tag {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  left: auto;
  z-index: 3;
  padding: 0.25rem 0.55rem;
  background: var(--accent, #f6b94a);
  border: 1px solid rgba(11, 36, 48, 0.1);
  border-radius: 999px;
  box-shadow: 0 5px 12px rgba(246, 185, 74, 0.18);
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  transform: none;
}

/* 確保推薦方案圖示與其他卡片同高 */
.card.featured .icon {
  margin-top: 0;
}