/* 设置根元素字体大小，1rem = 16px */
html {
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 响应式字体大小调整 */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
}

/* 图片通用样式 */
.main-content {
    width: 100%;
    overflow: hidden;
}

.div-container img {
    max-width: 100%;
    width: 100%;
    image-rendering: auto;
    object-fit: contain;
}


/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(10px);
    z-index: 1000;
    caret-color: transparent
}

.nav-container {
    padding: 0 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.375rem;
}

.nav-logo img {
    width: 9.0625rem;
    height: 2.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.875rem;
    
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: #face01 !important;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0.6rem;
    height: 0.6rem;
    border: #face01 solid 3px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 1.5625rem;
    height: 1.875rem;
    margin-right: 0.625rem;
}

.nav-toggle span {
    width: 25px;
    height: 0.1875rem;
    background: #fff;
    margin: 0.1875rem 0;
    transition: 0.3s;
    cursor: pointer;
}

/* 页面基础样式 */
.page {
    min-height: calc(100vh - 4.375rem);
}

.hero-section {
    min-height: calc(100vh - 4.375rem);
    padding: 3.125rem 1.25rem;
    max-width: 75rem;
}

.hero-content {
    padding-right: 3.125rem;
}

.hero-title {
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    margin-bottom: 0.625rem;
}

.hero-description {
    margin-bottom: 1.875rem;
}

.hero-buttons {
    gap: 1.25rem;
}

.btn {
    padding: 0.9375rem 1.875rem;
    border-radius: 3.125rem;
}

.hero-image img {
    width: 12.5rem;
    height: 12.5rem;
    border-radius: 3.125rem;
}

.features-section {
    padding: 6.25rem 0;
}

.section-title {
    margin-bottom: 3.125rem;
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
    gap: 1.875rem;
}

.feature-card {
    padding: 1.875rem;
    border-radius: 1.25rem;
}

.feature-title {
    margin-bottom: 1.25rem;
}

.feature-description {
    margin-bottom: 0.9375rem;
}

/* 主要内容区域 */

.page {
    display: none;
    min-height: calc(100vh - 70px);
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 首页样式 */
.hero-section {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 70px);
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.btn-container{ 
    width: 3rem; 
    height: 3rem; 
    position: relative; 
    top: -5rem; 
    left: 50%; 
    transform: translateX(-50%); 
    border-radius: 50%; 
    z-index: 10;
    /* 添加向下偏移动画 */
    animation: bounceDown 2s ease-in-out infinite;
    caret-color: transparent;
}

.btn-container::before,
.btn-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.btn-container::after {
    animation-delay: 1.5s;
}

/* 新增向下偏移动画 */
@keyframes bounceDown {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

.hero-section img {
    width: 100%;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #FFA500;
    margin-bottom: 10px;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #FFA500;
    color: white;
}

.btn-primary:hover {
    background: #FF8C00;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 165, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-mockup {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #FFA500, #FF8C00);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.device-screen {
    width: 150px;
    height: 150px;
    background: #333;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pet-icon {
    font-size: 3rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}


/* APP下载页面样式 */
#download {
    overflow: visible;
    /* 确保页面内容可以溢出显示 */
    padding: 20px 0;
    /* 给页面添加一些内边距 */
}

.swiper_text {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    min-height: 120px;
    /* 固定高度避免跳动 */
}

.text-item {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.text-item.active {
    display: block;
    opacity: 1;
}

.text-item h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.text-item p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.swiper_img {
    width: 100%;


    height: auto;
    min-height: 400px;
    overflow-x: auto;
    overflow-y: visible;
    display: flex;
    align-items: center;
    padding: 80px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 40px;
}

.swiper_img::-webkit-scrollbar {
    display: none;
}

/* Web端隐藏swiper-bg背景图片 */
.swiper-bg {
    display: none;
}

/* Web端swiper-content容器样式 */
.swiper-content {
    display: contents; /* 让子元素直接参与父容器的flex布局 */
}

/* Web端swiper-wrapper样式 */
.swiper-wrapper {
    display: contents; /* 让子元素直接参与父容器的flex布局 */
}

/* 两端空白占位元素 */
.swiper-spacer {
    min-width: 50vw;
    height: 1px;
    flex-shrink: 0;
}

.swiper_img .swiper-item {
    max-width: 30rem;
    width: auto;
    height: auto;
    max-height: 30rem;
    object-fit: contain;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
    opacity: 0.8;
    box-shadow: 0 4px 20px rgba(83, 83, 83, 0.1);
    border-radius: 1.2rem 1.2rem 2.25rem;
}

.swiper_img .swiper-item:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.swiper_img .swiper-item.active {
    transform: scale(1.25) translateY(-8px);
    opacity: 1;
    box-shadow: #000000;
    z-index: 99;
    position: relative;
}


/* 关于我们页面样式 */
#about {
    width: 100%;
}

#about::before {}

#about>img {
    width: 100%;
    image-rendering: auto;
    object-fit: contain;
}

.about-content {
    height: 90vh;
    /* 或者其他你需要的高度值 */
    position: relative !important;
}

.about-content>.btn-container{
    width: 3rem !important;
    height: 3rem !important;
    position: absolute !important;
    left: 96% !important;
    top: 85% !important;
    z-index: 9999;
}
.about-content .btn-container img{
    width: 3rem !important;
    height: 3rem !important;
} 

.about-content>img {
    width: 100%;
    height: 100%;
    /* image-rendering: auto;
    object-fit: contain; */
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

#canvas {
    position: relative;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 85%;
    height: 100% !important;
}

#canvas>div {
    width: 100% !important;
    height: 100% !important;
}

.element {
    width: 10.25rem;
    height: 10.25rem;
    box-shadow: 0 0 0.75rem rgba(0, 255, 255, 0.5);
    border: 0.0625rem solid rgba(127, 255, 255, 0.25);
    font-family: Helvetica, sans-serif;
    text-align: center;
    line-height: normal;
    cursor: default;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.element img {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    display: block;
}

.element img:hover {
    transform: scale(1.8);
    box-shadow: 0 0 1.25rem rgba(0, 255, 255, 0.8);
    border-radius: 0.625rem;
}

.element:hover {
    z-index: 999;
}


/* 页脚样式 */
.footer {
    background: #4a4a4a;
    color: white;
    padding: 40px 0 10px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
}


.footer-right {
    text-align: right;
}

.footer-title {
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 20px;
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-info {
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
    margin-top: 2.8rem;
}

.phone-number {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
}

.qr-code {
    display: inline-block;
}

.qr-code img {
    width: 80px;
    height: 80px;
    border: 1px solid #666;
    background: white;
}

.qr-text {
    font-size: 12px;
    margin-top: 8px;
    color: #ccc;
}


.footer-logo {
    font-size: 1.3rem;
    font-weight: bold;
    color: #FFA500;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FFA500;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* 首页样式 - 全屏图片效果 */
#home {
    padding: 0;
    /* 移除内边距 */
    margin: 0;
    /* 移除外边距 */
    width: 100vw;
    /* 视窗宽度 */
}

/* 骨架屏样式 */
.skeleton-loader {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skeleton-loader.show {
    display: block;
    opacity: 1;
}

.skeleton-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 图片骨架屏 */
.skeleton-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* 轮播图骨架屏 */
.skeleton-swiper {
    display: flex;
    gap: 15px;
    margin: 40px 0;
    overflow: hidden;
    justify-content: center;
}

.skeleton-swiper-item {
    width: 120px;
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
    flex-shrink: 0;
}

/* 文字骨架屏 */
.skeleton-text {
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
}

.skeleton-title {
    width: 60%;
    height: 32px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    margin: 0 auto 20px;
    border-radius: 4px;
    background: rgba(255, 198, 12, 0.7)
}

.skeleton-paragraph {
    width: 100%;
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    margin-bottom: 12px;
    border-radius: 4px;
}

.skeleton-paragraph:last-child {
    width: 80%;
    margin: 0 auto;
}

/* 移动端导航遮罩层 */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #343b48;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
    /* 比导航菜单低一层 */
}

.nav-overlay.active {
    opacity: 0.8;
    visibility: visible;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 0.9375rem;
        height: 3.75rem;
    }
    .about-content>.btn-container{
        left: 90% !important;
    }

    .nav-logo img {
        width: 7.5rem;
        height: 2rem;
    }

    .nav-menu {
        position: fixed;
        top: 3.75rem;
        right: -100%;
        padding: 1rem 1.2rem !important;
        margin: 1rem 1rem 0 0 !important;
        border-radius: 1rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 4rem 0;
        gap: 3rem;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.3rem;
        font-weight: 500;
        color: #9b9b9b !important;
        padding: 1rem 2rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        text-align: center;
        min-width: 200px;
    }

    .nav-link:hover,
    .nav-link.active {
        color: #000 !important;
        font-weight: 600;
        transform: translateY(-2px);
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 10px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .page {
        min-height: calc(100vh - 3.75rem);
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 1.875rem 0.9375rem;
        min-height: calc(100vh - 3.75rem);
    }

    #canvas {
        width: 100% !important;
        height: 70vh !important;
        overflow: hidden;
    }

    #canvas>div {
        width: 100% !important;
        height: 100% !important;
    }


    /* Footer 响应式样式 */
    .footer {
        padding: 1.875rem 0 0.625rem 0;
    }

    .footer-content {
        /* flex-direction: column;
        gap: 1.875rem; 
        padding: 0 0.9375rem; 
        text-align: center; */
    }

    .footer-section {
        text-align: center;
    }

    .footer-right {
        text-align: center;
    }


    .footer-title {
        margin-bottom: 1.25rem;
    }

    .social-icons {
        justify-content: center;
        gap: 0.9375rem;
    }

    .social-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .footer-links {
        justify-content: center;
        gap: 1.25rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.625rem;
        height: 3.4375rem;
    }

    .nav-logo img {
        width: 6.25rem;
        height: 1.75rem;
    }

    .nav-menu {
        top: 3.4375rem;
        padding: 2rem 0;
        gap: 2.1875rem;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .page {
        min-height: calc(100vh - 3.4375rem);
    }

    .hero-section {
        padding: 1.25rem 0.625rem;
        min-height: calc(100vh - 3.4375rem);
    }

    .btn {
        width: 11.25rem;
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }

    #canvas {
        height: 80vh !important;
    }

    /* Footer 小屏幕响应式样式 */
    .footer {
        padding: 1.5625rem 0 0.625rem 0;
    }

    .footer-content {
        gap: 1.5625rem;
        padding: 0 0.625rem;
    }

    .footer-title {
        font-size: 0.875rem;
        margin-bottom: 0.9375rem;
    }

    .phone-number {
        font-size: 1rem;
        margin-bottom: 0.9375rem;
    }

    .company-info {
        font-size: 0.75rem;
    }

    .social-icon {
        width: 2.1875rem;
        height: 2.1875rem;
    }

    .qr-code img {
        width: 4.375rem;
        height: 4.375rem;
    }

    .qr-text {
        font-size: 0.625rem;
        margin-top: 0.5rem;
    }

    .footer-links {
        gap: 0.9375rem;
    }

    .footer-bottom {
        padding-top: 0.9375rem;
        font-size: 0.75rem;
    }
}

/* 骨架屏动画 */
@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* 默认隐藏移动端专用图片 */
.mobile-only {
    display: none;
}

/* 移动端样式保持不变 */
@media (max-width: 700px) {
    .mobile-only {
        display: block;
    }
}

#back-to-top{
    box-shadow: none !important;
    background-color: #fdd000 !important;
    opacity: 0.8;
}