/* ════════════════════════════════════════════════════════════
   團隊榮譽頁 /team 完整樣式 (2026-05-27)
   Tab 切換 / 榮耀牆 / 活動相簿 / 短影音 / Lightbox / 影片 Modal
   ════════════════════════════════════════════════════════════ */

.th-main { background: linear-gradient(180deg, #fafaf9 0%, #ffffff 100%); }

/* ────── 1. Hero ────── */
.th-hero {
  position: relative;
  min-height: 76vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding: 120px 0 90px;
}
.th-hero-bg { position: absolute; inset: 0; z-index: 0; }
.th-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.th-hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,193,7,.05) 0%, transparent 50%),
    linear-gradient(135deg, rgba(10,22,40,.20) 0%, rgba(30,77,140,.19) 60%, rgba(202,138,4,.11) 100%);
}
.th-hero-content { position: relative; z-index: 1; color: #fff; max-width: 1080px; }
/* 麵包屑：正常排版流，置於英文小標上方（與全站一致） */
.th-hero-content .breadcrumb {
  margin-bottom: 16px;
  color: rgba(255,255,255,.85);
}
.th-hero-content .breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.th-hero-content .breadcrumb a:hover { color: #fff; text-decoration: underline; }
.th-hero-content .breadcrumb .breadcrumb__sep { margin: 0 8px; opacity: .55; }
@media (max-width: 991px) {
  /* 手機 / 平板：改回正常流排在主標題上方，避免絕對定位壓到 Hero 大標 */
  .th-hero-content .breadcrumb {
    position: static;
    top: auto;
    left: auto;
    font-size: .85rem;
    margin-bottom: 14px;
  }
}
.th-hero-content .section-label {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(251,191,36,.2), rgba(245,158,11,.15));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(252,211,77,.45);
  border-radius: 999px;
  font-size: .8rem; letter-spacing: .3em; font-weight: 700;
  color: #fde68a;
  margin-bottom: 24px;
}
.th-hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 24px;
  letter-spacing: -.01em;
  text-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.th-hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.85;
  color: rgba(255,255,255,.92);
  max-width: 720px;
  margin: 0 0 40px;
}
.th-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  max-width: 800px;
}
.th-stat { display: flex; flex-direction: column; align-items: center; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.th-stat:last-child { border-right: 0; }
.th-stat__num {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 900;
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 50%, #f59e0b 100%);
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1; margin-bottom: 8px;
}
.th-stat__label { font-size: .82rem; color: rgba(255,255,255,.78); letter-spacing: .05em; }
@media (max-width: 720px) {
  .th-hero { min-height: 60vh; padding: 100px 0 60px; }
  .th-hero-stats { grid-template-columns: repeat(2, 1fr); padding: 18px; }
  .th-stat:nth-child(2) { border-right: 0; }
}
/* 桌機版：Banner 尺寸與全站內頁統一（鎖定 1920:820 比例，詳見 style.css 的 11.18b）。
   1) 比例鎖定 → 1920×820 的圖完整顯示不裁切。
   2) 高度由寬度換算、與內容無關 → 有／無主副標題都不會改變 Banner 高度。 */
@media (min-width: 721px) {
  .th-hero {
    aspect-ratio: var(--inner-hero-ratio, 1920 / 820);
    height: auto;
    min-height: var(--inner-hero-min-h, 540px);
    /* 內距收斂：原 120/90 在小筆電（如 1280×720）會讓數據區超出 Banner 被裁切 */
    padding-top: 95px;
    padding-bottom: 45px;
  }
}

/* ────── 2. Tab 導覽 (sticky) ────── */
.th-tabs-nav {
  position: sticky; top: 70px; z-index: 20;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-200, #e5e7eb);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.th-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.th-tabs::-webkit-scrollbar { display: none; }
.th-tab {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 22px;
  background: transparent; border: 0; border-bottom: 3px solid transparent;
  font-size: 1rem; font-weight: 600; color: var(--gray-600, #64748b);
  cursor: pointer; white-space: nowrap;
  transition: all .25s ease;
}
.th-tab svg { width: 22px; height: 22px; opacity: .65; }
.th-tab em { font-style: normal; font-size: .75rem; font-weight: 700; padding: 2px 8px; background: var(--gray-100, #f1f5f9); color: var(--gray-500, #64748b); border-radius: 999px; }
.th-tab:hover { color: var(--ink, #0f172a); background: var(--gray-50, #fafafa); }
.th-tab.is-active { color: var(--blue-700, #1d4ed8); border-bottom-color: var(--orange, #f97316); }
.th-tab.is-active svg { opacity: 1; color: var(--orange, #f97316); }
.th-tab.is-active em { background: linear-gradient(135deg, var(--orange, #f97316), #fb923c); color: #fff; }

/* ────── 3. Tab 內容區共用 ────── */
.th-content { padding-top: 60px; }
.th-pane { display: none; animation: thFadeIn .45s ease; }
.th-pane.is-active { display: block; }
.th-empty { text-align: center; padding: 80px 20px; color: var(--gray-400, #94a3b8); font-size: 1.05rem; }
@keyframes thFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ────── 3a. 榮耀牆 ────── */
.th-honor-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; justify-content: center; }
.th-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; background: #fff;
  border: 1.5px solid var(--gray-200, #e5e7eb); border-radius: 999px;
  font-size: .92rem; font-weight: 600; color: var(--gray-700, #334155);
  cursor: pointer; transition: all .25s ease;
}
.th-chip em { font-style: normal; font-size: .78rem; padding: 2px 8px; background: var(--gray-100, #f1f5f9); color: var(--gray-500, #64748b); border-radius: 999px; }
.th-chip:hover { border-color: var(--orange-lt, #fb923c); color: var(--orange, #f97316); }
.th-chip.is-active { background: linear-gradient(135deg, var(--ink, #0f172a), #1e293b); border-color: var(--ink, #0f172a); color: #fff; }
.th-chip.is-active em { background: rgba(255,255,255,.2); color: #fff; }

.th-honor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.th-honor-card {
  position: relative; background: #fff;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--gray-200, #e5e7eb);
  box-shadow: 0 4px 16px rgba(15,23,42,.06);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s ease;
}
.th-honor-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%); z-index: 2; }
.th-honor-card::after { content: ""; position: absolute; top: 0; left: -100%; right: 0; bottom: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%); transition: left .8s ease; pointer-events: none; z-index: 3; }
.th-honor-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(15,23,42,.18); }
.th-honor-card:hover::after { left: 100%; }
.th-honor-card__ribbon {
  position: absolute; top: 14px; right: -32px;
  padding: 5px 36px;
  background: linear-gradient(135deg, #fbbf24, #d97706); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  transform: rotate(35deg);
  box-shadow: 0 2px 8px rgba(217,119,6,.4); z-index: 2;
}
.th-honor-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #fef3c7, #fde68a); }
.th-honor-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.th-honor-card:hover .th-honor-card__media img { transform: scale(1.08); }
.th-honor-card__body { padding: 24px 22px 22px; position: relative; }
.th-honor-card__year {
  position: absolute; top: -22px; left: 22px;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--ink, #0f172a), #1e293b);
  color: #fde68a;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: .9rem; font-weight: 800; letter-spacing: -.02em;
  border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.th-honor-card__title { font-size: 1.1rem; font-weight: 800; color: var(--ink, #0f172a); margin: 18px 0 8px; line-height: 1.4; }
.th-honor-card__org { font-size: .85rem; color: var(--gray-500, #64748b); margin-bottom: 12px; font-weight: 600; }
.th-honor-card__desc { font-size: .88rem; line-height: 1.75; color: var(--gray-600, #475569); margin: 0; }
.th-honor-card__link { display: inline-block; margin-top: 14px; font-size: .85rem; font-weight: 700; color: var(--blue-600, #2563eb); text-decoration: none; }
.th-honor-card__link:hover { color: var(--orange, #f97316); }

/* ────── 3b. 活動相簿 ────── */
.th-events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.th-event-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--gray-100, #f1f5f9);
  box-shadow: 0 4px 16px rgba(15,23,42,.05);
  cursor: pointer;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s ease;
}
.th-event-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(15,23,42,.16); }
.th-event-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--gray-100, #f1f5f9); }
.th-event-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.th-event-card:hover .th-event-card__media img { transform: scale(1.06); }
.th-event-card__media--placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: var(--blue-700, #1d4ed8); font-weight: 600; }
.th-event-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.7) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px; opacity: 0; transition: opacity .35s ease; color: #fff;
}
.th-event-card:hover .th-event-card__overlay { opacity: 1; }
.th-event-card__count { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; background: rgba(0,0,0,.5); backdrop-filter: blur(6px); padding: 5px 12px; border-radius: 999px; align-self: flex-start; margin-bottom: 8px; }
.th-event-card__view { font-size: .9rem; font-weight: 600; }
.th-event-card__body { padding: 18px 22px 22px; }
.th-event-card__date { display: inline-block; padding: 4px 12px; background: var(--gray-100, #f1f5f9); color: var(--gray-600, #475569); border-radius: 999px; font-size: .78rem; font-weight: 700; margin-bottom: 10px; letter-spacing: .02em; }
.th-event-card__title { font-size: 1.12rem; font-weight: 800; color: var(--ink, #0f172a); margin: 0 0 8px; line-height: 1.4; }
.th-event-card__desc { font-size: .88rem; line-height: 1.7; color: var(--gray-600, #475569); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ────── 3c. 短影音 ────── */
.th-videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.th-video-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--gray-100, #f1f5f9);
  box-shadow: 0 4px 16px rgba(15,23,42,.05);
  cursor: pointer;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s ease;
}
.th-video-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(15,23,42,.16); }
.th-video-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.th-video-card__media img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: transform .6s ease, opacity .35s ease; }
.th-video-card:hover .th-video-card__media img { transform: scale(1.04); opacity: 1; }
.th-video-card__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; background: none; border: 0; padding: 0; cursor: pointer; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.th-video-card__play svg { width: 100%; height: 100%; }
.th-video-card:hover .th-video-card__play { transform: translate(-50%, -50%) scale(1.15); }
.th-video-card__duration { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; background: rgba(0,0,0,.85); color: #fff; font-size: .78rem; font-weight: 700; border-radius: 4px; letter-spacing: .05em; }
.th-video-card__body { padding: 18px 22px 22px; }
.th-video-card__title { font-size: 1.05rem; font-weight: 800; color: var(--ink, #0f172a); margin: 0 0 8px; line-height: 1.4; }
.th-video-card__desc { font-size: .85rem; line-height: 1.7; color: var(--gray-600, #475569); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ────── 4. Lightbox（活動相簿放大） ────── */
.th-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 60px 80px; animation: thFadeIn .25s ease; }
.th-lightbox[hidden] { display: none; }
.th-lightbox__close, .th-lightbox__prev, .th-lightbox__next {
  position: absolute;
  background: rgba(255,255,255,.1); color: #fff;
  border: 0; cursor: pointer;
  font-size: 32px; width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
  backdrop-filter: blur(8px); z-index: 2;
}
.th-lightbox__close:hover, .th-lightbox__prev:hover, .th-lightbox__next:hover { background: rgba(255,255,255,.25); transform: scale(1.08); }
.th-lightbox__close { top: 24px; right: 24px; font-size: 28px; }
.th-lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); font-size: 48px; }
.th-lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); font-size: 48px; }
.th-lightbox__prev:hover { transform: translateY(-50%) scale(1.08); }
.th-lightbox__next:hover { transform: translateY(-50%) scale(1.08); }
.th-lightbox__content { max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; gap: 16px; }
.th-lightbox__img { max-width: 100%; max-height: 75vh; object-fit: contain; border-radius: 8px; box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.th-lightbox__meta { text-align: center; color: #fff; }
.th-lightbox__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.th-lightbox__caption { font-size: .92rem; color: rgba(255,255,255,.75); margin-bottom: 6px; }
.th-lightbox__counter { font-size: .82rem; color: rgba(255,255,255,.55); letter-spacing: .1em; }
@media (max-width: 720px) { .th-lightbox { padding: 60px 16px; } .th-lightbox__prev, .th-lightbox__next { width: 44px; height: 44px; font-size: 32px; } }

/* ────── 5. 影片 Modal ────── */
.th-vidmodal { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 40px; animation: thFadeIn .25s ease; }
.th-vidmodal[hidden] { display: none; }
.th-vidmodal__close { position: absolute; top: 24px; right: 24px; width: 48px; height: 48px; background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 50%; font-size: 28px; cursor: pointer; backdrop-filter: blur(8px); transition: background .2s, transform .2s; }
.th-vidmodal__close:hover { background: rgba(255,255,255,.25); transform: scale(1.08); }
.th-vidmodal__content { max-width: 1100px; width: 100%; }
.th-vidmodal__title { color: #fff; font-size: 1.2rem; font-weight: 700; text-align: center; margin-bottom: 16px; }
.th-vidmodal__frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,.6); }
.th-vidmodal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 720px) { .th-vidmodal { padding: 60px 16px 16px; } }

/* ────── 3a-2. 本月之星（黃冠誇張呈現） ────── */
.th-stars-period {
  text-align: center; margin-bottom: 48px;
  font-size: 1.1rem; font-weight: 700; color: var(--gray-500, #64748b);
}
/* 第二個月份（含）以後的標題：與上一個月的卡片拉開距離 */
.th-stars-grid + .th-stars-period { margin-top: 72px; }
.th-stars-period span {
  color: #b45309; font-weight: 900; font-size: 1.3rem;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.th-stars-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 28px; padding-top: 36px;
}
.th-star {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 56px 22px 28px;
  text-align: center;
  border: 1px solid var(--gray-200, #e5e7eb);
  box-shadow: 0 8px 28px rgba(15,23,42,.08);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s ease;
  overflow: visible;
}
.th-star:hover { transform: translateY(-10px); box-shadow: 0 24px 60px rgba(245,158,11,.28); }

/* 黃冠浮在卡片頂端正中 */
.th-star__crown {
  position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 54px;
  filter: drop-shadow(0 4px 10px rgba(245,158,11,.45));
  animation: thCrownFloat 3s ease-in-out infinite;
  z-index: 3;
}
.th-star__crown svg { width: 100%; height: 100%; }
@keyframes thCrownFloat {
  0%,100% { transform: translateX(-50%) translateY(0) rotate(-2deg); }
  50%     { transform: translateX(-50%) translateY(-5px) rotate(2deg); }
}

.th-star__rank {
  display: inline-block;
  padding: 5px 18px; margin-bottom: 18px;
  border-radius: 999px;
  font-size: .82rem; font-weight: 800; letter-spacing: .04em;
  color: #fff;
}
.th-star__avatar {
  width: 130px; height: 130px; margin: 0 auto 18px;
  border-radius: 50%; overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 0 0 4px transparent, 0 10px 24px rgba(0,0,0,.15);
  position: relative;
}
.th-star__avatar img { width: 100%; height: 100%; object-fit: cover; }
.th-star__avatar-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}
.th-star__name { font-size: 1.3rem; font-weight: 900; color: var(--ink, #0f172a); margin: 0 0 6px; }
.th-star__role { font-size: .85rem; color: var(--gray-500, #64748b); margin-bottom: 14px; }
.th-star__achievement {
  display: inline-block;
  padding: 8px 16px; margin-bottom: 14px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e; font-weight: 800; font-size: .92rem;
  border-radius: 10px;
}
.th-star__quote {
  font-size: .85rem; color: var(--gray-600, #475569);
  font-style: italic; line-height: 1.6; margin: 0;
}

/* ── 排名配色：金 / 銀 / 銅 / 進案王 ── */
.th-star--gold   { border-color: #fcd34d; }
.th-star--gold .th-star__rank   { background: linear-gradient(135deg, #f59e0b, #d97706); }
.th-star--gold .th-star__avatar { box-shadow: 0 0 0 4px #fbbf24, 0 12px 28px rgba(245,158,11,.4); }
.th-star--gold:hover { box-shadow: 0 24px 64px rgba(245,158,11,.4); }

.th-star--silver { border-color: #cbd5e1; }
.th-star--silver .th-star__rank   { background: linear-gradient(135deg, #94a3b8, #64748b); }
.th-star--silver .th-star__avatar { box-shadow: 0 0 0 4px #cbd5e1, 0 12px 28px rgba(100,116,139,.35); }

.th-star--bronze .th-star__rank   { background: linear-gradient(135deg, #d97706, #b45309); }
.th-star--bronze .th-star__avatar { box-shadow: 0 0 0 4px #fdba74, 0 12px 28px rgba(180,83,9,.3); }
.th-star--bronze { border-color: #fdba74; }

.th-star--king { border-color: #c4b5fd; background: linear-gradient(180deg, #faf5ff 0%, #fff 60%); }
.th-star--king .th-star__rank   { background: linear-gradient(135deg, #7c3aed, #c026d3); }
.th-star--king .th-star__avatar { box-shadow: 0 0 0 4px #a78bfa, 0 12px 28px rgba(124,58,237,.35); }
.th-star--king .th-star__crown svg path,
.th-star--king .th-star__crown svg rect { fill: #a78bfa; }
.th-star--king:hover { box-shadow: 0 24px 64px rgba(124,58,237,.32); }

@media (max-width: 980px) { .th-stars-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 22px; } }
@media (max-width: 520px) { .th-stars-grid { grid-template-columns: 1fr; gap: 48px; } }

/* 第 4 名以後（榮譽榜）— 統一藍色系 */
.th-star--rank { border-color: #bfdbfe; }
.th-star--rank .th-star__rank   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.th-star--rank .th-star__avatar { box-shadow: 0 0 0 4px #bfdbfe, 0 12px 28px rgba(37,99,235,.3); }

/* 榮譽榜成員（honor）— 無皇冠,改用藍色榮譽勳章 */
.th-star--honor { border-color: #bfdbfe; }
.th-star--honor .th-star__rank { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.th-star--honor .th-star__avatar { box-shadow: 0 0 0 4px #bfdbfe, 0 12px 28px rgba(37,99,235,.3); }
.th-star--honor:hover { box-shadow: 0 24px 60px rgba(37,99,235,.28); }
.th-star__medal {
  position: absolute; top: -32px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 64px;
  filter: drop-shadow(0 4px 10px rgba(37,99,235,.45));
  z-index: 3;
}
.th-star__medal svg { width: 100%; height: 100%; }

/* ════════════════════════════════════════════════════════════
   豪華榮譽卡 .th-star--lux（深色金框 + 大人物 + TOP SALES 徽章）
   ════════════════════════════════════════════════════════════ */
.th-star.th-star--lux {
  background: linear-gradient(165deg, #16243f 0%, #0d1830 55%, #1a2c4a 100%);
  border: none;
  border-radius: 22px;
  padding: 64px 22px 26px;
  overflow: visible;
  box-shadow: 0 18px 50px rgba(8,15,30,.45);
  position: relative;
}
/* 金色漸層描邊 */
.th-star.th-star--lux::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 22px; padding: 2px;
  background: linear-gradient(160deg, var(--accent, #fde047), #d97706 45%, #92400e 70%, var(--accent, #fbbf24));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; z-index: 1;
}
.th-star.th-star--lux:hover { transform: translateY(-10px); box-shadow: 0 28px 70px rgba(8,15,30,.6); }

/* 各名次的 accent 色 */
.th-star--lux.th-star--gold   { --accent: #fbbf24; }
.th-star--lux.th-star--silver { --accent: #e2e8f0; }
.th-star--lux.th-star--bronze { --accent: #f59e0b; }
.th-star--lux.th-star--king   { --accent: #c4b5fd; }
.th-star--lux.th-star--honor  { --accent: #93c5fd; }

/* 名次橫幅（深底金框旗幟） */
.th-star--lux .th-star__rank {
  position: relative; z-index: 3;
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 26px;
  background: linear-gradient(135deg, #1a2c4a, #0d1830);
  border: 1.5px solid var(--accent, #fbbf24);
  color: var(--accent, #fde68a);
  border-radius: 8px;
  font-weight: 800; font-size: .92rem; letter-spacing: .12em;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}

/* TOP SALES 圓徽章（右側） */
.th-star--lux .th-star__seal {
  position: absolute; top: 78px; right: 14px; z-index: 6;
  width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #fde047, #f59e0b 55%, #b45309);
  border: 3px solid #fff8e1;
  box-shadow: 0 4px 16px rgba(217,119,6,.6);
  display: flex; align-items: center; justify-content: center;
  transform: rotate(10deg);
}
.th-star--lux .th-star__seal span {
  color: #7c2d12; font-size: .58rem; font-weight: 900;
  text-align: center; line-height: 1.15; letter-spacing: .05em;
}
.th-star--lux .th-star__seal b { display: block; font-size: .82rem; }

/* 人物照（放大 + 旋轉金光環） */
.th-star--lux .th-star__avatar {
  position: relative; z-index: 2;
  width: 172px; height: 172px; margin: 6px auto 18px;
  border: none; border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0,0,0,.25), 0 0 0 6px var(--accent, #fbbf24), 0 14px 34px rgba(0,0,0,.5);
}
.th-star--lux .th-star__avatar img,
.th-star--lux .th-star__avatar-fallback {
  position: relative; z-index: 2;
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}
.th-star--lux .th-star__ring {
  position: absolute; inset: -16px; border-radius: 50%; z-index: 0;
  background: conic-gradient(from 0deg, transparent 0%, var(--accent, #fbbf24) 12%, transparent 32%, transparent 55%, #fde047 70%, transparent 88%);
  opacity: .85;
  animation: thRingSpin 7s linear infinite;
  filter: blur(1px);
}
@keyframes thRingSpin { to { transform: rotate(360deg); } }

/* 姓名（金色漸層大字） */
.th-star--lux .th-star__name {
  position: relative; z-index: 2;
  font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 900;
  background: linear-gradient(135deg, #fde047 0%, #fbbf24 45%, #f59e0b 100%);
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin: 0 0 8px;
  letter-spacing: .04em;
  text-shadow: 0 2px 12px rgba(245,158,11,.25);
}
/* 職稱／營業處（兩側金線） */
.th-star--lux .th-star__role {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  color: #cbd5e1; font-size: .88rem; margin-bottom: 16px;
}
.th-star--lux .th-star__role::before,
.th-star--lux .th-star__role::after {
  content: ""; width: 18px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent, #fbbf24));
}
.th-star--lux .th-star__role::after { background: linear-gradient(90deg, var(--accent, #fbbf24), transparent); }

/* 數據格（金框雙格） */
.th-star--lux .th-star__stats {
  position: relative; z-index: 2;
  display: flex; gap: 2px; margin: 0 0 14px;
  border: 1.5px solid var(--accent, #fbbf24);
  border-radius: 12px; overflow: hidden;
  background: var(--accent, #fbbf24);
}
.th-star--lux .th-star__stat {
  flex: 1; padding: 11px 8px;
  background: linear-gradient(135deg, #16243f, #0d1830);
  color: #fde68a; font-weight: 800; font-size: .95rem; line-height: 1.3;
}

/* 一句話（金色斜體 + 兩側葉飾） */
.th-star--lux .th-star__quote {
  position: relative; z-index: 2;
  color: #e2e8f0; font-style: italic; font-size: .85rem;
  margin: 4px 0 0; opacity: .92;
}

/* crown / medal 在深色卡上的光暈強化 */
.th-star--lux .th-star__crown { filter: drop-shadow(0 4px 14px rgba(251,191,36,.7)); }

/* 第一名金邊 pulse 在 lux 下用更亮的金光 */
.th-star--lux.th-star--gold { animation: luxGoldGlow 2.8s ease-in-out infinite; }
@keyframes luxGoldGlow {
  0%,100% { box-shadow: 0 18px 50px rgba(8,15,30,.45), 0 0 30px rgba(251,191,36,.25); }
  50%     { box-shadow: 0 18px 50px rgba(8,15,30,.45), 0 0 55px rgba(251,191,36,.6); }
}
.th-star--lux.th-star--gold:hover { animation: none; }

/* 榮譽之星(honor)在 lux 下的勳章光暈 */
.th-star--lux .th-star__medal { filter: drop-shadow(0 4px 12px rgba(37,99,235,.6)); }

/* ════════════════════════════════════════════════════════════
   榮譽榜卡片 v3：淺色協調 + 大人物照（人物為主角）
   覆蓋前面的 .th-star 舊樣式
   ════════════════════════════════════════════════════════════ */
.th-star {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 0;
  overflow: visible;
  border: 1px solid var(--gray-200, #e5e7eb);
  box-shadow: 0 8px 28px rgba(15,23,42,.08);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s ease;
  text-align: center;
}
.th-star::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--accent-grad, linear-gradient(90deg,#fbbf24,#f59e0b));
  border-radius: 20px 20px 0 0; z-index: 4;
}
.th-star:hover { transform: translateY(-10px); box-shadow: 0 24px 56px rgba(15,23,42,.18); }

/* 皇冠 / 勳章浮在卡片頂端中央 */
.th-star__crown, .th-star__medal {
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%); z-index: 6;
}
.th-star__crown { width: 64px; height: 48px; filter: drop-shadow(0 4px 10px rgba(245,158,11,.45)); animation: thCrownFloat 3s ease-in-out infinite; }
.th-star__medal { width: 50px; height: 60px; top: -30px; filter: drop-shadow(0 4px 10px rgba(37,99,235,.4)); }

/* 大人物照（卡片主視覺） */
.th-star__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, #eef2f7, #e2e8f0);
}
.th-star__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform .6s ease;
}
.th-star:hover .th-star__photo img { transform: scale(1.05); }
.th-star__photo-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4.5rem; font-weight: 900; color: #fff;
  background: var(--accent-grad, linear-gradient(135deg,#fbbf24,#f59e0b));
}
.th-star__photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background: linear-gradient(transparent, rgba(15,23,42,.6));
  pointer-events: none;
}

/* 名次徽章（疊照片左下） */
.th-star__badge {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  padding: 5px 16px; border-radius: 999px;
  font-size: .82rem; font-weight: 800; letter-spacing: .04em; color: #fff;
  background: var(--accent-grad, linear-gradient(135deg,#fbbf24,#f59e0b));
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
}

/* CHAMPION 徽章（疊照片頂部置中） */
.th-star__photo .star-champion {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 3; margin: 0;
}

/* 資訊區 */
.th-star__info { padding: 22px 20px 26px; }
.th-star__name { font-size: 1.5rem; font-weight: 900; color: var(--ink,#0f172a); margin: 0 0 6px; letter-spacing: .02em; }
.th-star__role { font-size: .9rem; color: var(--gray-500,#64748b); margin-bottom: 16px; }
.th-star__stats { display: flex; gap: 8px; margin-bottom: 14px; }
.th-star__stat {
  flex: 1; padding: 11px 8px; border-radius: 10px;
  background: var(--accent-soft, #fff7ed);
  color: var(--accent-text, #b45309);
  font-weight: 800; font-size: .9rem; line-height: 1.35;
}
.th-star__quote { font-size: .85rem; color: var(--gray-600,#475569); font-style: italic; margin: 0; line-height: 1.65; }

/* 各名次 accent（淺色協調，呼應網站橘金主色） */
.th-star--gold   { --accent-grad: linear-gradient(135deg,#fbbf24,#f59e0b); --accent-soft:#fff7ed; --accent-text:#b45309; }
.th-star--silver { --accent-grad: linear-gradient(135deg,#cbd5e1,#94a3b8); --accent-soft:#f1f5f9; --accent-text:#475569; }
.th-star--bronze { --accent-grad: linear-gradient(135deg,#fb923c,#c2410c); --accent-soft:#fff7ed; --accent-text:#c2410c; }
.th-star--king   { --accent-grad: linear-gradient(135deg,#a78bfa,#7c3aed); --accent-soft:#f5f3ff; --accent-text:#6d28d9; }
.th-star--honor  { --accent-grad: linear-gradient(135deg,#60a5fa,#2563eb); --accent-soft:#eff6ff; --accent-text:#1d4ed8; }

/* 第一名：保留金光脈動（淺色版較柔和） */
.th-star--gold { animation: thGoldSoft 3s ease-in-out infinite; }
@keyframes thGoldSoft {
  0%,100% { box-shadow: 0 8px 28px rgba(15,23,42,.08); }
  50%     { box-shadow: 0 8px 36px rgba(245,158,11,.4); }
}
.th-star--gold:hover { animation: none; }

/* CHAMPION 徽章移到資訊區（姓名上方，不擋人物臉） */
.th-star__info .star-champion {
  position: static; transform: none;
  display: inline-flex; margin: 0 0 12px;
}

/* 數據格：強制同一行,字級微縮以容納「業績 4,200 萬」 */
.th-star__stat {
  white-space: nowrap;
  font-size: .8rem;
  padding: 11px 6px;
  letter-spacing: -.01em;
}
@media (max-width: 380px) {
  .th-star__stat { font-size: .72rem; }
}
