/* 全局重置 + 基础配置 */
:root {
    /* 颜色变量 */
    --primary: #5762F9;
    --text-dark: #2D2D2D;
    --text-gray: #707070;
    --text-light-gray: #CECECE;
    --white: #ffffff;
    /* 响应式断点 */
    --sm: 480px;
    --md: 768px;
    --lg: 1024px;
    --xl: 1440px;
    /* 字体大小基准 */
    --font-base: 16px;
}

* {
    font-family: 'Anton', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-base);
}

body {
    overflow-x: hidden;
    color: var(--text-dark);
}

/* 全局图片自适应 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: var(--xl);
    margin: 0 auto;
}

.logo-img {
    width: clamp(80px, 15vw, 120px);
    height: auto;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: clamp(1rem, 3vw, 2rem);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a.active::after,
.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-dark);
}

/* 客服图标样式 */
/* 客服图标样式 */
.customer-service {
    position: fixed;
    right: 40px;
    bottom: 30px;
    width: 80px;
    height: 80px;
    text-transform: none;
    letter-spacing: 0;
    opacity: 1;
    z-index: 1000;
    animation: pulse 1s infinite ease-in-out;
}

.customer-service img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* 通用按钮样式 */
.button {
    background: var(--primary);
    box-shadow: 0px 16px 20px 0px rgba(0, 0, 0, 0.16);
    border-radius: 16px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    /* 响应式尺寸 */
    padding: clamp(0.8rem, 2vw, 1.5rem);
    width: 100%;
    max-width: clamp(200px, 30vw, 497px);
    min-height: clamp(50px, 8vw, 160px);
}

.button font {
    font-size: clamp(1.2rem, 3vw, 4rem);
    transition: text-decoration 0.1s ease;
}

/* 通用圆形箭头样式（统一封装） */
.circle1, .circle2, .circle3, .circle4 {
    margin-left: 5%;
    border-radius: 50%;
    border: 4px solid var(--white);
    position: relative;
    /* 响应式尺寸 */
    width: clamp(10px, 4vw, 40px);
    height: clamp(10px, 4vw, 40px);
    min-width: 20px;
    min-height: 20px;
}

.circle1::after, .circle2::after, .circle3::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 44%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: clamp(6px, 1vw, 8px);
    height: clamp(6px, 1vw, 8px);
    border-bottom: 3px solid var(--white);
    border-right: 3px solid var(--white);
}

.circle4::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 44%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: clamp(10px, 2vw, 17px);
    height: clamp(10px, 2vw, 17px);
    border-bottom: 3px solid var(--white);
    border-right: 3px solid var(--white);
}

/* 通用Section样式 */
section {
    min-height: 100vh;
    padding: clamp(2rem, 5vw, 5rem) 5%;
    max-width: var(--xl);
    margin: 0 auto;
    position: relative;
    /* 顶部留出导航栏空间 */
    margin-top: clamp(50px, 8vw, 70px);
}

/* Home Section */
.home {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.home .card_left {
    flex: 1 1 clamp(300px, 40%, 647px);
}

.home .card_left .title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.3;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-dark);
}

.home .card_left .content {
    font-size: clamp(1rem, 3vw, 1.5rem);
    line-height: 1.5;
    color: var(--text-gray);
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.home .image {
    flex: 1 1 clamp(300px, 50%, 800px);
    margin: 0; /* 移除固定margin */
    display: flex;
    justify-content: center;
}

.home .card_right {
    flex: 1 1 clamp(300px, 50%, 1386px);
    display: flex;
    justify-content: center;
}

/* Rating & Reviews Section */
.rating-reviews {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.rating-reviews .card_left {
    flex: 1 1 clamp(300px, 45%, 800px);
    display: flex;
    justify-content: center;
    transform: scale(clamp(0.7, 0.9vw, 0.8));
    transform-origin: center;
}

.rating-reviews .card_right {
    flex: 1 1 clamp(300px, 45%, 600px);
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.rating-reviews .title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.2;
    color: var(--text-dark);
}

.rating-reviews .content {
    font-size: clamp(1rem, 3vw, 2rem);
    line-height: 1.5;
    color: var(--text-gray);
}

/* Keyword Install Section */
.keyword-install {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.keyword-install .text-wrapper {
    flex: 1 1 clamp(300px, 45%, 700px);
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.keyword-install .image {
    flex: 1 1 clamp(300px, 45%, 800px);
    display: flex;
    justify-content: center;
}

.keyword-install .title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.2;
    color: var(--text-dark);
}

.keyword-install .content {
    font-size: clamp(1rem, 3vw, 2rem);
    line-height: 1.5;
    color: var(--text-gray);
}

/* More Service Section */
.more-service {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.more-service .content-wrapper {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    max-width: clamp(300px, 80%, 1200px);
    align-items: center;
}

.more-service .title {
    font-size: clamp(2.5rem, 7vw, 4rem);
    line-height: 1.2;
    color: var(--text-dark);
}

.more-service .content {
    white-space: nowrap;
    font-size: clamp(1.2rem, 3vw, 2.25rem);
    line-height: 1.5;
    color: var(--text-dark);
}

/* End Section */
.end {
    min-height: clamp(600px, 80vh, 1000px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.end .content-wrapper {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.end .context {
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    line-height: 1.4;
    color: var(--text-dark);
    max-width: clamp(300px, 80%, 457px);
}

.end .email {
    font-size: 100px;
    line-height: 1.2;
    color: var(--text-dark);
    /* 小屏换行 */
    /* word-break: break-all;  */
}

.end .social-image {
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
    width: clamp(150px, 30vw, 214px);
    justify-content: center;
}

.end .footer-logo {
    margin: clamp(1rem, 3vw, 2rem) 0;
}

.end .terms {
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    color: var(--text-light-gray);
    line-height: 1.5;
}

/* 交互动画 */
.button:hover {
    transform: translateY(-3px);
    box-shadow: 0px 20px 25px 0px rgba(0, 0, 0, 0.2);
}

.button:hover .circle1,
.button:hover .circle2,
.button:hover .circle3,
.button:hover .circle4 {
    animation: circlePulse 1.5s infinite ease-in-out;
}

.button:active font {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

@keyframes circlePulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* 响应式断点：平板及以下 */
@media (max-width: var(--md)) {
    /* 导航栏移动端 */
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        font-size: 24px;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
        padding: 0.5rem 0;
    }

    /* 各Section小屏优化 */
    .home .card_left,
    .rating-reviews .card_left,
    .keyword-install .text-wrapper {
        text-align: center;
    }

    .rating-reviews .card_left {
        transform: scale(0.9);
    }

    .end .email {
        font-size: clamp(3rem, 15vw, 6rem);
    }
}

/* 响应式断点：手机及以下 */
@media (max-width: var(--sm)) {
    section {
        padding: clamp(1rem, 3vw, 2rem) 3%;
    }

    .button {
        max-width: 100%;
    }

    .home .card_left .title {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .more-service .title {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }

    .end .context {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }
}

/* 响应式断点：大屏优化 */
@media (min-width: var(--xl)) {
    section {
        padding: 5rem 10%;
    }

    .home .card_left {
        text-align: left;
    }

    .rating-reviews .card_right,
    .keyword-install .text-wrapper {
        text-align: left;
    }
}