/* ===== 基礎重置 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-blue: #1a73e8;
  --dark-blue: #0d2137;
  --medium-blue: #0a4a8c;
  --light-blue: #00b4ff;
  --yellow: #ffd700;
  --orange: #ff8c00;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --bg-blue: #0e3460;
  --bg-light-blue: #1565c0;
  --section-bg: #e8f4fd;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Microsoft JhengHei', '微軟正黑體', 'PingFang TC', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ===== 導航欄 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 10px;
}

.header-logo .logo-img {
  height: 45px;
  width: auto;
}

.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  transition: color 0.2s;
  border-radius: 4px;
}

.nav-list > li > a:hover {
  color: var(--primary-blue);
  background: rgba(26, 115, 232, 0.05);
}

.nav-list > li > a .fa-chevron-down {
  font-size: 10px;
  transition: transform 0.2s;
}

.nav-list > li:hover > a .fa-chevron-down {
  transform: rotate(180deg);
}

/* 下拉選單 */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 100;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li {
  position: relative;
}

.dropdown li a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: #444;
  white-space: nowrap;
  transition: all 0.2s;
}

.dropdown li a:hover {
  background: rgba(26, 115, 232, 0.08);
  color: var(--primary-blue);
  padding-left: 20px;
}

.sub-dropdown {
  position: absolute;
  left: 100%;
  top: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.2s ease;
  z-index: 101;
}

.dropdown li:hover .sub-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* 按鈕 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-register, .btn-login {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-register {
  background: var(--primary-blue);
  color: white;
  border: 2px solid var(--primary-blue);
}

.btn-register:hover {
  background: #1557b0;
  border-color: #1557b0;
}

.btn-login {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-login:hover {
  background: var(--primary-blue);
  color: white;
}

.hamburger {
  display: none;
  background: var(--primary-blue);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ===== 手機選單 ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--dark-blue);
  z-index: 2000;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-inner {
  padding: 20px;
}

.mobile-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  float: right;
  margin-bottom: 20px;
}

.mobile-nav-list {
  clear: both;
}

.mobile-nav-list li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  color: white;
  font-size: 15px;
}

.mobile-dropdown {
  display: none;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  margin-bottom: 8px;
}

.mobile-dropdown.open {
  display: block;
}

.mobile-dropdown li a {
  padding: 10px 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.mobile-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.mobile-actions .btn-register,
.mobile-actions .btn-login {
  flex: 1;
  text-align: center;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
  display: none;
}

.mobile-overlay.open {
  display: block;
}

/* ===== Hero 區塊 ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding-top: 80px;
  background: linear-gradient(180deg, #0a1f4e 0%, #1565c0 60%, #0d47a1 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 20px 30px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  color: white;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  letter-spacing: 4px;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(14px, 2vw, 20px);
  color: white;
  letter-spacing: 8px;
  margin-bottom: 40px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline {
  padding: 14px 40px;
  border: 2px solid white;
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  transition: all 0.3s;
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}



/* ===== 優惠區塊 ===== */
.promotions-section {
  background: linear-gradient(180deg, #1a3a6e 0%, #0d2137 50%, #1a3a6e 100%);
  padding: 0 0 40px;
  position: relative;
  overflow: hidden;
}

.wave-img {
  width: 100%;
  display: block;
}

.section-header {
  text-align: center;
  padding: 40px 20px 30px;
}

.section-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.section-title.white {
  color: white;
}

.section-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-blue);
  letter-spacing: 3px;
}

.section-subtitle.yellow {
  color: var(--yellow);
}

.promotions-section .section-title {
  color: white;
}

.promotions-section .section-subtitle {
  color: var(--yellow);
}

.promotions-slider-wrapper {
  position: relative;
  overflow: hidden;
  padding: 0 20px;
}

.promotions-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 10px 0 20px;
}

.promotions-slider::-webkit-scrollbar {
  display: none;
}

.promo-card {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 200px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.3s;
  cursor: pointer;
}

.promo-card:hover {
  transform: translateY(-5px);
}

.promo-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.promo-card p {
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
}

.promo-mascot {
  position: absolute;
  right: -20px;
  top: -40px;
  width: 280px;
  pointer-events: none;
  z-index: 2;
}

.promo-mascot img {
  width: 100%;
}

/* ===== 遊戲分類 ===== */
.games-section {
  background: #1565c0;
  padding: 40px 0;
}

.games-section .section-title {
  color: white;
}

.games-section .section-subtitle {
  color: var(--yellow);
}

.games-grid-wrapper {
  padding: 0 20px;
  overflow: hidden;
}

.games-slider {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.games-slider::-webkit-scrollbar {
  display: none;
}

.game-card {
  flex: 0 0 calc(20% - 4px);
  min-width: 160px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.game-card:hover img {
  transform: scale(1.05);
}

.game-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 20px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.game-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.game-card-overlay span {
  color: white;
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ===== 五大步驟 ===== */
.steps-section {
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.steps-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.steps-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.step-item {
  flex: 0 0 auto;
  text-align: center;
  transition: transform 0.3s;
}

.step-item:hover {
  transform: translateY(-8px);
}

.step-item img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.steps-mascot {
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 250px;
  pointer-events: none;
}

.steps-mascot-img {
  width: 100%;
}

/* ===== 全球熱門賽事 ===== */
.events-section {
  background: #f5f8ff;
  padding: 60px 20px;
}

.events-slider-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.events-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 10px 0 20px;
}

.events-slider::-webkit-scrollbar {
  display: none;
}

.event-card {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 280px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 2px solid #e0e8ff;
  transition: all 0.3s;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.event-card-header {
  padding: 16px;
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  color: white;
}

.event-card-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.event-card-header p {
  font-size: 13px;
  opacity: 0.9;
}

.event-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-blue);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.slider-btn:hover {
  background: #1557b0;
  transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: -20px; }
.next-btn { right: -20px; }

/* ===== APP下載 ===== */
.app-section {
  background: url('../images/home02-1_copyright-11.webp') center center / cover no-repeat;
  padding: 60px 20px 0;
  position: relative;
  overflow: hidden;
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.app-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.app-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-blue);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.app-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 24px;
}

.app-store-btns {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.app-store-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.2s;
}

.app-store-btn:hover {
  transform: scale(1.05);
}

.app-store-btn img {
  height: 40px;
  width: auto;
}

.app-store-btn span {
  font-size: 12px;
  color: #333;
  font-weight: 500;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-blue);
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-download:hover {
  background: #1557b0;
  transform: translateY(-2px);
}

.app-center {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.app-phone {
  width: 100%;
  max-width: 280px;
}

.app-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-feature details {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.app-feature details summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  list-style: none;
}

.app-feature details summary::-webkit-details-marker {
  display: none;
}

.app-feature details summary img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
}

.app-feature details p {
  padding: 0 16px 14px;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

.app-bottom-scene {
  margin-top: 20px;
}

.app-scene-img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  object-position: center bottom;
}

/* ===== 評價區塊 ===== */
.review-section {
  background: white;
  padding: 60px 20px;
}

.review-text {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

.review-image-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.review-img {
  width: 100%;
  border-radius: 16px;
}

.review-badges {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.review-badge {
  position: absolute;
  background: var(--yellow);
  border-radius: 12px;
  padding: 10px 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.badge-score {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
}

.badge-label {
  font-size: 12px;
  font-weight: 600;
  color: #333;
}

.badge-1 { left: 5%; top: 55%; }
.badge-2 { right: 5%; top: 55%; }
.badge-3 { left: 5%; bottom: 5%; }
.badge-4 { right: 5%; bottom: 5%; }

/* ===== 新聞區塊 ===== */
.news-section {
  background: url('../images/Casino-NEWS_copyright.webp') center center / cover no-repeat;
  padding: 60px 20px;
  position: relative;
}
.news-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 33, 55, 0.6);
  z-index: 0;
}
.news-section > * {
  position: relative;
  z-index: 1;
}

.news-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.news-item {
  display: block;
  padding: 12px 16px;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s;
  line-height: 1.5;
}

.news-item:hover {
  color: var(--yellow);
  padding-left: 20px;
}

.news-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  gap: 0;
  transition: transform 0.3s;
}

.news-card:hover {
  transform: translateY(-3px);
}

.news-card img {
  width: 160px;
  height: 100px;
  object-fit: cover;
  flex-shrink: 0;
}

.news-card-content {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-card-content h3 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-date {
  font-size: 12px;
  color: #888;
}

/* ===== 熱門遊戲 ===== */
.game-rank-section {
  background: url('../images/RANK_copyright.webp') center center / cover no-repeat;
  padding: 60px 20px;
  position: relative;
}
.game-rank-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 33, 55, 0.75);
  z-index: 0;
}
.game-rank-section > * {
  position: relative;
  z-index: 1;
}

.game-rank-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.rank-tab {
  padding: 10px 24px;
  border: 2px solid rgba(255,255,255,0.3);
  background: transparent;
  color: rgba(255,255,255,0.7);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.rank-tab.active,
.rank-tab:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: white;
}

.rank-content {
  display: none;
}

.rank-content.active {
  display: block;
}

.rank-slider-wrapper {
  overflow: hidden;
  padding: 0 10px;
}

.rank-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 0;
}

.rank-slider::-webkit-scrollbar {
  display: none;
}

.rank-game-item {
  flex: 0 0 calc(16.666% - 10px);
  min-width: 140px;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s;
}

.rank-game-item:hover {
  transform: scale(1.05);
}

.rank-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* 真人遊戲行 */
.rank-live-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 0;
  margin-top: 20px;
}

.rank-live-row::-webkit-scrollbar {
  display: none;
}

.rank-live-item {
  flex: 0 0 calc(14.28% - 10px);
  min-width: 100px;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
}

.rank-live-item:hover {
  transform: scale(1.05);
}

.rank-live-item img {
  width: 100%;
  height: 60px;
  object-fit: contain;
  background: rgba(255,255,255,0.1);
  padding: 8px;
}

/* ===== 優勢比較 ===== */
.advantage-section {
  background: #f0f7ff;
  padding: 60px 20px;
}

.advantage-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.advantage-mascot {
  position: absolute;
  left: -60px;
  bottom: -20px;
  width: 200px;
  z-index: 2;
}

.advantage-mascot-img {
  width: 100%;
}

.advantage-table-wrapper {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.advantage-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  min-width: 500px;
}

.advantage-table th {
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.advantage-table th:first-child {
  background: #e8f0fe;
  color: #333;
}

.advantage-table th.highlight-col {
  background: var(--primary-blue);
  color: white;
}

.advantage-table th:last-child {
  background: #f5f5f5;
  color: #666;
}

.advantage-table td {
  padding: 14px 20px;
  font-size: 14px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.advantage-table td:first-child {
  background: #f8f9ff;
  font-weight: 600;
  color: #333;
}

.advantage-table td.highlight-col {
  background: rgba(26, 115, 232, 0.05);
  color: var(--primary-blue);
  font-weight: 600;
}

.advantage-table tr:hover td {
  background: rgba(26, 115, 232, 0.03);
}

/* ===== 旅平險保障 ===== */
.insurance-section {
  background: url('../images/INSURANCE-2_copyright.webp') center center / cover no-repeat;
  padding: 40px 20px 0;
  position: relative;
  overflow: hidden;
}

.insurance-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.insurance-banner-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.insurance-banner-img {
  width: 100%;
  display: block;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.insurance-ship {
  position: absolute;
  right: -80px;
  bottom: -20px;
  width: 220px;
  z-index: 2;
}

.insurance-ship-img {
  width: 100%;
}

.insurance-chest {
  position: absolute;
  left: -60px;
  bottom: -10px;
  width: 140px;
  z-index: 2;
}

.insurance-chest-img {
  width: 100%;
}

.insurance-wave {
  margin-top: 20px;
}

.insurance-wave .wave-img {
  width: 100%;
  display: block;
}

/* ===== Q&A ===== */
.qa-section {
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.qa-container {
  max-width: 1200px;
  margin: 0 auto;
}

.qa-header-area {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.btn-qa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--text-dark);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  margin-top: 16px;
  transition: all 0.3s;
}

.btn-qa:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

.qa-mascot {
  position: absolute;
  right: 0;
  top: -20px;
  width: 150px;
  pointer-events: none;
}

.qa-mascot img {
  width: 100%;
}

.qa-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.qa-item {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: all 0.3s;
}

.qa-item[open] {
  background: rgba(255,255,255,0.15);
}

.qa-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: white;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.qa-item summary::-webkit-details-marker {
  display: none;
}

.qa-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  flex-shrink: 0;
  color: var(--yellow);
  transition: transform 0.3s;
}

.qa-item[open] summary::after {
  transform: rotate(45deg);
}

.qa-answer {
  padding: 0 20px 16px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  line-height: 1.7;
}

.qa-answer a {
  color: var(--yellow);
  text-decoration: underline;
  display: block;
  margin-top: 8px;
}

/* ===== 關於富遊 ===== */
.about-section {
  background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 100%);
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.about-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-mascot-img {
  width: 100%;
  max-width: 400px;
}

.about-title {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.about-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-blue);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.about-text {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 30px;
}

.btn-experience {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--text-dark);
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s;
}

.btn-experience:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

/* ===== 合作夥伴 ===== */
.partners-section {
  background: var(--dark-blue);
  padding: 30px 0;
  overflow: hidden;
}

.partners-track-wrapper {
  overflow: hidden;
}

.partners-track {
  display: flex;
  gap: 0;
  animation: partnersSlide 30s linear infinite;
}

@keyframes partnersSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-60%); }
}

.partners-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0.8);
  transition: filter 0.3s;
}

.partners-img:hover {
  filter: brightness(1);
}

/* ===== 頁腳 ===== */
.footer {
  background: var(--dark-blue);
  color: rgba(255,255,255,0.8);
  padding: 50px 20px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
  color: white;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-blue);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--yellow);
}

.footer-app-btns {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.footer-app-btns img {
  height: 36px;
  width: auto;
}

.footer-social {
  max-width: 1200px;
  margin: 30px auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-social p {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 15px;
  transition: all 0.3s;
}

.social-icons a:hover {
  background: var(--primary-blue);
  transform: translateY(-3px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.dmca-badge {
  background: #f0ad4e;
  color: #333;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

/* ===== 回到頂部 ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary-blue);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: #1557b0;
  transform: translateY(-3px);
}

/* ===== 響應式設計 ===== */
@media (max-width: 1100px) {
  .nav-list > li > a {
    padding: 10px 8px;
    font-size: 13px;
  }
  
  .advantage-mascot {
    display: none;
  }
}

@media (max-width: 900px) {
  .header-nav {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero-title {
    font-size: 40px;
  }
  
  .app-container {
    grid-template-columns: 1fr;
  }
  
  .app-center {
    order: -1;
  }
  
  .news-container {
    grid-template-columns: 1fr;
  }
  
  .qa-columns {
    grid-template-columns: 1fr;
  }
  
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about-mascot {
    order: -1;
    text-align: center;
  }
  
  .about-mascot-img {
    margin: 0 auto;
  }
  
  .insurance-banner-wrapper {
    max-width: 100%;
  }
  
  .insurance-ship {
    right: -40px;
    width: 160px;
  }
  
  .insurance-chest {
    left: -30px;
    width: 100px;
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .promo-card {
    flex: 0 0 calc(50% - 10px);
  }
  
  .event-card {
    flex: 0 0 calc(80% - 10px);
  }
  
  .game-card {
    flex: 0 0 calc(33.333% - 4px);
  }
  
  .rank-game-item {
    flex: 0 0 calc(25% - 10px);
  }
}

@media (max-width: 600px) {
  .header-inner {
    padding: 8px 15px;
  }
  
  .header-logo .logo-img {
    height: 36px;
  }
  
  .btn-register, .btn-login {
    padding: 7px 14px;
    font-size: 13px;
  }
  
  .hero-section {
    padding-top: 65px;
  }
  
  .hero-title {
    font-size: 32px;
    letter-spacing: 2px;
  }
  
  .hero-subtitle {
    font-size: 12px;
    letter-spacing: 4px;
  }
  
  .hero-buttons {
    gap: 12px;
  }
  
  .btn-outline {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .promo-card {
    flex: 0 0 calc(80% - 10px);
  }
  
  .game-card {
    flex: 0 0 calc(50% - 4px);
  }
  
  .steps-images {
    gap: 12px;
  }
  
  .step-item img {
    width: 80px;
    height: 80px;
  }
  
  .steps-mascot {
    display: none;
  }
  
  .event-card {
    flex: 0 0 calc(90% - 10px);
  }
  
  .review-badge {
    padding: 6px 10px;
  }
  
  .badge-score {
    font-size: 14px;
  }
  
  .badge-label {
    font-size: 10px;
  }
  
  .insurance-ship {
    right: -20px;
    width: 120px;
  }
  
  .insurance-chest {
    left: -15px;
    width: 80px;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  .qa-mascot {
    display: none;
  }
  
  .rank-game-item {
    flex: 0 0 calc(33.333% - 10px);
    min-width: 100px;
  }
  
  .news-card {
    flex-direction: column;
  }
  
  .news-card img {
    width: 100%;
    height: 150px;
  }
  
  .prev-btn { left: 5px; }
  .next-btn { right: 5px; }
}

@media (max-width: 400px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .insurance-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== 動畫效果 ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===== 滾動條樣式 ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 3px;
}
