/* Standalone WordCup styles for aihub.org.tw — no external theme assets. */
:root {
  color-scheme: light;
  --wc-text: #1f2937;
  --wc-muted: #667085;
  --wc-border: #e5e7eb;
  --wc-surface: #ffffff;
  --wc-page: #f7f8fa;
  --wc-link: #1769aa;
  --wc-accent: #25834a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.aihub-wc-page {
  margin: 0;
  color: var(--wc-text);
  background: var(--wc-page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
a { color: var(--wc-link); }
a:hover { color: #0b4f83; }
img { max-width: 100%; height: auto; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* Simple header matching the current AI 潮玩客 site navigation. */
.site-header { background: #fff; border-bottom: 1px solid var(--wc-border); }
.site-header__inner {
  width: min(1200px, 100%);
  min-height: 72px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-brand {
  flex: 0 0 auto;
  color: #202a35;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: .01em;
  line-height: 1.2;
  text-decoration: none;
}
.site-brand:hover { color: #202a35; text-decoration: none; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 3px; }
.site-nav a {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 6px;
  color: #3e4854;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: #111827; background: #f1f4f6; }
.site-main { flex: 1 0 auto; width: 100%; }
.site-footer { margin-top: 36px; background: #fff; border-top: 1px solid var(--wc-border); color: var(--wc-muted); }
.site-footer__inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.site-footer a { color: #344054; font-weight: 650; text-decoration: none; }

/* Main article and list page layout. */
.jeg_main { width: 100%; padding: 10px 0 34px; }
.jeg_container, .container { width: min(1200px, 100%); margin: 0 auto; padding-right: 20px; padding-left: 20px; }
.jeg_section { padding-top: 20px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 28px; }
.jeg_main_content, .jeg_sidebar { min-width: 0; }
.jeg_inner_content { min-width: 0; }
.entry-header { margin: 0 0 14px; }
.jeg_breadcrumbs { color: var(--wc-muted); font-size: 13px; line-height: 1.5; padding: 7px 0; }
.jeg_breadcrumbs a { color: #526171; text-decoration: none; }
.jeg_breadcrumbs a:hover { text-decoration: underline; }

.casino-content-area {
  max-width: 100%;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--wc-border);
  border-radius: 12px;
  background: var(--wc-surface);
  box-shadow: 0 2px 10px rgba(16, 24, 40, .035);
}
.casino-content-area h1 { margin: 0 0 14px; color: #17212b; font-size: clamp(25px, 3vw, 34px); font-weight: 750; line-height: 1.35; }
.casino-content-area h2 { margin: 34px 0 14px; padding-left: 12px; border-left: 4px solid var(--wc-accent); color: #26323d; font-size: 22px; font-weight: 700; line-height: 1.45; }
.casino-content-area h3 { color: #26323d; font-size: 18px; line-height: 1.45; }
.casino-content-area p { margin: 0 0 18px; color: #3f4852; font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.casino-content-area ul, .casino-content-area ol { padding-left: 1.4em; }
.casino-content-area li { margin: 5px 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 22px; color: var(--wc-muted); font-size: 13px; }
.casino-featured-img { display: block; width: 100%; max-height: 440px; margin: 0 0 24px; border-radius: 9px; object-fit: cover; }

.register-btn-wrap { margin: 32px 0; text-align: center; }
.register-btn, .wc-cta-btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 13px 30px;
  background: var(--wc-accent);
  box-shadow: 0 3px 10px rgba(37, 131, 74, .18);
  color: #fff !important;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none !important;
  transition: background .15s ease, transform .15s ease;
}
.register-btn:hover, .wc-cta-btn:hover { transform: translateY(-1px); background: #1d6b3c; color: #fff !important; }

.casino-rating-card { margin: 24px 0; padding: 22px; border-radius: 12px; background: #202b39; color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.rating-header { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.16); }
.rating-score { min-width: 84px; text-align: center; }
.score-number { color: #ffd166; font-size: 48px; font-weight: 800; line-height: 1; }
.score-max { color: rgba(255,255,255,.7); font-size: 16px; }
.rating-stars { color: #ffd166; font-size: 20px; }
.rating-details { display: flex; flex: 1; flex-direction: column; gap: 9px; }
.rating-row { display: flex; align-items: center; gap: 10px; }
.rating-label { width: 78px; flex: 0 0 auto; color: rgba(255,255,255,.83); font-size: 13px; }
.rating-bar-wrap { height: 8px; flex: 1; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.15); }
.rating-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f5a623, #ffd166); }
.rating-val { width: 32px; color: #ffd166; font-size: 13px; font-weight: 650; text-align: right; }
.intro-text { margin: 22px 0; padding: 18px 20px; border-left: 4px solid #4f8fc8; border-radius: 0 8px 8px 0; background: #f2f7fb; color: #344054; }
.pros-cons-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.pros-box, .cons-box { padding: 16px 18px; border-radius: 9px; }
.pros-box { border: 1px solid #a7dfba; background: #f2fbf5; }
.cons-box { border: 1px solid #f2b7b7; background: #fff7f7; }
.pros-title, .cons-title { margin: 0 0 8px; font-size: 15px; font-weight: 750; }
.pros-title { color: #207b43; }
.cons-title { color: #b42318; }
.pros-box ul, .cons-box ul { margin: 0; padding: 0; list-style: none; }
.pros-box li, .cons-box li { padding: 5px 0; border-bottom: 1px solid rgba(0,0,0,.06); color: #424b55; font-size: 14px; }
.pros-box li:last-child, .cons-box li:last-child { border-bottom: 0; }
.casino-section-img-wrap { margin: 20px 0; overflow: hidden; border-radius: 9px; }
.casino-section-img { display: block; width: 100%; height: auto; }
.casino-section-img-wrap figcaption { padding: 8px 14px; background: #f4f6f8; color: var(--wc-muted); font-size: 13px; text-align: center; }
.faq-section { margin: 32px 0; padding: 22px; border: 1px solid var(--wc-border); border-radius: 10px; background: #f8fafb; }
.faq-section h2 { margin-top: 0; border-left-color: #d99a20; }
.faq-item { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--wc-border); }
.faq-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.faq-item h3 { margin: 0 0 6px; color: #2f3a45; font-size: 16px; }
.faq-item p { margin-bottom: 0; color: #4d5863; font-size: 15px; }
.conclusion-box { margin: 28px 0; padding: 18px 20px; border-left: 4px solid var(--wc-accent); border-radius: 0 9px 9px 0; background: #f0f8f2; }
.conclusion-box h2 { margin-top: 0; border-left: 0; padding-left: 0; color: #246b3c; font-size: 20px; }
.conclusion-box p { margin-bottom: 0; }
.related-links { margin: 30px 0 0; padding: 20px; border: 1px solid var(--wc-border); border-radius: 10px; background: #fff; }
.related-links h3 { margin: 0 0 12px; color: #26323d; font-size: 17px; }
.related-links ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.related-links li a { display: inline-block; padding: 6px 12px; border-radius: 99px; background: #f1f4f6; color: #475467; font-size: 13px; text-decoration: none; }
.related-links li a:hover { background: #e3ece7; color: #1d6b3c; }

/* Article sidebar widgets. */
.jeg_sidebar .widget { margin: 0 0 18px; padding: 18px; border: 1px solid var(--wc-border); border-radius: 10px; background: #fff; }
.jeg_sidebar h3, .jeg_sidebar .jeg_footer_title { margin: 0 0 12px; font-size: 17px; }
.jeg_sidebar ul { margin: 0; padding-left: 18px; }
.jeg_sidebar li { margin: 7px 0; }

/* Small icon substitutes; no remote icon font is required. */
.fa { display: inline-block; font-style: normal; }
.fa-calendar::before { content: "▦"; }
.fa-user::before { content: "●"; font-size: .72em; }
.fa-star::before { content: "★"; }
.fa-star-half-o::before { content: "◐"; }
.fa-star-o::before { content: "☆"; }
.fa-check-circle::before { content: "✓"; }
.fa-times-circle::before { content: "×"; }

/* Existing local list-page styles remain in index.php. */
.wc-index-wrap { max-width: 1200px; margin: 0 auto; padding: 28px 20px; }
.wc-hero { padding: 26px 18px 20px; text-align: center; }
.wc-hero h1 { margin: 0 0 8px; font-size: clamp(25px, 3vw, 32px); }
.wc-hero p { color: var(--wc-muted); font-size: 15px; }
.wc-cta-box { margin: 22px 0; padding: 26px 18px; border-radius: 12px; background: #263543; text-align: center; }
.wc-cat-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 14px; }
.wc-cat-tab { padding: 6px 13px; border: 1px solid var(--wc-border); border-radius: 20px; background: #fff; color: #475467; font-size: 13px; text-decoration: none; }
.wc-cat-tab:hover, .wc-cat-tab.active { border-color: var(--wc-accent); background: var(--wc-accent); color: #fff; }
.wc-result-info { color: var(--wc-muted); font-size: 13px; margin-bottom: 14px; }
.wc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.wc-card { display: flex; flex-direction: column; gap: 7px; padding: 15px 13px; border: 1px solid var(--wc-border); border-radius: 10px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.wc-card:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(0,0,0,.09); }
.wc-card-title { color: #26323d; font-size: 14px; font-weight: 700; }
.wc-card-excerpt { flex: 1; color: var(--wc-muted); font-size: 12px; line-height: 1.6; }
.wc-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.wc-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 24px 0 8px; }
.wc-page-btn { display: inline-flex; min-width: 34px; height: 34px; align-items: center; justify-content: center; padding: 0 8px; border: 1px solid var(--wc-border); border-radius: 7px; background: #fff; color: #475467; text-decoration: none; }
.wc-page-btn.active, .wc-page-btn:hover { border-color: var(--wc-accent); background: var(--wc-accent); color: #fff; }
.wc-page-btn.disabled { opacity: .4; pointer-events: none; }
.wc-page-info { color: var(--wc-muted); font-size: 12px; }

@media (max-width: 900px) {
  .site-header__inner { align-items: flex-start; flex-direction: column; gap: 8px; }
  .site-nav { justify-content: flex-start; margin: 0 -8px; }
  .site-nav a { padding: 7px 8px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .wc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body.aihub-wc-page { font-size: 15px; }
  .site-header__inner { padding: 12px 16px 8px; }
  .site-brand { font-size: 21px; }
  .site-nav { gap: 1px; }
  .site-nav a { font-size: 13px; }
  .jeg_container, .container { padding-right: 14px; padding-left: 14px; }
  .jeg_section { padding-top: 12px; }
  .casino-content-area { padding: 18px 16px; }
  .casino-content-area h2 { font-size: 19px; }
  .article-meta { gap: 3px 10px; }
  .rating-header { align-items: flex-start; gap: 12px; }
  .score-number { font-size: 40px; }
  .rating-label { width: 66px; }
  .pros-cons-wrap { grid-template-columns: minmax(0, 1fr); }
  .wc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .wc-card { padding: 12px 10px; }
  .site-footer__inner { align-items: flex-start; flex-direction: column; padding: 18px 16px; }
}
