/* 完美体育APP官网 - 完整样式表 */

:root {
    --bg: #0f0f23;
    --bg-alt: #1a1a3e;
    --bg-card: rgba(26, 26, 62, 0.7);
    --text: #e0e0f0;
    --text-muted: #a0a0c0;
    --primary: #e94560;
    --primary-dark: #c23350;
    --primary-glow: rgba(233, 69, 96, 0.4);
    --border: #2a2a5a;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --radius: 16px;
    --radius-sm: 8px;
    --nav-height: 64px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #e94560 0%, #c23350 100%);
    --gradient-bg: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #0f0f23 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f5f5fa;
        --bg-alt: #ffffff;
        --bg-card: rgba(255, 255, 255, 0.8);
        --text: #1a1a2e;
        --text-muted: #6c757d;
        --border: #e0e0f0;
        --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
        --gradient-bg: linear-gradient(135deg, #f5f5fa 0%, #ffffff 50%, #f5f5fa 100%);
        --glass-bg: rgba(0, 0, 0, 0.03);
        --glass-border: rgba(0, 0, 0, 0.08);
    }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gradient-bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

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

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

h1, h2, h3 {
    line-height: 1.3;
    color: var(--text);
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

section {
    padding: 5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

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

section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }
section:nth-child(6) { animation-delay: 0.5s; }
section:nth-child(7) { animation-delay: 0.6s; }
section:nth-child(8) { animation-delay: 0.7s; }
section:nth-child(9) { animation-delay: 0.8s; }

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--nav-height);
}

.logo a {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo a:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
    text-decoration: none;
    background: var(--glass-bg);
}

.nav-links a:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-links a[aria-current="page"] {
    color: var(--primary);
}

.nav-links a[aria-current="page"]::before {
    transform: translateX(-50%) scaleX(1);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 1px;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
#hero {
    padding-top: 2rem;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, var(--primary-glow) 0%, transparent 50%);
    animation: pulseGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.hero-content {
    text-align: center;
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-primary, .btn-secondary {
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
    color: white;
    text-decoration: none;
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    text-decoration: none;
}

.hero-visual {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.hero-visual svg {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 0 30px var(--primary-glow));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Grid Sections */
.about-grid, .products-grid, .services-grid, .resources-grid, .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-grid article, .products-grid article, .services-grid article, .resources-grid article, .articles-grid article {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-grid article::before, .products-grid article::before, .services-grid article::before, .resources-grid article::before, .articles-grid article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.about-grid article:hover::before, .products-grid article:hover::before, .services-grid article:hover::before, .resources-grid article:hover::before, .articles-grid article:hover::before {
    transform: scaleX(1);
}

.about-grid article:hover, .products-grid article:hover, .services-grid article:hover, .resources-grid article:hover, .articles-grid article:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.about-grid article h3, .products-grid article h3, .services-grid article h3, .resources-grid article h3, .articles-grid article h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.about-grid article h3::before, .products-grid article h3::before, .services-grid article h3::before, .resources-grid article h3::before, .articles-grid article h3::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.8rem;
}

.about-grid article p, .products-grid article p, .services-grid article p, .resources-grid article p, .articles-grid article p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.resources-grid article a, .articles-grid article a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
    transition: var(--transition);
}

.resources-grid article a:hover, .articles-grid article a:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    text-decoration: none;
}

/* FAQ Section */
.faq-list {
    display: grid;
    gap: 0.8rem;
}

.faq-list details {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.faq-list details:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.faq-list details[open] {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.faq-list summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
    font-weight: 300;
}

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

.faq-list details[open] summary {
    margin-bottom: 1rem;
    color: var(--primary);
}

.faq-list details p {
    margin-bottom: 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.95rem;
}

/* How To Register */
#howto-register ol {
    padding-left: 1.5rem;
    margin-top: 1rem;
    counter-reset: step;
    list-style: none;
}

#howto-register ol li {
    margin-bottom: 0.8rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    counter-increment: step;
    position: relative;
    padding-left: 3rem;
    transition: var(--transition);
}

#howto-register ol li::before {
    content: counter(step);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}

#howto-register ol li:hover {
    transform: translateX(5px);
    border-color: var(--primary);
}

/* Contact Section */
address {
    font-style: normal;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 1.5rem;
}

address p {
    margin-bottom: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

address p:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

address p::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
}

/* Footer */
footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 1.5rem;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-info a {
    color: var(--text-muted);
    transition: var(--transition);
    padding: 0.2rem 0.5rem;
}

.footer-info a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.back-to-top:active {
    transform: translateY(-1px);
}

/* Scroll Animations */
@media (prefers-reduced-motion: no-preference) {
    .about-grid article, .products-grid article, .services-grid article, .resources-grid article, .articles-grid article,
    .faq-list details, #howto-register ol li, address {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.6s ease forwards;
    }

    .about-grid article:nth-child(1), .products-grid article:nth-child(1),
    .services-grid article:nth-child(1), .resources-grid article:nth-child(1),
    .articles-grid article:nth-child(1) { animation-delay: 0.1s; }

    .about-grid article:nth-child(2), .products-grid article:nth-child(2),
    .services-grid article:nth-child(2), .resources-grid article:nth-child(2),
    .articles-grid article:nth-child(2) { animation-delay: 0.2s; }

    .about-grid article:nth-child(3), .products-grid article:nth-child(3),
    .services-grid article:nth-child(3), .resources-grid article:nth-child(3),
    .articles-grid article:nth-child(3) { animation-delay: 0.3s; }

    .products-grid article:nth-child(4), .articles-grid article:nth-child(4) { animation-delay: 0.4s; }
    .articles-grid article:nth-child(5) { animation-delay: 0.5s; }
    .articles-grid article:nth-child(6) { animation-delay: 0.6s; }

    .faq-list details:nth-child(1) { animation-delay: 0.1s; }
    .faq-list details:nth-child(2) { animation-delay: 0.15s; }
    .faq-list details:nth-child(3) { animation-delay: 0.2s; }
    .faq-list details:nth-child(4) { animation-delay: 0.25s; }
    .faq-list details:nth-child(5) { animation-delay: 0.3s; }
    .faq-list details:nth-child(6) { animation-delay: 0.35s; }
    .faq-list details:nth-child(7) { animation-delay: 0.4s; }
    .faq-list details:nth-child(8) { animation-delay: 0.45s; }
    .faq-list details:nth-child(9) { animation-delay: 0.5s; }
    .faq-list details:nth-child(10) { animation-delay: 0.55s; }

    #howto-register ol li:nth-child(1) { animation-delay: 0.1s; }
    #howto-register ol li:nth-child(2) { animation-delay: 0.15s; }
    #howto-register ol li:nth-child(3) { animation-delay: 0.2s; }
    #howto-register ol li:nth-child(4) { animation-delay: 0.25s; }
    #howto-register ol li:nth-child(5) { animation-delay: 0.3s; }
    #howto-register ol li:nth-child(6) { animation-delay: 0.35s; }
    #howto-register ol li:nth-child(7) { animation-delay: 0.4s; }

    address { animation-delay: 0.2s; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 5rem 2rem 2rem;
        gap: 0.5rem;
        z-index: 1000;
        justify-content: center;
        align-items: center;
    }

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

    .nav-links a {
        font-size: 1.2rem;
        padding: 0.8rem 2rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    section {
        padding: 3rem 1rem;
    }

    .hero-content {
        padding: 2rem 0;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .about-grid, .products-grid, .services-grid, .resources-grid, .articles-grid {
        grid-template-columns: 1fr;
    }

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

@media (min-width: 769px) and (max-width: 1024px) {
    .about-grid, .products-grid, .services-grid, .resources-grid, .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }

    .nav-links {
        display: flex !important;
        position: static;
        background: none;
        padding: 0;
        flex-direction: row;
        gap: 0.5rem;
    }
}

/* Utility & Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

@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;
    }
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}