/* 完美体育官方网站 - style.css */
/* UI风格：渐变Banner、圆角卡片、毛玻璃效果、响应式布局、暗色模式、滚动动画、hover动画 */

/* 重置与基础 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background: #f0f2f5;
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}

/* 暗色模式 - 基于body类或html滤镜，这里用class方式更可控，但保留原JS滤镜兼容 */
body.dark-mode {
    background: #0f0f1a;
    color: #e0e0e0;
}

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

/* 头部导航 */
header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: background 0.3s;
}

body.dark-mode header {
    background: rgba(15, 15, 26, 0.95);
}

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

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

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

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

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 60%;
}

nav ul li a:hover {
    background: rgba(233, 69, 96, 0.2);
}

nav ul li a.active {
    color: #e94560;
    font-weight: 600;
}

nav button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 50%;
    transition: background 0.3s;
}

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

/* 搜索覆盖层 */
#searchOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

#searchOverlay[hidden] {
    display: none;
}

#searchOverlay form {
    background: #fff;
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: 500px;
    width: 90%;
}

body.dark-mode #searchOverlay form {
    background: #1a1a2e;
    color: #fff;
}

#searchOverlay input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}

#searchOverlay input:focus {
    border-color: #e94560;
}

body.dark-mode #searchOverlay input {
    background: #2a2a3e;
    border-color: #444;
    color: #fff;
}

#searchOverlay button[type="submit"] {
    background: #e94560;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

#searchOverlay button[type="submit"]:hover {
    background: #d63851;
}

#searchClose {
    background: none;
    border: 1px solid #ccc;
    font-size: 1.2rem;
    padding: 8px 14px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

#searchClose:hover {
    background: #eee;
}

body.dark-mode #searchClose {
    color: #fff;
    border-color: #555;
}

/* Hero Banner 渐变 */
section[aria-labelledby="hero-title"] {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

section[aria-labelledby="hero-title"]::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(233,69,96,0.15) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10%, 10%); }
}

section[aria-labelledby="hero-title"] > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

section[aria-labelledby="hero-title"] h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #e94560);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

section[aria-labelledby="hero-title"] p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

section[aria-labelledby="hero-title"] a[role="button"] {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin: 10px 10px 0 0;
    transition: all 0.3s ease;
    font-size: 1rem;
}

section[aria-labelledby="hero-title"] a[role="button"]:first-of-type {
    background: #e94560;
    color: #fff;
    box-shadow: 0 8px 30px rgba(233,69,96,0.4);
}

section[aria-labelledby="hero-title"] a[role="button"]:first-of-type:hover {
    background: #d63851;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(233,69,96,0.6);
}

section[aria-labelledby="hero-title"] a[role="button"]:last-of-type {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
}

section[aria-labelledby="hero-title"] a[role="button"]:last-of-type:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

/* 通用section样式 */
main section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

main section:nth-child(2) { animation-delay: 0.1s; }
main section:nth-child(3) { animation-delay: 0.2s; }
main section:nth-child(4) { animation-delay: 0.3s; }
main section:nth-child(5) { animation-delay: 0.4s; }
main section:nth-child(6) { animation-delay: 0.5s; }
main section:nth-child(7) { animation-delay: 0.6s; }
main section:nth-child(8) { animation-delay: 0.7s; }
main section:nth-child(9) { animation-delay: 0.8s; }
main section:nth-child(10) { animation-delay: 0.9s; }
main section:nth-child(11) { animation-delay: 1.0s; }
main section:nth-child(12) { animation-delay: 1.1s; }
main section:nth-child(13) { animation-delay: 1.2s; }
main section:nth-child(14) { animation-delay: 1.3s; }
main section:nth-child(15) { animation-delay: 1.4s; }
main section:nth-child(16) { animation-delay: 1.5s; }
main section:nth-child(17) { animation-delay: 1.6s; }
main section:nth-child(18) { animation-delay: 1.7s; }

/* 标题样式 */
h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #e94560, #0f3460);
    border-radius: 2px;
}

/* 圆角卡片通用 */
section article, section > div > article, .card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

body.dark-mode section article,
body.dark-mode section > div > article,
body.dark-mode .card {
    background: rgba(30, 30, 50, 0.9);
    border-color: rgba(255,255,255,0.05);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

section article:hover,
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}

/* 网格布局 */
#about + section > div,
#team-title + div,
#products > div,
#solutions-title + div,
#advantages > div,
#testimonials-title + div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* 关于、故事等文本区 */
#about, #story-title, #industries-title + p {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.05);
    line-height: 1.8;
}

body.dark-mode #about,
body.dark-mode #story-title,
body.dark-mode #industries-title + p {
    background: rgba(30, 30, 50, 0.8);
}

/* 团队卡片 */
#team-title + div article {
    text-align: center;
    padding: 30px 20px;
}

#team-title + div article h3 {
    color: #e94560;
    margin-bottom: 8px;
    font-size: 1.4rem;
}

#team-title + div article p:first-of-type {
    font-weight: 600;
    color: #555;
    margin-bottom: 12px;
}

body.dark-mode #team-title + div article p:first-of-type {
    color: #aaa;
}

/* 服务列表 */
#services ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    padding: 0;
}

#services ul li {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    padding: 18px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border-left: 4px solid #e94560;
}

body.dark-mode #services ul li {
    background: rgba(30, 30, 50, 0.85);
}

#services ul li:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* 特色列表 */
#features ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

#features ul li {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: all 0.3s;
    position: relative;
    padding-left: 50px;
}

body.dark-mode #features ul li {
    background: rgba(30, 30, 50, 0.85);
}

#features ul li::before {
    content: '✓';
    position: absolute;
    left: 18px;
    top: 18px;
    color: #e94560;
    font-weight: bold;
    font-size: 1.2rem;
}

#features ul li:hover {
    background: rgba(233,69,96,0.1);
    transform: scale(1.02);
}

/* 用户评价 */
#testimonials-title + div blockquote {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    padding: 24px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    border-left: 5px solid #e94560;
    transition: all 0.3s;
}

body.dark-mode #testimonials-title + div blockquote {
    background: rgba(30, 30, 50, 0.85);
}

#testimonials-title + div blockquote:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

#testimonials-title + div blockquote p {
    font-style: italic;
    font-size: 1.05rem;
}

/* FAQ 手风琴 */
#faq details {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s;
}

body.dark-mode #faq details {
    background: rgba(30, 30, 50, 0.85);
}

#faq details summary {
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s;
}

#faq details summary::after {
    content: '+';
    font-size: 1.4rem;
    color: #e94560;
    transition: transform 0.3s;
}

#faq details[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

#faq details summary:hover {
    background: rgba(233,69,96,0.05);
}

#faq details p {
    padding: 0 24px 18px;
    line-height: 1.7;
    color: #444;
}

body.dark-mode #faq details p {
    color: #ccc;
}

/* 知识中心 */
#knowledge-title + ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

#knowledge-title + ul li a {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    text-decoration: none;
    color: #1a1a2e;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

body.dark-mode #knowledge-title + ul li a {
    background: rgba(30, 30, 50, 0.85);
    color: #e0e0e0;
}

#knowledge-title + ul li a:hover {
    background: #e94560;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(233,69,96,0.3);
}

/* HowTo 步骤 */
#howto-title + ol {
    list-style: none;
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

#howto-title + ol li {
    counter-increment: step;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: all 0.3s;
    position: relative;
}

body.dark-mode #howto-title + ol li {
    background: rgba(30, 30, 50, 0.85);
}

#howto-title + ol li::before {
    content: counter(step);
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #e94560;
    margin-bottom: 8px;
}

#howto-title + ol li:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

/* 联系 */
#contact address {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.05);
    font-style: normal;
    line-height: 2;
}

body.dark-mode #contact address {
    background: rgba(30, 30, 50, 0.85);
}

/* 成功案例 */
#cases-title + article {
    margin-bottom: 20px;
    padding: 24px 30px;
}

#cases-title + article h3 {
    color: #e94560;
    margin-bottom: 10px;
}

/* 最新洞察 */
#insights-title + article {
    margin-bottom: 20px;
    padding: 24px 30px;
}

#insights-title + article h3 {
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 50px 20px 20px;
    margin-top: 60px;
}

body.dark-mode footer {
    background: #0a0a14;
}

footer > div:first-child {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

footer h3 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 8px;
}

footer ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

footer ul li a:hover {
    color: #e94560;
}

footer > p {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    margin-top: 30px;
    font-size: 0.9rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Back to Top */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e94560;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(233,69,96,0.4);
    transition: all 0.3s;
    z-index: 999;
    display: none;
}

#backToTop:hover {
    background: #d63851;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(233,69,96,0.6);
}

/* 辅助类 */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* 响应式 */
@media (max-width: 768px) {
    html { font-size: 14px; }

    nav {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    nav ul {
        justify-content: center;
        gap: 8px;
    }

    nav ul li a {
        font-size: 0.85rem;
        padding: 4px 10px;
    }

    section[aria-labelledby="hero-title"] {
        padding: 50px 20px;
        min-height: 60vh;
    }

    section[aria-labelledby="hero-title"] h1 {
        font-size: 2rem;
    }

    section[aria-labelledby="hero-title"] > div {
        flex-direction: column;
        text-align: center;
    }

    section[aria-labelledby="hero-title"] a[role="button"] {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    #about, #story-title, #industries-title + p {
        padding: 24px;
    }

    #services ul {
        grid-template-columns: 1fr;
    }

    #features ul {
        grid-template-columns: 1fr;
    }

    #knowledge-title + ul {
        flex-direction: column;
    }

    #howto-title + ol {
        grid-template-columns: 1fr 1fr;
    }

    footer > div:first-child {
        grid-template-columns: 1fr;
        text-align: center;
    }

    #backToTop {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    section[aria-labelledby="hero-title"] h1 {
        font-size: 1.6rem;
    }

    #howto-title + ol {
        grid-template-columns: 1fr;
    }

    #searchOverlay form {
        padding: 20px;
        flex-direction: column;
    }

    #searchOverlay input {
        width: 100%;
    }
}

/* 暗色模式额外调整 */
body.dark-mode section[aria-labelledby="hero-title"] {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #0a0a14 100%);
}

body.dark-mode #searchOverlay {
    background: rgba(0,0,0,0.85);
}

/* 滚动动画增强 - 使用Intersection Observer已在JS实现，这里补充fallback */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}