/* 移动端导航展开时锁定页面滚动 */
body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a:hover {
    color: #666;
}

ul {
    list-style: none;
}

button,
input {
    font-family: inherit;
    border: none;
    outline: none;
}

a {
    color: #333;
    /* 调整链接默认颜色 */
    text-decoration: none;
    transition: color 0.3s ease;
}

/* 顶部导航条 */
.footer-section {
    display: flex;
    justify-content: space-between;
    position: fixed;
    top: 0px;
    left: 0;
    right: 0;
    height: 60px;
    align-items: center;
    padding: 15px 30px;
    /* border: 1px solid #e0e0e0; */
    width: 100%;
    background-color: #f8fbfe;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    z-index: 999;
}

.footer-section.hidden {
    transform: translateY(-100%);
}

.social-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-group .follow-text {
    font-size: 16px;
    color: #555;
}

.social-group .social-icon {
    color: #666;
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-group .social-icon:hover {
    color: #007bff;
}

.contact-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-group .contact-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
}

.contact-group .contact-item i {
    margin-right: 8px;
    color: #007bff;
}

.footer-section.hidden+.navbar {
    top: 0;
    /* 当顶部导航条隐藏时，导航栏固定在顶部 */
}

@media (max-width: 768px) {
    .footer-section {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .social-group,
    .contact-group {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-section {
        padding: 15px;
    }

    .social-group .follow-text {
        font-size: 14px;
    }

    .social-group .social-icon {
        font-size: 18px;
    }

    .contact-group .contact-item {
        font-size: 13px;
    }
}

/* 导航栏样式  */
.navbar {
    /* 增加top属性过渡 */
    background-color: #fbfbfb;
    transition: background-color 0.3s ease !important;
    /* 平滑过渡 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    /* 新增固定定位 */
    top: 60px;
    /* 固定在顶部 */
    left: 0;
    /* 左侧对齐 */
    width: 100%;
    /* 宽度100% */
    z-index: 9999;
    /* 确保导航栏在最上层 */
    transition: top 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* 与头部退出动画同步 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}



/* 滚动后隐藏头部文字的类 */
.nav-wrapper.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    /* 隐藏后不响应点击 */
}

/* 滚动后导航栏调整位置 */
.navbar.scrolled {
    top: 0;
    /* 滚动后导航栏顶到页面顶部 */
    background-color: rgba(10, 26, 42, 0.95);
    /* 增加半透明背景，提升层次感 */
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

/* Logo样式 */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    /* 控制Logo高度 */
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
    /* 悬停轻微放大 */
}


.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0 2rem;
    font-size: 14px;
    font-weight: 600;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #4a7ed0;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: all 0.3s ease;
    /* 添加过渡效果 */
}

.nav-links a:hover {
    /* background-color: rgba(74, 126, 208, 0.2); */
    transform: scale(1.05);
    /* 悬停时轻微放大 */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    width: 100%;
}


.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #0a1a2a;
    list-style: none;
    min-width: 200px;
    z-index: 1;
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    /* 添加缩放过渡效果 */
}

.dropdown:hover .dropdown-menu {
    display: block;
    transform: scaleY(1);
}

.menu-toggle {
    display: none;
    color: #4a7ed0;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    /* 添加过渡效果 */
}

.menu-toggle:hover {
    transform: scale(1.1);
    /* 菜单按钮悬停放大 */
}

/* 导航右侧功能区 */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

/* 购物车图标样式 */
.cart-icon {
    color: #4a7ed0;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.cart-icon:hover {
    color: #fff;
    transform: scale(1.1);
}

/* 登录按钮样式 */
.login-btn {
    color: #4a7ed0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-btn:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 2rem;
    }

    .menu-toggle {
        display: block;
        order: 3;
    }



    .login-btn {
        font-size: 14px;
        font-weight: 600;
    }

    .cart-icon {
        font-size: 0.8rem;
    }

    .nav-actions {
        gap: 1rem;
        margin-right: 1rem;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #F8FBFE;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        /* 添加过渡效果 */
        display: flex;
        /* 修改为始终显示，通过 max-height 控制可见性 */
        margin: 0 0rem;
    }

    .nav-links.active {
        max-height: 500px;
        /* 设置一个足够大的值以显示所有菜单项 */
        z-index: 1;
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        transform: none;
        transition: none;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .nav-links a {
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        transform: translateX(5px);
        /* 移动端悬停时轻微右移 */
    }

    .logo-img {
        height: 36px;
        /* 移动端Logo稍小 */
    }
}

/* 导航栏样式结束 */

/* 手风琴区域样式 */
/* 手风琴容器 */
.accordion {
    max-width: 500px;
    margin: 0 auto;
    list-style: none;
}

/* 手风琴项 */
.accordion-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 5px;
}

/* 手风琴按钮（问题） */
.accordion-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: #fff;
    color: #000;
    text-align: left;
    padding: 15px 0;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.accordion-question:hover {
    color: #4a90e2;
}

/* 加号图标样式 */
.accordion-question::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease, color 0.3s ease;
    color: #4a90e2;
}

/* 内容容器 - 使用高度和透明度实现过渡 */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 0;
    color: #666;
    transition: max-height 0.5s ease, opacity 0.3s ease, padding 0.3s ease;
}

/* 激活状态：显示内容、改变图标样式 */
.accordion-item.active .accordion-content {
    max-height: 500px;
    /* 足够容纳内容的高度 */
    opacity: 1;
    padding: 0 0 15px;
    font-size: 12px;
}

.accordion-item.active .accordion-question::after {
    content: "×";
    transform: rotate(90deg);
}

/* 响应式调整 */
@media (max-width: 600px) {

    h2 {
        font-size: 1.5rem;
        margin: 15px 0 20px;
    }

    .accordion-question {
        font-size: 0.95rem;
        padding: 12px 0;
    }
}

/* 邮箱头像区域样式 */
.protein-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: url('../image/展示图/10.webp') center/cover no-repeat;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 800px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 左侧内容区域 */
.protein-text {
    flex: 1;
    padding: 40px;
    color: #fff;
    max-width: 500px;
}

.protein-text h2 {
    line-height: 1.2;
    margin-bottom: 12px;
    font-weight: 700;
}

.protein-text p {
    font-size: 1rem;
    margin-bottom: 24px;
    opacity: 0.9;
    line-height: 1.4;
}

/* 表单样式 */
.protein-email {
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 16px;
    outline: none;
}

.protein-btn {
    background-color: #000;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.protein-btn:hover {
    background-color: #333;
}

/* 右侧图片区域 */
.protein-image {
    flex: 1;
    min-height: 300px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .protein-container {
        flex-direction: column;
        text-align: center;
    }

    .protein-text {
        max-width: 100%;
        padding: 30px 20px;
        order: 2;
    }

    .protein-image {
        width: 100%;
        height: 250px;
        order: 1;
    }

    .protein-email {
        margin: 0 auto 16px auto;
    }
}

/* 页脚区域样式开始 */
.footer-bg {
    background-color: #ffffff;
    color: #fff;
    padding-top: 20px;
}

.footer-bg a {
    color: #fff;
}

.footer-bg a:hover {
    color: #ccc;
}

/* 容器与布局 */
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 60px 20px;
    max-width: 1600px;
    margin: 0 auto;
    gap: 50px;
}

/* 左侧订阅模块 */
.subscription-section {
    flex: 1 1 300px;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.subscription-section h2 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #000000;
}

.subscription-section p {
    color: #454242;
    margin-bottom: 25px;
    font-size: 1rem;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subscribe-input {
    padding: 14px 18px;
    border-radius: 6px;
    background-color: #222;
    color: #fff;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.subscribe-input:focus {
    background-color: #333;
}

.subscribe-btn {
    padding: 14px 18px;
    background-color: #40812b;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subscribe-btn:hover {
    background-color: #666;
}

.subscription-info {
    font-size: 0.85rem;
    margin-top: 15px;
    color: #888;
    line-height: 1.5;
}

/* 右侧六列（两行三列）通用样式 */
.columns-container {
    flex: 2 1 700px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px 30px;
    /* 行间距40px，列间距30px */
}

.footer-column {
    flex: 1 1 calc(33.333% - 20px);
    /* 每行3列 */
    min-width: 200px;
    /* 确保内容有足够空间 */
}

.footer-column h3 {
    font-size: 1rem;
    text-transform: uppercase;
    color: #0c0c0c;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 8px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #555;
}

.footer-column li {
    margin: 10px 0;
    font-size: 0.95rem;
}

.footer-column a {
    color: #000000;
}

.footer-column a:hover {
    color: #fff;
    padding-left: 3px;
}

/* 底部社交图标 */
.social-links,
.social-maxlinks {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 20px 40px; */
    display: flex;
    gap: 18px;
    align-items: center;
    border-top: 1px solid #222;
    /* padding-top: 30px; */
    margin-top: 20px;
}

.social-maxlinks {
    padding: 0 20px 40px;
}

.social-maxlinks a {
    width: 40px;
}

.social-links a,
.social-maxlinks a {
    display: inline-flex;
    /* width: 40px; */
    height: 40px;
    background-color: #1a1a1a;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    color: #bbb;
}

.social-links a:hover,
.social-maxlinks a:hover {
    background-color: #333;
    color: #fff;
    transform: translateY(-3px);
}

.social-links i,
.social-maxlinks i {
    font-size: 1.2rem;
}

/* 右下角小模块 */
.hers-badge {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    text-align: right;
}

.hers-badge a {
    display: inline-block;
    background-color: #121212;
    padding: 12px 20px;
    border-radius: 6px;
    color: #ddd;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hers-badge a:hover {
    background-color: #222;
    color: #fff;
}

/* 底部版权信息 */
.copyright {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #000000;
    font-size: 0.85rem;
    text-align: center;
    border-top: 1px solid #222;
}

/* 桌面端 */
@media (min-width: 1024px) {
    .social-maxlinks {
        display: none;
    }
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .columns-container {
        gap: 30px 20px;
    }

    .footer-column {
        flex: 1 1 calc(33.333% - 15px);
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        padding: 40px 20px;
        gap: 40px;
    }

    .subscription-section,
    .columns-container {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .footer-column {
        flex: 1 1 calc(50% - 10px);
        /* 平板上每行2列 */
    }

    .social-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .footer-column {
        flex: 1 1 100%;
        /* 手机上每行1列 */
    }

    .subscription-section {
        padding: 30px 20px;
    }

    .subscription-section h2 {
        font-size: 1.5rem;
    }
}

/* 页脚区域样式结束 */


/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    z-index: 100;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #2563eb;
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .footer-inner {
        gap: 40px;
    }

    .footer-links {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 50px 20px 30px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 40px;
        width: 100%;
    }

    .footer-column {
        flex: 1 1 150px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-social {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .footer-contact {
        flex-direction: column;
        gap: 25px;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }

    .footer-column {
        width: 100%;
    }

    .footer-brand img {
        max-width: 150px;
    }
}

/* 回到顶部按钮样式 */
.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #1a2456;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    width: 50px;
    height: 50px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.back-to-top-btn:hover {
    opacity: 1;
    background-color: #333;
}

img[data-src] {
    opacity: 0;
    transition: opacity 2.9s ease;
}

img[data-src].loaded {
    opacity: 3;
}

/* 订阅表单 */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 300px;
    padding: 15px;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.3s, transform 0.3s;
}

.notification-toast.show {
    opacity: 1;
    transform: translateY(0);
}