/* 基础重置和全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 链接样式 */
a {
    color: #1a237e;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #303f9f;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1a237e;
    color: white;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #303f9f;
    color: white;
}

.btn-primary {
    background-color: #e91e63;
}

.btn-primary:hover {
    background-color: #d81b60;
}

.btn-secondary {
    background-color: #673ab7;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
}

/* 导航栏样式 */
.main-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    color: #1a237e;
    font-size: 1.5em;
}

.domain {
    color: #e91e63;
    font-size: 0.8em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    padding: 5px 0;
}

.nav-menu a.active {
    border-bottom: 2px solid #e91e63;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

/* 横幅样式 */
.hero-banner {
    background: linear-gradient(135deg, #1a237e 0%, #311b92 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.highlight {
    color: #ffeb3b;
    font-weight: bold;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    margin-bottom: 20px;
}

.domain-display {
    font-size: 1.1em;
    margin: 20px 0;
}

.cta-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 特性网格 */
.features {
    padding: 60px 0;
    background-color: white;
}

.features h3 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
    color: #1a237e;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

/* 游戏预览 */
.games-preview {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.game-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.game-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-info {
    padding: 20px;
}

.btn-play {
    display: inline-block;
    background-color: #4caf50;
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    margin-top: 10px;
}

/* 注册CTA */
.register-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    color: white;
    text-align: center;
}

.register-cta .highlight {
    color: #ffeb3b;
}

.bonus {
    color: #ffeb3b;
    font-weight: bold;
    font-size: 1.2em;
}

/* 页脚样式 */
.main-footer {
    background-color: #1a237e;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.link-column h5 {
    margin-bottom: 20px;
    color: #ffeb3b;
}

.link-column ul {
    list-style: none;
}

.link-column li {
    margin-bottom: 10px;
}

.link-column a {
    color: #b0bec5;
}

.link-column a:hover {
    color: white;
}

/* 合规声明 */
.compliance {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9em;
}

.warning {
    color: #ffcc80;
    margin-bottom: 10px;
}

.age-restriction {
    color: #ef5350;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content h2 {
        font-size: 1.8em;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        
        /* 移动端菜单样式 */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #1a237e;
    cursor: pointer;
    padding: 5px 10px;
}

@media (max-width: 768px) {
    .mobile-menu-button {
        display: block;
    }
    
    .mobile-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px;
        z-index: 1000;
    }
    
    .mobile-menu.show {
        display: flex;
    }
    
    .mobile-menu li {
        margin: 10px 0;
    }
}

/* 表单验证样式 */
input.error, select.error {
    border-color: #e91e63 !important;
    background-color: #fff8f8;
}

input.success, select.success {
    border-color: #4caf50 !important;
    background-color: #f8fff8;
}

/* 工具提示样式 */
.custom-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0,0,0,0.8) transparent transparent transparent;
}

/* 加载动画 */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a237e;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 游戏卡片动画 */
.game-card {
    transition: all 0.3s ease;
}

/* 响应式表格 */
.table-responsive {
    overflow-x: auto;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

/* 打印样式 */
@media print {
    .no-print {
        display: none !important;
    }
}