/* =====================================================
   圣淘沙游戏官网 - 主样式表 main.css v2
   Logo & Banner 全部图片化，方便替换
   ===================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
    color: #e8ecf3; background: #0a0e1a; line-height: 1.7; overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s; }
a:hover { color: #4fc3f7; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---------- 颜色变量 ---------- */
:root {
    --primary: #4fc3f7;
    --primary-dark: #0288d1;
    --primary-glow: rgba(79,195,247,.35);
    --accent: #e040fb;
    --accent-glow: rgba(224,64,251,.3);
    --gold: #ffd740;
    --bg-dark: #0a0e1a;
    --bg-card: #11182b;
    --bg-card-hover: #1a2340;
    --text: #e8ecf3;
    --text-muted: #8a96b0;
    --border: rgba(255,255,255,.08);
    --gradient-card: linear-gradient(145deg, rgba(17,24,43,.95), rgba(26,35,64,.8));
    --gradient-btn: linear-gradient(135deg, #0288d1, #4fc3f7);
    --shadow-card: 0 8px 32px rgba(0,0,0,.35);
    --shadow-glow: 0 0 24px var(--primary-glow);
}

/* ---------- 顶部信息栏 ---------- */
.top-bar { background: #060914; border-bottom: 1px solid var(--border); font-size: .82rem; color: var(--text-muted); padding: 6px 0; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar span { margin-right: 20px; }
.top-bar-links a { margin-left: 16px; color: var(--text-muted); }
.top-bar-links a:hover { color: var(--primary); }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10,14,26,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border); transition: box-shadow .3s, background .3s;
}
.header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

/* Logo 图片 */
.logo { display: flex; align-items: center; }
.logo-img { height: 54px; width: auto; transition: opacity .25s; }
.logo-img:hover { opacity: .85; }
.logo-footer .logo-img-small { height: 48px; width: auto; }

/* 导航 */
.main-nav ul { display: flex; gap: 8px; }
.main-nav a { display: block; padding: 8px 16px; border-radius: 6px; font-size: .95rem; color: var(--text); position: relative; }
.main-nav a.active, .main-nav a:hover { color: var(--primary); background: rgba(79,195,247,.08); }
.main-nav .has-sub { position: relative; }
.main-nav .sub-menu {
    position: absolute; top: 100%; left: 0; min-width: 160px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
    padding: 8px 0; box-shadow: var(--shadow-card); opacity: 0; visibility: hidden;
    transform: translateY(8px); transition: all .25s; z-index: 10;
}
.main-nav .has-sub:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu a { padding: 10px 20px; border-radius: 0; font-size: .88rem; }
.main-nav .sub-menu a:hover { background: rgba(79,195,247,.1); }

/* 搜索 & 按钮 */
.header-right { display: flex; align-items: center; gap: 12px; }
.search-form { display: flex; align-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 24px; padding: 4px 4px 4px 16px; transition: border-color .25s, box-shadow .25s; }
.search-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.search-form input { background: none; border: none; color: var(--text); font-size: .88rem; width: 180px; outline: none; }
.search-form input::placeholder { color: var(--text-muted); }
.search-form button { padding: 6px 10px; border-radius: 50%; color: var(--text-muted); }
.search-form button:hover { color: var(--primary); }
.btn-login, .btn-register { padding: 8px 18px; border-radius: 24px; font-size: .88rem; transition: all .25s; }
.btn-login { color: var(--text-muted); border: 1px solid var(--border); }
.btn-login:hover { color: var(--primary); border-color: var(--primary); }
.btn-register { background: var(--gradient-btn); color: #fff; font-weight: 600; box-shadow: var(--shadow-glow); }
.btn-register:hover { transform: translateY(-1px); box-shadow: 0 0 32px var(--primary-glow); }

/* 移动端菜单按钮 */
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.mobile-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }

/* ---------- Hero 轮播（图片横幅） ---------- */
.hero-slider { position: relative; height: 620px; overflow: hidden; background: #0a0e1a; }
.slider-track { height: 100%; position: relative; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; display: flex; align-items: center; }
.slide.active { opacity: 1; visibility: visible; }
.slide-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.slide-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,14,26,.7) 0%, rgba(10,14,26,.3) 50%, rgba(10,14,26,.6) 100%); }
.slide-content { position: relative; z-index: 2; max-width: 680px; padding: 0 24px; }
.slide-tag { display: inline-block; padding: 4px 16px; border-radius: 20px; background: rgba(79,195,247,.15); border: 1px solid var(--primary); color: var(--primary); font-size: .82rem; letter-spacing: 2px; margin-bottom: 20px; }
.slide h1 { font-size: 3rem; font-weight: 800; line-height: 1.3; color: #fff; margin-bottom: 20px; text-shadow: 0 4px 24px rgba(0,0,0,.5); }
.slide p { font-size: 1.1rem; color: rgba(255,255,255,.85); margin-bottom: 32px; max-width: 560px; }
.slide-actions { display: flex; gap: 16px; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; border-radius: 30px; font-size: .95rem; font-weight: 600; transition: all .3s; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--gradient-btn); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px var(--primary-glow); color: #fff; }
.btn-outline { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.05); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.12); color: #fff; }
.btn-sm { padding: 10px 24px; font-size: .85rem; }
.btn-lg { padding: 16px 40px; font-size: 1rem; }

/* 轮播控制 */
.slider-dots { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.3); transition: all .3s; }
.dot.active { background: var(--primary); width: 32px; border-radius: 6px; box-shadow: var(--shadow-glow); }
.slider-arrows { position: absolute; top: 50%; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 32px; z-index: 3; pointer-events: none; }
.arrow { pointer-events: all; width: 48px; height: 48px; border-radius: 50%; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: all .25s; }
.arrow:hover { background: var(--primary); border-color: var(--primary); }

/* ---------- Section 通用 ---------- */
.section { padding: 80px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow { font-size: .82rem; color: var(--primary); letter-spacing: 4px; text-transform: uppercase; display: block; margin-bottom: 8px; }
.section-header h2 { font-size: 2.4rem; color: #fff; margin-bottom: 12px; font-weight: 800; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.section-more { display: inline-block; margin-top: 12px; color: var(--primary); font-size: .9rem; }
.section-more:hover { text-decoration: underline; }

/* ---------- 游戏作品 ---------- */
.games-showcase { background: linear-gradient(180deg, #0a0e1a 0%, #0d1225 100%); }
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.game-card { background: var(--gradient-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: all .35s; display: flex; flex-direction: column; }
.game-card:hover { transform: translateY(-6px); border-color: rgba(79,195,247,.3); box-shadow: var(--shadow-card), var(--shadow-glow); }
.game-card-large { grid-row: span 2; }
.game-cover { height: 200px; position: relative; overflow: hidden; }
.game-card-large .game-cover { height: 420px; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.game-card:hover .game-cover img { transform: scale(1.05); }
.game-badge { position: absolute; top: 16px; left: 16px; padding: 4px 14px; border-radius: 20px; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.2); font-size: .75rem; color: #fff; letter-spacing: 1px; z-index: 2; }
.badge-hot { border-color: #ff5252; color: #ff5252; }
.badge-new { border-color: #69f0ae; color: #69f0ae; }
.game-info { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.game-genre { font-size: .8rem; color: var(--primary); letter-spacing: 1px; margin-bottom: 8px; }
.game-info h3 { font-size: 1.3rem; color: #fff; margin-bottom: 10px; }
.game-info p { color: var(--text-muted); font-size: .9rem; margin-bottom: 16px; flex: 1; }
.game-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; font-size: .82rem; color: var(--text-muted); }
.game-meta span { background: rgba(255,255,255,.04); padding: 4px 10px; border-radius: 4px; }

/* ---------- 数据统计 ---------- */
.stats-section { background: linear-gradient(135deg, #0288d1, #4a148c); padding: 56px 0; position: relative; overflow: hidden; }
.stats-section::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; }
.stat-item { text-align: center; color: #fff; }
.stat-num { font-size: 3rem; font-weight: 900; line-height: 1; display: inline; }
.stat-plus { font-size: 1.5rem; font-weight: 700; }
.stat-item p { margin-top: 8px; font-size: .95rem; opacity: .9; }

/* ---------- 资讯 ---------- */
.news-section { background: #0d1225; }
.news-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.news-featured { background: var(--gradient-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: all .3s; display: flex; flex-direction: column; }
.news-featured:hover { border-color: rgba(79,195,247,.3); box-shadow: var(--shadow-glow); }
.news-thumb { height: 260px; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-featured:hover .news-thumb img { transform: scale(1.03); }
.news-body { padding: 28px; }
.news-cat { display: inline-block; padding: 3px 12px; border-radius: 4px; font-size: .75rem; background: var(--primary); color: #fff; margin-bottom: 12px; }
.cat-event { background: #ff6f00; }
.cat-notice { background: #d32f2f; }
.cat-media { background: #7b1fa2; }
.cat-update { background: #1976d2; }
.news-featured h3 { font-size: 1.4rem; color: #fff; margin-bottom: 12px; line-height: 1.5; }
.news-featured h3 a:hover { color: var(--primary); }
.news-featured p { color: var(--text-muted); margin-bottom: 16px; }
.news-meta { display: flex; gap: 16px; font-size: .82rem; color: var(--text-muted); }
.news-list { display: flex; flex-direction: column; }
.news-item { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); transition: padding .25s; }
.news-item:last-child { border-bottom: none; }
.news-item:hover { padding-left: 8px; }
.news-item .news-cat { margin-bottom: 0; flex-shrink: 0; }
.news-item h4 { flex: 1; font-size: .95rem; color: var(--text); font-weight: 500; }
.news-item h4 a:hover { color: var(--primary); }
.news-item time { font-size: .82rem; color: var(--text-muted); flex-shrink: 0; }

/* ---------- 玩家服务 ---------- */
.service-section { background: linear-gradient(180deg, #0d1225 0%, #0a0e1a 100%); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: var(--gradient-card); border: 1px solid var(--border); border-radius: 16px; padding: 36px 28px; text-align: center; transition: all .35s; }
.service-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow-card), var(--shadow-glow); }
.service-icon { font-size: 2.8rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.15rem; color: #fff; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: .88rem; }

/* ---------- 关于企业 ---------- */
.about-brief { background: #0a0e1a; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-text h2 { font-size: 2.2rem; color: #fff; margin: 8px 0 20px; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; font-size: 1rem; }
.about-actions { display: flex; gap: 16px; margin-top: 28px; }
.about-visual { display: flex; flex-direction: column; gap: 20px; }
.about-card { background: var(--gradient-card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; transition: all .3s; }
.about-card:hover { border-color: rgba(79,195,247,.3); }
.about-card h4 { font-size: 1.1rem; color: #fff; margin-bottom: 8px; }
.about-card p { color: var(--text-muted); font-size: .9rem; }

/* ---------- 合作伙伴 ---------- */
.partners-section { background: #0d1225; padding: 56px 0; }
.partners-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; }
.partner-logo { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 10px; padding: 20px 12px; text-align: center; font-size: .9rem; color: var(--text-muted); transition: all .25s; cursor: default; }
.partner-logo:hover { background: rgba(79,195,247,.08); border-color: var(--primary); color: var(--primary); }

/* ---------- 页脚 ---------- */
.footer { background: #060914; border-top: 1px solid var(--border); padding-top: 56px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr; gap: 32px; padding-bottom: 40px; }
.footer-brand p { color: var(--text-muted); font-size: .88rem; margin: 14px 0; }
.social-links { display: flex; gap: 12px; }
.social-links a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: all .25s; }
.social-links a:hover { background: var(--primary); transform: translateY(-2px); }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; position: relative; padding-bottom: 8px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 32px; height: 2px; background: var(--primary); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--text-muted); font-size: .88rem; }
.footer-col ul a:hover { color: var(--primary); padding-left: 4px; }
.footer-contact p { color: var(--text-muted); font-size: .85rem; margin-bottom: 8px; }
.footer-middle { padding: 20px 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.footer-cert { display: flex; flex-wrap: wrap; gap: 24px; font-size: .78rem; color: var(--text-muted); }
.footer-bottom { padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .82rem; color: var(--text-muted); }
.footer-legal a { font-size: .82rem; color: var(--text-muted); margin-left: 20px; }
.footer-legal a:hover { color: var(--primary); }

/* ---------- 返回顶部 ---------- */
.back-to-top { position: fixed; bottom: 32px; right: 32px; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.3rem; box-shadow: var(--shadow-glow); z-index: 99; opacity: 0; visibility: hidden; transition: all .3s; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 0 32px var(--primary-glow); }

/* ---------- 移动端菜单 ---------- */
.mobile-menu { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--bg-card); z-index: 200; padding: 80px 32px; transition: right .35s; border-left: 1px solid var(--border); }
.mobile-menu.open { right: 0; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu a { padding: 14px 0; font-size: 1.1rem; color: var(--text); border-bottom: 1px solid var(--border); }

/* ---------- 页面通用横幅 ---------- */
.page-banner { position: relative; height: 400px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.page-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-banner .banner-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,14,26,.4) 0%, rgba(10,14,26,.8) 100%); }
.page-banner .banner-content { position: relative; z-index: 2; text-align: center; padding: 0 24px; }
.page-banner .banner-content h1 { font-size: 2.8rem; color: #fff; margin: 12px 0; font-weight: 800; }
.page-banner .banner-content p { color: rgba(255,255,255,.8); font-size: 1.1rem; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: #fff; }