/* 澳门六合彩图库网站 - 主样式文件 */
/* 独特配色方案：深紫红#8B1538 + 金黄#D4AF37 + 翡翠绿#2ECC71 + 深灰蓝#1A1F2E */

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

:root {
    --primary-color: #8B1538;
    --secondary-color: #D4AF37;
    --accent-color: #2ECC71;
    --bg-dark: #1A1F2E;
    --text-light: #E8E9ED;
    --text-gold: #D4AF37;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2C1F3D 100%);
    color: var(--text-light);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text-gold);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

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

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

/* ========== 导航栏（非sticky） ========== */
.main-nav {
    background: rgba(26, 31, 46, 0.95);
    padding: 1.2rem 0;
    border-bottom: 2px solid var(--secondary-color);
    position: relative;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

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

.logo-area img {
    width: 60px;
    height: 60px;
}

.logo-text {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-gold);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu li a {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-menu li a:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--text-gold);
    text-decoration: none;
}

.cta-button {
    background: linear-gradient(135deg, var(--accent-color), #27AE60);
    color: white !important;
    padding: 0.8rem 2rem !important;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.5);
}

/* ========== Hero横幅区 ========== */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 4rem;
}

.hero-visual {
    position: relative;
    width: 100%;
    height: 600px;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(26, 31, 46, 0.3), rgba(26, 31, 46, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--text-gold);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 内容区域通用样式 ========== */
.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.2);
    border-color: var(--secondary-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-gold);
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    border-radius: 2px;
}

/* ========== 卡片网格布局 ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.game-card {
    background: rgba(139, 21, 56, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.game-card:hover {
    transform: scale(1.05) rotateY(5deg);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.game-card figure {
    position: relative;
    overflow: hidden;
}

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

.game-card:hover figure img {
    transform: scale(1.1);
}

.game-card figcaption {
    padding: 1.5rem;
    background: rgba(26, 31, 46, 0.9);
}

.game-card h3 {
    color: var(--text-gold);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.game-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========== 开奖结果模块 ========== */
.lottery-results {
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.2), rgba(26, 31, 46, 0.8));
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
}

.results-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.lottery-ball {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto Mono', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    animation: ballBounce 0.6s ease;
}

@keyframes ballBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.ball-red { background: linear-gradient(135deg, #E74C3C, #C0392B); }
.ball-blue { background: linear-gradient(135deg, #3498DB, #2980B9); }
.ball-green { background: linear-gradient(135deg, #2ECC71, #27AE60); }
.ball-gold { background: linear-gradient(135deg, #F39C12, #D4AF37); }
.ball-purple { background: linear-gradient(135deg, #9B59B6, #8E44AD); }

/* ========== 走势图模块 ========== */
.trend-chart-section {
    background: rgba(26, 31, 46, 0.6);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
}

.chart-container {
    position: relative;
    width: 100%;
    margin: 2rem 0;
}

.chart-container img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ========== FAQ折叠式问答 ========== */
.faq-section {
    margin-bottom: 3rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-item details {
    cursor: pointer;
}

.faq-item summary {
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-gold);
    background: rgba(139, 21, 56, 0.1);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-item summary:hover {
    background: rgba(139, 21, 56, 0.2);
}

.faq-item summary::after {
    content: '+';
    font-size: 2rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-item details[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-content {
    padding: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

/* ========== 用户评论区 ========== */
.reviews-section {
    margin-bottom: 3rem;
}

.review-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

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

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-gold);
    font-size: 1.1rem;
}

.reviewer-location {
    color: var(--text-light);
    opacity: 0.8;
    font-size: 0.9rem;
}

.rating {
    display: flex;
    gap: 0.3rem;
}

.star {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.review-content {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.review-date {
    color: var(--text-light);
    opacity: 0.6;
    font-size: 0.85rem;
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
    padding: 1rem 0;
    margin-bottom: 2rem;
}

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

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

.breadcrumb-list li::after {
    content: '›';
    color: var(--text-gold);
    font-size: 1.2rem;
}

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

.breadcrumb-list a {
    color: var(--accent-color);
    font-size: 0.95rem;
}

.breadcrumb-list span {
    color: var(--text-light);
    opacity: 0.8;
    font-size: 0.95rem;
}

/* ========== 页脚 ========== */
.main-footer {
    background: rgba(26, 31, 46, 0.95);
    border-top: 3px solid var(--secondary-color);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.footer-column h4 {
    color: var(--text-gold);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

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

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--text-light);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.age-restriction-badge {
    display: inline-block;
    margin-top: 1rem;
}

.age-restriction-badge img {
    width: 80px;
    height: auto;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        margin-top: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .lottery-ball {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ========== 加载动画 ========== */
.fade-in {
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 图片懒加载优化 ========== */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}
