/* style.css - 九游官网完整样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    text-decoration: underline;
    color: #1557b0;
}

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

/* 头部 */
header {
    background: linear-gradient(135deg, #1a73e8, #6c63ff);
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(26, 115, 232, 0.95);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo svg {
    width: 40px;
    height: 40px;
}

.logo span {
    font-size: 24px;
    font-weight: 700;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    color: #fff;
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s, color 0.3s;
}

nav a:hover,
nav a.active {
    border-bottom-color: #fff;
    color: #fff;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 5px 10px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 5px 15px;
    transition: background 0.3s;
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.3);
}

.search-box input {
    background: none;
    border: none;
    color: #fff;
    outline: none;
    padding: 5px;
    width: 150px;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
}

.dark-toggle {
    background: none;
    border: 2px solid #fff;
    color: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    transition: background 0.3s, transform 0.2s;
}

.dark-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* 面包屑 */
.breadcrumb {
    padding: 15px 0;
    background: #f0f2f5;
    transition: background 0.3s;
}

.dark-mode .breadcrumb {
    background: #1a1a2e;
}

.breadcrumb ul {
    list-style: none;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumb li::after {
    content: '›';
    margin-left: 10px;
    color: #999;
}

.breadcrumb li:last-child::after {
    content: '';
}

.breadcrumb a {
    color: #1a73e8;
    transition: color 0.3s;
}

/* Hero区域 */
.hero {
    background: linear-gradient(135deg, #1a73e8, #6c63ff, #ff6b9d);
    padding: 80px 0;
    text-align: center;
    color: #fff;
    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: heroGlow 10s ease-in-out infinite;
}

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

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-buttons a {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.hero-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.btn-primary {
    background: #fff;
    color: #1a73e8;
}

.btn-primary:hover {
    background: #f0f0f0;
}

.btn-secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #1a73e8;
    margin: 10px auto;
    border-radius: 2px;
    transition: width 0.3s;
}

.section-title:hover::after {
    width: 80px;
}

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

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

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

/* 卡片 */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.dark-mode .card {
    background: #1a1a2e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
}

.card img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.card p {
    color: #666;
    transition: color 0.3s;
}

.dark-mode .card p {
    color: #bbb;
}

/* Banner轮播 */
.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.banner-slide {
    display: none;
}

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

.banner-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.slider-controls button:hover {
    transform: scale(1.3);
}

.slider-controls button.active {
    background: #1a73e8;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    transition: border-color 0.3s;
}

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

.faq-question {
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover {
    color: #1a73e8;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding-top: 15px;
}

/* HowTo步骤 */
.howto-steps {
    counter-reset: step;
}

.howto-step {
    padding: 20px;
    margin-bottom: 15px;
    background: #f0f2f5;
    border-radius: 12px;
    position: relative;
    padding-left: 60px;
    transition: background 0.3s, transform 0.2s;
}

.howto-step:hover {
    transform: translateX(5px);
}

.dark-mode .howto-step {
    background: #1a1a2e;
}

.howto-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 15px;
    top: 20px;
    background: #1a73e8;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* 客户评价 */
.testimonial {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.dark-mode .testimonial {
    background: #1a1a2e;
}

.testimonial img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.testimonial p {
    font-style: italic;
}

/* 数字动画 */
.number-animate {
    font-size: 48px;
    font-weight: 700;
    color: #1a73e8;
    transition: color 0.3s;
}

.dark-mode .number-animate {
    color: #6c63ff;
}

/* 文章列表 */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

.article-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.article-card .date {
    color: #999;
    font-size: 14px;
}

.article-card p {
    margin: 10px 0;
}

.read-more {
    color: #1a73e8;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    transition: color 0.3s, transform 0.2s;
}

.read-more:hover {
    color: #1557b0;
    transform: translateX(3px);
}

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

.partner-logos svg {
    width: 100px;
    height: 50px;
    transition: transform 0.3s, opacity 0.3s;
}

.partner-logos a:hover svg {
    transform: scale(1.1);
    opacity: 0.8;
}

/* 联系信息 */
.contact-info p {
    margin-bottom: 10px;
}

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

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

/* 页脚 */
.footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 40px 0;
}

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

.footer a:hover {
    color: #fff;
    text-decoration: none;
}

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

.footer h4 {
    color: #fff;
    margin-bottom: 15px;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1a73e8;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.4);
    transition: opacity 0.3s, transform 0.3s, background 0.3s;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: #1557b0;
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
        background: rgba(26, 115, 232, 0.98);
        border-radius: 0 0 16px 16px;
    }

    nav ul.open {
        display: flex;
    }

    nav li {
        text-align: center;
        padding: 10px 0;
    }

    .menu-toggle {
        display: block;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero {
        padding: 60px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .search-box {
        display: none;
    }

    .section-title {
        font-size: 28px;
    }

    .banner-slide img {
        height: 250px;
    }

    .card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons a {
        padding: 12px 25px;
        font-size: 16px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 14px;
    }

    .section {
        padding: 40px 0;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        gap: 20px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
}

/* 暗色模式额外调整 */
.dark-mode .section[style*="background"] {
    background: #1a1a2e !important;
}

.dark-mode .breadcrumb {
    background: #1a1a2e;
}

.dark-mode .howto-step {
    background: #1a1a2e;
}

.dark-mode .article-card,
.dark-mode .testimonial {
    background: #1a1a2e;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dark-mode ::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 选中样式 */
::selection {
    background: #1a73e8;
    color: #fff;
}

/* 打印样式 */
@media print {
    header,
    footer,
    .back-to-top,
    .breadcrumb {
        display: none;
    }

    body {
        background: #fff;
        color: #000;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}