/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

/* 导航栏样式 - 优化悬停效果 */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1600px;
    width: 75%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}







.auth-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.login-btn {
    width: 150px;
    height: 60px;
    background-image: url("/static/image/shop_ownhome/登录.png");
    background-size: 100% 100%;
    background-position: center;
    font-family: PingFangSC;
    font-size: 20px;
    color: #000;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.login-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.register-btn {
    padding: 8px 20px;
    background-color: #165DFF;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(22, 93, 255, 0.2);
}

.register-btn:hover {
    background-color: #0E47CC;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
    transform: translateY(-1px);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    z-index: 120;
    border-radius: 8px;
    background: transparent;
    border: none;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: #f5f5f5;
}

.mobile-menu-btn span {
    display: block;
    position: absolute;
    height: 2.5px;
    width: 24px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}

.mobile-menu-btn span:nth-child(1) {
    top: 12px;
}

.mobile-menu-btn span:nth-child(2) {
    top: 20px;
}

.mobile-menu-btn span:nth-child(3) {
    top: 28px;
}

.mobile-menu-btn.active span:nth-child(1) {
    top: 20px;
    transform: rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-btn.active span:nth-child(3) {
    top: 20px;
    transform: rotate(-45deg);
}

.sidebar-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background-color: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
    z-index: 110;
    transition: right 0.3s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    padding: 80px 16px 20px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.sidebar-menu.active {
    right: 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 4px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.sidebar-menu a:hover {
    color: #000;
    background: #FFF200;
    padding-left: 20px;
    font-weight: 600;
}

.sidebar-menu .mobile-auth {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 105;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 页面主体样式 */
.full-width-box {
    width: 100%;
    max-width: 100%;
    height: 2081px;
    margin: 64px 0 0 auto;
    background-image: url('../image/01-banner.jpg');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100% auto;
    position: relative;
    background-color: #020617;
}

.full-width-box .content {
    width: 600px;
    margin: 0 auto;
    padding-top: 328px;
}

.full-width-box .content2 {
    font-family: Source Han Sans SC;
    font-weight: 400;
    font-size: 24px;
    color: #FFFFFF;
    line-height: 69px;
    margin: 30px auto 0;
    text-align: center;
}

.button-container {
    margin-top: 90px;
    text-align: center;
}


.content3 {
    margin-top: 314px;
    text-align: center;
}

.content4 {
    max-width: 700px;
    font-family: PingFangSC;
    font-weight: 400;
    font-size: 24px;
    color: #ECFAFF;
    line-height: 69px;
    /* text-align: center; */
    margin: 0 auto;
}

.footer_mune {
    width: 100%;
    max-width: 100%;
    height: 625px;
    margin: 0 auto;
    background: #020517;
}



/* 卡片区域样式 - 关键修改 */
.parent-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(412px, 1fr));
    gap: 32px;
    padding: 40px 0;
    width: 70%;
    /* 与导航栏宽度保持一致 */
    max-width: 1600px;
    /* 与导航栏最大宽度保持一致 */
    margin: 0 auto;
    /* 确保居中 */
}

.card-button {
    display: inline-block;
    background-image: url('/static/image/shop_ownhome/查看-btn.png');
    background-size: cover;
    background-color: transparent;
    font-family: Source Han Sans SC;
    font-weight: 400;
    font-size: 14px;
    color: #FFFFFF;
    line-height: 24px;
    transition: all 0.3s ease;
    align-self: flex-start;
    width: 110px;
    height: 38px;
    text-align: center;
    line-height: 38px;
    border: none;
}

.card-button:hover {
    background-image: url('/static/image/shop_ownhome/查看-btn-选中.png');
    transform: translateY(-2px);
    color: #000000;
}

.card {
    width: 420px;
    /* 占满网格列 */
    height: 446px;
    /* background-color: #0F172A; */
    border-radius: 12px;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    background-image: url("/static/image/shop_ownhome/border2.png");
    background-size: 100% 100%;
    background-color: transparent;

}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-image {
    width: 100%;
    height: 201px;
    overflow: hidden;
    padding: 0 4px;

}

.card-image img {
    width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 16px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    margin-bottom: 8px;
    font-family: SourceHanSansSC;
    font-weight: 400;
    font-size: 24px;
    color: #FFFFFF;
    line-height: 69px;
}

.card-description {
    margin-bottom: 16px;
    overflow: hidden;
    max-height: 72px;
    font-family: Adobe Heiti Std;
    font-weight: normal;
    font-size: 16px;
    color: #ECFAFF;
    line-height: 24px;
}

.des_span {
    font-family: Adobe Heiti Std;
    font-weight: normal;
    font-size: 16px;
    color: #ECFAFF;
    line-height: 24px;
}

.card-description:last-of-type {
    margin-bottom: 20px;
}

/* nav_2, nav_3, nav_4 核心样式 */
.nav_2,
.nav_3,
.nav_4 {
    padding: 80px 0;
    width: 100%;
    overflow: hidden;
}

.nav_2_content {
    width: 70%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    /* background-color: #000000; */
}

.nav_2 .left,
.nav_3 .nav_3_right,
.nav_4 .left {
    flex: 1;
}

.nav_2 .right,
.nav_3 .nav_3_left,
.nav_4 .right {
    flex: 1;
    display: flex;
    /* justify-content: center; */
}

.nav_2 .left-title,
.nav_3 .nav_3_title,
.nav_4 .left-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.nav_2 .left-paragraph {
    font-family: PingFangSC;
    font-weight: 400;
    font-size: 15px;
    color: #E7F0FE;
    line-height: 26px;
    padding-right: 95px;
}

.nav_2 .left-button,
.nav_3 .nav_3_button,
.nav_4 .left-button {
    margin-top: 30px;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .parent-container {
        width: 90%;
        /* 与导航栏在1400px以下的宽度保持一致 */
    }

    .nav_2_content {
        width: 90%;
    }
}

@media (max-width: 1200px) {
    .nav_2_content {
        flex-direction: column;
        text-align: center;
        margin: 0 auto;
    }

    .nav_2 .left-paragraph,
    .nav_3 .nav_3_paragraph,
    .nav_4 .left-paragraph {
        max-width: 80%;
        margin: 20px auto;
        padding: 0;
        font-size: 15px;
    }
}

@media (max-width: 768px) {



    .mobile-menu-btn {
        display: flex;
    }

    .footer_mune {
        height: auto;
        padding: 30px 20px;
    }

    .footer_mune_son {
        height: auto;
        padding: 20px;
        width: 100%;
        background-color: red;

    }

    .footer_mune_son_span {
        padding-left: 0;
        text-align: center;
    }

    /* 卡片区域适配 */
    .parent-container {
        width: 90%;
        /* 移动端与导航栏内容区域宽度匹配 */
        margin: 0 auto;
        /* 居中对齐 */
        padding: 40px 0;
        /* 保持上下间距 */
        grid-template-columns: 1fr;
        /* 移动端单列显示 */
    }

    .card {
        width: 100%;
        height: auto;
    }

    .card-image,
    .card-image img {
        width: 100%;
        height: auto;

    }


    .card-image {
        padding: 0 3px;

    }

    .full-width-box .content {
        width: 90%;
        padding-top: 100px;
    }

    .full-width-box .content img {
        width: 100%;
        height: auto;
    }

    .full-width-box .content2 {
        font-size: 20px;
        line-height: 30px;
        padding: 0 10px;
    }

    .button-container {
        margin-top: 30px;
    }


    .content3 img {
        width: 90%;
        height: auto;
    }

    .content4 {
        padding-left: 0;
        text-align: center;
        font-size: 20px;
        line-height: 30px;
        padding: 0 10px;
    }

    /* 移动端导航栏特殊优化 */
    .sidebar-menu {
        width: 80%;
        padding: 70px 20px 20px;
    }

    .sidebar-menu a {
        padding: 14px 20px;
        font-size: 18px;
    }

    .sidebar-menu a:nth-child(4) {
        background: #FFF200;
        color: #000;
        font-weight: 600;
        margin: 8px 0;
    }
}

.footer_mune_son {
    width: 100%;
}