/* PH987 Login - Main CSS Stylesheet */
/* 移动优先响应式设计 - Mobile-first responsive design */

/* 基础重置和变量 - Base reset and variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 博彩主题色板 - Casino theme color palette */
    --primary-gold: #FFD700;
    --primary-red: #DC143C;
    --primary-black: #1a1a1a;
    --secondary-purple: #6B46C1;
    --secondary-blue: #1E40AF;
    --accent-orange: #F97316;
    --accent-green: #059669;
    --bg-dark: #0F172A;
    --bg-card: #1E293B;
    --text-light: #F8FAFC;
    --text-gray: #94A3B8;
    --border-color: #334155;
    --gradient-primary: linear-gradient(135deg, var(--primary-gold), var(--accent-orange));
    --gradient-secondary: linear-gradient(135deg, var(--primary-red), var(--secondary-purple));
    --shadow-glow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* 基础样式 - Base styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 容器和布局 - Container and layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 2rem 0;
}

/* 头部导航 - Header navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-gold);
    font-weight: bold;
    font-size: 1.5rem;
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 0.5rem;
}

.nav-menu {
    display: none;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-gold);
}

.nav-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-black);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* 移动端菜单 - Mobile menu */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-gold);
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 1rem;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin: 1rem 0;
}

.mobile-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
}

/* 主要内容区域 - Main content area */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* 轮播图 - Carousel */
.carousel {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 1rem;
    margin: 1rem 0;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.carousel-slide.active {
    display: block;
}

/* 标题样式 - Heading styles */
h1 {
    font-size: 2rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1rem 0;
    text-align: center;
}

h2 {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin: 1.5rem 0 1rem;
}

h3 {
    font-size: 1.25rem;
    color: var(--text-light);
    margin: 1rem 0 0.5rem;
}

/* 游戏网格 - Game grid */
.games-section {
    margin: 2rem 0;
}

.game-category {
    margin: 2rem 0;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
}

.game-item {
    background: var(--bg-card);
    border-radius: 0.5rem;
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    position: relative;
}

.game-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary-gold);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.game-item img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.game-item .game-name {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.rtp-info {
    font-size: 0.7rem;
    color: var(--accent-green);
    margin-top: 0.25rem;
}

.vip-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: var(--gradient-primary);
    color: var(--primary-black);
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-weight: bold;
}

/* 内容模块 - Content modules */
.content-module {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

.content-module h3 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.content-module p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* 推广链接样式 - Promotional link styles */
.promo-link {
    color: var(--primary-gold);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.promo-link:hover {
    border-bottom-color: var(--primary-gold);
    text-shadow: 0 0 8px var(--primary-gold);
}

.promo-button {
    background: var(--gradient-primary);
    color: var(--primary-black);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin: 0.5rem 0;
    transition: all 0.3s;
}

.promo-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* VIP层级系统 - VIP tier system */
.vip-tiers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.vip-tier {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.vip-tier:hover {
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

.vip-tier.bronze {
    border-color: #CD7F32;
}

.vip-tier.silver {
    border-color: #C0C0C0;
}

.vip-tier.gold {
    border-color: var(--primary-gold);
}

.vip-tier.diamond {
    border-color: #B9F2FF;
}

.tier-header {
    text-align: center;
    margin-bottom: 1rem;
}

.tier-header i {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.tier-header h4 {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.tier-benefits ul {
    list-style: none;
    margin: 1rem 0;
}

.tier-benefits li {
    margin: 0.5rem 0;
    color: var(--text-gray);
}

.tier-benefits i {
    color: var(--accent-green);
    margin-right: 0.5rem;
}

.tier-requirement {
    background: rgba(255, 215, 0, 0.1);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    text-align: center;
}

.tier-requirement p {
    color: var(--primary-gold);
    font-weight: bold;
    margin: 0;
}

.tier-button {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

/* 收益统计 - Earning stats */
.earning-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-item {
    background: rgba(255, 215, 0, 0.1);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.stat-item h4 {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-gray);
    margin: 0;
}

/* 收益列表 - Earning list */
.earning-list {
    list-style: none;
    margin: 1rem 0;
}

.earning-list li {
    margin: 0.75rem 0;
    color: var(--text-gray);
    display: flex;
    align-items: center;
}

.earning-list i {
    color: var(--accent-green);
    margin-right: 0.75rem;
}

/* 提示网格 - Tips grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.tip-item {
    background: rgba(255, 215, 0, 0.05);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.tip-item i {
    color: var(--primary-gold);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tip-item h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.tip-item p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
}

/* 成功统计 - Success stats */
.success-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.success-item {
    background: var(--gradient-secondary);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.success-item h4 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.success-item p {
    color: var(--text-light);
    margin: 0;
    opacity: 0.9;
}

/* 底部导航 - Footer */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    gap: 2rem;
}

.footer-section h4 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    display: block;
    margin: 0.5rem 0;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-gold);
}

.partners {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
}

.partners img {
    width: 100%;
    height: 30px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.partners img:hover {
    opacity: 1;
}

/* 移动端底部导航 - Mobile bottom navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem;
    z-index: 999;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-gray);
    font-size: 0.75rem;
    transition: color 0.3s;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--primary-gold);
}

.mobile-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

/* RTP数据表格 - RTP data table */
.rtp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--bg-card);
    border-radius: 0.5rem;
    overflow: hidden;
}

.rtp-table th,
.rtp-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.rtp-table th {
    background: var(--primary-gold);
    color: var(--primary-black);
    font-weight: bold;
}

.rtp-table td {
    color: var(--text-light);
}

.rtp-table tr {
    cursor: pointer;
    transition: background-color 0.3s;
}

.rtp-table tr:hover {
    background: rgba(255, 215, 0, 0.1);
}

.rtp-value {
    font-weight: bold;
    color: var(--accent-green);
}

/* 实时赌场统计 - Live casino stats */
.live-casino-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.casino-stat {
    background: rgba(255, 215, 0, 0.05);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.casino-stat h4 {
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.casino-stat p {
    color: var(--text-gray);
    margin: 0.25rem 0;
}

/* 策略提示 - Strategy tips */
.strategy-tips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.tip-card {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.tip-card i {
    color: var(--primary-gold);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tip-card h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.tip-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
}

/* 奖池追踪器 - Jackpot tracker */
.jackpot-tracker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.jackpot-item {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.jackpot-item h4 {
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.jackpot-item p {
    color: var(--text-gray);
    margin: 0.25rem 0;
}

.status-hot {
    color: var(--primary-red);
    font-weight: bold;
}

.status-warm {
    color: var(--accent-orange);
    font-weight: bold;
}

.status-cold {
    color: var(--secondary-blue);
    font-weight: bold;
}

/* VIP福利网格 - VIP benefits grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.benefit-card {
    background: rgba(255, 215, 0, 0.05);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.benefit-card i {
    color: var(--primary-gold);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.benefit-card h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
}

/* 奖励展示 - Rewards showcase */
.rewards-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.reward-item {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.reward-item i {
    color: var(--primary-gold);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.reward-item h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.reward-item p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
}

/* 锦标赛时间表 - Tournament schedule */
.tournament-schedule {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.tournament-item {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.tournament-item h4 {
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.tournament-item p {
    color: var(--text-gray);
    margin: 0.25rem 0;
}

/* 服务功能 - Service features */
.service-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.service-item {
    background: rgba(255, 215, 0, 0.05);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.service-item i {
    color: var(--primary-gold);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.service-item h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.service-item p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
}

/* VIP步骤 - VIP steps */
.vip-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.step-item {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.step-number {
    background: var(--gradient-primary);
    color: var(--primary-black);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    margin: 0 auto 0.5rem;
}

.step-item h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.step-item p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
}

/* 加载动画 - Loading animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 - Responsive design */
@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .mobile-menu {
        display: none !important;
    }
    
    .game-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .carousel {
        height: 400px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .mobile-bottom-nav {
        display: none;
    }
    
    .main-content {
        padding-bottom: 0;
    }
    
    .vip-tiers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .earning-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tips-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .live-casino-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .strategy-tips {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .jackpot-tracker {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .rewards-showcase {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .service-features {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .vip-steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .game-grid {
        grid-template-columns: repeat(10, 1fr);
    }
    
    .container {
        padding: 0 2rem;
    }
    
    .vip-tiers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .tournament-schedule {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 工具类 - Utility classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--primary-gold);
}

.bg-gradient {
    background: var(--gradient-primary);
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

.p-4 {
    padding: 1rem;
}

/* 错误状态 - Error states */
.error {
    border-color: var(--primary-red) !important;
    box-shadow: 0 0 0 2px rgba(220, 20, 60, 0.2);
}

/* 成功状态 - Success states */
.success {
    border-color: var(--accent-green) !important;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
} 