/* IPLAY918 Mobile-App High-Conversion SEO Stylesheet */
:root {
  --brand-1: #ffd200;
  --brand-2: #f7971e;
  --brand-grad: linear-gradient(to bottom, #ffd200, #f7971e);
  --dark-grad: linear-gradient(to bottom, #434343, #0b0b0b);
  --btn-text: #111111;
  --accent: #ffd200;
  --bg-outer: #0b0c10;
  --bg-app: #000000;
  --surface: #12141a;
  --surface-2: #191c24;
  --line: #262a34;
  --text: #f3f4f6;
  --muted: #a3aab8;
  --font-display: 'Barlow Semi Condensed', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg-outer); }
body {
  font-family: var(--font-body);
  background: var(--bg-outer);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: opacity .16s ease, transform .16s ease; }
a:hover { opacity: 0.92; }

/* 480px Authentic Mobile Casino Shell (90%+ Visual Match) */
.app-shell {
  width: 100%;
  max-width: 480px; /* 如果你想让电脑端全屏，可以把这里的 480px 改成 100% */
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg-app);
  position: relative;
  padding-bottom: 92px;
  box-shadow: 0 0 40px rgba(0,0,0,0.7);
}

/* Sticky Top Header */
.app-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #181a20;
}

/* 🟢 修改点 1：Logo 放大 */
.app-logo { display: inline-flex; align-items: center; gap: 8px; }
.app-logo img { height: 55px; width: auto; max-width: 200px; object-fit: contain; }
.header-right { display: flex; align-items: center; gap: 8px; }
.lang-select {
  background: #000; color: #fff; border: 1px solid #444; border-radius: 6px;
  padding: 6px 8px; font-size: 13px; font-weight: 700; font-family: var(--font-display); cursor: pointer;
}
.menu-btn {
  background: #14161c; color: #fff; border: 1px solid #333; border-radius: 6px;
  padding: 6px 10px; font-size: 16px; cursor: pointer; line-height: 1;
}

/* Slide Drawer for Clean Multi-Page SEO Navigation */
.seo-drawer {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.72); justify-content: center;
}
.seo-drawer.open { display: flex; }
.drawer-panel {
  width: 100%; max-width: 480px; background: #101217; height: 100%;
  padding: 20px 18px; overflow-y: auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.drawer-head strong { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.5px; color: #fff; }
.drawer-close { background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }
.drawer-nav { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.drawer-nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line);
  color: #fff; font-weight: 600; font-size: 14.5px;
}
.drawer-nav a:hover { border-color: var(--brand-1); color: var(--accent); }

/* Twin LOGIN / REGISTER CTA Row */
.auth-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  padding: 18px 18px 14px;
}
.auth-btn {
  display: flex; align-items: center; justify-content: center;
  height: 46px; border-radius: 10px;
  background: var(--brand-grad);
  color: var(--btn-text) !important;
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.28);
}
.auth-btn:hover { transform: translateY(-1px); filter: brightness(1.07); }

/* 🟢 修改点 2：Hero Banner Carousel 自适应 */
.banner-box { position: relative; width: 100%; overflow: hidden; background: #09090b; }
.banner-track { display: flex; transition: transform 0.45s ease; width: 100%; }
.banner-slide { flex: 0 0 100%; min-width: 100%; display: block; }
/* 删除了强制的 aspect-ratio，让图片根据宽度完全自适应 */
.banner-slide img { width: 100%; height: auto; display: block; object-fit: contain; background: #141418; }
.banner-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 4;
}
.b-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; }
.b-dot.active { background: var(--brand-1); width: 18px; border-radius: 99px; }

/* Scrolling Announcement Ticker */
.marquee-wrap {
  overflow: hidden; background: #000; padding: 10px 0 8px;
  border-bottom: 1px solid #16181f;
}
.marquee-inner {
  display: inline-block; white-space: nowrap;
  font-family: var(--font-display); font-size: 16px; font-weight: 500; color: #f5f5f5;
  padding-left: 100%;
  animation: appMarquee 22s linear infinite;
}
@keyframes appMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* Angpao Dark Rounded Panel (Signature UI Element) */
.angpao-panel {
  background: var(--dark-grad);
  border-radius: 28px;
  margin: 12px 10px 14px;
  padding: 14px 12px 20px;
  text-align: center;
  border: 1px solid #2b2b2b;
}
.angpao-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 600; color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8); margin-bottom: 14px;
}
.angpao-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.angpao-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  min-height: 138px; padding: 18px 6px 10px;
  border-radius: 12px;
  background-color: #7d1515;
  background-image: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.55)), url('https://d2219038ebteec.cloudfront.net/images/ANGPAO.png_20261116050943');
  background-size: cover; background-position: center;
  border: 1px solid rgba(255, 210, 0, 0.35);
  cursor: pointer; color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.45);
}
.angpao-card:hover { transform: translateY(-2px); }
.angpao-sub { font-family: var(--font-display); font-size: 16px; line-height: 1.15; text-shadow: 1px 2px 3px #000; }
.angpao-main { font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.15; text-shadow: 1px 2px 3px #000; margin-top: 2px; }
.angpao-claim {
  margin-top: auto; background: linear-gradient(to bottom, #ef233c, #a4161a);
  color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.6px;
  padding: 3px 12px; border-radius: 99px; text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Horizontal 6-Tab Category Strip */
.cat-strip {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
  padding: 6px 10px 12px;
}
.cat-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 9px 4px; border-radius: 12px; border: 1px solid #262626;
  background: var(--dark-grad); color: #e5e7eb; cursor: pointer;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600; letter-spacing: 0.3px;
}
.cat-tab svg { width: 24px; height: 24px; }
.cat-tab.active {
  background: var(--brand-grad); color: var(--btn-text); border-color: transparent;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

/* 2-Column Game Provider Grid (Matches Screenshot) */
.game-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  padding: 4px 12px 18px;
}
.game-card {
  position: relative; display: block; border-radius: 14px; overflow: hidden;
  background: #14161c; border: 1px solid #232630; text-align: center;
}
.game-card img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #14161c;
}
.game-label {
  display: block; padding: 7px 6px; font-size: 13.5px; font-weight: 700;
  color: #fff; background: #0c0d11; font-family: var(--font-display); letter-spacing: 0.4px;
}
.game-badge {
  position: absolute; top: 8px; right: 8px;
  padding: 2px 8px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: 0.5px;
  color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.badge-new { background: linear-gradient(135deg, #f59e0b, #d97706); }
.badge-hot { background: linear-gradient(135deg, #ef4444, #b91c1c); }

/* Clean Minimalist Dark SEO Content Block (High Contrast, Zero Hidden Text) */
.seo-wrap { padding: 14px 14px 20px; display: flex; flex-direction: column; gap: 16px; }
.seo-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 16px;
}
.seo-eyebrow { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--accent); margin-bottom: 6px; }
.seo-card h1 { font-family: var(--font-display); font-size: 24px; line-height: 1.25; color: #fff; margin-bottom: 10px; letter-spacing: 0.3px; }
.seo-card h2 { font-family: var(--font-display); font-size: 20px; line-height: 1.3; color: #fff; margin: 18px 0 8px; }
.seo-card h2:first-child { margin-top: 0; }
.seo-card h3 { font-size: 16px; font-weight: 700; color: #fff; margin: 14px 0 6px; }
.seo-card p, .seo-card li { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.seo-card ul, .seo-card ol { padding-left: 20px; margin-bottom: 12px; }
.seo-card strong { color: #fff; }

/* Quick SEO Silo Pills */
.silo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.silo-pill {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line);
  color: #fff; font-size: 13px; font-weight: 700;
}
.silo-pill:hover { border-color: var(--brand-1); color: var(--accent); }

/* Clean Dark Tables */
.seo-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; margin: 12px 0; }
.seo-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.seo-table th { background: #1c202a; color: #fff; text-align: left; padding: 10px; font-weight: 700; border-bottom: 1px solid var(--line); }
.seo-table td { padding: 9px 10px; color: var(--muted); border-bottom: 1px solid var(--line); }
.seo-table tr:last-child td { border-bottom: 0; }

/* Blog Cards */
.blog-list { display: flex; flex-direction: column; gap: 10px; }
.blog-item {
  display: block; padding: 14px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.blog-item:hover { border-color: var(--brand-1); }
.blog-tag { display: inline-block; font-size: 10.5px; font-weight: 800; color: var(--accent); text-transform: uppercase; margin-bottom: 4px; }
.blog-item h3 { font-size: 15px; color: #fff; line-height: 1.35; margin: 0 0 6px; }
.blog-item p { font-size: 13px; color: var(--muted); margin: 0; }

/* FAQ Accordion */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 13px 0; font-size: 14px; font-weight: 700; color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--accent); font-size: 18px; font-weight: 800; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { font-size: 13.5px; color: var(--muted); padding-bottom: 12px; margin: 0; }

/* Action Buttons inside SEO Cards */
.cta-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  padding: 11px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 800;
  font-family: var(--font-display); letter-spacing: 0.5px; text-transform: uppercase;
}
.cta-primary { background: var(--brand-grad); color: var(--btn-text) !important; }
.cta-outline { background: transparent; border: 1px solid var(--brand-1); color: #fff !important; }

/* Subpage Breadcrumbs */
.breadcrumbs { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.breadcrumbs a { color: var(--accent); }

/* Footer Compliance */
.app-footer {
  padding: 18px 16px 24px; text-align: center; font-size: 12px; color: #7e8696;
  border-top: 1px solid #1a1d24;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 10px; }
.footer-links a { color: #aeb6c4; font-size: 12px; }

/* Sticky Bottom Navigation Bar (Matches Screenshot 7-Slot Layout) */
.bottom-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 100;
  background: #0a0b0e; border-top: 1px solid #22252f;
  display: grid; grid-template-columns: repeat(3, 1fr) 1.25fr repeat(3, 1fr);
  align-items: center; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.btm-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: #cbd5e1 !important; font-family: var(--font-display); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.btm-item svg { width: 20px; height: 20px; color: var(--brand-1); }
.btm-center {
  display: flex; align-items: center; justify-content: center;
  margin-top: -16px; height: 46px; border-radius: 12px;
  background: var(--brand-grad); color: var(--btn-text) !important;
  font-family: var(--font-display); font-size: 15px; font-weight: 800; letter-spacing: 0.6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.65);
  border: 2px solid #000;
}

/* Angpao T&C Modal */
.modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 250;
  background: rgba(0,0,0,0.78); align-items: center; justify-content: center; padding: 18px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  width: 100%; max-width: 420px; background: #14171f; border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}
.modal-hd {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; background: var(--brand-grad); color: var(--btn-text);
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
}
.modal-hd button { background: none; border: none; color: inherit; font-size: 24px; cursor: pointer; line-height: 1; }
.modal-bd { padding: 18px 16px; font-size: 14.5px; color: #e5e7eb; line-height: 1.65; }
.modal-ft { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 16px; }