/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --accent-color: #8b5cf6;
    --text-color: #1e293b;
    --text-light: #64748b;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --gray: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
                 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 0;
}

.logo-ch {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo-tech {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
    font-size: 0.9em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.nav-menu a.active {
    color: var(--white);
    background: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: 0.3s;
}

/* 标签页内容 */
.main-content {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}


.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
    margin: 0;
    padding: 0;
}

.tab-content.active {
    display: block;
}

body[data-active-tab="home"] {
    overflow: hidden;
}

body[data-active-tab="home"] .footer,
body[data-active-tab="home"] .back-to-top {
    display: none;
}

.home-embed {
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--white);
    overflow: hidden;
}

.home-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: var(--white);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 首页横幅 */
.hero {
    background-image: url('../images/mainbg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 120px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0.5;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    animation: fadeInUp 1s ease;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s backwards;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    animation: fadeInUp 1s ease 0.4s backwards;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* 通用区块样式 */
.section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* 关于我们 */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
    color: var(--gray);
}

/* 使命愿景 */
.mission-vision {
    background: var(--light-bg);
    padding: 90px 20px 120px;
    position: relative;
}

.section-title-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 3rem;
}

.section-title-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.mv-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.mv-card {
    text-align: center;
    padding: 0;
}

.mv-card h3 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 0;
    letter-spacing: 1px;
    line-height: 1.2;
}

.mv-card p {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: 1px;
    line-height: 1.2;
}

.mv-card:first-child p {
    margin-left: 10%;
}

.mv-card:last-child p {
    margin-left: 40%;
}

/* 业务介绍 */
.business-section {
    position: relative;
    overflow: hidden;
}

.business-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.business-category {
    margin-bottom: 3rem;
}

.business-category:last-child {
    margin-bottom: 0;
}

.business-category-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.business-description {
    margin-bottom: 2rem;
}

.business-description p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.business-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.business-card:hover::before {
    transform: scaleX(1);
}

.business-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.business-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.business-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.business-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 企业文化 */
.culture-section {
    background: var(--light-bg);
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.culture-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.culture-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.culture-item p {
    color: var(--gray);
}

/* 资质荣誉 */
.honor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.honor-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.honor-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.honor-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.honor-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* 人才发展 */
.talent-hero-box {
    background: linear-gradient(135deg, #e8eeff 0%, #f5f7ff 100%);
    padding: 100px 20px 150px;
    position: relative;
}

.talent-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 80px;
}

.talent-hero-cards {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: stretch;
}

.talent-hero-card {
    flex: 1;
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.talent-hero-card:hover {
    transform: translateY(-5px);
}

.talent-hero-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.talent-hero-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.talent-hero-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray);
    text-align: left;
}

.subsection-title {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.title-decoration {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 3rem;
}

.title-decoration img {
    width: 24px;
    height: 24px;
}

.talent-vision {
    margin-bottom: 3rem;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.vision-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.vision-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.vision-card ul {
    list-style: none;
    padding-left: 0;
}

.vision-card li {
    padding: 0.5rem 0;
    color: var(--gray);
    position: relative;
    padding-left: 1.5rem;
}

.vision-card li:before {
    content: '○';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.talent-commitment {
    max-width: 900px;
    margin: 3rem auto;
}

.talent-section {
    margin-top: 3rem;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 50px 0;
}

/* 米尘风格的蓝色大卡片 */
.talent-big-card {
    background: #1357f8;
    border-radius: 21px;
    padding: 0;
    margin: 46px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    height: 496px;
    box-shadow: var(--shadow-xl);
}

.talent-big-card.reverse {
    flex-direction: row-reverse;
}

.talent-big-card-img {
    width: 814px;
    height: 496px;
    margin-right: 31px;
    flex-shrink: 0;
    object-fit: cover;
    display: block;
}

.talent-big-card-img-right {
    margin-right: 0;
    margin-left: 31px;
}

.talent-big-card-image {
    flex: 1;
    max-width: 60%;
}

.talent-big-card-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.talent-big-card-content {
    width: 410px;
    padding: 0 39px;
    color: #ffffff;
}

.talent-big-card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.talent-big-card-content p {
    font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #ffffff;
    line-height: 38px;
    text-align: justify;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.activity-item {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
}

.activity-item h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.activity-item p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.activity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.tag {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    font-weight: 500;
}

.tag:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.join-us {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 10px;
}

.contact-email {
    font-size: 1.1rem;
    color: var(--text-color);
}

.contact-email a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-email a:hover {
    text-decoration: underline;
}

/* 商务合作 - 基础样式 */
.contact-section {
    background-image: url('../images/mainbg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    margin: 0;
}


.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

/* ============================================
   商务合作页面 - 修复顶部空白问题
   ============================================ */

/* 商务合作页面激活时，移除 main-content 的顶部边距（由 JS 控制） */

.contact-info-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-location {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.info-item .icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-item .icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.info-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

/* 商务合作卡片 */
.cooperation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cooperation-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.cooperation-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.cooperation-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.cooperation-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.cooperation-info {
    text-align: left;
}

.cooperation-info p {
    margin-bottom: 0.8rem;
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.8;
}

.cooperation-info p:last-child {
    margin-bottom: 0;
}

.cooperation-info strong {
    color: var(--text-color);
    font-weight: 600;
}

.cooperation-info a {
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-all;
}

.cooperation-info a:hover {
    text-decoration: underline;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.contact-form button {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
}

.contact-form button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    right: 40px;
    bottom: 40px;
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    background: var(--primary-color);
}

.back-to-top img {
    width: 32px;
    height: 32px;
    transition: filter 0.3s ease;
}

.back-to-top:hover img {
    filter: brightness(0) invert(1);
}

/* 页脚 */
.footer {
    background: #091226;
    color: var(--white);
    padding: 3rem 20px 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.1);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .business-grid,
    .culture-grid,
    .talent-features {
        grid-template-columns: 1fr;
    }

    /* 使命愿景移动端 */
    .mv-card p {
        font-size: 1.8rem;
    }

    .mv-card:first-child p,
    .mv-card:last-child p {
        margin-left: 0;
    }

    /* 人才发展移动端 */
    .talent-hero-title {
        font-size: 1.8rem;
    }

    .talent-hero-cards {
        flex-direction: column;
    }

    .talent-hero-card img {
        width: 60px;
        height: 60px;
    }

    .talent-big-card {
        flex-direction: column !important;
        min-height: auto;
    }

    .talent-big-card-image {
        max-width: 100%;
    }

    .talent-big-card-content {
        padding: 2rem;
    }

    /* 商务合作移动端 */
    .cooperation-grid {
        grid-template-columns: 1fr;
    }

    .contact-location {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 20px 60px;
    }

    .home-embed {
        height: calc(100vh - 60px);
    }

    .section {
        padding: 50px 20px;
    }

    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 50px;
        height: 50px;
    }

    .back-to-top img {
        width: 28px;
        height: 28px;
    }
}
