/* style.css - 爱游戏(中国)官方网站 AYX GAMES */

/* 全局重置与基础 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    color: #1a1a2e;
    transition: background 0.3s, color 0.3s;
    line-height: 1.6;
}

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

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

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

/* 头部导航 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.3s, box-shadow 0.3s;
}

body.dark header {
    background: rgba(15, 15, 26, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6c63ff, #ff6b9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: default;
}

nav {
    display: flex;
    gap: 28px;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
    transition: color 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6c63ff, #ff6b9d);
    transition: width 0.3s;
}

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

nav a.active {
    color: #6c63ff;
}

body.dark nav a.active {
    color: #a0a0ff;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #1a1a2e;
    border-radius: 3px;
    transition: 0.3s;
}

body.dark .menu-toggle span {
    background: #e0e0e0;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: 0.3s;
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.dark .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 英雄区域 - 渐变Banner */
.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;
    padding: 100px 20px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(108, 99, 255, 0.15), transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(255, 107, 157, 0.12), transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

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

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

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, #a0a0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero .btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #6c63ff, #ff6b9d);
    color: #fff;
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(108, 99, 255, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* 通用区块 */
.section {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #6c63ff, #ff6b9d);
    margin: 16px auto 0;
    border-radius: 4px;
}

/* 网格布局 */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

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

/* 卡片 - 圆角+毛玻璃效果+悬停动画 */
.card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

body.dark .card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 1.8rem;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.card p {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}

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

/* 品牌故事区 */
.brand-story {
    background: linear-gradient(135deg, #f0f0ff, #fff0f5);
}

body.dark .brand-story {
    background: linear-gradient(135deg, #1a1a2e, #2a1a3e);
}

/* 统计数字 */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

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

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6c63ff, #ff6b9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #888;
    margin-top: 6px;
    font-size: 0.95rem;
}

/* 产品区 */
.products {
    background: #f9f9ff;
}

body.dark .products {
    background: #12121e;
}

/* 服务列表 */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 18px 0;
    cursor: pointer;
    transition: background 0.2s;
}

body.dark .faq-item {
    border-color: rgba(255, 255, 255, 0.08);
}

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

.faq-question span {
    transition: transform 0.3s;
    font-size: 0.8rem;
}

.faq-item.active .faq-question span {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s, padding 0.3s;
    opacity: 0;
    padding-top: 0;
    color: #666;
    line-height: 1.7;
}

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

.faq-item.active .faq-answer {
    max-height: 400px;
    opacity: 1;
    padding-top: 14px;
}

/* 文章卡片 */
.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.article-card .date {
    font-size: 0.85rem;
    color: #999;
}

.article-card h4 {
    margin: 8px 0 10px;
    font-size: 1.1rem;
}

.article-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.article-card .read-more {
    display: inline-block;
    margin-top: 12px;
    color: #6c63ff;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.article-card .read-more:hover {
    color: #ff6b9d;
}

/* 新手引导步骤 */
.howto-steps {
    display: grid;
    gap: 20px;
}

.howto-step {
    display: flex;
    gap: 18px;
    padding: 20px;
    background: rgba(108, 99, 255, 0.04);
    border-radius: 16px;
    align-items: flex-start;
    transition: background 0.3s;
}

.howto-step:hover {
    background: rgba(108, 99, 255, 0.08);
}

body.dark .howto-step {
    background: rgba(108, 99, 255, 0.08);
}

body.dark .howto-step:hover {
    background: rgba(108, 99, 255, 0.12);
}

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

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

.howto-step p {
    color: #666;
    font-size: 0.93rem;
    line-height: 1.6;
}

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

/* 页脚 */
.footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

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

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c63ff, #ff6b9d);
    color: #fff;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
    z-index: 999;
}

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

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

/* 轮播 */
.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 30px;
}

.banner-slide {
    display: none;
    animation: fadeIn 0.6s ease;
}

.banner-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.carousel-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: 0.3s;
}

.carousel-dots span.active {
    background: #6c63ff;
    width: 32px;
    border-radius: 6px;
}

/* 滚动动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 面包屑 */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.9rem;
    color: #888;
    background: transparent;
}

.breadcrumb span {
    color: #6c63ff;
}

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

/* 搜索模态框 */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.search-box {
    background: #fff;
    padding: 30px;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

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

.search-box input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #eee;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.search-box input:focus {
    border-color: #6c63ff;
}

body.dark .search-box input {
    background: #2a2a3e;
    border-color: #444;
    color: #e0e0e0;
}

.search-box .close-btn {
    float: right;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 4px 8px;
    color: #888;
    transition: color 0.3s;
}

.search-box .close-btn:hover {
    color: #333;
}

/* 相关文章网格 */
.related-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

/* 合作伙伴Logo */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.partner-logos svg {
    width: 120px;
    height: 40px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.partner-logos svg:hover {
    opacity: 1;
}

/* EEAT 认证徽章 */
.eeat-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 99, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #6c63ff;
    margin-bottom: 20px;
}

body.dark .eeat-badge {
    background: rgba(108, 99, 255, 0.2);
}

/* 表单元素 */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
}

input:focus,
textarea:focus {
    border-color: #6c63ff;
}

body.dark input,
body.dark textarea {
    background: #2a2a3e;
    border-color: #444;
    color: #e0e0e0;
}

/* 响应式 - 平板 */
@media (max-width: 1024px) {
    .grid-2,
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 响应式 - 手机 */
@media (max-width: 768px) {
    .header-inner {
        height: 60px;
    }
    nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    }
    body.dark nav {
        background: rgba(15, 15, 26, 0.98);
    }
    nav.open {
        display: flex;
    }
    .menu-toggle {
        display: flex;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .stats {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 1.7rem;
    }
}

/* 响应式 - 小屏手机 */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    .stats {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}