/* ==============================================
   全局通用样式（复用首页/产品页核心样式）
   ============================================== */
:root {
    --font-sans: "Noto Sans SC", "Alibaba PuHuiTi 2.0", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --primary-color: #073a7c;
    --secondary-color: #0052ff;
    --text-color: #1f2937;
    --text-light: #5a6c7d;
    --border-color: #e4e7eb;
    --shadow-color: rgba(0, 0, 0, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans) !important;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    background-color: #ffffff;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e4e7eb;
    height: 100px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: height 0.3s ease;
}

.navbar .container {
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
}

.logo img {
    width: 69.744px;
    height: 43px;
}

.logo span {
    font-size: 32px;
    font-weight: 500;
    color: #073a7c;
}

.nav-menu {
    display: flex;
    gap: 75px;
    align-items: center;
}

.nav-menu a {
    font-size: 20px;
    font-weight: 350;
    color: #000000;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a.active {
    color: #073a7c;
    font-weight: 400;
    font-size: 23px;
}

.nav-menu a:hover {
    color: #073a7c;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 2.5px;
    background-color: #4a5568;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-dropdown-menu {
    display: none;
    flex-direction: column;
    background-color: #ffffff;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e4e7eb;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.mobile-dropdown-menu.active {
    display: flex;
    max-height: 400px;
    opacity: 1;
}

.mobile-dropdown-menu a {
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 350;
    color: #000000;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.mobile-dropdown-menu a:last-child {
    border-bottom: none;
}

.mobile-dropdown-menu a.active {
    color: #073a7c;
    font-weight: 400;
    background-color: #f5f9ff;
}

.mobile-dropdown-menu a:hover {
    color: #073a7c;
    background-color: #f8fafc;
}

/* ==============================================
   团队介绍页面特有样式
   ============================================== */
/* 英雄横幅 */
.hero {
    position: relative;
    max-width: 1200px;
    height: 200px;
    background: linear-gradient(to left, rgba(69, 212, 238, 0.75), var(--secondary-color));
    overflow: hidden;
    margin: 100px auto 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.hero-background .placeholder-bg {
    width: 100%;
    height: 100%;
    /* background-image: url('../assets/images/team-hero-bg.png'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 500;
    color: #ffffff;
    line-height: 80px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #E4E7EB;
    margin-bottom: 0;
    margin-left: 60%;
}

/* 核心团队构成 - 核心：Web横向/移动端竖向 */
.core-team {
    margin-top: 60px;
    margin-bottom: 40px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: left;
}

.core-team-container {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    /* Web端默认横向排列 */
    flex-wrap: wrap;
    /* 兼容平板尺寸自动换行 */
}

.team-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 8px var(--shadow-color);
    padding: 30px 25px;
    border-radius: 8px;
    width: 31%;
    /* Web端三等分 */
    transition: all 0.3s ease;
}

.team-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-align: center;
}

.team-en {
    font-size: 16px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 20px;
}

.team-list {
    list-style: disc;
    padding-left: 20px;
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 20px;
}

.team-list li {
    margin-bottom: 8px;
}

.tech-stack {
    margin-top: 20px;
}

.tech-stack>span {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

.stack-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.stack-tags span {
    background: linear-gradient(to left, rgba(69, 212, 238, 0.75), var(--secondary-color));
    color: #fff;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 400;
    display: inline-block;
}

/* 团队成员代表 */
.team-representative {
    margin-top: 80px;
    margin-bottom: 50px;
}

.member-wrapper {
    width: 100%;
    margin-bottom: 30px;
}

/* 团队成员容器 - 布局切换核心样式 */
.member-container-wrapper {
    width: 100%;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

/* 模式1：单排滚动模式（默认） */
.member-container-wrapper.single-row {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 15px 0;
    /* 滚动提示阴影 */
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.member-container-wrapper.single-row .member-cards {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    /* 禁止换行，强制横向 */
}

/* 模式2：双排平均分布模式 */
.member-container-wrapper.double-row {
    overflow: hidden;
    /* 禁止横向滚动 */
}

.member-container-wrapper.double-row .member-cards {
    display: flex;
    flex-wrap: wrap;
    /* 允许换行，分2排 */
    gap: 20px 0;
    /* 上下排间距20px，左右无间距（靠justify-content平均分布） */
}

.member-container-wrapper.double-row .member-card {
    flex: 1;
    /* 关键：平均分配宽度，实现5人平均分布 */
    max-width: calc(20% - 16px);
    /* 5人平分，减去左右间距 */
    margin: 0 8px;
    /* 左右间距，确保不挤 */
}

/* 成员卡片通用样式 */
.member-card {
    flex-shrink: 0;
    /* 单排模式下禁止压缩，双排模式下被flex:1覆盖 */
    width: 180px;
    /* 单排模式下固定宽度 */
    text-align: center;
    padding: 15px 10px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 0 8px var(--shadow-color);
    transition: all 0.3s ease;
}

.member-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    /* 占位图背景 */
}

.member-name {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.member-desc {
    font-size: 12px;
    color: var(--text-color);
    line-height: 1.4;
}

/* 查看更多按钮样式 */
.view-more {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-more:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* ==============================================
   页脚样式（与产品页完全一致）
   ============================================== */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 40px 0 40px;
}

.footer-content {
    display: flex;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 9px;
}

.footer-logo img {
    width: 69.744px;
    height: 43px;
}

.footer-logo span {
    font-size: 32px;
    font-weight: 500;
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 60px;
    margin-left: 100px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h5 {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.footer-column a {
    font-size: 14px;
    font-weight: 350;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 0.42px;
    line-height: 20px;
}

.footer-column p {
    font-size: 14px;
    font-weight: 350;
    color: #1f2937;
    text-decoration: none;
    letter-spacing: 0.42px;
    line-height: 20px;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: #e5e7eb;
    margin: 40px 0 20px;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.footer-bottom p {
    font-size: 14px;
    font-weight: 350;
    color: #0f1419;
    letter-spacing: 0.42px;
}

/* ==============================================
   响应式样式（平板/小屏电脑）
   ============================================== */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    /* 导航栏适配 */
    .nav-menu {
        gap: 50px;
    }

    /* 英雄区适配 */
    .hero-content h1 {
        font-size: 40px;
        line-height: 60px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    /* 核心团队适配：2列排列 */
    .core-team-container {
        gap: 20px;
    }

    .team-card {
        width: 48%;
        /* 平板端2列 */
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 40px;
    }
}

/* ==============================================
   响应式样式（移动端）
   ============================================== */
@media screen and (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    /* 基础容器 */
    .container {
        padding: 0 24px;
    }

    /* 导航栏 */
    .navbar {
        height: 54px;
    }

    .navbar.menu-open {
        height: auto;
        min-height: 54px;
    }

    .logo img {
        margin-left: 20px;
        width: 50px;
        height: 31px;
    }

    .logo span {
        font-size: 20px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        margin-right: 20px;
        display: flex;
    }

    .menu-toggle span {
        background-color: #073a7c;
    }

    /* 英雄区 */
    .hero {
        margin-top: 54px;
        height: 150px;
    }

    .hero-content h1 {
        font-size: 28px;
        line-height: normal;
    }

    .hero-content .BigName1 {
        margin-left: -40px;
        margin-bottom: 5px;
    }

    .hero-content .BigName2 {
        margin-left: 100px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .team-representative {
        margin-top: 30px;
        margin-bottom: 30px;
    }

    /* 核心团队：移动端竖向排列 */
    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
        text-align: center;
    }

    .core-team {
        margin-top: 30px;
        margin-bottom: 10px;
    }

    .core-team-container {
        flex-direction: column;
        /* 强制竖向 */
        gap: 15px;
    }

    .team-card {
        width: 100%;
        /* 移动端100%宽度 */
        margin-bottom: 15px;
        padding: 20px 15px;
    }

    .team-title {
        font-size: 20px;
    }

    .team-list {
        font-size: 16px;
        padding-left: 15px;
    }

    /* 团队成员代表：移动端横向排列（核心修改） */
    .member-container {
        /* 取消竖向排列，恢复横向flex */
        flex-direction: row;
        /* 禁止自动换行，保持横向 */
        flex-wrap: nowrap;
        /* 开启横向滚动（溢出时显示滚动条） */
        overflow-x: auto;
        /* 隐藏默认滚动条（可选，优化视觉） */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* 左右内边距，避免贴边 */
        padding: 0 5px;
        /* 保持横向间距 */
        gap: 15px;
        /* 取消居中，让滚动更自然 */
        justify-content: flex-start;
        /* 取消纵向对齐，保持原有高度 */
        align-items: unset;
        /* 底部间距 */
        margin-bottom: 20px;
    }

    /* 隐藏移动端横向滚动条（兼容Chrome/Safari） */
    .member-container::-webkit-scrollbar {
        display: none;
    }

    .member-card {
        /* 固定宽度，不随容器拉伸 */
        width: 80px;
        /* 取消最大宽度限制，保持卡片尺寸统一 */
        max-width: none;
        padding: 20px 20px;
        /* 禁止卡片收缩，保持横向排列完整性 */
        flex-shrink: 0;
    }

    .member-avatar {
        width: 55px;
        height: 55px;
        margin-left: -8px;
    }

    .member-name {
        font-size: 16px;
    }

    .member-desc {
        font-size: 13px;
    }

    .view-more {
        font-size: 13px;
        padding: 8px 8px;
        margin: 20px auto 0;
        margin-left: 250px;
    }

    /* 页脚适配 */
    .footer {
        padding: 30px 0 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        order: -1;
    }

    .footer-logo img {
        width: 50px;
        height: 31px;
    }

    .footer-logo span {
        font-size: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px !important;
        width: 100%;
        display: flex;
        align-items: center;
        margin-left: 0 !important;
    }

    .footer-column {
        margin: 0 auto;
        text-align: center;
    }

    .footer-column h5 {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .footer-column a {
        font-size: 13px;
    }

    .footer-divider {
        margin: 30px 0 15px;
    }

    .footer-bottom {
        gap: 8px;
    }

    .footer-column p {
        font-size: 13px;
        font-weight: 350;
    }

    .footer-bottom p {
        font-size: 12px;
    }
}

/* ==============================================
   大屏响应式（桌面端）
   ============================================== */
@media screen and (min-width: 1025px) {
    .desktop-only {
        display: block !important;
    }

    .mobile-only {
        display: none !important;
    }

    /* 卡片悬停效果 */
    .team-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    }

    .member-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    }

    .member-container {
        gap: 50px;
        padding: 15px 0;
        /* 可选：添加滚动阴影，提示用户可左右滑动 */
        mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    }
}