/* 
 * 澳门娱乐城网站主样式表
 * 配色方案：深紫色 + 金色 + 暗红色
 * 移动端优先响应式设计
 */

:root {
    --primary-purple: #2D1B4E;
    --secondary-purple: #4A2C7A;
    --accent-gold: #D4AF37;
    --accent-gold-light: #F5E6B3;
    --deep-red: #8B0000;
    --text-light: #F8F8F8;
    --text-dark: #1A1A1A;
    --bg-dark: #0D0D15;
    --bg-card: rgba(45, 27, 78, 0.85);
    --border-gold: rgba(212, 175, 55, 0.4);
    --shadow-gold: rgba(212, 175, 55, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans CJK SC', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-purple) 50%, var(--bg-dark) 100%);
    color: var(--text-light);
    line-height: 1.8;
    min-height: 100vh;
}

/* 图片懒加载和响应式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img.loaded, img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部导航 - 非sticky */
.site-header {
    background: linear-gradient(180deg, var(--primary-purple) 0%, rgba(45, 27, 78, 0.95) 100%);
    border-bottom: 2px solid var(--accent-gold);
    padding: 12px 0;
    position: relative;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.site-logo img {
    height: 55px;
    width: auto;
}

.site-logo span {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: block;
    background: var(--accent-gold);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    color: var(--primary-purple);
    font-weight: 600;
}

.mobile-menu-btn:hover {
    background: var(--accent-gold-light);
}

/* 主导航 */
.main-nav {
    width: 100%;
    display: none;
}

.main-nav.active {
    display: block;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-list li a {
    display: block;
    padding: 12px 18px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(74, 44, 122, 0.5);
}

.nav-list li a:hover,
.nav-list li a.active {
    background: var(--accent-gold);
    color: var(--primary-purple);
}

/* CTA按钮 */
.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #B8962E 100%);
    color: var(--primary-purple);
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-gold);
    border: 2px solid transparent;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-gold);
    background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
}

/* Hero区域 */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 40px 15px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 13, 21, 0.85) 0%, rgba(45, 27, 78, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.badge-item {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--border-gold);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--accent-gold-light);
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    background: rgba(45, 27, 78, 0.5);
    border-bottom: 1px solid var(--border-gold);
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
}

.breadcrumb-list li::after {
    content: '>';
    margin-left: 8px;
    color: var(--accent-gold);
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list a {
    color: var(--accent-gold-light);
    text-decoration: none;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

/* 内容区块 */
.content-section {
    padding: 50px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.section-desc {
    font-size: 1rem;
    color: var(--text-light);
    opacity: 0.85;
    max-width: 700px;
    margin: 0 auto;
}

/* 游戏卡片网格 */
.games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.game-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-gold);
    transition: all 0.4s ease;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--shadow-gold);
    border-color: var(--accent-gold);
}

.game-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.game-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-card-img img {
    transform: scale(1.1);
}

.game-card-body {
    padding: 20px;
}

.game-card-title {
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.game-card-text {
    font-size: 0.95rem;
    color: var(--text-light);
    opacity: 0.9;
    margin-bottom: 15px;
}

.game-card-link {
    display: inline-block;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.game-card-link:hover {
    color: var(--accent-gold-light);
}

/* 关于我们区块 */
.about-section {
    background: linear-gradient(135deg, rgba(74, 44, 122, 0.4) 0%, rgba(45, 27, 78, 0.6) 100%);
    border-top: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-gold);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

.about-image img {
    border-radius: 16px;
    border: 2px solid var(--border-gold);
}

.about-content h3 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 18px;
    text-align: justify;
}

/* 作者信息卡片 - E-E-A-T */
.author-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--border-gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--accent-gold);
    object-fit: cover;
}

.author-name {
    font-size: 1.2rem;
    color: var(--accent-gold);
    font-weight: 700;
}

.author-title {
    font-size: 0.9rem;
    color: var(--accent-gold-light);
}

.author-bio {
    font-size: 0.95rem;
    color: var(--text-light);
    opacity: 0.9;
}

/* 支付方式 */
.payment-section {
    background: rgba(13, 13, 21, 0.6);
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.payment-item {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-gold);
}

.payment-item img {
    height: 50px;
    margin: 0 auto 15px;
    object-fit: contain;
}

.payment-item h4 {
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.payment-item p {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* 牌照信息 */
.license-section {
    text-align: center;
}

.license-badge {
    max-width: 200px;
    margin: 0 auto 25px;
    border-radius: 12px;
}

.license-info {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-gold);
    max-width: 600px;
    margin: 0 auto;
}

.license-info h4 {
    color: var(--accent-gold);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.license-number {
    font-size: 1.1rem;
    color: var(--accent-gold-light);
    margin-bottom: 15px;
    font-weight: 600;
}

/* FAQ区块 */
.faq-section {
    background: linear-gradient(135deg, rgba(74, 44, 122, 0.3) 0%, rgba(45, 27, 78, 0.5) 100%);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-gold);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--accent-gold);
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(212, 175, 55, 0.1);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-gold);
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

/* 用户评论 */
.reviews-section {
    background: rgba(13, 13, 21, 0.5);
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.review-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border-gold);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-purple);
    font-weight: 700;
}

.review-meta h4 {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.review-meta span {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.7;
}

.review-stars {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.7;
}

.review-date {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.6;
}

/* 客服支持 */
.support-section {
    text-align: center;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.support-item {
    background: var(--bg-card);
    padding: 30px 20px;
    border-radius: 16px;
    border: 1px solid var(--border-gold);
    transition: all 0.3s ease;
}

.support-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.support-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.support-item h4 {
    color: var(--accent-gold);
    margin-bottom: 10px;
}

/* 负责任博彩 */
.responsible-section {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.2) 0%, rgba(45, 27, 78, 0.5) 100%);
    border-top: 2px solid var(--deep-red);
}

.responsible-content {
    max-width: 900px;
    margin: 0 auto;
}

.responsible-content h3 {
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.responsible-list {
    list-style: none;
}

.responsible-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-gold);
    padding-left: 30px;
    position: relative;
}

.responsible-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: 700;
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--deep-red);
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin: 20px auto;
}

/* 页脚 */
.site-footer {
    background: linear-gradient(180deg, var(--primary-purple) 0%, var(--bg-dark) 100%);
    border-top: 2px solid var(--accent-gold);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.85;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--accent-gold);
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--accent-gold);
    color: var(--primary-purple);
}

.footer-payment {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.footer-payment img {
    height: 35px;
    background: white;
    padding: 5px 10px;
    border-radius: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--border-gold);
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.75;
    margin-bottom: 10px;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.footer-legal a {
    color: var(--accent-gold-light);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-legal a:hover {
    text-decoration: underline;
}

/* 内页样式 */
.page-header {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    padding: 60px 0;
    text-align: center;
    border-bottom: 2px solid var(--accent-gold);
}

.page-title {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.page-desc {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.article-content {
    background: var(--bg-card);
    padding: 30px 20px;
    border-radius: 16px;
    margin: 30px 0;
    border: 1px solid var(--border-gold);
}

.article-content h2 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-gold);
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content h3 {
    color: var(--accent-gold-light);
    font-size: 1.25rem;
    margin: 25px 0 12px;
}

.article-content p {
    margin-bottom: 18px;
    text-align: justify;
}

.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-image {
    margin: 25px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-gold);
}

.article-image img {
    width: 100%;
}

.article-image figcaption {
    padding: 12px;
    background: rgba(45, 27, 78, 0.8);
    font-size: 0.9rem;
    text-align: center;
    color: var(--accent-gold-light);
}

/* 规则表格 */
.rules-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(45, 27, 78, 0.5);
    border-radius: 12px;
    overflow: hidden;
}

.rules-table th,
.rules-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-gold);
}

.rules-table th {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    font-weight: 600;
}

.rules-table tr:last-child td {
    border-bottom: none;
}

.rules-table tr:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* 标签页面 */
.tags-section {
    padding: 50px 0;
}

.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.tag-item {
    background: var(--bg-card);
    padding: 15px 25px;
    border-radius: 30px;
    border: 1px solid var(--border-gold);
    color: var(--accent-gold-light);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.tag-item:hover {
    background: var(--accent-gold);
    color: var(--primary-purple);
    transform: translateY(-3px);
}

/* APP下载页面 */
.app-section {
    text-align: center;
}

.app-preview {
    max-width: 350px;
    margin: 0 auto 30px;
    border-radius: 20px;
    border: 2px solid var(--border-gold);
}

.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
    margin: 0 auto;
}

.app-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg-card);
    padding: 18px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-gold);
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
}

.app-btn:hover {
    background: var(--accent-gold);
    color: var(--primary-purple);
}

.app-btn span {
    font-weight: 600;
}

/* 响应式设计 - 平板 */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr 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);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .author-card {
        flex-direction: row;
        text-align: left;
    }
    
    .article-content {
        padding: 40px;
    }
}

/* 响应式设计 - 桌面 */
@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
    
    .main-nav {
        display: block;
        width: auto;
    }
    
    .nav-list {
        flex-direction: row;
        gap: 8px;
    }
    
    .nav-list li a {
        padding: 10px 18px;
        background: transparent;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .support-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .app-buttons {
        flex-direction: row;
        max-width: 500px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* 性能优化 */
.will-change-transform {
    will-change: transform;
}

/* 打印样式 */
@media print {
    .site-header,
    .site-footer,
    .cta-btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
