/* ======== 全局样式与变量 ======== */
:root {
    --bg-color: #F8F9FA;
    --bg-secondary-color: #FFFFFF;
    --text-color: #1A202C;
    --primary-color: #0052FF;
    --secondary-color: #7A7BFF;
    --border-color: #E2E8F0;
    --font-family: 'Poppins', 'Noto Sans SC', sans-serif;
    --container-width: 1140px;
    --border-radius: 12px;
    /* 增加圆角使其更现代化 */
    --transition-speed: 0.3s;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    /* 增加行高提升可读性 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3 {
    font-weight: 700;
    /* 标题加粗更醒目 */
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: #4A5568;
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ======== 按钮样式 ======== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 82, 255, 0.2);
}

.btn-primary:hover {
    background-color: #0045D6;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 82, 255, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-secondary-color);
    border-color: var(--text-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.09);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 45px;
    font-size: 1.1rem;
}

/* ======== 导航栏 ======== */
.navbar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(11px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition-speed) ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-color);
}

.navbar nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 35px;
}

.navbar nav a {
    color: #4A5568;
    font-weight: 500;
    transition: color var(--transition-speed);
    position: relative;
    padding-bottom: 5px;
    -webkit-transition: color var(--transition-speed);
    -moz-transition: color var(--transition-speed);
    -ms-transition: color var(--transition-speed);
    -o-transition: color var(--transition-speed);
}

.navbar nav a::after,.navbar nav a.on::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
    -webkit-transition: width var(--transition-speed) ease;
    -moz-transition: width var(--transition-speed) ease;
    -ms-transition: width var(--transition-speed) ease;
    -o-transition: width var(--transition-speed) ease;
}

.navbar nav a:hover {
    color: var(--primary-color);
}

.navbar nav a:hover::after,.navbar nav a.on::after {
    width: 100%;
}

/* ======== 模块一: Hero Section ======== */
.hero {
    padding-top: 200px;
    padding-bottom: 150px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: #F0F5FF;
    /* 更柔和的背景 */
}

/* 动态背景 - 浮动粒子 */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-shapes span {
    position: absolute;
    display: block;
    border-radius: 50%;
    animation: float 25s linear infinite;
    bottom: -180px;
    /* 从屏幕外开始 */
    background: rgba(0, 82, 255, 0.1);
}

.hero-shapes span:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.hero-shapes span:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.hero-shapes span:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
    background: rgba(0, 82, 255, 0.05);
}

.hero-shapes span:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.hero-shapes span:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
    background: rgba(255, 255, 255, 0.6);
}

.hero-shapes span:nth-child(6) {
    left: 85%;
    width: 120px;
    height: 120px;
    animation-delay: 3s;
    background: rgba(0, 82, 255, 0.08);
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
        border-radius: 50%;
    }

    100% {
        transform: translateY(-120vh) rotate(720deg);
        opacity: 0;
        border-radius: 40%;
    }
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ======== 模块二: 核心服务 ======== */
.services-section {
    background-color: var(--bg-secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.service-card::before {
    /* 悬停时的装饰效果 */
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s ease;
}

.service-card:hover::before {
    opacity: 0.05;
    transform: scale(2);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    transition: color var(--transition-speed);
}

.service-card:hover h3 {
    color: var(--primary-color);
}

/* ======== 模块三: 产品展示 ======== */
.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    margin-bottom: 100px;
}

.showcase-item.reverse {
    grid-template-areas: "text image";
}

.showcase-item:not(.reverse) {
    grid-template-areas: "image text";
}

.showcase-image {
    grid-area: image;
}

.showcase-text {
    grid-area: text;
}

.showcase-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-speed) ease;
}

.showcase-image img:hover {
    transform: scale(1.05);
}

.showcase-text ul {
    list-style: none;
    padding-left: 0;
}

.showcase-text ul li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.showcase-text ul li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

.link {
    font-weight: 600;
    display: inline-block;
    margin-top: 15px;
}

.link:hover {
    text-decoration: underline;
}

/* ======== 模块四: 客户信任 ======== */
.social-proof-section {
    background-color: var(--bg-secondary-color);
}

.logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.logos img {
    height: 40px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-speed) ease;
}

.logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* ======== 模块五: 行业洞察 ======== */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.insight-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
}

.insight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.insight-card .image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.insight-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.insight-card:hover img {
    transform: scale(1.05);
}

.insight-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.insight-content .tag {
    display: inline-block;
    background-color: #E0E7FF;
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    align-self: flex-start;
}

.insight-content h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 10px;
    flex-grow: 1;
}

.insight-content .date {
    font-size: 0.9rem;
    color: #6B7280;
}


/* ======== 模块六: CTA ======== */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    /* 更大的圆角 */
    padding: 80px 40px;
    margin: 100px auto;
    max-width: var(--container-width);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-section h2 {
    color: white;
    font-size: 2.8rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    font-size: 1.2rem;
}

.cta-section .btn-primary {
    background-color: white;
    color: var(--primary-color);
    transform: scale(1.05);
}

.cta-section .btn-primary:hover {
    background-color: #f0f0f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: scale(1.1) translateY(-4px);
}

/* ======== 页脚 ======== */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    background-color: #fff;
    color: #6B7280;
    /* 页脚使用更柔和的灰色 */
    font-size: 0.9rem;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer a {
    color: #6B7280;
    margin: 0 10px;
    transition: color var(--transition-speed);
}

.footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer p {
    margin: 5px 0;
}

.footer .footer-links,
.footer .footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 15px;
    /* 行间距和列间距 */
}

.footer .divider {
    color: #d1d5db;
}

/* ======== 联系我们页面专属样式 ======== */
.contact-hero {
    padding-top: 180px;
    padding-bottom: 80px;
    text-align: center;
    background-color: var(--bg-secondary-color);
}

.contact-hero h1 {
    font-size: 3rem;
}

.contact-main {
    padding-top: 0;
    padding-bottom: 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* 左侧表单更宽 */
    gap: 60px;
    background-color: var(--bg-secondary-color);
    padding: 60px;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.07);
}

.contact-form-wrapper h2,
.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-form-wrapper p,
.contact-info p {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 96, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

.contact-info .info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-info .info-item svg {
    color: var(--primary-color);
    margin-top: 5px;
    flex-shrink: 0;
    /* 防止SVG被压缩 */
}

.contact-info .info-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-info .info-item p {
    margin: 0;
    font-size: 1rem;
}

.map-container {
    margin-top: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.map-container img {
    width: 100%;
    display: block;
}
.info-item p a {
    font-size: 1.4rem;
}

/* ======== 响应式设计 ======== */
@media (max-width: 992px) {
    .navbar nav {
        display: none;
    }

    /* 在移动端简化，可添加汉堡菜单 */
    .showcase-item,
    .showcase-item.reverse {
        grid-template-columns: 1fr;
        grid-template-areas: "image" "text";
        text-align: center;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .cta-section h2 {
        font-size: 2.2rem;
    }
}