/**
 * 1788WIN 現代科技風格 CSS
 * 設計靈感：微軟 Fluent Design、扁平化設計
 * 特點：網格對齊、充足留白、純色塊、微妙陰影
 */

/* ==================== CSS 變數 ==================== */
:root {
  /* 主色調 - 科技藍 */
  --primary-blue: #0078D4;
  --primary-blue-dark: #005A9E;
  --primary-blue-light: #50A0E8;

  /* 背景色 */
  --bg-white: #FFFFFF;
  --bg-light: #F3F2F1;
  --bg-lighter: #FAFAFA;

  /* 文字色 */
  --text-primary: #323130;
  --text-secondary: #605E5C;
  --text-tertiary: #8A8886;

  /* 強調色 */
  --accent-cyan: #00BCF2;
  --accent-green: #107C10;
  --accent-orange: #FFB900;

  /* 陰影 */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.12);

  /* 間距系統（8px 基準） */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;

  /* 圓角 */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* 字體大小 */
  --font-xs: 12px;
  --font-sm: 14px;
  --font-base: 16px;
  --font-lg: 20px;
  --font-xl: 24px;
  --font-2xl: 32px;
  --font-3xl: 40px;
  --font-4xl: 48px;
  --font-5xl: 60px;
}

/* ==================== 全域重置 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", "Microsoft JhengHei", "PingFang TC", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--font-base);
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==================== 容器系統 ==================== */
.tech-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.tech-section {
  padding: var(--space-10) 0;
}

/* ==================== 導航欄 ==================== */
.tech-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--bg-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-xs);
}

.tech-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  height: 64px;
  padding: 0;
  margin: 0;
}

.tech-logo {
  font-size: var(--font-xl);
  font-weight: 600;
  color: var(--primary-blue);
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.tech-nav-links {
  display: flex !important;
  gap: var(--space-4);
  list-style: none;
  margin: 0 !important;
  margin-left: auto !important;
  margin-right: var(--space-3) !important;
  padding: 0;
  align-items: center;
}

.tech-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-sm);
  font-weight: 500;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  display: inline-block;
}

.tech-nav-link:hover {
  color: var(--primary-blue);
  background: var(--bg-light);
}

/* ==================== 按鈕系統 ==================== */
.tech-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: var(--font-base);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.tech-btn-primary:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: white;
}

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

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

.tech-btn-lg {
  padding: 16px 32px;
  font-size: var(--font-lg);
}

/* ==================== Hero 區塊 ==================== */
.tech-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: var(--space-5) 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.tech-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(255, 185, 0, 0.1), transparent 50%);
  pointer-events: none;
}

.tech-hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.tech-hero-title {
  font-size: var(--font-5xl);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-3);
  letter-spacing: -1px;
}

.tech-hero-subtitle {
  font-size: var(--font-xl);
  font-weight: 400;
  margin-bottom: var(--space-4);
  opacity: 0.95;
}

.tech-hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.tech-hero-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  font-size: var(--font-sm);
  background: rgba(255, 185, 0, 0.1);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 185, 0, 0.2);
}

.tech-hero-feature i {
  color: var(--accent-orange);
  font-size: var(--font-lg);
}

.tech-hero-actions {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
}

.tech-hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.tech-hero-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  width: 100%;
}

/* ==================== 內頁 Banner ==================== */
.tech-page-hero {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #2d2d2d 100%);
  padding: var(--space-8) 0;
  color: white;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid rgba(255, 185, 0, 0.2);
}

/* 金色漸層光暈 */
.tech-page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 185, 0, 0.25) 0%, rgba(255, 215, 0, 0.1) 30%, transparent 70%);
  pointer-events: none;
  animation: float-glow 8s ease-in-out infinite;
}

/* 裝飾性幾何圖形 */
.tech-page-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 185, 0, 0.1) 0%, transparent 60%);
  pointer-events: none;
  animation: float-glow 10s ease-in-out infinite reverse;
}

@keyframes float-glow {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-20px, 20px) scale(1.1);
    opacity: 0.5;
  }
}

.tech-page-hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.tech-page-hero-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(255, 185, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
  border-radius: 20px;
  border: 3px solid rgba(255, 185, 0, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  font-size: 3rem;
  color: #FFD700;
  box-shadow: 0 10px 30px rgba(255, 185, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
}

.tech-page-hero-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 185, 0, 0.3), transparent);
  z-index: -1;
  filter: blur(10px);
}

.tech-page-hero-title {
  font-size: var(--font-5xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-3);
  background: linear-gradient(135deg, #FFFFFF 0%, #FFD700 50%, #FFA500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
  letter-spacing: -0.5px;
}

.tech-page-hero-subtitle {
  font-size: var(--font-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-5);
  line-height: 1.8;
  font-weight: 300;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.tech-page-hero-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
}

/* ==================== 信任指標 ==================== */
.tech-trust {
  background: var(--bg-white);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--bg-light);
}

.tech-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  text-align: center;
}

.tech-trust-item {
  padding: var(--space-3);
}

.tech-trust-number {
  font-size: var(--font-3xl);
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: var(--space-1);
}

.tech-trust-label {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==================== 標題組件 ==================== */
.tech-section-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.tech-section-title {
  font-size: var(--font-3xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.tech-section-subtitle {
  font-size: var(--font-lg);
  color: var(--text-secondary);
}

/* ==================== 卡片系統 ==================== */
.tech-card {
  background: var(--bg-white);
  border: 1px solid var(--bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s ease;
}

.tech-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* ==================== 優惠卡片 ==================== */
.tech-promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.tech-promo-card {
  position: relative;
}

.tech-promo-badge {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  background: var(--accent-orange);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-md);
  font-size: var(--font-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tech-promo-header {
  background: var(--primary-blue);
  color: white;
  padding: var(--space-5);
  text-align: center;
}

.tech-promo-icon {
  font-size: 56px;
  margin-bottom: var(--space-2);
}

.tech-promo-title {
  font-size: var(--font-xl);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.tech-promo-amount {
  font-size: var(--font-2xl);
  font-weight: 700;
}

.tech-promo-body {
  padding: var(--space-4);
}

.tech-promo-desc {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
  line-height: 1.6;
}

.tech-promo-features {
  list-style: none;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--bg-light);
}

.tech-promo-features li {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) 0;
  font-size: var(--font-sm);
  color: var(--text-primary);
}

.tech-promo-features i {
  color: var(--accent-green);
  font-size: var(--font-base);
}

/* ==================== 遊戲卡片 ==================== */
.tech-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.tech-game-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.tech-game-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: white;
  transition: transform 0.3s ease;
}

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

.tech-game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-game-card:hover .tech-game-overlay {
  opacity: 1;
}

.tech-game-title {
  color: white;
  font-size: var(--font-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.tech-game-btn {
  background: var(--primary-blue);
  color: white;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tech-game-btn:hover {
  background: var(--primary-blue-light);
  transform: scale(1.05);
  color: white;
}

/* ==================== Footer ==================== */
.tech-footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-6) 0 var(--space-4);
  margin-top: var(--space-10);
}

.tech-footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-5);
}

.tech-footer-brand {
  font-size: var(--font-xl);
  font-weight: 600;
  color: white;
  margin-bottom: var(--space-2);
}

.tech-footer-desc {
  font-size: var(--font-sm);
  line-height: 1.6;
  opacity: 0.8;
}

.tech-footer-title {
  font-size: var(--font-base);
  font-weight: 600;
  color: white;
  margin-bottom: var(--space-2);
}

.tech-footer-links {
  list-style: none;
}

.tech-footer-links li {
  margin-bottom: var(--space-1);
}

.tech-footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--font-sm);
  transition: color 0.2s ease;
}

.tech-footer-links a:hover {
  color: var(--primary-blue-light);
}

.tech-footer-bottom {
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: var(--font-xs);
  opacity: 0.6;
}

/* ==================== 響應式設計 ==================== */
@media (max-width: 992px) {
  .tech-hero-title {
    font-size: var(--font-4xl);
  }

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

  .tech-page-hero-title {
    font-size: var(--font-4xl);
  }

  .tech-page-hero-subtitle {
    font-size: var(--font-lg);
  }

  .tech-page-hero-icon {
    width: 90px;
    height: 90px;
    font-size: 2.5rem;
  }

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

  .tech-promo-grid {
    grid-template-columns: 1fr;
  }

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

  .tech-footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --space-10: 48px;
    --space-8: 40px;
  }

  .tech-nav-links {
    display: none;
  }

  .tech-hero-title {
    font-size: var(--font-3xl);
  }

  .tech-hero-subtitle {
    font-size: var(--font-lg);
  }

  .tech-hero-features {
    grid-template-columns: 1fr;
  }

  .tech-hero-actions {
    flex-direction: column;
  }

  .tech-page-hero {
    padding: var(--space-6) 0;
  }

  .tech-page-hero-title {
    font-size: var(--font-3xl);
  }

  .tech-page-hero-subtitle {
    font-size: var(--font-base);
  }

  .tech-page-hero-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  .tech-page-hero-actions {
    flex-direction: column;
  }

  .tech-btn {
    width: 100%;
  }

  .tech-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  .tech-trust-number {
    font-size: var(--font-2xl);
  }

  .tech-section-title {
    font-size: var(--font-2xl);
  }

  .tech-game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  .tech-footer-content {
    grid-template-columns: 1fr;
  }
}

/* ==================== 工具類別 ==================== */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
