/* style.css - 开元体育·kaiyuan (中国)官方网站 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
    transition: background .3s, color .3s;
}

body.dark {
    background: #0f0f1a;
    color: #e0e0e0;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

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

.section {
    padding: 80px 0;
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
}

.card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: transform .3s, box-shadow .3s;
    overflow: hidden;
}

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

.dark .card {
    background: #1a1a2e;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    transition: all .3s;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    margin: 15px auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

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

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

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

@media (max-width: 576px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.gap-20 {
    gap: 20px;
}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

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

.banner-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.banner-slider .slide.active {
    opacity: 1;
}

.banner-slider .slide svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

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

.stat-item {
    text-align: center;
    padding: 30px 20px;
}

.stat-item .number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item .label {
    font-size: 1rem;
    color: #666;
    margin-top: 10px;
}

.dark .stat-item .label {
    color: #aaa;
}

.footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 60px 0 30px;
}

.dark .footer {
    background: #0a0a15;
}

.footer a {
    color: #aaa;
    transition: color .3s;
}

.footer a:hover {
    color: #fff;
}

.footer .grid-4 {
    gap: 20px;
}

.footer h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.dark-toggle {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform .3s;
}

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

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    font-size: 1.5rem;
    color: #fff;
}

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

.mobile-nav a {
    color: #fff;
    transition: color .3s;
}

.mobile-nav a:hover {
    color: #667eea;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1000;
    background: none;
    border: none;
    padding: 10px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all .3s;
}

.dark .hamburger span {
    background: #e0e0e0;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-links {
        display: none;
    }
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

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

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

.faq-question span {
    transition: transform .3s;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    padding-top: 10px;
    color: #666;
}

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

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

.breadcrumb {
    display: flex;
    gap: 10px;
    padding: 20px 0;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #667eea;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.search-entry {
    display: flex;
    max-width: 500px;
    margin: 20px auto;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.dark .search-entry {
    background: #1a1a2e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.search-entry input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    color: #333;
}

.dark .search-entry input {
    color: #e0e0e0;
}

.search-entry button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background .3s;
}

.search-entry button:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 15px 0;
    transition: background .3s;
}

.nav.scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.nav .nav-links {
    display: flex;
    gap: 25px;
}

.nav .nav-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color .3s;
    font-weight: 500;
}

.nav .nav-links a:hover,
.nav .nav-links a.active {
    color: #fff;
}

.nav .nav-links a.active {
    border-bottom: 2px solid #667eea;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .6s ease, transform .6s ease;
}

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

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background .3s;
}

.slider-dots .dot.active {
    background: #fff;
}

.related-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .related-articles {
        grid-template-columns: 1fr;
    }
}

.related-articles .article-card {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform .3s;
}

.dark .related-articles .article-card {
    background: #1a1a2e;
}

.related-articles .article-card:hover {
    transform: translateY(-5px);
}

.prev-next {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.dark .prev-next {
    border-color: #333;
}

.prev-next a {
    color: #667eea;
    font-weight: 600;
    transition: color .3s;
}

.prev-next a:hover {
    color: #764ba2;
}

.team-member {
    text-align: center;
}

.team-member svg {
    margin: 0 auto 20px;
    border-radius: 50%;
}

.product-card {
    text-align: center;
    padding: 30px 20px;
}

.product-card svg {
    margin: 0 auto 20px;
    border-radius: 12px;
}

.advantage-card {
    text-align: center;
    padding: 30px 20px;
}

.advantage-card svg {
    margin: 0 auto 20px;
}

.case-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform .3s;
}

.case-card:hover {
    transform: translateY(-8px);
}

.case-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-card .content {
    padding: 20px;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    filter: grayscale(100%);
    transition: filter .3s, transform .3s;
}

.partner-logo:hover {
    filter: grayscale(0);
    transform: scale(1.05);
}

.testimonial-card {
    text-align: center;
    padding: 40px 30px;
}

.testimonial-card .avatar {
    margin: 0 auto 20px;
    border-radius: 50%;
}

.testimonial-card .name {
    font-weight: 600;
    margin-top: 15px;
}

.testimonial-card .role {
    color: #666;
    font-size: 0.9rem;
}

.dark .testimonial-card .role {
    color: #aaa;
}

.news-card {
    padding: 20px;
    border-radius: 12px;
    background: #f8f9fa;
    transition: transform .3s;
}

.dark .news-card {
    background: #1a1a2e;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card .date {
    color: #667eea;
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: block;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info svg {
    flex-shrink: 0;
}

.sitemap-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .sitemap-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sitemap-links a {
    color: #667eea;
    display: block;
    padding: 5px 0;
}

.sitemap-links a:hover {
    text-decoration: underline;
}

.privacy-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.privacy-links a {
    color: #667eea;
}

.privacy-links a:hover {
    text-decoration: underline;
}

.highlight {
    color: #667eea;
}

.dark .highlight {
    color: #9b8cf5;
}

.bg-light {
    background: #f8f9fa;
}

.dark .bg-light {
    background: #15152a;
}