/* 
 * {{SITE_NAME}} - 游戏娱乐网站样式表
 * 独特的紫金配色方案 - 2026年版本
 * 移动端优先设计
 */

/* CSS变量定义 */
:root {
    --primary-color: #6B21A8;
    --primary-light: #9333EA;
    --primary-dark: #4C1D95;
    --secondary-color: #F59E0B;
    --secondary-light: #FBBF24;
    --secondary-dark: #D97706;
    --accent-color: #EC4899;
    --accent-light: #F472B6;
    --background-dark: #0F0A1A;
    --background-medium: #1A1025;
    --background-light: #2D1F3D;
    --text-primary: #FFFFFF;
    --text-secondary: #E5E7EB;
    --text-muted: #9CA3AF;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --box-shadow: 0 10px 40px rgba(107, 33, 168, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 重置样式 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-medium) 50%, var(--background-dark) 100%);
    color: var(--text-primary);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 链接样式 */
a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-light);
}

/* 图片响应式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 - 非sticky */
.site-header {
    background: linear-gradient(180deg, var(--background-dark) 0%, transparent 100%);
    padding: 15px 0;
    position: relative;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* 主导航 */
.main-nav {
    display: none;
    width: 100%;
    padding-top: 20px;
}

.main-nav.active {
    display: block;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-list li a {
    display: block;
    padding: 12px 20px;
    background: var(--background-light);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
}

.nav-list li a:hover,
.nav-list li a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    transform: translateX(5px);
}

/* CTA按钮 */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--background-dark);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.6);
    color: var(--background-dark);
}

/* Hero区域 */
.hero-section {
    position: relative;
    padding: 40px 0 60px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* 游戏卡片网格 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px 0;
}

.game-card {
    background: linear-gradient(145deg, var(--background-light), var(--background-medium));
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(147, 51, 234, 0.2);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow);
    border-color: var(--primary-light);
}

.game-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .game-card-image img {
    transform: scale(1.1);
}

.game-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.game-card-content {
    padding: 15px;
}

.game-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.game-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 内容区块 */
.content-section {
    padding: 50px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* 特色功能区 */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.feature-item {
    background: linear-gradient(145deg, var(--background-light), var(--background-medium));
    padding: 25px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(147, 51, 234, 0.15);
}

.feature-item:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 支付方式 */
.payment-section {
    background: var(--background-light);
    padding: 40px 20px;
    border-radius: var(--border-radius-lg);
    margin: 30px 0;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.payment-icon {
    background: var(--background-medium);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.payment-icon:hover {
    transform: scale(1.05);
    background: var(--background-dark);
}

.payment-icon img {
    height: 35px;
    width: auto;
}

/* 用户评论 */
.reviews-section {
    padding: 50px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.review-card {
    background: linear-gradient(145deg, var(--background-light), var(--background-medium));
    padding: 25px;
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--secondary-color);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.review-info h4 {
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.review-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-stars {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.review-content {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.review-date {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* FAQ区域 */
.faq-section {
    padding: 50px 0;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--background-light);
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(147, 51, 234, 0.15);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(147, 51, 234, 0.1);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 关于我们 */
.about-section {
    padding: 50px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

.about-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.9;
}

/* 牌照区域 */
.license-section {
    background: linear-gradient(145deg, var(--background-light), var(--background-medium));
    padding: 40px 20px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    margin: 30px 0;
}

.license-badge {
    max-width: 180px;
    margin: 0 auto 25px;
}

.license-info h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.license-info p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 负责任博彩 */
.responsible-gaming {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(107, 33, 168, 0.1));
    padding: 40px 20px;
    border-radius: var(--border-radius-lg);
    margin: 30px 0;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.responsible-gaming h3 {
    color: var(--error-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.responsible-gaming p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.responsible-gaming ul {
    list-style: none;
    margin: 20px 0;
}

.responsible-gaming li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-secondary);
}

.responsible-gaming li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.9rem;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-list li::after {
    content: '›';
    color: var(--text-muted);
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list a {
    color: var(--text-muted);
}

.breadcrumb-list a:hover {
    color: var(--secondary-color);
}

.breadcrumb-list .current {
    color: var(--text-primary);
}

/* 标签页面 */
.tags-section {
    padding: 50px 0;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.tag-item {
    background: linear-gradient(145deg, var(--background-light), var(--background-medium));
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid rgba(147, 51, 234, 0.2);
}

.tag-item:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    transform: scale(1.05);
}

/* 页脚 */
.site-footer {
    background: var(--background-dark);
    padding: 50px 0 20px;
    margin-top: 50px;
    border-top: 1px solid rgba(147, 51, 234, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--text-primary);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: var(--background-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-badges img {
    height: 50px;
    width: auto;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.8;
}

/* 内页样式 */
.page-header {
    padding: 40px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--background-light) 0%, transparent 100%);
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.page-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: 40px 0;
}

.content-article {
    max-width: 900px;
    margin: 0 auto;
}

.content-article h2 {
    font-size: 1.5rem;
    margin: 35px 0 20px;
    color: var(--secondary-color);
}

.content-article h3 {
    font-size: 1.25rem;
    margin: 25px 0 15px;
    color: var(--text-primary);
}

.content-article p {
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.9;
}

.content-article ul,
.content-article ol {
    margin: 20px 0;
    padding-left: 25px;
    color: var(--text-secondary);
}

.content-article li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.content-article img {
    border-radius: var(--border-radius);
    margin: 25px 0;
    box-shadow: var(--box-shadow);
}

/* 游戏信息表格 */
.game-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: var(--background-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.game-info-table th,
.game-info-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-info-table th {
    background: var(--primary-dark);
    color: var(--text-primary);
    font-weight: 600;
}

.game-info-table td {
    color: var(--text-secondary);
}

.game-info-table tr:hover td {
    background: rgba(147, 51, 234, 0.1);
}

/* APP下载页面 */
.app-download-section {
    text-align: center;
    padding: 50px 0;
}

.app-banner {
    max-width: 800px;
    margin: 0 auto 40px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin: 30px 0;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--background-light), var(--background-medium));
    border-radius: 50px;
    color: var(--text-primary);
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.download-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    transform: translateY(-3px);
    color: white;
}

.download-btn img {
    width: 28px;
    height: 28px;
}

/* 作者信息 */
.author-box {
    background: var(--background-light);
    padding: 25px;
    border-radius: var(--border-radius-lg);
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}

.author-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.author-info h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.author-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 响应式设计 - 平板 */
@media (min-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-cta-group {
        flex-direction: row;
        justify-content: center;
    }
    
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .author-box {
        flex-direction: row;
        text-align: left;
    }
    
    .download-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* 响应式设计 - 桌面 */
@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
    
    .main-nav {
        display: block;
        width: auto;
        padding-top: 0;
    }
    
    .nav-list {
        flex-direction: row;
        gap: 5px;
    }
    
    .nav-list li a {
        padding: 10px 18px;
        background: transparent;
    }
    
    .nav-list li a:hover,
    .nav-list li a.active {
        background: rgba(147, 51, 234, 0.2);
        transform: none;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* 懒加载图片占位 */
img[loading="lazy"] {
    background: linear-gradient(90deg, var(--background-light) 25%, var(--background-medium) 50%, var(--background-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* 选中文本样式 */
::selection {
    background: var(--primary-color);
    color: white;
}
