/* style.css - 乐动体育官方网站 完整样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', Roboto, sans-serif;
    background: #f5f7fa;
    color: #222;
    transition: background 0.3s, color 0.3s;
    line-height: 1.7;
}

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

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

/* 头部导航 */
header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    flex-wrap: wrap;
}

.logo img {
    height: 40px;
    vertical-align: middle;
}

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

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.3s;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-actions {
    display: flex;
    gap: 10px;
}

.nav-actions button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background 0.3s;
}

.nav-actions button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
    display: none;
}

.search-box {
    padding: 10px 20px;
    background: #1a1a2e;
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    border: none;
    outline: none;
}

.search-box button {
    padding: 8px 16px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.search-box button:hover {
    opacity: 0.85;
}

.breadcrumb {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 8px;
}

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

/* Hero Banner */
.hero-banner {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.banner-slider {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.banner-controls button {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 12px 18px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
}

.banner-controls button:hover {
    background: rgba(0, 0, 0, 0.6);
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

.banner-dots span.active {
    background: #ff6b35;
}

/* 通用 section 间距 */
.brand-intro,
.culture,
.team,
.products,
.advantages,
.service,
.core,
.solutions,
.industries,
.cases,
.testimonials,
.news,
.latest-articles,
.hot,
.related,
.faq,
.howto,
.contact {
    padding: 60px 0;
}

/* 标题 */
h1,
h2,
h3 {
    margin-bottom: 20px;
}

h1 {
    font-size: 2.2rem;
    color: #ff6b35;
}

h2 {
    font-size: 1.8rem;
    border-left: 4px solid #ff6b35;
    padding-left: 15px;
}

/* 毛玻璃效果 */
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.dark-mode .glass {
    background: rgba(0, 0, 0, 0.3);
}

/* 卡片网格 */
.culture-grid,
.team-grid,
.product-grid,
.service-grid,
.case-grid,
.testimonial-grid,
.news-grid,
.hot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* 卡片通用样式 */
.culture-card,
.team-card,
.product-card,
.service-card,
.case-card,
.testimonial-card,
.news-item,
.hot-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.dark-mode .culture-card,
.dark-mode .team-card,
.dark-mode .product-card,
.dark-mode .service-card,
.dark-mode .case-card,
.dark-mode .testimonial-card,
.dark-mode .news-item,
.dark-mode .hot-card {
    background: #1e1e1e;
}

.culture-card:hover,
.team-card:hover,
.product-card:hover,
.service-card:hover,
.case-card:hover,
.testimonial-card:hover,
.news-item:hover,
.hot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.culture-card img,
.team-card img,
.product-card img,
.service-card img,
.case-card img,
.hot-card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 15px;
}

/* 品牌介绍段落 */
.brand-intro p {
    margin-bottom: 1em;
    text-align: justify;
}

/* 优势列表 */
.advantages ul,
.solutions ul {
    list-style: none;
    padding-left: 0;
}

.advantages li,
.solutions li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.dark-mode .advantages li,
.dark-mode .solutions li {
    border-color: #333;
}

.advantages li:last-child,
.solutions li:last-child {
    border-bottom: none;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    cursor: pointer;
}

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

.faq-question {
    font-weight: bold;
    font-size: 1.1rem;
    position: relative;
    padding-right: 30px;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

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

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

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

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

/* HowTo */
.howto ol {
    padding-left: 20px;
    margin: 10px 0;
}

.howto li {
    margin: 5px 0;
}

/* 联系我们 */
.contact .qr-codes {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.contact .qr-codes img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
}

/* 页脚 */
footer {
    background: #1a1a2e;
    color: white;
    padding: 40px 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-container a {
    color: #ff6b35;
    text-decoration: none;
}

.footer-container a:hover {
    text-decoration: underline;
}

.footer-container ul {
    list-style: none;
    padding: 0;
}

.footer-container li {
    margin: 5px 0;
}

.footer-info p {
    margin: 5px 0;
}

/* 返回顶部按钮 */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: opacity 0.3s;
}

#backToTop:hover {
    opacity: 0.8;
}

/* 阅读更多链接 */
.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #ff6b35;
    font-weight: bold;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 数字滚动样式 */
.count-up {
    font-size: 2rem;
    font-weight: bold;
    color: #ff6b35;
}

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

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

    .menu-toggle {
        display: block;
    }

    .hero-banner {
        height: 300px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .culture-grid,
    .team-grid,
    .product-grid,
    .service-grid,
    .case-grid,
    .testimonial-grid,
    .news-grid,
    .hot-grid {
        grid-template-columns: 1fr;
    }

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