* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    /* 向上偏移量，根据顶部导航栏高度调整 */
}

body {
    background-color: #f5f9ff;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    transition: 0.3s ease;
    transition-property: opacity, transform;
}

button:hover {
    opacity: 0.9;
}

button:active {
    opacity: 0.8;
    transform: scale(0.98);
}

.container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 0.9375rem;
}

@keyframes fadeIn {
    from {
        transform: translate3d(0, 50px, 0);
        opacity: 0;
    }

    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

#gradient-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    --gradient-color-1: #3fa3f7;
    --gradient-color-2: #67BAF7;
    --gradient-color-3: #8fd1f7;
    /* --gradient-color-4: #dffff7; */
    opacity: 0;
    animation: fadeInOpacity 1s 0.3s ease forwards;
}

@keyframes fadeInOpacity {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* 导航栏样式 */
header {
    background-color: rgba(255, 255, 255, 0);
    color: #FFF;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.05); */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: .3s ease;
    transition-property: background-color, color;
    /* animation: fadeIn 1s 0.5s ease forwards; */
}

header.active {
    background-color: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

header.active .login-btn {
    background-color: #0084ff;
    color: #FFF;
    border: 1px solid #0084ff;
}

.navbar {
    padding: 0 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    position: relative;
    display: flex;
    align-items: center;
}

.logo-img {
    width: 7.5rem;
    min-width: 7.5rem;
    height: 1.875rem;
    margin-right: 0.625rem;
}

.logo-text {
    display: none;
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.logo-img>img {
    width: 100%;
    height: 100%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4rem;
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    font-size: 0.875rem;
}

.login-btn {
    background-color: rgba(255, 255, 255, 0);
    color: inherit;
    border: none;
    padding: 0.6rem 2rem;
    border-radius: 1.25rem;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: 0.2s ease;
    transition-property: background-color, color, border;
}

.login-btn:hover {
    background-color: #0084ff;
    color: #FFF;
    /* border: 1px solid #0084ff; */
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #0084ff, #00c6ff);
    color: white;
    padding: 8.0625rem 0;
    padding-top: 15rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 -20px inset red;
}

.hero h2 {
    font-size: 3.75rem;
    font-weight: 500;
    margin-bottom: 0.875rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.hero p {
    font-size: 1.125rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeIn 1s 0.2s ease forwards;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeIn 1s 0.3s ease forwards;
}

.primary-btn,
.secondary-btn {
    width: 100%;
    max-width: 13.75rem;
    padding: 1rem 1.875rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 1.25rem;
    letter-spacing: 1px;
    font-weight: bold;
    transition: .3s ease;
    transition-property: transform;
}

.primary-btn:hover,
.secondary-btn:hover {
    transform: scale(1.05);
}

.primary-btn {
    background-color: #3DC5A2;
    border: 1px solid #40dab3;
    color: white;
}

.secondary-btn {
    background-color: white;
    border: 1px solid #e9e8e8;
    color: #333;
}

/* 特性区域样式 */
.features {
    padding: 4rem 0;
    opacity: 0;
    animation: fadeIn 1s 0.5s ease forwards;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 2rem;
    height: .25rem;
    border-radius: 1rem;
    top: -0.625rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #40A3F7 -1%, #3DC5A2 100%);
}

.section-title {
    position: relative;
    text-align: center;
    margin-bottom: 4rem;
    font-size: 1.5rem;
    font-weight: 350;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 1.875rem;
}

.feature-card {
    position: relative;
    background-color: white;
    border-radius: 2rem;
    box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.08);
    padding: 2.25rem 2.5rem;
    position: relative;
    transition: 0.4s cubic-bezier(0.51, 0.73, 0.37, 1.51);
    transform-origin: top center;
    transition-property: transform, box-shadow;
}

.feature-card::after {
    content: '';
    position: absolute;
    width: 90%;
    height: 20%;
    bottom: 60%;
    left: 5%;
    background: #FFF;
    filter: blur(5px);
    transform: rotate(-5deg);
    opacity: 0;
    transition: 0.3s ease;
    transition-property: transform, opacity;
}

.feature-card:hover {
    transform: perspective(1000px) rotateX(10deg);
    box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.08);
}

.feature-card:hover::after {
    opacity: 0.7;
    transform: rotate(15deg);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.5rem;
}

.feature-icon>img {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    border-top: 1px dashed #E5E5E5;
    padding-top: 1.5rem;
    font-size: 1.25rem;
    font-weight: 500;
}

.feature-card p {
    font-size: .875rem;
    color: #666;
}

.feature-badge {
    position: absolute;
    z-index: 2;
    top: -0.75rem;
    left: 50%;
    width: 4rem;
    height: 1.75rem;
    transform: translateX(-50%) rotate(3deg);
    background: rgba(47, 128, 237, 0.3);
    padding: 0.3125rem 0.9375rem;
    font-size: 0.75rem;
    color: #0084ff;
}

/* 产品功能区域样式 */
.product-features {
    position: relative;
    padding: 3.75rem 0;
    background: linear-gradient(181deg, #FFFFFF 0%, #C9F4FF 102%, #CDE6FD 102%);
    overflow: hidden;
}

.bg-mask-circle,
.bg-mask-moon {
    position: absolute;
    width: 40%;
    min-width: 15rem;
}

.bg-mask-circle {
    top: 50%;
    left: -15%;
}

.bg-mask-moon {
    top: 10%;
    right: -12%;
}

.product-feature {
    position: relative;
    display: flex;
    gap: 5rem;
    margin-bottom: 2rem;
    padding: 2.25rem;
    border-radius: 2rem;
    background: #FFF;
    box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.08);
    scroll-margin-top: 8rem;
    /* 为锚点增加额外的上边距 */
    transition: box-shadow 0.3s ease;
}

.product-feature:nth-child(2n - 1) {
    flex-direction: row-reverse;
}

.product-feature:target {
    border: 1px solid rgba(47, 128, 237, 0);
    animation: highlight 1.5s ease forwards;
}

@keyframes highlight {
    0% {
        transform: scale(0.98);
        border: 1px solid rgba(47, 128, 237, 0);
    }

    100% {
        transform: scale(1);
        border: 1px solid rgba(47, 128, 237, 0.5);
    }
}

.feature-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 0 3rem 0;
}

.feature-image {
    flex: 1;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image>img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-number {
    display: inline-block;
    width: 3.5rem;
    height: 3.5rem;
    border: 1px solid #E5E5E5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0084ff;
    margin-bottom: 0.9375rem;
}

.feature-content h3 {
    flex: 1;
    font-size: 1.375rem;
    font-weight: 500;
    place-content: end;
    padding-left: 1rem;
}

.feature-content p {
    font-size: 0.875rem;
    color: #666;
    padding-left: 1rem;
}

/* CTA区域样式 */
.cta {
    background-color: #3DC5A2;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.cta-btn {
    display: inline-block;
    background-color: white;
    color: #20c997;
    border: none;
    width: 100%;
    max-width: 12rem;
    padding: 1.0625rem 2.5rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: .3s ease;
    transition-property: transform;
}

.cta-btn:hover {
    transform: scale(1.05);
}

/* 页脚样式 */
footer {
    background-color: #121212;
    color: #fff;
    padding: .875rem 3.75rem;
    font-size: 0.75rem;
    text-align: center;
}

.footer-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

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

/* 响应式布局 */
@media screen and (max-width: 64rem) {

    /* 1024px */
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.375rem;
    }
}

@media screen and (max-width: 48rem) {

    /* 768px */
    .product-feature {
        flex-direction: column !important;
        gap: 2.5rem;
        margin-bottom: 3.75rem;
    }

    .feature-image {
        width: 100%;
        height: 15rem;
    }

    .feature-content {
        padding: 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 0.625rem;
    }

    .primary-btn,
    .secondary-btn {
        width: 80%;
    }
}

@media screen and (max-width: 36rem) {

    /* 576px */
    .feature-grid {
        grid-template-columns: 1fr;
    }

    header {
        padding: .625rem;
        /* background-color: #FFF; */
    }

    .navbar {
        gap: 1rem;
        padding: 0;
    }

    .login-btn {
        padding: 0.35rem 1.5rem;
        /* border: 1px solid #0084ff; */
        /* color: #0084ff; */
    }

    .nav-links {
        display: none;
    }

    .nav-links li {
        margin: 0;
    }

    .hero {
        padding: 5.75rem 0;
        padding-top: 12rem;
    }

    .hero h2 {
        font-size: 1.625rem;
    }

    .hero p {
        font-size: .875rem;
    }

    .hero-btns {
        gap: 1.5rem;
    }

    .primary-btn,
    .secondary-btn {
        padding: 0.9rem 1.875rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        font-weight: 300;
        margin-bottom: 4rem;
    }

    .feature-card {
        padding: 1.875rem;
        padding-bottom: 3rem;
    }

    .feature-card>h3 {
        font-size: 1.125rem;
    }

    .feature-card>p {
        font-size: .875rem;
    }

    .product-feature {
        margin-bottom: 2rem;
    }

    .feature-content>h3 {
        font-size: 1.125rem;
        padding-left: 0;
        padding: 0 0.5rem;
    }

    .feature-content>p {
        font-size: .875rem;
        padding-left: 0;
        padding: 0 0.5rem;
    }

    .cta {
        padding: 3rem 0;
    }

    .cta h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .cta-btn {
        padding: 0.5rem 1.875rem;
    }

    footer {
        padding: 2rem 1rem;
    }

    .footer-container {
        flex-direction: column-reverse;
        gap: 1rem;
    }
}