:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 导航栏样式 */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: #000000;
    display: flex;
    align-items: center;
}

.logo span {
    color: #000000;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

/* .nav-links li 不再需要额外样式，间距由父元素gap控制 */

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: color 0.3s;
    padding: 10px 20px;
    border-radius: 5px;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
}

.cta-button {
    /* 基础样式已在 .nav-links a 中定义，这里只需要特殊样式 */
    background-color: transparent;
}

.cta-button:hover {
    color: var(--primary);
}

.cta-button.active {
    color: var(--primary);
}

/* 英雄区域样式 */
.hero {
    background: #2563eb;
    color: white;
    height: 600px;
    padding: 160px 0 0 0;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
}

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

.hero-text {
    flex: 1;
    padding-right: 50px;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    margin-top: 40px;
}

.stat {
    margin-right: 40px;
}

.stat h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.stat p {
    font-size: 1rem;
    opacity: 0.8;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* 独立Banner图片样式 */
.banner-image-overlay {
    position: absolute;
    top: 150px;
    left: calc(50% + 70px);
    right: 0;
    height: 500px;
    z-index: 100;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.banner-image-overlay img {
    max-width: 582px;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* 响应式图片缩放 - 与导航栏右对齐 */
@media (min-width: 1400px) {
    .banner-image-overlay img {
        max-width: 582px;
        max-height: 100%;
    }
}

@media (max-width: 1399px) and (min-width: 1201px) {
    .banner-image-overlay img {
        max-width: 500px;
        max-height: 100%;
    }
}

@media (max-width: 1200px) {
    .banner-image-overlay img {
        max-width: 500px;
        max-height: 100%;
    }
}

@media (max-width: 992px) {
    .banner-image-overlay img {
        max-width: 450px;
        max-height: 100%;
    }
}

@media (max-width: 768px) {
    .banner-image-overlay img {
        max-width: 400px;
        max-height: 100%;
    }
}

@media (max-width: 576px) {
    .banner-image-overlay img {
        max-width: 300px;
        max-height: 100%;
    }
}

/* 客户展示区域 */
.clients {
    padding: 100px 0;
    background: white;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* 每行容器 - 自适应浏览器宽度 */
.client-row {
    margin: 20px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.client-logos-wrapper {
    display: flex;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    will-change: transform;
    transform: translateZ(0); /* 启用硬件加速 */
    backface-visibility: hidden; /* 优化渲染 */
}

.client-logos {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-right: 60px;
    flex-shrink: 0;
}

.client-logo {
    height: 88px;
    width: 170px;
    max-width: 170px;
    object-fit: contain;
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: block;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* 动画将由JavaScript动态生成 */

/* 暂停动画在悬停时 */
.client-row:hover .client-logos-wrapper {
    animation-play-state: paused;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .client-logo {
        height: 60px;
        width: 120px;
        max-width: 120px;
    }
    
    .client-logos {
        gap: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 480px) {
    .client-logo {
        height: 50px;
        width: 100px;
        max-width: 100px;
    }
    
    .client-logos {
        gap: 30px;
        padding-right: 30px;
    }
}

/* 关于我们区域 */
.about {
    padding: 120px 0 100px 0;
    position: relative;
    background: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 100px;
}

.about-text {
    flex: 1;
    max-width: calc(50% - 70px);
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--gray);
}

.values {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    row-gap: 30px;
    margin-top: 40px;
}

.value-card {
    background-color: var(--light);
    padding: 20px;
    border-radius: 10px;
    flex: 1;
    min-width: 200px;
    height: 160px;
    display: flex;
    flex-direction: column;
}

.value-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

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

.milestones {
    flex: 1;
    padding: 40px 0;
    position: relative;
}


.milestones:before {
    content: '';
    position: absolute;
    left: -25px;
    top: 20px;
    bottom: 50px;
    width: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.milestone {
    position: relative;
    margin-bottom: 35px;
    padding-left: 60px;
}

.milestone:before {
    content: '';
    position: absolute;
    left: -34px;
    top: 80px;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary);
}

.milestone:last-child {
    margin-bottom: 0;
}

.milestone-card {
    background: white;
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    height: 160px;
    display: flex;
    flex-direction: column;
    max-width: calc(100% - 20px);
}

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

.milestone h3 {
    margin: 0 0 8px 0;
    color: var(--secondary);
    font-size: 1.3rem;
    font-weight: 700;
}

.milestone-date {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.milestone p {
    color: var(--gray);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* 平台优势区域 */
.advantages {
    padding: 100px 0;
    background-color: var(--light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.advantage-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.advantage-card h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    color: #1a1a1a;
}

.advantage-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.advantage-card p {
    color: #666666;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

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

@media (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-card {
        padding: 30px;
    }
}

/* 服务区域 */
.services {
    padding: 100px 0;
    background-color: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.service-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.service-card img {
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
}

.service-card h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    color: #1a1a1a;
}

.service-card p {
    color: #666666;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

/* 案例区域 */
.cases {
    padding: 100px 0;
    background: #2563eb;
}

.cases .section-title h2 {
    color: white;
}

.cases .section-title p {
    color: rgba(255, 255, 255, 0.8);
}

.case-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    background-color: #F5F7FA;
    padding: 8px;
    border-radius: 100px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.filter-btn {
    background: none;
    border: none;
    padding: 12px 32px;
    margin: 0 4px;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray);
    transition: all 0.3s ease;
    border-radius: 100px;
    font-size: 16px;
}

.filter-btn:hover {
    color: var(--primary);
}

.filter-btn.active {
    color: white;
    background-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
    justify-items: center;
    align-items: center;
    place-items: center;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.case-card {
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    position: relative;
    width: 300px;
    height: 560px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 6px solid #000000;
    box-sizing: border-box;
}

/* 背景图片 */
.case-card[data-bg="拉新1"] {
    background-image: url('image/拉新1.jpg');
}

.case-card[data-bg="拉新2"] {
    background-image: url('image/拉新2.jpg');
}

.case-card[data-bg="拉新3"] {
    background-image: url('image/拉新3.jpg');
}

.case-card[data-bg="拉活1"] {
    background-image: url('image/拉活1.jpg');
}

.case-card[data-bg="拉活2"] {
    background-image: url('image/拉活2.jpg');
}

.case-card[data-bg="拉活3"] {
    background-image: url('image/拉活3.jpg');
}

.case-card[data-bg="游戏1"] {
    background-image: url('image/游戏1.jpg');
}

.case-card[data-bg="游戏2"] {
    background-image: url('image/游戏2.jpg');
}

.case-card[data-bg="游戏3"] {
    background-image: url('image/游戏3.jpg');
}

/* 蓝色渐变遮罩层 */
.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(37, 99, 235, 0) 0%, 
        rgba(37, 99, 235, 0.3) 40%, 
        rgba(37, 99, 235, 1) calc(100% - 150px), 
        rgba(37, 99, 235, 1) 100%);
    z-index: 1;
}

.case-image {
    display: none;
}

.case-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 32px 24px 24px 24px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.case-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.case-content p {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 32px;
    width: 100%;
}

.case-stats {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-top: 8px;
}

.case-stat {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.case-stat:nth-child(1) {
    align-items: flex-start;
}

.case-stat:nth-child(2) {
    align-items: center;
    text-align: center;
}

.case-stat:nth-child(3) {
    align-items: flex-end;
    text-align: right;
}

.case-stat h4 {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    line-height: 1.1;
}

.case-stat p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
    max-width: none;
}

@media (max-width: 1024px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        place-items: center;
        justify-items: center;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr;
        place-items: center;
        justify-items: center;
        align-items: center;
    }
}

/* 联系区域 */
.contact {
    padding: 100px 0;
    background: var(--light);
}

.contact .section-title h2 {
    color: var(--secondary);
    margin-bottom: 40px;
}

.contact-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.contact-map {
    flex: 1;
}

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

.contact-info {
    flex: 1;
    text-align: left;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

/* 页脚 */
footer {
    background-color: var(--secondary);
    color: white;
    padding: 50px 0 20px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 900;
    color: white;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-logo span {
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

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

.footer-column ul {
    list-style: none;
}

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

.footer-column a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-light);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-content {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }

    .milestones {
        padding: 30px 0;
        margin-top: 30px;
    }

    .milestones h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .milestones:before {
        left: -35px;
        top: 20px;
    }

    .milestone {
        padding-left: 40px;
        margin-bottom: 25px;
    }

    .milestone:before {
        left: -24px;
        top: 70px;
        width: 16px;
        height: 16px;
    }

    .milestone-card {
        padding: 20px 25px;
        height: 140px;
        max-width: calc(100% - 20px);
    }
    
    .value-card {
        height: 140px;
    }

    .milestone h3 {
        font-size: 1.2rem;
    }

    .milestone-date {
        font-size: 0.9rem;
    }

    .milestone p {
        font-size: 0.9rem;
    }
}

/* 英雄区域波浪效果 */

.waves-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.waves-container .waves {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 120px;
}

.waves-container .waves svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 120px;
}

/* 波浪动画 - 新的静态多层波浪效果 */
.waves-container svg path {
  animation: wave-animation 15s ease-in-out infinite;
}

.waves-container svg path:nth-child(1) {
  animation-delay: 0s;
  animation-duration: 20s;
}

.waves-container svg path:nth-child(2) {
  animation-delay: -5s;
  animation-duration: 15s;
}

.waves-container svg path:nth-child(3) {
  animation-delay: -10s;
  animation-duration: 25s;
}

@keyframes wave-animation {
  0%, 100% {
    transform: translateX(0px);
  }
  50% {
    transform: translateX(-25px);
  }
}

/* 波浪动画效果 */
.parallax > use {
  animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}

.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% {
   transform: translate3d(-90px,0,0);
  }
  100% { 
    transform: translate3d(85px,0,0);
  }
}

/* 响应式波浪效果 */
@media (max-width: 768px) {
  .waves-container .waves,
  .waves-container .waves svg {
    height: 60px;
  }
  
  .contact-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .contact-info {
    text-align: center;
  }
}

