/* ========================================
   益达娱乐 - 体育竞技平台样式
   自适应设计 支持PC/平板/手机
   ======================================== */

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

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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
    line-height: 1.8;
    color: #333;
    background: #f8f9fa;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #1a73e8;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ff6d00;
}

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

ul, ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 顶部导航 ========== */
.header {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a73e8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #1a73e8, #ff6d00);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 900;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    color: #1a1a2e;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a73e8;
    transition: all 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #1a1a2e;
    transition: all 0.3s ease;
}

/* ========== 英雄区三列布局 ========== */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 60px 0;
    color: #ffffff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.hero-left, .hero-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-center {
    text-align: center;
    padding: 20px;
}

.hero-center h1 {
    font-size: 2.4rem;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #ffffff, #ff6d00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-center p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: 1.8;
}

.hero-btn {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #ff6d00, #ff8f00);
    color: #ffffff;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(255,109,0,0.4);
    transition: all 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(255,109,0,0.5);
    color: #ffffff;
}

.feature-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #ff6d00;
}

.feature-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
}

.recommend-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 16px;
}

.recommend-card h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #00c853;
}

.recommend-card p {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.breadcrumb a {
    color: #6c757d;
}

.breadcrumb a:hover {
    color: #1a73e8;
}

.breadcrumb span {
    margin: 0 8px;
}

/* ========== 通用区块 ========== */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.section-title p {
    color: #6c757d;
    font-size: 1rem;
}

/* ========== 新闻卡片 ========== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.news-card-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2.5rem;
}

.news-card-body {
    padding: 20px;
}

.news-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #1a1a2e;
    line-height: 1.5;
}

.news-card-body p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 12px;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6c757d;
}

/* ========== 赛事列表 ========== */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    transition: all 0.3s ease;
}

.event-item:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transform: translateX(4px);
}

.event-date {
    text-align: center;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    min-width: 80px;
}

.event-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.event-date .month {
    font-size: 0.85rem;
    opacity: 0.9;
}

.event-info h3 {
    font-size: 1.15rem;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.event-info p {
    font-size: 0.9rem;
    color: #6c757d;
}

.event-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.event-status.upcoming {
    background: #e3f2fd;
    color: #1a73e8;
}

/* ========== 数据分析 ========== */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.analysis-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.analysis-card h3 {
    font-size: 1.2rem;
    color: #1a1a2e;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
}

.stat-bar {
    flex: 1;
    margin: 0 16px;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #1a73e8, #00c853);
}

/* ========== 文章内容 ========== */
.article-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    line-height: 2;
}

.article-content h2 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin: 30px 0 16px;
    padding-left: 12px;
    border-left: 4px solid #1a73e8;
}

.article-content h3 {
    font-size: 1.2rem;
    color: #1a1a2e;
    margin: 24px 0 12px;
}

.article-content p {
    margin-bottom: 16px;
    text-indent: 2em;
    font-size: 1rem;
    color: #444;
}

.article-content ul, .article-content ol {
    padding-left: 2em;
    margin-bottom: 16px;
}

.article-content li {
    margin-bottom: 8px;
    list-style: disc;
}

/* ========== 关于我们 ========== */
.about-hero {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.about-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.about-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: -40px;
    position: relative;
    z-index: 1;
}

.about-feature-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

.about-feature-card:hover {
    transform: translateY(-4px);
}

.about-feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #1a73e8, #00c853);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #ffffff;
}

.about-feature-card h3 {
    font-size: 1.15rem;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.about-feature-card p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.7;
}

/* ========== 页脚 ========== */
.footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.8);
    padding: 48px 0 24px;
}

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

.footer-brand h3 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    opacity: 0.8;
}

.footer-col h4 {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer-col a:hover {
    color: #ff6d00;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ========== 侧边固定按钮 ========== */
.side-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.side-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.side-btn:hover {
    transform: scale(1.1);
}

.side-btn.back-top {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
}

/* ========== 平台入口固定底栏 ========== */
.platform-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 12px 0;
    z-index: 1001;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.platform-bar .container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.platform-btn {
    padding: 10px 28px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.platform-btn.primary {
    background: linear-gradient(135deg, #ff6d00, #ff8f00);
    box-shadow: 0 4px 16px rgba(255,109,0,0.4);
}

.platform-btn.secondary {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    box-shadow: 0 4px 16px rgba(26,115,232,0.4);
}

.platform-btn.accent {
    background: linear-gradient(135deg, #00c853, #00e676);
    box-shadow: 0 4px 16px rgba(0,200,83,0.4);
}

.platform-btn:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

/* ========== 右上浮动按钮 ========== */
.float-btns {
    position: fixed;
    top: 90px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 1000;
}

.float-btn {
    display: block;
    padding: 18px 32px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    min-width: 180px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    line-height: 1.4;
}

.float-btn.btn-enter {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 20px rgba(231,76,60,0.5), 0 0 15px rgba(231,76,60,0.25);
}

.float-btn.btn-enter:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    box-shadow: 0 6px 30px rgba(231,76,60,0.65), 0 0 22px rgba(231,76,60,0.35);
    transform: scale(1.05);
    color: #ffffff;
}

.float-btn.btn-more {
    background: linear-gradient(135deg, #2980b9, #1a5276);
    box-shadow: 0 4px 20px rgba(41,128,185,0.5), 0 0 15px rgba(41,128,185,0.25);
}

.float-btn.btn-more:hover {
    background: linear-gradient(135deg, #1a5276, #154360);
    box-shadow: 0 6px 30px rgba(41,128,185,0.65), 0 0 22px rgba(41,128,185,0.35);
    transform: scale(1.05);
    color: #ffffff;
}

/* 底部留白，避免固定底栏遮挡内容 */
body {
    padding-bottom: 70px;
}

/* ========== 响应式 - 平板 ========== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-left, .hero-right {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hero-center h1 {
        font-size: 2rem;
    }

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

    .analysis-grid {
        grid-template-columns: 1fr;
    }

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

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

/* ========== 响应式 - 手机 ========== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 12px 0;
        border-bottom: 1px solid #e9ecef;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-center h1 {
        font-size: 1.6rem;
    }

    .hero-center p {
        font-size: 0.95rem;
    }

    .hero-left, .hero-right {
        flex-direction: column;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .event-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .event-date {
        justify-self: center;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

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

    .section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .article-content {
        padding: 20px;
    }

    .platform-bar .container {
        gap: 10px;
    }

    .platform-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .side-actions {
        bottom: 80px;
        right: 16px;
    }

    .float-btns {
        top: 80px;
        right: 10px;
        gap: 10px;
    }

    .float-btn {
        padding: 12px 18px;
        font-size: 14px;
        min-width: 130px;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .hero-center h1 {
        font-size: 1.3rem;
    }

    .container {
        padding: 0 12px;
    }

    .platform-bar .container {
        flex-wrap: wrap;
        justify-content: center;
    }
}
