/* 必一体育官方网站 - 完整style.css文件 */
/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    transition: background 0.3s, color 0.3s;
}

body.dark {
    background: #121212;
    color: #e0e0e0;
}

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

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.4);
}

/* 卡片 */
.card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
}

body.dark .card {
    background: #1e1e1e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* 毛玻璃效果 */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.dark .glass {
    background: rgba(30, 30, 30, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

/* 标题 */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    margin-top: 10px;
    border-radius: 2px;
}

body.dark h2::after {
    background: linear-gradient(135deg, #64b5f6, #1a73e8);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    color: #555;
}

body.dark p {
    color: #aaa;
}

a {
    color: #1a73e8;
    text-decoration: none;
}

body.dark a {
    color: #64b5f6;
}

/* 通用布局 */
.section {
    padding: 80px 0;
}

.grid {
    display: grid;
    grid-gap: 30px;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* 头部导航 */
header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

body.dark header {
    background: linear-gradient(135deg, #0d0d1a, #1a1a2e);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #64b5f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    flex-wrap: wrap;
}

.nav-menu a {
    color: #fff;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    border-bottom-color: #64b5f6;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 10px;
    max-width: 300px;
    margin: 20px auto;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 25px;
    border: 1px solid #ddd;
    font-size: 1rem;
    background: #fff;
    color: #333;
}

body.dark .search-box input {
    background: #333;
    border-color: #555;
    color: #fff;
}

.search-box button {
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    background: #1a73e8;
    color: #fff;
    cursor: pointer;
}

/* Hero Banner */
.hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: #fff;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, #64b5f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #ccc;
}

.hero .btn {
    background: linear-gradient(135deg, #64b5f6, #1a73e8);
    font-size: 1.1rem;
    padding: 15px 40px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background: radial-gradient(circle at 20% 50%, #64b5f6 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, #1a73e8 0%, transparent 50%);
}

/* 轮播 */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    padding: 20px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* 滚动动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 计数器 */
.counter {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1a73e8, #64b5f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
    cursor: pointer;
}

body.dark .faq-item {
    border-color: #444;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: #666;
}

body.dark .faq-answer {
    color: #aaa;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 15px;
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* 页脚 */
footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 60px 0 20px;
}

body.dark footer {
    background: #0d0d1a;
}

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

.footer-grid h4 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-grid a {
    color: #aaa;
    display: block;
    margin-bottom: 8px;
}

.footer-grid a:hover {
    color: #64b5f6;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s;
    opacity: 0;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
}

/* 暗黑模式切换 */
.dark-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
}

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

.breadcrumb a {
    color: #1a73e8;
}

body.dark .breadcrumb {
    color: #aaa;
}

body.dark .breadcrumb a {
    color: #64b5f6;
}

/* 文章卡片 */
.article-card {
    padding: 25px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

body.dark .article-card {
    background: #1e1e1e;
}

.article-card:hover {
    transform: translateY(-3px);
}

.article-card h4 {
    margin-bottom: 10px;
}

.article-card .date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

.article-card p {
    font-size: 0.95rem;
    color: #555;
}

body.dark .article-card p {
    color: #aaa;
}

/* 友情链接 */
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.friend-links a {
    color: #888;
    font-size: 0.9rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding: 15px 0;
    }

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

    .menu-toggle {
        display: block;
    }

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

    .hero {
        padding: 60px 0;
    }

    .section {
        padding: 50px 0;
    }

    h2 {
        font-size: 1.6rem;
    }

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

    .flex {
        flex-direction: column;
    }

    .counter {
        font-size: 2rem;
    }

    .back-to-top,
    .dark-toggle {
        bottom: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .dark-toggle {
        left: 15px;
    }

    .back-to-top {
        right: 15px;
    }
}

@media (min-width: 769px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

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

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