/* QY球友会 - 完整样式表 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body.dark {
    background: #0d1117;
    color: #e6edf3;
}

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

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

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

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo svg {
    width: 40px;
    height: 40px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: opacity 0.3s;
    position: relative;
}

nav a:hover {
    opacity: 0.8;
}

nav a.active {
    color: #ffd700;
}

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

/* Hero & 轮播 */
.hero {
    background: linear-gradient(135deg, #0d47a1, #1a73e8, #42a5f5);
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.95;
}

.hero .btn {
    display: inline-block;
    padding: 16px 50px;
    background: #ffd700;
    color: #1a1a1a;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.carousel {
    display: flex;
    overflow: hidden;
    width: 100%;
    position: relative;
    height: 500px;
}

.carousel-slide {
    min-width: 100%;
    transition: transform 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 60px 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.carousel-dots span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dots span.active {
    background: #ffd700;
}

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

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a73e8;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 网格布局 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* 卡片 */
.card {
    background: #fff;
    border-radius: 16px;
    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);
    border: 1px solid rgba(26, 115, 232, 0.08);
}

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

body.dark .card {
    background: #161b22;
    border-color: rgba(255, 255, 255, 0.05);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1a73e8, #42a5f5);
}

.card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

body.dark .card h3 {
    color: #e6edf3;
}

.card p {
    color: #555;
    font-size: 15px;
}

body.dark .card p {
    color: #8b949e;
}

/* 统计 */
.stats {
    background: linear-gradient(135deg, #0d47a1, #1a73e8);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

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

.stat-item h4 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 18px;
    opacity: 0.9;
}

/* 团队卡片 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.team-card {
    text-align: center;
    padding: 25px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s;
}

body.dark .team-card {
    background: #161b22;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    background: #e0e0e0;
}

.team-card h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.team-card p {
    color: #666;
    font-size: 14px;
}

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

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

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

.faq-question span {
    transition: transform 0.3s;
}

.faq-item.active .faq-question span {
    transform: rotate(180deg);
}

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

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

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

/* 联系信息 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

body.dark .contact-info {
    background: #161b22;
}

.contact-info h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a73e8;
}

.contact-info p {
    color: #555;
    font-size: 15px;
}

body.dark .contact-info p {
    color: #8b949e;
}

/* 页脚 */
footer {
    background: #0d1117;
    color: #8b949e;
    padding: 50px 0 30px;
    text-align: center;
}

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

footer a {
    color: #8b949e;
    text-decoration: none;
    font-size: 14px;
}

footer a:hover {
    color: #e6edf3;
}

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

.back-to-top:hover {
    transform: scale(1.1);
}

.dark-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    border: none;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: transform 0.3s;
}

.dark-toggle:hover {
    transform: scale(1.1);
}

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

.search-box input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 30px;
    border: 2px solid #e0e0e0;
    font-size: 16px;
    outline: none;
    transition: border 0.3s;
}

.search-box input:focus {
    border-color: #1a73e8;
}

body.dark .search-box input {
    background: #161b22;
    border-color: #30363d;
    color: #e6edf3;
}

.search-box button {
    padding: 14px 30px;
    border-radius: 30px;
    background: #1a73e8;
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #0d47a1;
}

/* 评价轮播 */
.testimonial-carousel {
    overflow: hidden;
    position: relative;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 40px;
    text-align: center;
    font-size: 18px;
    font-style: italic;
    color: #444;
}

body.dark .testimonial-card {
    color: #c9d1d9;
}

.testimonial-card .author {
    font-weight: 600;
    margin-top: 15px;
    color: #1a73e8;
    font-style: normal;
}

/* 面包屑 */
.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: #ffd700;
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 8px;
}

/* 新闻网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s;
}

body.dark .news-card {
    background: #161b22;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #e0e0e0;
    display: block;
}

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

.news-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.news-card .date {
    color: #888;
    font-size: 13px;
    margin-bottom: 8px;
}

/* 合作伙伴 */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    align-items: center;
    justify-items: center;
}

.partner-grid div {
    width: 120px;
    height: 80px;
    background: #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

body.dark .partner-grid div {
    background: #21262d;
    color: #8b949e;
}

/* 使用指南步骤 */
.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.howto-step .step-num {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.howto-step p {
    margin-top: 5px;
    color: #555;
}

body.dark .howto-step p {
    color: #8b949e;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #0d47a1;
        padding: 20px;
        gap: 15px;
    }
    nav ul.open {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .carousel {
        height: 400px;
    }
    .section-title {
        font-size: 28px;
    }
    .stat-item h4 {
        font-size: 36px;
    }
    .contact-info {
        padding: 20px;
    }
    .back-to-top,
    .dark-toggle {
        width: 40px;
        height: 40px;
        font-size: 18px;
        bottom: 20px;
    }
    .dark-toggle {
        left: 20px;
    }
    .back-to-top {
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 26px;
    }
    .hero {
        padding: 60px 0;
    }
    .section {
        padding: 50px 0;
    }
    .card {
        padding: 20px;
    }
}

/* 滚动动画 */
.section {
    animation: fadeInUp 0.6s ease both;
}

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