/* ===== 全局基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #1a1a2e;
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ===== 通用容器样式 ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 通用组件样式 ===== */
.section {
    padding: 50px 0;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(0, 209, 178, 0.1);
    border-bottom: 1px solid rgba(0, 209, 178, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 1.8rem;
    background: linear-gradient(to right, #00D1B2, #3A86FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.view-all-btn {
    padding: 8px 20px;
    border: 1px solid rgba(0, 209, 178, 0.3);
    border-radius: 50px;
    color: #00D1B2;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    margin-top: 0;
    white-space: nowrap;
}

.view-all-btn:hover {
    background: rgba(0, 209, 178, 0.2);
    color: #3A86FF;
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0, 209, 178, 0.2);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.card {
    background: rgba(26, 26, 46, 0.7);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s;
    border: 1px solid rgba(0, 209, 178, 0.15);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 209, 178, 0.15);
    border-color: rgba(0, 209, 178, 0.3);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
    border: 1px solid rgba(0, 209, 178, 0.3);
}

.card-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
}

.card h4 {
    font-size: 1.0rem;
    margin-bottom: 20px;
    color: white;
}

.card-link {
    display: inline-block;
    color: #00D1B2;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid rgba(0, 209, 178, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    margin-top: auto;
}

.card-link:hover {
    background: rgba(0, 209, 178, 0.1);
    color: #3A86FF;
}

/* 通用响应式调整 */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        margin-bottom: 30px;
    }

    .section-header h2 {
        margin-bottom: 0;
        white-space: nowrap;
    }

    .view-all-btn {
        white-space: nowrap;
    }
}

/* ===== 博客链接样式 ===== */
.blog-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    padding: 8px 12px;
    border-radius: 50px;
    background: rgba(0, 209, 178, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-icon {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.blog-text {
    color: #00D1B2;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.blog-link:hover {
    background: rgba(0, 209, 178, 0.2);
    transform: translateY(-2px);
}

/* 移动端样式 */
@media (max-width: 768px) {
    .blog-link {
        padding: 6px 10px;
        margin-left: 15px;
        display: none; 
    }

    .blog-icon {
        display: none;     /* 移动端只显示图标 */
    }

    .blog-text {
        display: none;     /* 移动端只显示图标 */
    }
}

/* ===== 返回顶部按钮样式 ===== */
.back-to-top {
    position: fixed;
    bottom: -60px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00D1B2, #3A86FF);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 209, 178, 0.3);
    transition: all 0.3s ease;
    z-index: 99;
    opacity: 0;
    border: none;
    padding: 0;
}

.back-to-top img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.back-to-top.visible {
    bottom: 30px;
    opacity: 1;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 209, 178, 0.4);
}

@media (max-width: 768px) {
    .back-to-top {
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .back-to-top.visible {
        bottom: 20px;
    }

    .back-to-top img {
        width: 20px;
        height: 20px;
    }
}

/* ===== 导航栏板块 ===== */
.navbar {
    width: 100%;
    padding: 15px 0;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 209, 178, 0.2);
}

.navbar > .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

/* logo区域 */
.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #00D1B2, #3A86FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== 一级菜单容器 ===== */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0 auto; 
    padding: 0;
    gap: 15px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-right {
    display: flex;
    align-items: center;
    margin-left: auto; 
}

/* 一级菜单项 */
.nav-menu > li {
    margin: 0 15px;
    position: relative;
}

/* 一级菜单链接 */
.nav-menu > li > a {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    display: block;
    transition: color 0.3s ease;
    white-space: nowrap;
    width: auto;
    min-width: max-content;
    text-align: center;
}

/* ===== 一级菜单下划线动画 ===== */
.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #00D1B2;
    transition: width 0.3s;
}

/* 高亮样式*/
.nav-menu > li:hover > a::after,
.nav-menu > li.active > a::after {
    width: 100%;
}

/* ===== 带子菜单的一级菜单 ===== */
.nav-menu .has-submenu > a {
    position: relative;
    padding-right: 0;
    text-align: center;
}

/* ===== 二级菜单基础样式 ===== */
.nav-menu .submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 160px;
    max-width: 300px;
    background: rgba(0, 209, 178, 0.1);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 8px 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.nav-menu .submenu li {
    margin: 0;
    padding: 0;
    position: relative;
    white-space: nowrap;
}

.nav-menu .submenu li:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu .submenu a {
    display: block;
    padding: 10px 25px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-size: 0.9rem;
    transition: color 0.3s;
    width: 100%;
    text-decoration: none;
}

.nav-menu .submenu a:hover,
.nav-menu .submenu li.active a {
    color: #00D1B2;
    background: rgba(0, 209, 178, 0.2);
}

.nav-menu .submenu.active {
    max-height: 500px;
    padding: 10px 0;
}

/* ===== 显示二级菜单 ===== */
.nav-menu > li.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
}

/* ===== 汉堡菜单样式 ===== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: 10px;
    z-index: 101;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ===== 移动端样式 ===== */
@media (min-width: 769px) {
    .nav-menu .submenu {
        position: absolute;
        top: 100%;
        max-width: none;
        background: #2a2a4a;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        visibility: hidden;
        z-index: 1000;
        transition: all 0.3s ease;
        text-align: center;
    }

    /* 展开时显示 */
    .nav-menu .has-submenu:hover .submenu {
        opacity: 1;
        visibility: visible;
    }

    /* 二级菜单链接样式 */
    .nav-menu .submenu a {
        padding: 10px 25px;
        display: block;
        color: rgba(255, 255, 255, 0.8);
        white-space: nowrap;
        transition: color 0.3s ease;
    }

    .nav-menu .submenu a:hover {
        color: #00D1B2;
        background: rgba(0, 209, 178, 0.2);
    }

    .nav-menu,
    .nav-menu ul,
    .nav-menu li,
    .nav-menu .submenu,
    .nav-menu .submenu li {
        list-style: none !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    /* 隐藏二级菜单项前的圆点（有些浏览器会保留） */
    .nav-menu .submenu li::marker {
        content: normal;
        display: none;
    }

    .nav-menu .submenu li::before {
        display: none;
    }

    .toggle-icon {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* 显示汉堡菜单 */
    .menu-toggle {
        display: block;
    }

    /* 隐藏默认主菜单 */
    .nav-menu {
        display: flex;
        position: fixed;
        gap: 10px;
        width: 50%;
        height: calc(100vh - 70px);
        top: 70px;
        right: 0;
        background: rgba(26, 26, 46, 0.98);
        padding: 20px;
        flex-direction: column;
        box-shadow: -5px 0px 15px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        z-index: 99;
        transition: transform 0.3s ease;
        transform: translateX(100%);
    }

    .submenu-toggle .toggle-icon {
        display: inline-block;
    }
    
    .nav-menu.active {
        display: flex;
        transform: translateX(0);
    }

    /* 一级菜单链接样式 */
    .nav-menu > li > a {
        padding: 12px 15px;
        margin-bottom: 0;
        background: rgba(0, 209, 178, 0.1);
        border-radius: 6px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* 移除悬停下划线 */
    .nav-menu > li > a::after {
        display: none !important;
    }

    /* 隐藏非激活状态下的下划线 */
    .nav-menu > li:not(.active) > a::after {
        display: none !important;
    }

    /* 激活状态保留高亮效果 */
    .nav-menu > li.active > a {
        background-color: rgba(0, 209, 178, 0.2); /* 可选：增加背景色增强视觉反馈 */
        color: #00D1B2;
    }

    /* 二级菜单移动端样式 */
    .nav-menu .submenu {
        position: static;
        transform: none;
        width: 100%;
        background: rgba(0, 209, 178, 0.1);
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        border-radius: 0 0 8px 8px;
    }

    .nav-menu .submenu.active {
        max-height: 500px;
        padding: 10px 0;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.5s ease-in;
    }

    .nav-menu .submenu li {
        width: auto;
    }

    .nav-menu .submenu a {
        text-align: left;
        padding: 8px 15px 8px 25px;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.9);
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-menu .submenu a:hover {
        color: #00D1B2;
        background: rgba(0, 209, 178, 0.2);
    }

    .submenu-toggle {
        display: flex;
        align-items: center;
        padding-right: 30px;
        position: relative;
    }

    .toggle-icon {
        width: 15px;
        height: 15px;
        background: url('./images/arrow-down.svg') no-repeat center / contain;
        transition: transform 0.3s ease;
        margin-left: auto;
        margin-right: 10px; 
        flex-shrink: 0;
    }

    .has-submenu.active .toggle-icon {
        transform: rotate(180deg);
    }
}

/* ===== 超窄屏优化 ===== */
@media (max-width: 360px) {
    .nav-menu {
        padding: 10px;
    }

    .nav-menu > li > a {
        padding: 10px 12px;
    }

    .nav-menu .submenu {
        grid-template-columns: 1fr;
    }

    .nav-menu .submenu a {
        padding: 8px 12px;
    }

    .banner-section {
        height: 120px;
    }
}

/* ===== 轮播图板块 ===== */
.slider-container {
    width: 100%;
    height: 60vh;
    overflow: hidden;
    margin-top: 70px;
    position: relative;
    touch-action: pan-y;
}

.slider {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.slide {
    width: 33.33%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    color: white;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.slide-btn {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.slide-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: #00D1B2;
    transform: scale(1.2);
}

/* 轮播图响应式 */
@media (max-width: 992px) {
    .slider-container {
        height: 50vh;
    }

    .slide-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .slide-content {
        text-align: center;
    }

    .slide-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .slider-container {
        height: 40vh;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }
}

/* ===== 欢迎内容板块 ===== */
.welcome-section {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.03);
}

.welcome-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-title {
    font-size: 1.8rem;
    background: linear-gradient(to right, #00D1B2, #3A86FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    display: inline-block;
    width: fit-content;
}

.highlight {
    color: #D0DB2A;
    background: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: left;
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: white;
    display: flex;
    justify-content: left;
    align-items: left;
    gap: 10px;
    text-align: left;
}

.feature-icon {
    width: 30px;
    height: 30px;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    text-align: left;
    font-size: 15px;
    padding-left: 0;
    width: 100%;
}

/* 欢迎内容响应式 */
@media (max-width: 992px) {
    .welcome-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .welcome-section {
        padding: 40px 0;
    }

    .welcome-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 375px) {
    .welcome-title {
        font-size: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 健康管理板块（新） ===== */
.management {
    /* 继承 .section 样式 */
}

.management-cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.management-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 209, 178, 0.15);
}
.management-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin: -20px 0 30px;
    text-align: left;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.management-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 209, 178, 0.2);
    border-color: rgba(0, 209, 178, 0.4);
}

.management-card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.management-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.management-card:hover .management-card-image img {
    transform: scale(1.05);
}

.management-card-content {
    padding: 20px;
    text-align: center;
}

.management-card-content h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.management-card:hover .management-card-content h3 {
    color: #00D1B2;
}

.management-card-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    text-align: left;
    line-height: 1.5;
    margin: 0;
}

/* 健康管理响应式 */
@media (max-width: 768px) {
    .management-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .management-card-image {
        height: 160px;
    }
}

@media (max-width: 375px) {
    .management-cards-container {
        grid-template-columns: 1fr;
    }

    .management-card-image {
        height: 160px;
    }
}

/* ===== 健康管理板块（旧） ===== */
.health-management {
    /* 继承 .section 样式 */
}

.hm-cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.hm-card {
    display: block;
    background: rgba(26, 26, 46, 0.7);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 209, 178, 0.15);
    text-decoration: none;
}

.hm-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 209, 178, 0.2);
    border-color: rgba(0, 209, 178, 0.4);
}

.hm-card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.hm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hm-card:hover .hm-card-image img {
    transform: scale(1.1);
}

.hm-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(242, 71, 101, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.hm-card-overlay p {
    color: white;
    font-size: 0.95rem;
    line-height: 1.5;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.hm-card:hover .hm-card-overlay {
    opacity: 1;
}

.hm-card:hover .hm-card-overlay p {
    transform: translateY(0);
}

.hm-card h3 {
    color: white;
    text-align: center;
    padding: 18px 10px;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s;
}

.hm-card:hover h3 {
    color: #00D1B2;
}

/* 健康管理响应式 */
@media (max-width: 992px) {
    .hm-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hm-cards-container {
        grid-template-columns: 1fr;
    }

    .hm-card-image {
        height: 160px;
    }
}

/* =====健康评估板块（新） ===== */
.assessment {
    /* 继承 .section 样式 */
}

.assessment-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin: -20px 0 30px;
    text-align: left;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.assessment-cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.assessment-card {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(58, 134, 255, 0.15);
    text-decoration: none;
    color: inherit;
}

.assessment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 209, 178, 0.2);
    border-color: rgba(0, 209, 178, 0.4);
}

.assessment-card-image {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.assessment-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.assessment-card:hover .assessment-card-image img {
    transform: scale(1.05);
}

.assessment-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #3A86FF;
    color: white;
    z-index: 2;
}

.assessment-card-content {
    padding: 20px;
    text-align: center;
}

.assessment-card-content h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.assessment-card:hover .assessment-card-content h3 {
    color: #00D1B2;
}

.assessment-card-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    text-align: left;
    line-height: 1.5;
    margin: 0;
}

/* 健康评估响应式 */
@media (max-width: 768px) {
    .assessment-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 375px) {
    .assessment-cards-container {
        grid-template-columns: 1fr;
    }

    .assessment-card-image {
        height: 140px;
    }
    
    .assessment-description {
        font-size: 0.95rem;
        margin: -15px 15px 25px;
    }
}

/* ===== 健康评估板块（旧） ===== */
.health-assessment {
    /* 继承 .section 样式 */
}

.ha-cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.ha-card {
    display: block;
    background: rgba(26, 26, 46, 0.7);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(58, 134, 255, 0.15);
    text-decoration: none;
    height: auto;
}

.ha-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(58, 134, 255, 0.2);
    border-color: rgba(58, 134, 255, 0.4);
}

.ha-card-image {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.ha-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.ha-card:hover .ha-card-image img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.ha-card:hover .ha-card-badge {
    background: #00D1B2;
    transform: scale(1.05);
}

.ha-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(26, 26, 46, 0.8);
    z-index: 1;
}

.ha-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #3A86FF;
    color: white;
    opacity: 1 !important;
    z-index: 2;
    transition: all 0.3s ease;
}

.ha-card-overlay p {
    color: white;
    font-size: 0.85rem;
    text-align: left;
    line-height: 1.5;
    margin-top: 5px;
}

.ha-card:hover .ha-card-overlay {
    opacity: 1;
}

/* 健康评估响应式 */
@media (max-width: 992px) {
    .ha-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 360px) {
    .ha-cards-container {
        grid-template-columns: 1fr;
    }

    .ha-card-image {
        height: 120px;
    }
}

/* ===== 健康科普板块（新） ===== */
.science {
    position: relative;
    padding: 50px 0;
    background: rgba(255, 255, 255, 0.03);
}

.science-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.science-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1px 0;
}

.science-text {
    flex: 1;
}

.science-text p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1rem;
}

/* 统计卡片样式 */
.science-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px -50px;
    margin: 12px 0 8px;
}

.science-stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 209, 178, 0.15);
    transition: all 0.3s;
}

.science-stat-item:hover {
    background: rgba(0, 209, 178, 0.1);
    transform: translateY(-2px);
}

.science-stat-number {
    font-size: 1rem;
    color: #00D1B2;
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.science-stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
    display: block; 
    width: 100%; 
}

/* 右侧图片区域  */
.science-image {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    height: 250px;
}

.science-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.science-image:hover img {
    transform: scale(1.03);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .science-content {
        gap: 30px;
    }

    .science-image {
        height: 250px;
        border-radius: 8px;
    }
}

@media (max-width: 940px) {   
    .science-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .science-image {
        display: none;
    }
}

@media (max-width: 576px) {   
    .science-text p {
        font-size: 1rem;
    }
    
    .stat-item {
        padding: 10px;
    }
}

@media (max-width: 315px) {
    .science-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 健康科普板块(旧) ===== */
.science-cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.science-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px 30px 20px;
    border: 1px solid rgba(0, 209, 178, 0.15);
    backdrop-filter: blur(5px);
    display: block;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    perspective: 1000px;
    touch-action: manipulation;
    text-decoration: none;
    color: inherit;
}

/* 翻转容器 */
.card-flip-container {
    position: relative;
    width: 100%;
    height: 120px;
    transform-style: preserve-3d;
    margin: 15px 0;
}

/* 正反面共用样式 */
.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 正面样式 */
.card-front .icon-container {
    width: 80px;
    height: 80px;
    padding: 10px;
    border: 0px solid rgba(0, 209, 178, 0.5);
    border-radius: 15%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 正面图标图片 */
.card-front .icon-container img {
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* 反面样式 */
.card-back {
    transform: rotateY(180deg);
}

/* 二维码容器 */
.card-back .icon-container {
    width: 80px;
    height: 80px;
    padding: 10px;
    border-radius: 10%;
    background: white;
    border: 0px solid rgba(0, 209, 178, 0.5);
}

/* 二维码图片 */
.card-back .qrcode-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8%;
    border: 1px solid rgba(0, 209, 178, 0.5);
    background: white;
    padding: 5px;
    box-sizing: border-box;
}

/* 自动翻转动画 */
.science-card .card-flip-container {
    animation: cardFlip 6s ease-in-out infinite;
}

@keyframes cardFlip {
    0%, 45% {
        transform: rotateY(0deg);
    }
    50%, 95% {
        transform: rotateY(180deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

/* 悬停效果 */
.science-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 209, 178, 0.15);
    border-color: rgba(0, 209, 178, 0.3);
}

.science-card h4 {
    font-size: 1.0rem;
    color: white;
    transition: color 0.3s ease;
    margin: -8px 0 0;
    color: white !important;
}

.science-card:hover h4 {
    color: #00D1B2 !important;
}

/* 健康科普响应式 */
@media (max-width: 992px) {
    .science-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-flip-container {
        height: 100px;
    }
}

@media (max-width: 576px) {
    .science-cards-container {
        gap: 20px;
    }

    .science-card {
        padding: 20px 15px;
    }

    .card-flip-container {
        height: 80px;
        margin: 10px 0;
    }

    .card-front .icon-container,
    .card-back .icon-container {
        width: 60px;
        height: 60px;
        padding: 8px;
    }
}

/* 运动敏感用户设置 */
@media (prefers-reduced-motion: reduce) {
    .science-card .card-flip-container {
        animation: none;
    }
}

/* ===== 乐活学院板块 ===== */
#lohas-academy {
    position: relative;
    padding: 50px 0;
    background: rgba(255, 255, 255, 0.03);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    width: 100%;
}

.section-header h2 {
    font-size: 1.8rem;
    margin: 0;
    background: linear-gradient(to right, #00D1B2, #3A86FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    font-weight: 700;
}

.content-container {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.content-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1px 0;
}

.content-text p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1rem;
}

.content-image {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    height: 280px;
    align-self: center;
}

.content-image img {
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.content-image:hover img {
    transform: scale(1.03);
}

/* 乐活学院统计块样式 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 209, 178, 0.15);
    transition: all 0.3s;
}

.stat-item:hover {
    background: rgba(0, 209, 178, 0.1);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 1rem;
    color: #00D1B2;
    text-align: center;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: left;
    display: block;
    width: 100%;
}

/* 乐活学院响应式 */
@media (max-width: 1200px) {
    .content-image {
        height: 320px;
    }
}

@media (max-width: 940px) {
    .content-container {
        flex-direction: column;
    }

    .content-text {
        width: 100%;
        align-items: center;
    }

    .content-text h2 {
        display: block;
        margin-bottom: 20px;
    }

    .card-link {
        margin-left: 0;
        margin-bottom: 15px;
    }

    .content-image {
        display: none;
    }
}

/* ===== 广告横幅板块 ===== */
.ad-section {
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(0, 209, 178, 0.1);
    border-bottom: 1px solid rgba(0, 209, 178, 0.1);
}

.ad-banner {
    width: 100%;
    height: 120px;
    min-height: 80px;
    background: rgba(26, 26, 46, 0.7);
    display: block;
    justify-content: center;
    align-items: center;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
}

.ad-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00D1B2, #3A86FF);
    z-index: -1;
}

.ad-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.ad-banner:hover img {
    opacity: 1;
}

/* 广告横幅响应式 */
@media (max-width: 768px) {
    .ad-banner {
        height: 150px;
    }

    .ad-section {
        padding: 15px 0;
    }
}

/* ===== 关于我们板块(新) ===== */
.about-us {
    padding: 50px 0;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(0, 209, 178, 0.1);
    border-bottom: 1px solid rgba(0, 209, 178, 0.1);
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: stretch; 
}

.about-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    height: 320px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.about-text p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* 统计卡片 */
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: auto; 
}

.about-stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 209, 178, 0.15);
    transition: all 0.3s;
}

.about-stat-item:hover {
    background: rgba(0, 209, 178, 0.1);
    transform: translateY(-3px);
}

.about-stat-number {
    font-size: 1.2rem;
    color: #00D1B2;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
}

.about-stat-label {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .about-image {
        height: 360px;
    }
}

@media (max-width: 940px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        display: none;
    }
    
    .about-stats-grid {
        margin-top: 20px;
    }
}

/* ===== 关于我们板块 ===== */
/* 使用 .content-section 和 .content-container 样式 */
/* 关于我们响应式 */
/* 继承乐活学院响应式样式 */

/* ===== 友情链接板块 ===== */
.partner-section {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.partner-section .container {
    display: block;
    text-align: center;
}

.partner-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.partner-slider {
    display: flex;
    flex-direction: row;
    gap: 40px;
    width: max-content;
    animation: scroll 30s linear infinite;
    transition: transform 0.5s ease-in-out;
}

.partner-item {
    flex-shrink: 0;
    width: 180px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
    overflow: hidden;
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-item a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.partner-item a:hover {
    background: rgba(0, 209, 178, 0.1);
    transform: scale(1.05);
}

.partner-item a:active {
    background: rgba(0, 209, 178, 0.2);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-slider:hover {
    animation-play-state: paused;
    transform: translateX(-50%);
}

/* 窄屏优化 */
@media (max-width: 765px) {
    .partner-item {
        width: 120px;
        height: 64px;
        padding: 8px;
    }

    .partner-slider {
        gap: 20px;
    }
}

/* ===== 页脚板块 ===== */
.footer {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 20px;
    white-space: nowrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #00D1B2;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.3);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-copyright-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-copyright-link:hover {
    color: #00D1B2;
}

/* 页脚响应式 */
@media (max-width: 768px) {
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 10px;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .footer-divider {
        display: inline;
    }
}

@media (max-width: 765px) {
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 12px;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .footer-divider {
        display: none;
    }
}

/* ===== 分割线样式（通用） ===== */
.section-divider {
    height: 1px;
    background: rgba(0, 209, 178, 0.2);
    margin: 40px 0;
}