/*
Theme Name: BetOne SEO Theme
Theme URI: https://betonego.com/
Author: Cursor AI
Description: BetOne娛樂城 WordPress SEO theme for Hostinger. Includes cloned homepage UI, technical SEO templates, SEO articles and local assets.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: Proprietary
Text Domain: betone-seo-theme
*/

:root {
  --betone-gold: #d1a14b;
  --betone-dark: #161b2d;
  --betone-text: #171717;
  --betone-muted: #666b78;
  --betone-line: rgba(22, 27, 45, 0.12);
  --betone-card: #ffffff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Roboto, "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif; color: var(--betone-text); background: #fff; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.skip { position: absolute; left: -999px; top: 0; }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--betone-line); backdrop-filter: blur(12px); }
.header-inner { min-height: 94px; width: min(1320px, calc(100% - 48px)); margin: 0 auto; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 16px; font-weight: 900; font-size: clamp(24px, 2.2vw, 34px); color: #1c2437; white-space: nowrap; }
.brand img { width: 76px; object-fit: contain; }
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 24px; font-weight: 800; }
.nav-item { position: relative; padding: 32px 0; }
.nav-item > a { white-space: nowrap; }
.nav-item:hover > a { color: var(--betone-gold); }
.submenu { display: none; position: absolute; left: 0; top: 88px; min-width: 210px; background: #fff; border: 1px solid var(--betone-line); box-shadow: 0 18px 42px rgba(0,0,0,.14); padding: 10px 0; border-radius: 10px; }
.nav-item:hover .submenu { display: block; }
.submenu a { display: block; padding: 12px 18px; color: #111; white-space: nowrap; }
.submenu a:hover { background: #f5f5f5; color: var(--betone-gold); }
.start-btn { background: var(--betone-gold); color: #fff; padding: 18px 34px; border-radius: 0; font-size: 22px; font-weight: 800; }
.menu-btn { display: none; border: 0; background: transparent; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 7px; }
.menu-btn span { display: block; height: 3px; background: #151b2c; border-radius: 8px; }
.mobile-panel { position: fixed; inset: 0 0 0 auto; width: min(86vw, 380px); background: #fff; z-index: 1002; padding: 28px; transform: translateX(105%); transition: transform .2s ease; box-shadow: -18px 0 60px rgba(0,0,0,.2); display: flex; flex-direction: column; gap: 18px; }
.mobile-panel.open { transform: translateX(0); }
.mobile-panel img { width: 120px; }
.close-btn { align-self: flex-end; border: 0; background: #f3f3f3; border-radius: 50%; width: 42px; height: 42px; font-size: 28px; }
.panel-cta { background: var(--betone-gold); color: #fff; padding: 14px 20px; text-align: center; font-weight: 900; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1001; border: 0; }
.hero-section { width: min(1320px, calc(100% - 48px)); margin: 0 auto; padding: 62px 0 24px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 38px; align-items: center; }
.hero-copy h1 { margin: 0 0 18px; font-size: clamp(48px, 7vw, 96px); line-height: .95; letter-spacing: -.04em; font-weight: 900; }
.hero-copy p { font-size: clamp(18px, 2vw, 25px); line-height: 1.7; color: var(--betone-muted); max-width: 760px; }
.hero-copy a, .app-block a { display: inline-flex; margin-top: 26px; min-height: 58px; padding: 0 34px; align-items: center; justify-content: center; background: var(--betone-gold); color: #fff; font-size: 22px; font-weight: 800; }
.hero-card { border-radius: 28px; background: linear-gradient(135deg,#f8f8f8,#fff); padding: 50px; box-shadow: 0 24px 80px rgba(0,0,0,.08); }
.featured, .intro, .games, .long-events, .news { width: min(1320px, calc(100% - 48px)); margin: 0 auto; padding: 56px 0; }
.featured { padding-top: 58px; }
.featured h2, .games h2, .long-events h2, .news h2 { text-align: center; font-size: clamp(42px,5vw,64px); margin: 0 0 34px; line-height: 1.05; font-weight: 900; letter-spacing: -.03em; }
.slider { position: relative; overflow: hidden; background: #f7f7f7; border-radius: 0; display: block; }
.slider img { width: 100%; max-height: 430px; object-fit: cover; }
.slider button { position: absolute; top: 0; bottom: 0; width: 64px; border: 0; color: #fff; font-size: 58px; background: transparent; cursor: pointer; opacity: .78; z-index: 2; }
.slider button:first-child { left: 0; }
.slider button:last-child { right: 0; }
.slider button:hover { opacity: 1; background: rgba(0,0,0,.08); }
.dots { display: flex; justify-content: center; gap: 16px; margin: 20px 0 56px; }
.dots span { width: 12px; height: 12px; border-radius: 50%; background: #c7c7c7; }
.dots .active { background: #111; }
.promo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: 1120px; margin: 0 auto; }
.promo-grid a { border-radius: 20px; overflow: hidden; box-shadow: 0 10px 26px rgba(0,0,0,.08); background: #fff; }
.promo-grid img { width: 100%; }
.two-col, .app-block { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 52px; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 16px; padding: clamp(28px,4vw,54px); box-shadow: 0 12px 36px rgba(0,0,0,.04); }
.intro h2 { font-size: clamp(38px,4.4vw,58px); margin: 0 0 22px; font-weight: 900; }
.intro p { font-size: 20px; line-height: 1.9; color: #2e3444; }
.intro img { border-radius: 18px; box-shadow: none; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.game-card { padding: 22px 18px 26px; border: 1px solid rgba(0,0,0,.08); border-radius: 18px; background: #fff; box-shadow: 0 12px 32px rgba(0,0,0,.05); text-align: center; transition: transform .18s ease, box-shadow .18s ease; }
.game-card:hover { transform: translateY(-4px); box-shadow: 0 20px 52px rgba(0,0,0,.09); }
.game-card img { height: 118px; margin: 0 auto 18px; object-fit: contain; }
.game-card h3 { font-size: 25px; margin: 0 0 10px; font-weight: 900; }
.game-card p { color: var(--betone-muted); line-height: 1.7; margin: 0 0 16px; }
.game-card span { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 24px; background: var(--betone-gold); color: #fff; font-weight: 900; }
.event-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.event-grid article { background: #f8f8f8; padding: 22px; border-radius: 18px; border: 1px solid var(--betone-line); }
.event-grid strong { color: var(--betone-gold); font-size: 28px; }
.event-grid p { line-height: 1.7; color: #303645; }
.post-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.post-card { border: 1px solid var(--betone-line); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 16px 48px rgba(0,0,0,.06); }
.post-card img { aspect-ratio: 1.66; width: 100%; object-fit: cover; }
.post-card h3 { padding: 18px 18px 0; font-size: 22px; line-height: 1.25; }
.post-card p { padding: 0 18px; color: var(--betone-muted); line-height: 1.65; }
.post-card span { display: block; padding: 0 18px 20px; color: var(--betone-gold); font-weight: 900; }
.footer { background: #f8f8f8; border-top: 1px solid var(--betone-line); padding: 42px 24px; text-align: center; }
.footer-license { max-width: 900px; margin: 0 auto 26px; line-height: 1.8; color: #424857; }
.footer nav { display: flex; gap: 18px 28px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.footer h2 { margin: 0; font-size: 32px; }
.chaty { position: fixed; right: 26px; bottom: 26px; z-index: 900; display: flex; flex-direction: column; gap: 14px; }
.chaty a, .chaty button { width: 72px; height: 72px; border-radius: 50%; border: 0; background: #73d47a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; box-shadow: 0 12px 38px rgba(0,0,0,.18); }
.chaty a:nth-child(2) { background: #5ba9f0; }
.chaty button { background: #89d28f; font-size: 42px; }
.content-page { padding: 80px 24px; min-height: 62vh; background: linear-gradient(180deg,#fff,#fafafa); }
.content-wrap { width: min(900px, 100%); margin: 0 auto; }
.kicker { color: var(--betone-gold); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.content-wrap h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.05; margin: 0 0 22px; font-weight: 900; }
.lead { font-size: 22px; color: var(--betone-muted); line-height: 1.7; }
.content-wrap p:not(.kicker):not(.lead) { font-size: 19px; line-height: 1.9; color: #303645; }
.featured-image { width: 100%; border-radius: 24px; margin: 34px 0; box-shadow: 0 20px 60px rgba(0,0,0,.08); }
@media (max-width: 1020px) { .desktop-nav { display:none; } .menu-btn { display:flex; } .start-btn { margin-left:auto; } .hero-section, .two-col, .app-block { grid-template-columns: 1fr; } .game-grid, .post-grid, .event-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 680px) { .header-inner { width: calc(100% - 28px); min-height: 78px; gap: 12px; } .brand { gap: 10px; } .brand span { font-size: 24px; } .brand img { width: 58px; } .start-btn { margin-left: auto; padding: 14px 18px; font-size: 18px; white-space: nowrap; } .hero-section, .featured, .intro, .games, .long-events, .news { width: calc(100% - 28px); padding: 36px 0; } .featured { padding-top: 34px; } .slider button { width: 36px; font-size: 34px; } .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } .game-grid, .post-grid, .event-grid { grid-template-columns: 1fr; } .featured h2, .games h2, .long-events h2, .news h2 { font-size: 42px; } .two-col, .app-block { padding: 24px 18px; border-radius: 12px; } .chaty { right: 16px; bottom: 16px; } .chaty a, .chaty button { width: 58px; height: 58px; } }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.mobile-panel a { font-weight: 800; padding: 8px 0; }
.wp-site-blocks { padding: 0; }
.article .featured-image { background: #fff; }
