/* 
 * 乐天堂 - 体育直播网站样式表
 * 移动端优先响应式设计
 * 2026年SEO优化版本
 */

/* CSS变量定义 */
:root {
    --primary-color: #1a5f2a;
    --secondary-color: #0d3d6e;
    --accent-color: #e8b923;
    --text-color: #2d2d2d;
    --text-light: #666666;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), #f5d251);
    --font-main: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --transition: all 0.3s ease;
}

/* 重置样式 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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);
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 头部导航 - 非sticky */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 100;
}

.header-top {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.875rem;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.header-main {
    padding: 16px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* 导航菜单 */
.main-nav {
    background: var(--secondary-color);
}

.nav-list {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    display: block;
    padding: 14px 20px;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    background: var(--primary-color);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 16px;
    font-size: 1.25rem;
    cursor: pointer;
    border-radius: 4px;
}

/* Hero区域 */
.hero-section {
    position: relative;
    background: var(--gradient-primary);
    color: var(--white);
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    min-height: 300px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    padding: 32px 16px;
    max-width: 800px;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 24px;
    opacity: 0.95;
}

/* CTA按钮 */
.cta-button {
    display: inline-block;
    background: var(--gradient-accent);
    color: var(--text-color);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--text-color);
}

/* 面包屑导航 */
.breadcrumb {
    background: var(--white);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.875rem;
}

.breadcrumb-list li::after {
    content: '>';
    margin-left: 8px;
    color: var(--text-light);
}

.breadcrumb-list li:last-child::after {
    display: none;
}

/* 内容区块 */
.section {
    padding: 48px 0;
}

.section-alt {
    background: var(--white);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

.section-intro {
    font-size: 1.0625rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 800px;
}

/* 比赛卡片网格 */
.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.match-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.match-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.match-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.match-card-content {
    padding: 20px;
}

.match-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.match-card-desc {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

.match-card-link {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.match-card-link:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* 特色功能区 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.feature-item {
    background: var(--white);
    padding: 28px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.feature-desc {
    font-size: 0.9375rem;
    color: var(--text-light);
}

/* 用户评论 */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.review-card {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.review-author {
    flex: 1;
}

.review-name {
    font-weight: 600;
    color: var(--secondary-color);
}

.review-location {
    font-size: 0.875rem;
    color: var(--text-light);
}

.review-rating {
    color: var(--accent-color);
    font-size: 1.125rem;
}

.review-content {
    font-size: 0.9375rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 12px;
}

.review-date {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* FAQ区域 */
.faq-list {
    max-width: 800px;
}

.faq-item {
    background: var(--white);
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 20px 24px;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-color);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-color);
    line-height: 1.8;
}

/* 支付方式 */
.payment-section {
    background: var(--white);
}

.payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.payment-icon {
    height: 40px;
    width: auto;
}

/* 牌照信息 */
.license-section {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
}

.license-badge {
    max-width: 200px;
    margin: 0 auto 24px;
    border-radius: 12px;
}

.license-info {
    max-width: 600px;
    margin: 0 auto;
}

.license-number {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* 客户支持 */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.support-item {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.support-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
}

.support-title {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.support-desc {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* 作者信息 */
.author-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 32px 0;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.author-title {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.author-bio {
    font-size: 0.9375rem;
    color: var(--text-color);
    line-height: 1.7;
}

/* 页脚 */
.site-footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 16px;
    color: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.footer-payment {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-payment img {
    height: 28px;
    width: auto;
}

.age-badge {
    width: 48px;
    height: 48px;
}

.copyright {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    text-align: center;
    width: 100%;
    margin-top: 16px;
}

/* 负责任体育提示 */
.responsible-gaming {
    background: #fff3cd;
    padding: 16px;
    border-radius: 8px;
    margin: 24px 0;
    border-left: 4px solid var(--accent-color);
}

.responsible-gaming h4 {
    color: #856404;
    margin-bottom: 8px;
}

.responsible-gaming p {
    color: #856404;
    font-size: 0.9375rem;
}

/* 标签页面 */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-item {
    display: inline-block;
    background: var(--white);
    color: var(--secondary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9375rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tag-item:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* 内容文章样式 */
.article-content {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.article-content h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.article-content h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 24px 0 12px;
}

.article-content p {
    margin-bottom: 16px;
    line-height: 1.9;
}

.article-content ul,
.article-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.article-content img {
    border-radius: 8px;
    margin: 24px 0;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--secondary-color);
    color: var(--white);
    font-weight: 600;
}

.data-table tr:hover {
    background: var(--bg-color);
}

/* 响应式设计 - 移动端优先 */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-list a {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 32px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .match-grid,
    .features-grid,
    .reviews-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .article-content {
        padding: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .match-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section {
        padding: 64px 0;
    }
}

/* 打印样式 */
@media print {
    .site-header,
    .site-footer,
    .cta-button {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* 无障碍访问 */
.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;
}

/* 焦点样式 */
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}
