/* style.css - 球速体育官方网站 */
:root {
    --bg: #ffffff;
    --text: #1a1a2e;
    --primary: #1a73e8;
    --secondary: #34a853;
    --accent: #ea4335;
    --gray: #5f6368;
    --light: #f8f9fa;
    --border: #e0e0e0;
    --card-bg: #ffffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.3);
    --gradient-start: #1a73e8;
    --gradient-end: #34a853;
    --transition-speed: 0.3s;
}
.dark {
    --bg: #0a0e1a;
    --text: #e8eaed;
    --primary: #4a9eff;
    --secondary: #66bb6a;
    --accent: #f28b82;
    --gray: #9aa0a6;
    --light: #1a1d2e;
    --border: #3c4043;
    --card-bg: #1e2235;
    --shadow: 0 2px 8px rgba(0,0,0,0.4);
    --glass-bg: rgba(10, 14, 26, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-start: #4a9eff;
    --gradient-end: #66bb6a;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background var(--transition-speed), color var(--transition-speed);
    overflow-x: hidden;
}
a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-speed);
}
a:hover {
    text-decoration: underline;
    color: var(--secondary);
}
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 2rem;
    transition: background var(--transition-speed), border-color var(--transition-speed);
}
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}
nav ul {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}
nav ul li a {
    color: var(--text);
    font-weight: 500;
    padding: 0.3rem 0;
    position: relative;
    transition: color var(--transition-speed);
}
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-start);
    transition: width var(--transition-speed);
}
nav ul li a:hover::after,
nav ul li a[aria-current]::after {
    width: 100%;
}
nav ul li a[aria-current] {
    color: var(--primary);
}
#darkModeToggle {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: background var(--transition-speed), color var(--transition-speed), transform 0.2s;
    box-shadow: var(--shadow);
}
#darkModeToggle:hover {
    transform: scale(1.1);
    background: var(--primary);
    color: white;
}
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}
section {
    margin-bottom: 4rem;
    padding: 2rem 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }
section:nth-child(6) { animation-delay: 0.6s; }
section:nth-child(7) { animation-delay: 0.7s; }
section:nth-child(8) { animation-delay: 0.8s; }
section:nth-child(9) { animation-delay: 0.9s; }
section:nth-child(10) { animation-delay: 1.0s; }
h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    display: inline-block;
    position: relative;
}
h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50%;
    height: 2px;
    background: var(--gradient-end);
}
h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}
p {
    margin-bottom: 1rem;
}
#hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 60vh;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    border-radius: 24px;
    padding: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}
#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
#hero > div:first-child {
    flex: 1;
    z-index: 1;
}
#hero > div:last-child {
    flex: 1;
    text-align: center;
    z-index: 1;
}
#hero h1 {
    color: white;
    -webkit-text-fill-color: white;
    background: none;
}
#hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}
#hero a[role="button"] {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    margin-right: 1rem;
    margin-top: 1rem;
    transition: all var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
#hero a[role="button"]:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    text-decoration: none;
}
#about > div,
#products > div,
#solutions > div,
#resources > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
article {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}
article::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--gradient-start) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-speed);
    pointer-events: none;
}
article:hover::before {
    opacity: 0.1;
}
article:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    border-color: var(--primary);
}
ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}
li {
    margin-bottom: 0.5rem;
    transition: color var(--transition-speed);
}
li:hover {
    color: var(--primary);
}
#faq details {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 0.8rem;
    padding: 0.8rem 1.2rem;
    transition: all var(--transition-speed);
    box-shadow: var(--shadow);
}
#faq details:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
#faq summary {
    cursor: pointer;
    font-weight: 500;
    transition: color var(--transition-speed);
}
#faq details[open] summary {
    color: var(--primary);
    font-weight: bold;
}
#faq details p {
    margin-top: 0.8rem;
    padding-left: 0.5rem;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 200px; }
}
#howto ol li {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background var(--transition-speed);
}
#howto ol li:hover {
    background: var(--glass-bg);
}
address p {
    margin-bottom: 0.5rem;
}
#contact a {
    font-weight: 500;
}
footer {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    padding: 2rem;
    text-align: center;
    transition: background var(--transition-speed);
}
footer nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}
footer nav ul li a {
    color: var(--gray);
    transition: color var(--transition-speed);
}
footer nav ul li a:hover {
    color: var(--primary);
}
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 200;
    transition: all var(--transition-speed);
    animation: bounceIn 0.5s ease;
}
#backToTop:hover {
    transform: scale(1.1);
    background: var(--secondary);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
@keyframes bounceIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}
@media (max-width: 768px) {
    header {
        padding: 0.5rem 1rem;
    }
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--glass-border);
        padding: 1rem;
        gap: 1rem;
        animation: slideDown 0.3s ease;
    }
    nav ul.show {
        display: flex;
    }
    #hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
        min-height: 40vh;
    }
    #hero > div:last-child {
        display: none;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    #about > div,
    #products > div,
    #solutions > div,
    #resources > div {
        grid-template-columns: 1fr;
    }
    #backToTop {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}
@media (min-width: 769px) {
    nav ul {
        display: flex !important;
    }
}
::selection {
    background: var(--primary);
    color: white;
}
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}
.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;
}