/* 麻将胡了电子游戏网站 - 全新设计样式表 */

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

:root {
    --primary-red: #c8102e;
    --primary-gold: #d4af37;
    --dark-bg: #1a0a0a;
    --light-bg: #f8f5f0;
    --text-dark: #2c1810;
    --text-light: #ffffff;
    --accent-purple: #6b2c91;
    --accent-cyan: #00bcd4;
    --border-gold: #f4d03f;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--light-bg);
    overflow-x: hidden;
}

/* 容器布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 - 非粘性设计 */
.site-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--accent-purple) 100%);
    padding: 25px 0;
    box-shadow: 0 4px 20px rgba(200, 16, 46, 0.3);
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.site-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 主导航菜单 */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

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

.nav-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-button {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, #f4d03f 100%);
    color: var(--dark-bg);
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    border: 2px solid var(--primary-gold);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.6);
}

/* Hero横幅区域 */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(26, 10, 10, 0.4), rgba(26, 10, 10, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    color: var(--primary-gold);
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

/* 面包屑导航 */
.breadcrumb-nav {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid var(--border-gold);
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    margin-left: 10px;
    color: var(--primary-red);
    font-weight: bold;
}

.breadcrumb-list a {
    color: var(--primary-red);
    text-decoration: none;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

/* 主内容区域 */
.main-content {
    padding: 60px 0;
}

.content-section {
    margin-bottom: 50px;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--primary-red);
}

.section-title {
    font-size: 32px;
    color: var(--primary-red);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-gold);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--accent-cyan);
}

.section-content {
    font-size: 17px;
    line-height: 2;
    color: var(--text-dark);
}

.section-content p {
    margin-bottom: 20px;
}

.section-content strong {
    color: var(--primary-red);
    font-weight: 600;
}

/* 游戏卡片网格 */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.game-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(200, 16, 46, 0.25);
    border-color: var(--primary-gold);
}

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

.game-card-content {
    padding: 25px;
}

.game-card-title {
    font-size: 22px;
    color: var(--primary-red);
    margin-bottom: 12px;
    font-weight: bold;
}

.game-card-description {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

/* FAQ手风琴样式 */
.faq-container {
    margin: 40px 0;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--border-gold);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.faq-question {
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--accent-purple) 100%);
    color: var(--text-light);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    font-weight: bold;
}

.faq-answer {
    padding: 25px;
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-dark);
    background: #fafafa;
}

/* 用户评论区域 */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary-gold);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-red);
}

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

.reviewer-location {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

.review-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.review-date {
    font-size: 13px;
    color: #999;
    text-align: right;
}

/* 支付方式和图标 */
.payment-section {
    text-align: center;
    margin: 40px 0;
}

.payment-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* 牌照徽章 */
.license-badge {
    text-align: center;
    margin: 40px 0;
}

.badge-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* 页脚样式 */
.site-footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #3d1f1f 100%);
    color: var(--text-light);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    color: var(--primary-gold);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 10px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 15px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #aaa;
}

.age-restriction {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    margin: 10px 0;
}

/* 响应式设计 - 移动端优先 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu li a {
        width: 100%;
        text-align: center;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .content-section {
        padding: 25px 20px;
    }
    
    .game-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

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

.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* 性能优化 - 预加载关键资源 */
.preload-hint {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* 无障碍和可访问性 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out;
}
