/* 必威体育官方网站 - 完整CSS样式文件 */
/* 基础重置与变量定义 */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f4f6f9;
    --text-primary: #1a1a2e;
    --text-secondary: #2d2d44;
    --accent: #e94560;
    --accent2: #0f3460;
    --gradient: linear-gradient(135deg, #1a1a2e, #0f3460, #e94560);
    --glass-bg: rgba(255,255,255,0.75);
    --glass-border: rgba(255,255,255,0.2);
    --shadow: 0 8px 32px rgba(0,0,0,0.1);
    --radius: 20px;
    --card-bg: #ffffff;
    --nav-bg: rgba(255,255,255,0.9);
    --footer-bg: #1a1a2e;
    --footer-text: #f0f0f0;
    --transition: 0.3s ease;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

[data-theme="dark"] {
    --bg-primary: #121212;
    --bg-secondary: #1e1e2e;
    --text-primary: #f0f0f0;
    --text-secondary: #cccccc;
    --card-bg: #2a2a3e;
    --glass-bg: rgba(30,30,50,0.8);
    --nav-bg: rgba(18,18,18,0.95);
    --footer-bg: #0a0a1a;
    --shadow: 0 8px 32px rgba(0,0,0,0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background var(--transition), color var(--transition);
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent2);
}

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

ul, ol {
    list-style: none;
}

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

/* 玻璃效果 */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* 卡片 */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    background: var(--gradient);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    font-size: 1rem;
}

.btn:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(233,69,96,0.4);
}

/* 导航 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background var(--transition);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo svg {
    width: 48px;
    height: 48px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--accent);
    color: #fff;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 4px;
}

.dark-toggle {
    font-size: 20px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 6px;
    transition: transform 0.3s ease;
}

.dark-toggle:hover {
    transform: rotate(20deg);
}

/* 移动菜单 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 20px;
        gap: 12px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

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

    .menu-toggle {
        display: block;
    }

    nav {
        padding: 10px 16px;
    }
}

/* Banner (Hero) */
.hero {
    padding: 120px 20px 80px;
    background: var(--gradient);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero .btn {
    background: #fff;
    color: #1a1a2e;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* 通用section */
section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 12px auto 0;
    border-radius: 4px;
}

/* 网格系统 */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

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

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

@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    section {
        padding: 60px 16px;
    }
}

/* 轮播 */
.carousel {
    overflow: hidden;
    position: relative;
    border-radius: var(--radius);
}

.carousel-track {
    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(0,0,0,0.3);
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    transition: background 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.6);
}

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

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

/* 面包屑 */
.breadcrumb {
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb span {
    color: var(--text-primary);
    font-weight: 500;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid rgba(128,128,128,0.2);
    padding: 16px 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.faq-item:hover {
    background: rgba(128,128,128,0.05);
}

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

.faq-question span {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding-top: 8px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    max-height: 600px;
}

/* 数字增长 */
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
}

/* 底部 */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 20px 20px;
}

footer a {
    color: #aaa;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
}

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

.footer-grid h4 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #fff;
}

.footer-grid p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

.footer-bottom p {
    margin-bottom: 4px;
}

/* 返回顶部 */
.back-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    display: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-top.visible {
    display: block;
}

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

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

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

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

.search-box input {
    flex: 1;
    padding: 10px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.6);
}

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

.search-box button {
    padding: 10px 20px;
    border-radius: 50px;
    background: #fff;
    color: #1a1a2e;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.search-box button:hover {
    transform: scale(1.05);
}

/* 图片占位SVG样式 */
.placeholder-svg {
    background: #e0e0e0;
    border-radius: 12px;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
}

/* 卡片内标题样式 */
.card h2,
.card h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.card ol {
    list-style: decimal;
    padding-left: 20px;
    color: var(--text-secondary);
}

.card ol li {
    margin-bottom: 8px;
}

/* 应用行业卡片更紧凑 */
.grid-3 .card {
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

/* 客户评价卡片 */
.grid-3 .card:has(p) {
    font-style: italic;
    line-height: 1.6;
}

/* 团队介绍居中 */
#team .card {
    text-align: center;
}

#team .card svg {
    margin: 0 auto 16px;
}

/* 联系我们卡片 */
#contact .card h3 {
    margin-bottom: 16px;
}

#contact .card p {
    margin-bottom: 8px;
}

/* 操作指南 */
#howto .card h3 {
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--accent);
}

#howto .card h3:first-child {
    margin-top: 0;
}

/* 新闻网格中的卡片 */
#newsGrid .card,
#latestArticles .card,
#hotArticles .card,
#relatedArticles .card {
    display: flex;
    flex-direction: column;
}

#newsGrid .card .btn,
#latestArticles .card .btn,
#hotArticles .card .btn,
#relatedArticles .card .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* 品牌介绍内嵌SVG */
#about .card svg {
    width: 100%;
    height: auto;
    aspect-ratio: 600/340;
}

/* 产品中心SVG */
#products .card svg {
    width: 100%;
    height: auto;
    aspect-ratio: 400/250;
    margin-bottom: 16px;
}

/* 核心优势统计数字下方文字 */
.grid-4 .card p {
    margin-top: 8px;
    font-weight: 500;
}

/* 底部二维码区域 */
footer .footer-grid svg {
    display: block;
    margin-bottom: 8px;
}

/* 响应式微调 */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .carousel-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    .back-top {
        bottom: 24px;
        right: 24px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .breadcrumb {
        font-size: 0.8rem;
        padding: 12px 16px;
    }
}

/* 暗黑模式下的特定调整 */
[data-theme="dark"] .card {
    border: 1px solid rgba(255,255,255,0.05);
}

[data-theme="dark"] .search-box input {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

[data-theme="dark"] .breadcrumb {
    background: var(--bg-secondary);
}

/* 导航栏在暗黑模式下的边框 */
[data-theme="dark"] header {
    border-bottom-color: rgba(255,255,255,0.05);
}

/* 确保所有SVG文本在暗黑模式下可读 */
[data-theme="dark"] .placeholder-svg {
    background: #2a2a3e;
    color: #aaa;
}

/* 轮播项卡片 */
.carousel-item.card {
    background: var(--card-bg);
}

/* 保证footer链接间距 */
footer .footer-grid a {
    display: inline-block;
    margin-bottom: 4px;
}

/* 友情链接区域 */
footer .footer-grid div:has(a) a {
    display: block;
    margin-bottom: 4px;
}

/* 避免图片溢出 */
svg {
    max-width: 100%;
    height: auto;
}

/* 文章日期样式 */
#newsGrid .card p:first-of-type,
#latestArticles .card p:first-of-type,
#hotArticles .card p:first-of-type,
#relatedArticles .card p:first-of-type {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* 搜索框在hero中的适配 */
.hero .search-box input {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.hero .search-box input::placeholder {
    color: rgba(255,255,255,0.7);
}

.hero .search-box button {
    background: #ffd700;
    color: #1a1a2e;
}

/* 动画延迟辅助（可选） */
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }

/* 确保导航链接在移动端点击区域足够 */
.nav-links a {
    padding: 8px 12px;
}

/* 暗黑模式切换按钮在导航中的定位 */
.dark-toggle {
    font-size: 1.2rem;
}

/* 核心优势网格在移动端的间距 */
@media (max-width: 600px) {
    .grid-4 .card {
        padding: 16px;
    }
    .stat-number {
        font-size: 2rem;
    }
}

/* 防止FAQ内容溢出 */
.faq-answer {
    word-break: break-word;
}

/* 确保所有按钮可访问 */
.btn:focus-visible,
.carousel-btn:focus-visible,
.back-top:focus-visible,
.dark-toggle:focus-visible,
.menu-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* 产品优势卡片 */
#products + section .card h3 {
    color: var(--accent);
}

/* 解决方案卡片 */
#services + section .card h3 {
    color: var(--accent2);
}

/* 应用行业卡片背景 */
section:has(.grid-3 .card:only-child) .card {
    background: var(--card-bg);
}

/* 客户评价引用样式 */
.grid-3 .card:has(p) {
    position: relative;
}

.grid-3 .card:has(p)::before {
    content: '"';
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.3;
    position: absolute;
    top: 8px;
    left: 16px;
}

/* 操作指南列表样式 */
#howto ol {
    padding-left: 24px;
}

#howto ol li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 图片懒加载占位 */
img[loading="lazy"] {
    background: var(--bg-secondary);
    min-height: 100px;
}

/* 确保所有section有合适的间距 */
section:last-of-type {
    padding-bottom: 80px;
}

/* 面包屑导航在移动端换行 */
@media (max-width: 600px) {
    .breadcrumb {
        font-size: 0.8rem;
    }
}

/* 卡片内链接样式 */
.card a:not(.btn) {
    color: var(--accent);
    font-weight: 500;
}

.card a:not(.btn):hover {
    text-decoration: underline;
}

/* 暗黑模式下的卡片阴影微调 */
[data-theme="dark"] .card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* 渐变Banner的圆角处理 */
.hero {
    border-radius: 0;
}

/* 确保页面内容不被固定导航遮挡 */
main {
    padding-top: 0;
}

/* 第一个section（hero）已经有padding-top */
#hero {
    padding-top: 120px;
}

@media (max-width: 768px) {
    #hero {
        padding-top: 80px;
    }
}

/* 品牌介绍中的标题 */
#about .card h2 {
    font-size: 1.5rem;
}

/* 团队介绍中头像SVG */
#team .card svg {
    width: 120px;
    height: 120px;
}

/* 产品中心卡片标题 */
#products .card h3 {
    margin-top: 12px;
}

/* 服务支持卡片 */
#services .card h3 {
    color: var(--accent2);
}

/* 成功案例轮播卡片 */
.carousel-item.card {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 联系我们卡片中的联系方式 */
#contact .card p {
    font-size: 0.95rem;
}

/* 底部版权信息 */
.footer-bottom p {
    margin-bottom: 4px;
}

/* 友情链接与网站地图 */
footer .footer-grid div:has(a) a {
    padding: 2px 0;
}

/* 搜索框在暗黑模式下的按钮 */
[data-theme="dark"] .hero .search-box button {
    background: #ffd700;
    color: #1a1a2e;
}

/* 确保所有交互元素有适当的过渡 */
button,
a,
.card,
.btn {
    transition: all var(--transition);
}

/* 响应式下导航菜单的调整 */
@media (max-width: 768px) {
    .nav-links a {
        font-size: 1rem;
        padding: 10px 16px;
    }
    .nav-links .dark-toggle {
        align-self: flex-start;
        padding: 10px 16px;
    }
}

/* 防止轮播按钮在移动设备上太小 */
@media (max-width: 480px) {
    .carousel-btn {
        padding: 10px 14px;
        font-size: 16px;
    }
}

/* 数字增长动画的初始状态 */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* 应用行业卡片hover效果 */
section:has(.grid-3 .card:only-child) .card:hover {
    transform: translateY(-4px);
}

/* 客户评价卡片hover */
.grid-3 .card:has(p):hover {
    transform: translateY(-4px);
}

/* 确保所有卡片在暗黑模式下有良好的对比度 */
[data-theme="dark"] .card {
    border: 1px solid rgba(255,255,255,0.08);
}

/* 品牌介绍中的SVG背景 */
#about .card svg {
    border-radius: 12px;
}

/* 产品中心SVG背景 */
#products .card svg {
    border-radius: 12px;
}

/* 团队头像SVG */
#team .card svg {
    border-radius: 50%;
}

/* 底部二维码SVG */
footer svg {
    border-radius: 12px;
}

/* 滚动动画的初始透明度 */
.fade-up {
    opacity: 0;
}

/* 确保可见的fade-up元素 */
.fade-up.visible {
    opacity: 1;
}

/* 暗黑模式下的渐变背景调整 */
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0a0a1a, #1a1a2e, #2d2d44);
}

/* 导航栏的暗黑模式适配 */
[data-theme="dark"] header {
    background: rgba(18,18,18,0.95);
}

/* 面包屑暗黑模式 */
[data-theme="dark"] .breadcrumb {
    background: #1e1e2e;
}

/* 搜索框在非hero区域的暗黑模式 */
[data-theme="dark"] .search-box input {
    background: #2a2a3e;
    border-color: #444;
    color: #f0f0f0;
}

[data-theme="dark"] .search-box input::placeholder {
    color: #888;
}

[data-theme="dark"] .search-box button {
    background: var(--accent);
    color: #fff;
}

/* 确保所有文本在暗黑模式下清晰 */
[data-theme="dark"] .text-secondary {
    color: #cccccc;
}

/* 按钮在暗黑模式下的阴影 */
[data-theme="dark"] .btn:hover {
    box-shadow: 0 8px 24px rgba(233,69,96,0.6);
}

/* 卡片内链接暗黑模式 */
[data-theme="dark"] .card a:not(.btn) {
    color: #ff6b81;
}

/* 数字增长暗黑模式 */
[data-theme="dark"] .stat-number {
    color: #ff6b81;
}

/* 底部链接暗黑模式 */
[data-theme="dark"] footer a {
    color: #bbb;
}

[data-theme="dark"] footer a:hover {
    color: #fff;
}

/* 轮播按钮暗黑模式 */
[data-theme="dark"] .carousel-btn {
    background: rgba(255,255,255,0.2);
}

[data-theme="dark"] .carousel-btn:hover {
    background: rgba(255,255,255,0.4);
}

/* 返回顶部暗黑模式 */
[data-theme="dark"] .back-top {
    background: #e94560;
    box-shadow: 0 4px 16px rgba(233,69,96,0.5);
}

/* 确保所有hover动画平滑 */
* {
    -webkit-tap-highlight-color: transparent;
}

/* 移动端触摸优化 */
@media (hover: none) {
    .card:hover {
        transform: none;
    }
    .btn:hover {
        transform: none;
    }
}

/* 打印样式 */
@media print {
    header, footer, .back-top, .carousel-btn, .search-box {
        display: none;
    }
    .hero {
        padding: 40px 20px;
        min-height: auto;
        background: #1a1a2e;
    }
    body {
        background: #fff;
        color: #000;
    }
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}