/* 
  Site: site-025
  Theme: betting-systems-workshop
  Primary: #6B2A0A (Deep Brown)
  Secondary: #15803D (Deep Green)
  Accent: #FEF2F2 (Light Pink)
*/

:root {
  --primary-color: #6B2A0A;
  --secondary-color: #15803D;
  --accent-color: #FEF2F2;
  --text-color: #333333;
  --light-gray: #f5f5f5;
  --dark-gray: #666666;
  --border-color: #e0e0e0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --font-heading: 'Roboto Condensed', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--text-color);
  background-color: #ffffff;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background-color: white;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
}

header h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--primary-color);
  margin: 0;
}

header nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

header nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition-fast);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

header nav ul li a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

header nav ul li a.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Tagline */
.tagline {
  font-size: 1.1rem;
  color: var(--secondary-color);
  font-style: italic;
  margin-top: 0.5rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10,0 L 0,0 0,10" fill="none" stroke="%23ffffff" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>');
  opacity: 0.1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.cta-button:hover {
  background-color: #fde6e6;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: var(--light-gray);
}

.features h2 {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-item {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition-normal);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-item h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.feature-item p {
  line-height: 1.6;
}

/* Sections */
section {
  padding: 4rem 0;
}

section.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

section.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

section.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--dark-gray);
  line-height: 1.6;
}

/* Card Grid Styles */
.card-grid, .feature-grid, .guide-grid, .review-grid, .article-grid {
  display: grid;
  gap: 1.5rem;
}

/* Article/Card Styles */
.article-card, .guide-card, .review-card, .feature-item {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.article-card:hover, .guide-card:hover, .review-card:hover, .feature-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.article-card h3, .guide-card h3, .review-card h3, .feature-item h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  padding: 0 1.5rem;
}

.article-card p, .guide-card p, .review-card p, .feature-item p {
  flex-grow: 1;
  padding: 0 1.5rem 1.5rem;
  line-height: 1.6;
  color: var(--dark-gray);
}

.read-more {
  display: inline-block;
  margin: 0 1.5rem 1.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--secondary-color);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.read-more:hover {
  background-color: var(--primary-color);
}

/* Latest Sections */
.latest {
  background-color: var(--light-gray);
}

.latest .section-header {
  margin-bottom: 2rem;
}

.latest .card-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Forms */
input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(107, 42, 10, 0.1);
}

button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-fast);
}

button:hover {
  background-color: var(--secondary-color);
}

/* Article Pages */
.article-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-header {
  text-align: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.article-header h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.article-header .article-lead {
  font-size: 1.2rem;
  color: var(--dark-gray);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.article-content {
  margin-bottom: 3rem;
}

.article-section {
  margin-bottom: 2.5rem;
}

.article-section h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  border-left: 4px solid var(--secondary-color);
  padding-left: 1rem;
}

.article-section p {
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.article-images {
  margin: 2rem 0;
  text-align: center;
}

.article-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin: 1rem 0;
}

.cta-box {
  text-align: center;
  margin: 3rem 0;
  padding: 2rem;
  background-color: var(--light-gray);
  border-radius: var(--radius-lg);
}

.faq-section {
  margin-top: 3rem;
}

.faq-section h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  border-left: 4px solid var(--secondary-color);
  padding-left: 1rem;
}

.faq-item {
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.faq-item h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.faq-item p {
  line-height: 1.6;
  color: var(--text-color);
}

/* Guide/Review Pages */
.guides-header, .reviews-header {
  text-align: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.guides-header h2, .reviews-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.guides-header p, .reviews-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--dark-gray);
  line-height: 1.6;
}

/* About Page */
.about-section, .methodology-section, .disclosure-section, .responsible-gambling-section {
  margin-bottom: 3rem;
}

.about-section h2, .methodology-section h2, .disclosure-section h2, .responsible-gambling-section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  border-left: 4px solid var(--secondary-color);
  padding-left: 1rem;
}

.about-section p, .methodology-section p, .disclosure-section p, .responsible-gambling-section p {
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

/* Footer Styles */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 0;
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

footer h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

footer p {
  line-height: 1.6;
  opacity: 0.8;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 0.75rem;
}

footer ul li a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition-fast);
}

footer ul li a:hover {
  opacity: 1;
}

footer .footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* 404 Page */
.error-section {
  text-align: center;
  padding: 4rem 0;
}

.error-section h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.error-section p {
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 1rem;
    min-height: auto;
    padding: 1.5rem 0;
  }
  
  header nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero {
    padding: 4rem 0;
  }
  
  .hero h2 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  section {
    padding: 2.5rem 0;
  }
  
  .article-header h1 {
    font-size: 2rem;
  }
  
  footer .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  footer h4 {
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .article-header h1 {
    font-size: 1.8rem;
  }
  
  .article-section h2 {
    font-size: 1.5rem;
  }
  
  .faq-item h3 {
    font-size: 1.2rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.text-muted {
  color: var(--dark-gray);
}

.bg-light {
  background-color: var(--light-gray);
}

.bg-primary {
  background-color: var(--primary-color);
  color: white;
}

.bg-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 2.5rem; }

/* Print Styles */
@media print {
  body {
    background-color: white;
    color: black;
  }
  
  header, footer, .cta-button, .read-more {
    display: none;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
}
.site-header { background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(10px); }
.nav-shell { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.brand { font-family: 'Roboto Slab', serif; font-size: 1.2rem; font-weight: 700; color: var(--primary-color); text-decoration: none; }
.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav a { color: var(--text-color); text-decoration: none; font-weight: 600; }
.hero-section { padding: 56px 0; background: linear-gradient(135deg, rgba(107,42,10,0.94), rgba(21,128,61,0.92)); color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 30px; align-items: center; }
.hero-copy { display: grid; gap: 16px; }
.hero-panel { display: block; }
.hero-image { width: 100%; border-radius: 20px; box-shadow: var(--shadow-lg); object-fit: cover; }
.section-block { padding: 44px 0; }
.section-kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: var(--secondary-color); font-weight: 700; }
.section-title { font-family: 'Roboto Slab', serif; font-size: 2rem; color: var(--primary-color); margin: 10px 0 12px; }
.section-intro, .lede { color: var(--dark-gray); font-size: 1.02rem; line-height: 1.85; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.module-card { background: #fff; border: 1px solid var(--border-color); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.module-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.module-card a { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.article-thumb { width: 100%; aspect-ratio: 1216 / 640; object-fit: cover; }
.card-copy { padding: 18px; display: grid; gap: 8px; }
.article-shell { padding: 42px 0 64px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.article-body { background: #fff; border: 1px solid var(--border-color); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-sm); }
.article-body h2 { font-family: 'Roboto Slab', serif; font-size: 1.5rem; color: var(--primary-color); margin: 30px 0 12px; }
.article-body p, .article-body li { line-height: 1.9; }
.inline-visual { width: 100%; border-radius: 18px; margin: 18px 0 10px; object-fit: cover; box-shadow: var(--shadow-md); }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.primary { background: var(--secondary-color); color: #fff; }
.faq-block { margin-top: 26px; display: grid; gap: 12px; }
.faq-block details { border-top: 1px solid var(--border-color); padding-top: 12px; }
.score-table { width: 100%; border-collapse: collapse; background: #fffaf7; border-radius: 16px; overflow: hidden; margin-bottom: 22px; }
.score-table th, .score-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border-color); }
.score-table th { width: 38%; color: var(--primary-color); }
.pros-cons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 22px 0; }
.pros-cons > div { background: #fffaf7; border: 1px solid var(--border-color); border-radius: 18px; padding: 18px; }
.site-footer { padding: 34px 0 44px; background: #2A160B; color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .hero-grid, .card-grid, .pros-cons, .footer-grid { grid-template-columns: 1fr; } .nav-shell { flex-direction: column; padding: 16px 0; } }

/* === a11y-override v1 === */
/* 批量抬 CTA tap target 到 WCAG AA 44px，小字 12→14px */
.btn, a.btn, button.btn, .nav-cta, .cta, a.cta, button.cta,
[class*="btn-"], [class*="cta-"] {
  min-height: 44px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 15px;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-text, .btn-text:hover { min-height: auto; padding-top: 6px; padding-bottom: 6px; }
.rank-body p, .rank-score small, small, .footer small, footer small,
.disclaimer, .copyright, .muted-small {
  font-size: 14px;
  line-height: 1.6;
}
@media (max-width: 600px) {
  .btn, .nav-cta, .cta, [class*="btn-"] {
    min-height: 48px;
    font-size: 16px;
    width: auto;
  }
}
/* === end a11y-override === */

/* === a11y-override v2 === */
/* R2 mobile 深修：image overlay 吃色 / 灰字對比 / 圖片變形 */

/* 1. image overlay 文字防吃色：凡是疊在圖片上嘅文字都加 text-shadow 同漸層罩 */
.hero, .hero-card, .card-image, .guide-card, [class*="card-"] {
  position: relative;
}
.hero h1, .hero h2, .hero p,
.card-image + *, .guide-card h3, .guide-card p,
[class*="overlay"], [class*="-on-image"] {
  text-shadow: 0 1px 3px rgba(0,0,0,0.6), 0 0 8px rgba(0,0,0,0.4);
}
.hero::after, .guide-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
  border-radius: inherit;
}
.hero > *, .guide-card > * { position: relative; z-index: 1; }

/* 2. 灰字對比：所有淺灰字統一抬到 #555 (7:1+) */
.muted, .text-muted, .sub, .secondary-text,
[class*="muted"], [class*="-small"], small, .footer small, footer small,
.meta, .card-meta, .label-small, .caption {
  color: #555555 !important;
}
/* --text-muted token 亦強制更新 */
:root {
  --text-muted: #555555 !important;
  --text-secondary: #444444 !important;
}

/* 3. 圖片寬高比鎖定：避免手機下被縱向拉伸 */
.hero img, .card img, .card-image img, .guide-card img,
[class*="-image"] img, article img, .thumb img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  height: auto;
  display: block;
}
.logo img, .icon img, .avatar img { aspect-ratio: auto; }

/* 4. 手機專屬加強 */
@media (max-width: 600px) {
  .hero h1, .hero h2 { text-shadow: 0 2px 4px rgba(0,0,0,0.75); }
  img { max-width: 100%; height: auto; }
}
/* === end a11y-override v2 === */

/* === hero-upgrade v1 === */
/* Hero 視覺升級：漸層遮罩 + 微光 + glow CTA */

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: radial-gradient(
    ellipse at 30% 20%,
    rgba(242, 181, 68, 0.06) 0%,
    transparent 50%
  );
  pointer-events: none;
  animation: hero-shimmer 12s ease-in-out infinite;
}
@keyframes hero-shimmer {
  0%, 100% { transform: translateX(-5%); opacity: 0.6; }
  50% { transform: translateX(5%); opacity: 1; }
}

.hero h1 {
  background: linear-gradient(135deg, var(--primary, #17324D) 0%, #2a5a8a 50%, var(--primary, #17324D) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hero-title-shine 6s ease-in-out infinite;
}
@keyframes hero-title-shine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero .button,
.hero .btn,
.hero .btn-primary,
.hero a[class*="button"] {
  position: relative;
  box-shadow: 0 0 20px rgba(242, 181, 68, 0.3), 0 4px 12px rgba(0,0,0,0.2);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.hero .button:hover,
.hero .btn:hover,
.hero .btn-primary:hover,
.hero a[class*="button"]:hover {
  box-shadow: 0 0 30px rgba(242, 181, 68, 0.5), 0 6px 20px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.hero-image,
.hero img:not(.brand-mark):not([class*="icon"]) {
  transition: transform 0.6s ease;
}
.hero:hover .hero-image,
.hero:hover img:not(.brand-mark):not([class*="icon"]) {
  transform: scale(1.03);
}

.hero-section { position: relative; overflow: hidden; }
.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: -50%; width: 200%; height: 100%;
  background: radial-gradient(ellipse at 30% 20%, rgba(242,181,68,0.06) 0%, transparent 50%);
  pointer-events: none;
  animation: hero-shimmer 12s ease-in-out infinite;
}

@media (max-width: 600px) {
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 28px; line-height: 1.3; }
  .hero .lede { font-size: 15px; }
}
/* === end hero-upgrade === */

