/* style.css - 爱游戏·APP(AYX)中国官方网站 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fa;
    color: #1a1a2e;
    line-height: 1.6;
    transition: background .3s, color .3s;
}

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

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

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

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

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all .3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, .4);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, .5);
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: 700;
}

.section-sub {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1em;
}

body.dark .section-sub {
    color: #aaa;
}

.card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .05);
    transition: all .3s;
    backdrop-filter: blur(10px);
}

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

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, .1);
}

body.dark .card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, .4);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(20px);
    transition: all .3s;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

body.dark header {
    background: rgba(15, 15, 26, .95);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, .1);
}

body.dark header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, .4);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8em;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width .3s;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: inherit;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 120px 20px 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, .15) 0%, transparent 70%);
    animation: heroGlow 15s ease-in-out infinite;
}

@keyframes heroGlow {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, 30px);
    }
}

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

.hero h1 {
    font-size: 3.5em;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: .9;
}

.hero .btn {
    font-size: 1.1em;
    padding: 15px 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    flex-wrap: wrap;
}

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

.hero-stat .num {
    font-size: 2.5em;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat .label {
    font-size: .95em;
    opacity: .7;
    margin-top: 5px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

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

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1em;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 20px;
}

.timeline {
    position: relative;
    padding-left: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #667eea, #764ba2);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #667eea;
}

body.dark .timeline-item::before {
    border-color: #0f0f1a;
}

.timeline-item .year {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1em;
}

.timeline-item p {
    margin-top: 5px;
    color: #666;
}

body.dark .timeline-item p {
    color: #aaa;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.team-card {
    padding: 30px 20px;
}

.team-card svg {
    margin-bottom: 15px;
    border-radius: 50%;
}

.team-card h4 {
    margin-bottom: 5px;
}

.team-card p {
    color: #666;
    font-size: .9em;
}

body.dark .team-card p {
    color: #aaa;
}

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

.product-card svg {
    margin-bottom: 20px;
}

.product-card h3 {
    margin-bottom: 10px;
    font-size: 1.3em;
}

.product-card p {
    color: #666;
    margin-bottom: 15px;
    font-size: .95em;
}

body.dark .product-card p {
    color: #aaa;
}

.service-card {
    text-align: center;
    padding: 40px 20px;
}

.service-card svg {
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 10px;
}

.service-card p {
    color: #666;
    font-size: .95em;
}

body.dark .service-card p {
    color: #aaa;
}

.case-card {
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
}

.case-card .case-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.case-card .case-body {
    padding: 25px;
}

.case-card .case-body h4 {
    margin-bottom: 8px;
}

.case-card .case-body p {
    color: #666;
    font-size: .9em;
}

body.dark .case-card .case-body p {
    color: #aaa;
}

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

.testimonial-card svg {
    margin-bottom: 15px;
    border-radius: 50%;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
    color: #555;
}

body.dark .testimonial-card p {
    color: #ccc;
}

.testimonial-card h4 {
    font-weight: 600;
}

.testimonial-card .role {
    color: #667eea;
    font-size: .85em;
}

.partner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.partner-item {
    opacity: .6;
    transition: opacity .3s;
}

.partner-item:hover {
    opacity: 1;
}

.news-card {
    padding: 25px;
}

.news-card .date {
    color: #667eea;
    font-size: .85em;
    font-weight: 600;
}

.news-card h4 {
    margin: 10px 0;
    font-size: 1.1em;
}

.news-card p {
    color: #666;
    font-size: .9em;
    margin-bottom: 15px;
}

body.dark .news-card p {
    color: #aaa;
}

.news-card .read-more {
    color: #667eea;
    font-weight: 600;
    font-size: .9em;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    cursor: pointer;
}

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

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

.faq-question .icon {
    transition: transform .3s;
    font-size: 1.2em;
}

.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
}

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

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

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-top: 15px;
}

.howto-steps {
    max-width: 700px;
    margin: 0 auto;
}

.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.howto-step .step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.howto-step .step-content h4 {
    margin-bottom: 5px;
}

.howto-step .step-content p {
    color: #666;
    font-size: .95em;
}

body.dark .howto-step .step-content p {
    color: #aaa;
}

.contact-section {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

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

.contact-item svg {
    margin-bottom: 15px;
}

.contact-item h4 {
    margin-bottom: 10px;
}

.contact-item p {
    opacity: .8;
    font-size: .95em;
}

.footer {
    background: #0f0f1a;
    color: #aaa;
    padding: 50px 0 30px;
}

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

.footer h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.footer a {
    display: block;
    margin-bottom: 10px;
    transition: color .3s;
}

.footer a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    font-size: .9em;
}

.footer-bottom a {
    margin: 0 10px;
    display: inline;
}

.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;
    cursor: pointer;
    font-size: 1.5em;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, .4);
    z-index: 999;
    transition: all .3s;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

.dark-toggle {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1a1a2e;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
    z-index: 999;
    transition: all .3s;
}

body.dark .dark-toggle {
    background: #e0e0e0;
    color: #1a1a2e;
}

.dark-toggle:hover {
    transform: translateY(-3px);
}

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

body.dark .breadcrumb {
    color: #aaa;
}

.breadcrumb a {
    color: #667eea;
}

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-modal.active {
    display: flex;
}

.search-modal-inner {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
}

body.dark .search-modal-inner {
    background: #1a1a2e;
}

.search-modal input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 30px;
    font-size: 1.1em;
    outline: none;
    transition: border .3s;
    background: transparent;
    color: inherit;
}

body.dark .search-modal input {
    border-color: #333;
}

.search-modal input:focus {
    border-color: #667eea;
}

.search-modal .close-btn {
    display: block;
    margin: 20px auto 0;
    background: none;
    border: none;
    color: #667eea;
    font-size: 1em;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 20px;
    flex-direction: column;
    gap: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

body.dark .mobile-nav {
    background: rgba(15, 15, 26, .98);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

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

.mobile-nav a {
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

body.dark .mobile-nav a {
    border-color: #222;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .hero h1 {
        font-size: 2.2em;
    }
    .hero p {
        font-size: 1em;
    }
    .hero-stats {
        gap: 30px;
    }
    .hero-stat .num {
        font-size: 2em;
    }
    .section {
        padding: 50px 0;
    }
    .section-title {
        font-size: 1.8em;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    .back-to-top,
    .dark-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.2em;
        right: 15px;
    }
    .dark-toggle {
        bottom: 75px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8em;
    }
    .hero-stats {
        gap: 20px;
    }
    .hero-stat .num {
        font-size: 1.6em;
    }
    .section-title {
        font-size: 1.5em;
    }
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all .6s ease;
}

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

.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 400px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    transition: opacity .8s ease;
}

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

.banner-slide h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 700;
}

.banner-slide p {
    font-size: 1.1em;
    opacity: .9;
    max-width: 600px;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 10px;
}

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

.banner-dots span.active {
    background: #667eea;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .banner-slider {
        height: 300px;
    }
    .banner-slide h2 {
        font-size: 1.8em;
    }
}