/* 
 * 玉皇棋牌 - 主样式表
 * 移动端优先设计 | 2026年SEO优化
 */

/* ========== CSS变量定义 ========== */
:root {
    --primary-color: #1a472a;
    --secondary-color: #c9a227;
    --accent-color: #8b0000;
    --text-color: #2d2d2d;
    --text-light: #f5f5f5;
    --bg-dark: #0d1b12;
    --bg-light: #fafafa;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --font-primary: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    --font-heading: 'Noto Serif SC', 'SimSun', serif;
}

/* ========== 基础重置 ========== */
*, *::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: var(--font-primary);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* ========== 排版 ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.4;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.25rem); }

p {
    margin-bottom: 1rem;
    text-align: justify;
}

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

.section {
    padding: 3rem 0;
}

.section-alt {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.section-alt h2,
.section-alt h3 {
    color: var(--secondary-color);
}

/* ========== 导航栏 ========== */
.header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-color) 100%);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

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

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

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.logo-text {
    color: var(--secondary-color);
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}

.nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    padding: 1rem 0;
}

.nav-menu.active {
    display: flex;
}

.nav-menu a {
    display: block;
    color: var(--text-light);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-menu a:hover {
    background-color: rgba(201, 162, 39, 0.2);
    color: var(--secondary-color);
}

/* ========== Hero区域 ========== */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(rgba(13, 27, 18, 0.85), rgba(26, 71, 42, 0.9)),
                url('../images/hero-banner.webp') center/cover no-repeat;
}

.hero-content {
    max-width: 800px;
    color: var(--text-light);
}

.hero h1 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* ========== 按钮样式 ========== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #d4af37 100%);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.5);
    color: var(--bg-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--bg-dark);
}

/* ========== 卡片组件 ========== */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-text {
    color: #666;
    font-size: 0.95rem;
}

/* ========== 游戏展示区 ========== */
.game-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.game-item {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.game-tag {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* ========== 支付方式 ========== */
.payment-section {
    text-align: center;
}

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

.payment-icons img {
    height: 40px;
    width: auto;
    filter: grayscale(0);
    transition: var(--transition);
}

.payment-icons img:hover {
    transform: scale(1.1);
}

/* ========== 牌照展示 ========== */
.license-section {
    text-align: center;
    padding: 3rem 1rem;
}

.license-badge {
    max-width: 200px;
    margin: 1.5rem auto;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
}

.license-info {
    background: rgba(201, 162, 39, 0.1);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

/* ========== FAQ区域 ========== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

.faq-question:hover {
    background: rgba(26, 71, 42, 0.05);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition);
}

.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-content {
    padding: 0 1.5rem 1.5rem;
    color: #555;
}

/* ========== 用户评论 ========== */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.review-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.review-meta {
    flex: 1;
}

.review-name {
    font-weight: 600;
    color: var(--primary-color);
}

.review-location {
    font-size: 0.85rem;
    color: #888;
}

.review-stars {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.review-text {
    color: #555;
    font-style: italic;
}

.review-date {
    font-size: 0.8rem;
    color: #999;
    margin-top: 1rem;
    text-align: right;
}

/* ========== 关于我们 ========== */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ========== 客户支持 ========== */
.support-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.support-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.support-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

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

/* ========== 标签页面 ========== */
.tags-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tag-item {
    background: linear-gradient(135deg, var(--primary-color), #2d5a3d);
    color: var(--text-light);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    font-weight: 500;
}

.tag-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--secondary-color), #d4af37);
    color: var(--bg-dark);
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
    padding: 1rem 0;
    background: rgba(26, 71, 42, 0.05);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.9rem;
}

.breadcrumb-list li::after {
    content: '/';
    margin-left: 0.5rem;
    color: #999;
}

.breadcrumb-list li:last-child::after {
    content: '';
}

.breadcrumb-list a {
    color: var(--primary-color);
}

.breadcrumb-list span {
    color: #666;
}

/* ========== 页脚 ========== */
.footer {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0a1a0f 100%);
    color: var(--text-light);
    padding: 3rem 0 1.5rem;
}

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

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

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--bg-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.5rem;
    text-align: center;
}

.age-badge {
    display: inline-block;
    width: 50px;
    height: 50px;
    margin-top: 1rem;
}

/* ========== 负责任游戏 ========== */
.responsible-gaming {
    background: linear-gradient(135deg, #8b0000, #5c0000);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.responsible-gaming h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.responsible-gaming p {
    color: rgba(255,255,255,0.9);
}

.responsible-gaming ul {
    list-style: none;
    margin-top: 1rem;
}

.responsible-gaming li {
    color: rgba(255,255,255,0.85);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.responsible-gaming li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* ========== APP下载页面 ========== */
.app-hero {
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(135deg, var(--bg-dark), var(--primary-color));
}

.app-preview {
    max-width: 300px;
    margin: 2rem auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    color: var(--text-color);
    min-width: 200px;
    justify-content: center;
}

.download-btn:hover {
    background: var(--secondary-color);
    color: var(--bg-dark);
}

/* ========== 内页样式 ========== */
.page-header {
    background: linear-gradient(135deg, var(--bg-dark), var(--primary-color));
    padding: 3rem 1rem;
    text-align: center;
}

.page-header h1 {
    color: var(--secondary-color);
}

.page-header p {
    color: rgba(255,255,255,0.8);
    text-align: center;
}

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

.content-section img {
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}

.info-box {
    background: rgba(26, 71, 42, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

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

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* ========== 作者信息 ========== */
.author-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin: 2rem 0;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

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

.author-title {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.author-bio {
    color: #666;
    font-size: 0.95rem;
}

/* ========== 响应式设计 - 平板 ========== */
@media (min-width: 600px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tags-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .author-box {
        flex-direction: row;
        align-items: center;
    }
}

/* ========== 响应式设计 - 桌面 ========== */
@media (min-width: 992px) {
    .nav-toggle {
        display: none;
    }
    
    .nav-menu {
        display: flex;
        width: auto;
        flex-direction: row;
        gap: 0.25rem;
        padding: 0;
    }
    
    .nav-menu a {
        padding: 0.5rem 1rem;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .game-showcase {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .support-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .tags-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========== 动画效果 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ========== 工具类 ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
