/* 基础样式 */

body {
    font-family: "Inter", system-ui, sans-serif;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    color: #1d2129;
    background-color: #f2f3f5;
}

* {
    scroll-behavior: smooth;
}


/* 颜色变量 */

:root {
    --primary: #165dff;
    --secondary: #00b42a;
    --accent: #722ed1;
    --dark: #1d2129;
    --light: #f2f3f5;
}


/* 通用样式 */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: rgba(22, 93, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: white;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    position: relative;
    padding-bottom: 1rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: bold;
}

.section-title::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 4px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.section-title-center::after {
    left: 50%;
    transform: translateX(-50%);
}


/* 导航栏 */

.navbar {
    position: fixed;
    width: 100%;
    z-index: 50;
    transition: all 0.3s ease;
    padding: 16px 0;
}

.navbar.scrolled {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    /* border: 1px solid #000; */
}

.logo img {
    width: auto;
    height: 9vh;
}

@media (max-width: 418px) {
    .logo img {
        width: auto;
        height: 6vh;
    }
}

.nav-links {
    display: none;
    gap: 32px;
}

.nav-link {
    position: relative;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: bolder;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: block;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: absolute;
    width: 100%;
    left: 0;
    top: 100%;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--primary);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    .menu-toggle {
        display: none;
    }
    .mobile-menu {
        display: none;
    }
}


/* 英雄区域 */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: 40px 40px;
    /* background-image: linear-gradient(
      to right,
      rgba(22, 93, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(22, 93, 255, 0.05) 1px, transparent 1px);
  overflow: hidden; */
    overflow-x: hidden;
    overflow-y: hidden;
}


/* 假设插件生成的canvas类名为.ambient-light-bg */

#colorbgcanvas {
    position: absolute !important;
    /* 覆盖fixed，改为绝对定位 */
    top: 0;
    left: 0;
    width: 100% !important;
    /* 强制与section同宽 */
    height: 100% !important;
    /* 强制与section同高 */
    z-index: 0;
    /* 确保在内容下方 */
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-top: 50px;
    /* border: 1px solid #000; */
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    /* border: 1px solid #000; */
    margin-bottom: 70px;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 54px;
    color: #ffffff;
    /* border: 1px solid #000; */
}

.hero-text p {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 32px;
    max-width: 600px;
    font-weight: bolder;
    /* border: 1px solid #000; */
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-image {
    position: relative;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.hero-image-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom right, rgba(22, 93, 255, 0.2), rgba(114, 46, 209, 0.2));
    border-radius: 16px;
    transform: rotate(6deg);
}

.hero-image-inner {
    position: absolute;
    inset: 16px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.hero-image-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-feature {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background-color: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.hero-feature-content {
    display: flex;
    align-items: center;
}

.hero-feature-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(22, 93, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.hero-feature-icon i {
    color: var(--primary);
    font-size: 20px;
}

.hero-feature-text {
    font-weight: 500;
}

.hero-feature-subtext {
    font-size: 12px;
    color: #6b7280;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.scroll-indicator a {
    color: var(--primary);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-indicator a:hover {
    opacity: 1;
}


/* 公司介绍 */

.about {
    background-color: white;
}

.about-header {
    text-align: center;
    margin-bottom: 64px;
}

.about-header p {
    margin-top: 24px;
    color: #6b7280;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

.video-box {
    height: 60vh;
    width: auto;
    border: 1px solid #000;
}

.video-container {
    position: relative;
    width: 100%;
    /* 移动端保持小尺寸 */
    max-width: 90vw;
    height: 0;
    /* 16:9 比例 */
    padding-bottom: 50.625%;
    margin: 0 auto;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
    .about-text {
        order: 1;
    }
    .about-image {
        order: 2;
    }
    .video-container {
        /* 桌面端使用更大的视口宽度 */
        max-width: 60vw;
        /* 保持16:9比例 */
        padding-bottom: 52%;
    }
}

.about-text h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 24px;
}

.about-text p {
    color: #6b7280;
    margin-bottom: 24px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.about-stat {
    background-color: var(--light);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.about-stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 8px;
}

.about-stat-text {
    color: #6b7280;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: "";
    position: absolute;
    top: -24px;
    left: -24px;
    width: 96px;
    height: 96px;
    background-color: rgba(22, 93, 255, 0.1);
    border-radius: 50%;
}

.about-image::after {
    content: "";
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 128px;
    height: 128px;
    background-color: rgba(114, 46, 209, 0.1);
    border-radius: 50%;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.about-feature {
    position: absolute;
    bottom: -32px;
    left: 32px;
    background-color: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 20;
}

.about-feature-content {
    display: flex;
    align-items: center;
}

.about-feature-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(22, 93, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.about-feature-icon i {
    color: var(--primary);
}

.about-feature-text {
    font-weight: 500;
}

.about-feature-subtext {
    font-size: 12px;
    color: #6b7280;
}

.values {
    margin-top: 80px;
}

.values h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 40px;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.value-card {
    background-color: var(--light);
    padding: 32px;
    border-radius: 12px;
    transition: box-shadow 0.3s ease;
}

.value-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(22, 93, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.value-icon i {
    color: var(--primary);
    font-size: 24px;
}

.value-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 16px;
}

.value-text {
    color: #6b7280;
}


/* 公司产品 */

.products {
    background-color: #f9fafb;
}

.products-header {
    text-align: center;
    margin-bottom: 64px;
}

.products-header p {
    margin-top: 24px;
    color: #6b7280;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.product-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-content {
    padding: 24px;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.product-title {
    font-size: 20px;
    font-weight: bold;
}

.product-badge {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.badge-primary {
    background-color: rgba(22, 93, 255, 0.1);
    color: var(--primary);
}

.badge-secondary {
    background-color: rgba(0, 180, 42, 0.1);
    color: var(--secondary);
}

.badge-accent {
    background-color: rgba(114, 46, 209, 0.1);
    color: var(--accent);
}

.product-description {
    color: #6b7280;
    margin-bottom: 24px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.product-tag {
    padding: 4px 12px;
    background-color: var(--light);
    color: #6b7280;
    border-radius: 16px;
    font-size: 12px;
}

.product-link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.product-link:hover {
    color: rgba(22, 93, 255, 0.8);
}

.product-link i {
    margin-left: 8px;
}

.products-cta {
    text-align: center;
    margin-top: 64px;
}


/* 联系我们 */

.contact {
    background-color: white;
}

.contact-header {
    text-align: center;
    margin-bottom: 64px;
}

.contact-header p {
    margin-top: 24px;
    color: #6b7280;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    display: flex;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 768px) {
    .contact-content {
        display: flex;
        grid-template-columns: 1fr;
        gap: 48px;
        width: 40%;
    }
    .contact-logo {
        background-color: var(--light);
        padding: 32px;
        border-radius: 12px;
        margin-bottom: 32px;
        height: auto;
        width: 35%;
    }
}

.contact-info {
    background-color: var(--light);
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.contact-info h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
}

.map {
    width: 90%;
    height: 100%;
}

.contact-logo {
    background-color: var(--light);
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 32px;
    height: auto;
}

.contact-logo h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 24px;
}

.contact-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* margin-top: 30%; */
    /* border: 1px solid #000; */
}

.logo-card {
    height: auto;
    width: 100%;
    /* border: 1px solid #000; */
    display: flex;
    margin-top: 5%;
    justify-content: space-around;
}

.logo-card img {
    width: 18%;
    height: 78%;
    margin-top: 2%;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(22, 93, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    margin-top: 5px;
}

.contact-icon i {
    color: var(--primary);
}

.contact-text h4 {
    font-weight: 500;
    margin-bottom: 8px;
}

.contact-text p {
    color: #6b7280;
}

.contact-social {
    background-color: var(--light);
    padding: 32px;
    border-radius: 12px;
}

.contact-social h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 48px;
    height: 48px;
    background-color: rgba(22, 93, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: rgba(22, 93, 255, 0.2);
}

.contact-form {
    background-color: var(--light);
    padding: 32px;
    border-radius: 12px;
}

.contact-form h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit button {
    width: 100%;
    padding: 12px 0;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit button:hover {
    background-color: rgba(22, 93, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}


/* 页脚 */

.footer {
    background-color: var(--dark);
    color: white;
    padding: 48px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

.footer-company h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 24px;
    display: flex;
    justify-content: flex-start;
}

.footer-company p {
    color: #9ca3af;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: white;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
}

.footer-contact-item i {
    margin-right: 12px;
    color: var(--primary);
    margin-top: 2px;
}

.footer-contact-item span {
    color: #9ca3af;
}

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 48px;
    padding-top: 24px;
    text-align: center;
    color: #6b7280;
}


/* 粒子背景 */

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.7;
    animation: float 10s linear infinite;
}