/* 
 * 棋牌娱乐网站样式表
 * 移动端优先响应式设计
 * 2026年SEO优化版本
 */

/* CSS变量定义 */
:root {
    --primary-gold: #D4AF37;
    --primary-dark: #1a1a2e;
    --secondary-purple: #4a1942;
    --accent-red: #c41e3a;
    --text-light: #f5f5f5;
    --text-muted: #b8b8b8;
    --bg-gradient-start: #0f0f1a;
    --bg-gradient-end: #1a1a2e;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-gold: rgba(212, 175, 55, 0.3);
    --shadow-gold: rgba(212, 175, 55, 0.2);
}

/* 基础重置 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-light);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 图片响应式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 链接样式 */
a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #f0d060;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 头部导航 - 非sticky */
.site-header {
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.98) 0%, rgba(26, 26, 46, 0.95) 100%);
    border-bottom: 1px solid var(--border-gold);
    padding: 0.75rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-wrapper img {
    height: 45px;
    width: auto;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-gold);
    letter-spacing: 1px;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: block;
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.25rem;
}

/* 主导航 */
.main-nav {
    width: 100%;
    display: none;
}

.main-nav.active {
    display: block;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-list li {
    border-bottom: 1px solid var(--border-gold);
}

.nav-list a {
    display: block;
    padding: 0.875rem 0;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-gold);
    padding-left: 0.5rem;
}

/* CTA按钮 */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-gold) 0%, #f0d060 100%);
    color: var(--primary-dark) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-gold);
    text-align: center;
    margin-top: 1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-gold);
}

/* Hero区域 */
.hero-section {
    position: relative;
    padding: 2rem 0;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.875rem;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb-list li::after {
    content: '>';
    margin-left: 0.5rem;
    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(--primary-gold);
}

/* 游戏卡片网格 */
.games-section {
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

.section-desc {
    color: var(--text-muted);
    margin-top: 1rem;
}

.games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.game-card {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-gold);
    border-color: var(--primary-gold);
}

.game-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-card-image img {
    transform: scale(1.05);
}

.game-card-content {
    padding: 1.25rem;
}

.game-card-title {
    font-size: 1.125rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.game-card-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.game-card-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 0.875rem;
}

.game-card-link::after {
    content: ' →';
    transition: margin-left 0.3s ease;
}

.game-card-link:hover::after {
    margin-left: 5px;
}

/* 关于我们 */
.about-section {
    padding: 3rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(74, 25, 66, 0.2) 50%, transparent 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.about-text h2 {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.about-image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 作者信息 E-E-A-T */
.author-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    margin: 2rem 0;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-gold);
}

.author-info h4 {
    color: var(--primary-gold);
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* 支付方式 */
.payment-section {
    padding: 3rem 0;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.payment-item {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.payment-item:hover {
    border-color: var(--primary-gold);
}

.payment-item img {
    max-height: 40px;
    margin: 0 auto 0.5rem;
}

.payment-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 牌照信息 */
.license-section {
    padding: 3rem 0;
    text-align: center;
}

.license-badge {
    max-width: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 8px;
}

.license-info {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.license-info h3 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.license-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* FAQ部分 */
.faq-section {
    padding: 3rem 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.25rem;
    text-align: left;
    color: var(--primary-gold);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(212, 175, 55, 0.1);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* 用户评论 */
.reviews-section {
    padding: 3rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(74, 25, 66, 0.15) 50%, transparent 100%);
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.review-card {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 1.5rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-light);
}

.reviewer-location {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.review-rating {
    color: var(--primary-gold);
    font-size: 1rem;
}

.review-content {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 客户支持 */
.support-section {
    padding: 3rem 0;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.support-card {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.support-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-3px);
}

.support-card img {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

.support-card h4 {
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.support-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* 负责任博彩 */
.responsible-section {
    padding: 3rem 0;
    background: rgba(196, 30, 58, 0.1);
    border-top: 1px solid rgba(196, 30, 58, 0.3);
    border-bottom: 1px solid rgba(196, 30, 58, 0.3);
}

.responsible-content {
    text-align: center;
}

.responsible-content img {
    width: 100px;
    margin: 0 auto 1.5rem;
}

.responsible-content h3 {
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.responsible-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.responsible-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.responsible-links a {
    color: var(--accent-red);
    font-size: 0.875rem;
}

/* 页脚 */
.site-footer {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #0a0a14 100%);
    border-top: 1px solid var(--border-gold);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul a {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-section ul a:hover {
    color: var(--primary-gold);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-gold);
    color: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid var(--border-gold);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-payment {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-payment img {
    height: 30px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-payment img:hover {
    opacity: 1;
}

/* 内页样式 */
.page-header {
    padding: 2rem 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(74, 25, 66, 0.3) 0%, transparent 100%);
}

.page-title {
    font-size: 1.75rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-muted);
}

.content-section {
    padding: 2rem 0;
}

.content-section h2 {
    font-size: 1.375rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-gold);
}

.content-section h3 {
    font-size: 1.125rem;
    color: var(--text-light);
    margin: 1.5rem 0 0.75rem;
}

.content-section p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.content-section ul,
.content-section ol {
    margin: 1rem 0 1rem 1.5rem;
    color: var(--text-muted);
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* 游戏规则表格 */
.rules-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}

.rules-table th,
.rules-table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid var(--border-gold);
}

.rules-table th {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
    font-weight: 600;
}

.rules-table td {
    color: var(--text-muted);
}

.rules-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* APP下载页面 */
.download-section {
    padding: 3rem 0;
    text-align: center;
}

.download-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.download-info h1 {
    font-size: 1.75rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.download-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-gold) 0%, #f0d060 100%);
    color: var(--primary-dark) !important;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-gold);
}

.download-btn.secondary {
    background: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold) !important;
}

.download-mockup img {
    max-width: 280px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.app-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.feature-card h4 {
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* 响应式设计 - 平板 */
@media (min-width: 576px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* 响应式设计 - 桌面 */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
    
    .main-nav {
        display: block;
        width: auto;
    }
    
    .nav-list {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .nav-list li {
        border-bottom: none;
    }
    
    .nav-list a {
        padding: 0.5rem 0;
    }
    
    .nav-list a:hover {
        padding-left: 0;
    }
    
    .cta-button {
        margin-top: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .author-box {
        flex-direction: row;
        align-items: center;
    }
    
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .support-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .download-hero {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    
    .download-info h1 {
        font-size: 2.5rem;
    }
    
    .download-buttons {
        justify-content: flex-start;
    }
    
    .app-features {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 大屏幕优化 */
@media (min-width: 1024px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .games-section,
    .about-section,
    .payment-section,
    .license-section,
    .faq-section,
    .reviews-section,
    .support-section {
        padding: 4rem 0;
    }
}

/* 打印样式 */
@media print {
    .site-header,
    .site-footer,
    .cta-button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* 无障碍优化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --primary-gold: #ffd700;
        --text-muted: #e0e0e0;
    }
}
