/* ============================================ */
/* 必威体育官网 - 完整样式表 (style.css)         */
/* 包含：全局、布局、组件、动画、暗色、响应式   */
/* ============================================ */

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

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #222;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: #ff6600;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    text-decoration: underline;
    color: #ff8833;
}

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

ul, ol {
    list-style: none;
}

/* ---------- 版心容器 ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ---------- 头部导航 ---------- */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    transition: background 0.3s;
}

.dark header {
    background: linear-gradient(135deg, #0d0d1a 0%, #111827 50%, #0a1e3a 100%);
}

.logo svg {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

nav ul {
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    background: rgba(255,102,0,0.3);
    color: #fff;
    transform: translateY(-1px);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: #ff6600;
    transition: transform 0.3s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.2rem;
    transition: transform 0.2s;
}

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

.search-box {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-box input {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid #ccc;
    width: 200px;
    background: rgba(255,255,255,0.9);
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: 0.9rem;
}

.search-box input:focus {
    outline: none;
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255,102,0,0.2);
}

.dark .search-box input {
    background: rgba(30,30,30,0.9);
    border-color: #444;
    color: #e0e0e0;
}

.search-box button {
    background: #ff6600;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s, transform 0.2s;
}

.search-box button:hover {
    background: #ff8833;
    transform: scale(1.02);
}

.dark-toggle {
    background: none;
    border: 1px solid #fff;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s, border-color 0.3s;
}

.dark-toggle:hover {
    background: rgba(255,255,255,0.1);
    border-color: #ff6600;
}

/* ---------- 英雄区/横幅 ---------- */
.hero {
    background: linear-gradient(135deg, #0f3460, #533483, #e94560);
    color: white;
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

.hero .btn {
    background: #ff6600;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(255,102,0,0.3);
}

.hero .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255,102,0,0.4);
    background: #ff8833;
    text-decoration: none;
}

.hero .banner-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero .slide.active {
    opacity: 1;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
    background: #fff;
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.dark .breadcrumb {
    background: #1e1e1e;
    border-bottom-color: #333;
}

.breadcrumb a {
    color: #ff6600;
}

.breadcrumb span {
    color: #666;
}

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

/* ---------- 通用区域间距 ---------- */
section {
    margin-bottom: 3rem;
}

/* ---------- 毛玻璃效果 ---------- */
.glass {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

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

.dark .glass {
    background: rgba(30,30,30,0.8);
    border-color: rgba(255,255,255,0.05);
}

/* ---------- 卡片样式 ---------- */
.card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

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

.dark .card {
    background: #1e1e1e;
    border-color: rgba(255,255,255,0.05);
}

.dark .card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

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

/* ---------- 标题样式 ---------- */
h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #ff6600;
    border-radius: 2px;
}

.dark h2 {
    color: #e0e0e0;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.dark h3 {
    color: #ccc;
}

/* ---------- FAQ ---------- */
.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 1rem 0;
    transition: border-color 0.3s;
}

.dark .faq-item {
    border-bottom-color: #333;
}

.faq-question {
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.faq-question:hover {
    color: #ff6600;
}

.faq-question span {
    font-size: 1.5rem;
    transition: transform 0.3s;
    user-select: none;
}

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

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

.dark .faq-answer {
    color: #bbb;
}

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

/* ---------- HowTo步骤 ---------- */
.howto-step {
    background: #f9f9f9;
    padding: 1rem;
    border-left: 4px solid #ff6600;
    margin-bottom: 1rem;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
}

.howto-step:hover {
    background: #f0f0f0;
    transform: translateX(3px);
}

.dark .howto-step {
    background: #2a2a2a;
    border-left-color: #ff8833;
}

.dark .howto-step:hover {
    background: #333;
}

/* ---------- 新闻列表 ---------- */
.news-list article {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed #ccc;
    transition: border-color 0.3s;
}

.dark .news-list article {
    border-bottom-color: #333;
}

.news-list article h3 {
    margin-bottom: 0.3rem;
    transition: color 0.2s;
}

.news-list article:hover h3 {
    color: #ff6600;
}

.news-list article .date {
    color: #888;
    font-size: 0.85rem;
}

.dark .news-list article .date {
    color: #777;
}

.btn-read {
    display: inline-block;
    margin-top: 0.5rem;
    background: #ff6600;
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn-read:hover {
    background: #ff8833;
    transform: translateY(-1px);
    text-decoration: none;
}

/* ---------- 页脚 ---------- */
footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 3rem 2rem 1rem;
    transition: background 0.3s;
}

.dark footer {
    background: #0d0d1a;
}

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

footer h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

footer a {
    color: #ff6600;
    transition: color 0.2s;
}

footer a:hover {
    color: #ff8833;
}

footer .copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.8;
}

footer .copyright p {
    margin: 0.3rem 0;
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #ff6600;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s, background 0.3s;
    z-index: 999;
    border: none;
}

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

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

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

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

/* ---------- 数字计数器 ---------- */
.counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff6600;
    display: inline-block;
}

/* ---------- 客户评价轮播 ---------- */
.testimonial-slider {
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
}

.testimonial-slide {
    min-width: 100%;
    transition: transform 0.5s ease;
    padding: 1.5rem;
    text-align: center;
    font-style: italic;
    font-size: 1.05rem;
}

.slick-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.slick-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.slick-dots button:hover {
    transform: scale(1.2);
}

.slick-dots .active {
    background: #ff6600;
}

.dark .slick-dots button {
    background: #444;
}

.dark .slick-dots .active {
    background: #ff6600;
}

/* ---------- 图片占位符 ---------- */
.img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #ff6600, #ffaa00);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: transform 0.3s;
}

.img-placeholder:hover {
    transform: scale(1.02);
}

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

/* ---------- 合作伙伴链接 ---------- */
.partner-links a {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.3rem 0.8rem;
    background: #eee;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: background 0.3s, color 0.3s;
}

.partner-links a:hover {
    background: #ddd;
    color: #ff6600;
}

.dark .partner-links a {
    background: #333;
    color: #ccc;
}

.dark .partner-links a:hover {
    background: #444;
    color: #ff8833;
}

/* ---------- 列表样式 ---------- */
.glass ul,
.card ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.glass ul li,
.card ul li {
    list-style: disc;
    margin-bottom: 0.3rem;
}

/* ---------- 响应式设计 ---------- */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background: #1a1a2e;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        z-index: 999;
    }

    .dark nav ul {
        background: #0d0d1a;
    }

    nav ul.open {
        display: flex;
    }

    nav ul li a {
        padding: 0.8rem 1rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .menu-toggle {
        display: block;
    }

    .search-box input {
        width: 120px;
        font-size: 0.8rem;
    }

    .search-box button {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .hero {
        padding: 3rem 1rem;
        min-height: 50vh;
    }

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

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

    .container {
        padding: 1rem;
    }

    .breadcrumb {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .glass {
        padding: 1.2rem;
    }

    .card {
        padding: 1rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .grid,
    .team-grid,
    .product-grid,
    .case-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

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

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .img-placeholder {
        height: 150px;
    }

    .faq-question {
        font-size: 0.95rem;
    }
}

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

    .hero .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

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

    .breadcrumb {
        font-size: 0.75rem;
    }

    .search-box input {
        width: 90px;
    }

    .logo svg {
        height: 40px;
    }
}

/* ---------- 暗色模式额外调整 ---------- */
.dark .glass ul li,
.dark .card ul li {
    color: #ccc;
}

.dark .glass p,
.dark .card p {
    color: #ccc;
}

.dark .hero .btn {
    box-shadow: 0 4px 15px rgba(255,102,0,0.2);
}

.dark .hero .btn:hover {
    box-shadow: 0 6px 20px rgba(255,102,0,0.3);
}

/* ---------- 打印优化 ---------- */
@media print {
    header, footer, .back-to-top, .search-box, .dark-toggle, .menu-toggle {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
    .hero {
        padding: 2rem;
        background: #f0f0f0 !important;
        color: black;
    }
    .glass {
        background: white !important;
        backdrop-filter: none;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    .scroll-animate {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ---------- 高分辨率屏幕 ---------- */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
    }
}

/* ---------- 减少运动偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .scroll-animate {
        opacity: 1 !important;
        transform: none !important;
    }
    .hero .slide {
        transition: none !important;
    }
}