/* 
 * 开云棋牌 棋牌娱乐平台样式表
 * 版本: 1.0.0
 * 移动端优先响应式设计
 */

/* CSS变量定义 */
:root {
    --primary-color: #8B0000;
    --secondary-color: #FFD700;
    --accent-color: #4B0082;
    --bg-dark: #1a0a1a;
    --bg-gradient: linear-gradient(135deg, #1a0a1a 0%, #2d1b3d 50%, #1a0a1a 100%);
    --text-light: #ffffff;
    --text-gold: #FFD700;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-gold: rgba(255, 215, 0, 0.3);
    --shadow-gold: 0 4px 20px rgba(255, 215, 0, 0.2);
    --font-primary: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}

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

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

body {
    font-family: var(--font-primary);
    background: var(--bg-gradient);
    color: var(--text-light);
    line-height: 1.8;
    min-height: 100vh;
}

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

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

a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--secondary-color);
}

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

/* 头部导航 - 非sticky */
.site-header {
    background: linear-gradient(180deg, rgba(26, 10, 26, 0.98) 0%, rgba(45, 27, 61, 0.95) 100%);
    border-bottom: 2px solid var(--border-gold);
    padding: 15px 0;
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 60px;
    height: auto;
    border-radius: 8px;
}

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

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

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

.nav-item {
    flex: 0 0 auto;
}

.nav-link {
    display: block;
    padding: 8px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* CTA按钮 */
.cta-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #cc0000 100%);
    color: var(--text-light);
    border: 2px solid var(--secondary-color);
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-gold);
}

.cta-btn:hover {
    background: linear-gradient(135deg, #cc0000 0%, var(--primary-color) 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.4);
}

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

.hero-banner {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-gold);
}

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

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

.hero-desc {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.9rem;
}

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

.breadcrumb-item::after {
    content: '>';
    margin-left: 8px;
    color: var(--border-gold);
}

.breadcrumb-item:last-child::after {
    display: none;
}

/* 内容区块 */
.content-section {
    padding: 50px 0;
    border-bottom: 1px solid var(--border-gold);
}

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

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

.section-content {
    font-size: 1rem;
    line-height: 2;
    text-align: justify;
}

.section-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}

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

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

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

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

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

.game-card-title {
    font-size: 1.1rem;
    color: var(--text-gold);
    margin-bottom: 10px;
}

.game-card-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

/* 作者信息卡片 - E-E-A-T */
.author-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
}

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

.author-name {
    font-size: 1.2rem;
    color: var(--text-gold);
}

.author-title {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.author-bio {
    font-size: 0.95rem;
    line-height: 1.8;
}

/* 用户评论 */
.reviews-section {
    padding: 50px 0;
}

.review-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

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

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

.reviewer-info {
    display: flex;
    flex-direction: column;
}

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

.reviewer-location {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.review-rating {
    display: flex;
    gap: 3px;
}

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

.review-content {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

.review-date {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    text-align: right;
}

/* FAQ区域 */
.faq-section {
    padding: 50px 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.faq-question {
    padding: 20px;
    font-size: 1.05rem;
    color: var(--text-gold);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.faq-answer {
    padding: 0 20px 20px;
    font-size: 0.95rem;
    line-height: 1.8;
    border-top: 1px solid var(--border-gold);
}

/* 支付方式 */
.payment-section {
    padding: 50px 0;
    text-align: center;
}

.payment-img {
    max-width: 100%;
    margin: 20px auto;
    border-radius: 10px;
}

.payment-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.payment-item {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.payment-item h4 {
    color: var(--text-gold);
    margin-bottom: 10px;
}

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

.license-badge {
    width: 200px;
    margin: 20px auto;
    border-radius: 10px;
}

.license-info {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
}

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

.support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.support-item {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
}

.support-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
}

.support-title {
    color: var(--text-gold);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* 负责任博彩 */
.responsible-section {
    padding: 50px 0;
    background: rgba(139, 0, 0, 0.1);
    border-radius: 15px;
    margin: 30px 0;
}

.age-badge {
    width: 100px;
    margin: 20px auto;
}

/* 关于我们 */
.about-section {
    padding: 50px 0;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-text {
    font-size: 1rem;
    line-height: 2;
    text-align: justify;
}

.about-text p {
    margin-bottom: 20px;
    text-indent: 2em;
}

/* 页脚 */
.site-footer {
    background: linear-gradient(180deg, rgba(45, 27, 61, 0.95) 0%, rgba(26, 10, 26, 0.98) 100%);
    border-top: 2px solid var(--border-gold);
    padding: 40px 0 20px;
    margin-top: 50px;
}

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

.footer-section h4 {
    color: var(--text-gold);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-gold);
}

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

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

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

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

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    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%;
    font-size: 1.2rem;
}

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

.footer-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-badge {
    width: 60px;
    height: auto;
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
}

/* 内页样式 */
.page-header {
    padding: 30px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3), rgba(75, 0, 130, 0.3));
    border-radius: 15px;
    margin: 20px 0;
}

.page-title {
    font-size: 2rem;
    color: var(--text-gold);
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
}

.page-banner {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 15px;
    margin: 20px 0;
}

.article-content {
    padding: 30px 0;
}

.article-content h2 {
    font-size: 1.5rem;
    color: var(--text-gold);
    margin: 30px 0 20px;
    padding-left: 15px;
    border-left: 4px solid var(--secondary-color);
}

.article-content h3 {
    font-size: 1.2rem;
    color: var(--text-gold);
    margin: 25px 0 15px;
}

.article-content p {
    margin-bottom: 20px;
    text-indent: 2em;
    line-height: 2;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.content-img {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: var(--shadow-gold);
}

/* 规则表格 */
.rules-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--card-bg);
    border-radius: 10px;
    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(139, 0, 0, 0.3);
    color: var(--text-gold);
    font-weight: bold;
}

.rules-table tr:hover {
    background: rgba(255, 215, 0, 0.05);
}

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

.download-banner {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    border-radius: 15px;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin: 30px 0;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    transform: scale(1.05);
}

.download-btn .icon {
    font-size: 1.5rem;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 10px;
    margin: 30px auto;
    padding: 10px;
}

.app-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.feature-item {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-title {
    color: var(--text-gold);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* 响应式设计 - 平板 */
@media (min-width: 768px) {
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
    }

    .logo-img {
        width: 80px;
    }

    .site-title {
        font-size: 1.8rem;
    }

    .nav-link {
        padding: 10px 18px;
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .review-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .author-card {
        flex-direction: row;
        text-align: left;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .payment-list {
        grid-template-columns: repeat(4, 1fr);
    }

    .support-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .download-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .app-features {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 响应式设计 - 桌面 */
@media (min-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .logo-img {
        width: 100px;
    }

    .site-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-desc {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .game-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .game-card-img {
        height: 180px;
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .review-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

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

/* 打印样式 */
@media print {
    .site-header,
    .site-footer,
    .cta-btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
