/* KeyInternship 子模块页面样式 */

/* CSS变量 - 沿用现有色彩系统 */
:root {
    /* 主色调 */
    --primary-color: #1F27C4;
    --primary-dark: #161C99;
    --text-primary: #1C163C;
    --text-secondary: #1C163C;
    --text-muted: #1C163C;
    --text-light: #1C163C;
    
    /* 背景色 */
    --bg-primary: #FFFFFF;
    --bg-secondary: #FAF9FF;
    --bg-card: #f8f9fa;
    --bg-hover: #e9ecef;
    --bg-footer: #FAFAFA;
    
    /* 边框色 */
    --border-color: #1F27C4;
    
    /* 间距系统 */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 20px;
    --spacing-xl: 24px;
    --spacing-2xl: 32px;
    --spacing-3xl: 40px;
    --spacing-4xl: 48px;
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.5;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 字体渲染修复 */
h1, h2, h3, h4, h5, h6, p, span, div, a, button {
    font-family: inherit;
    line-height: inherit;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 导航栏模块 - 完全复制主站样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;
    background: var(--bg-primary);
    border-bottom: none;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Logo - 图片样式 */
.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: var(--spacing-sm);
}

.nav-logo .logo-image {
    height: 32px;
    width: auto;
    object-fit: contain;
    margin-left: 0;
    display: block;
}

/* 导航链接 */
.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.2s ease;
    white-space: nowrap;
    padding: 8px 12px;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* 下拉菜单样式 */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown .nav-link {
    position: relative;
    padding-right: 28px;
}

.nav-dropdown .nav-link::after {
    content: '▾';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--primary-color);
    transition: transform 0.2s ease;
    font-weight: bold;
}

.nav-dropdown:hover .nav-link::after {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    border: 1px solid rgba(31, 39, 196, 0.15);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(31, 39, 196, 0.12);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    padding: 12px 0;
    backdrop-filter: blur(10px);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(31, 39, 196, 0.08), transparent);
    transition: left 0.5s ease;
}

.dropdown-item:hover::before {
    left: 100%;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #FAF9FF 0%, #F0F0FF 100%);
    color: var(--primary-color);
    transform: translateX(4px);
}

.dropdown-item.active {
    background: linear-gradient(135deg, #FAF9FF 0%, #F0F0FF 100%);
    color: var(--primary-color);
}


/* 操作按钮 */
.nav-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-right: var(--spacing-xl);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color) !important;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    background: white;
    border: 2px solid var(--primary-color);
    width: 100px;
    height: 36px;
}

.btn-text:hover {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    transform: scale(1.02) !important;
}

/* 首屏业务价值模块 */
.hero-banner {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('../images/team-photo.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 80px;
}

.hero-banner .container {
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    max-width: 1200px;
    position: relative;
    height: 100%;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: left;
    padding: 0;
    width: 100%;
    height: 100%;
    max-width: 1200px;
}

.banner-title {
    font-size: 50px;
    color: #FFFFFF;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    margin-bottom: 0;
    font-family: 'Inter', sans-serif;
    position: absolute;
    bottom: 40px;
    left: 0;
    z-index: 3;
    width: auto;
    max-width: none;
}

/* 子模块标签栏 */
.programme-tabs {
    padding: var(--spacing-xl) 0;
    background: var(--bg-primary);
}

.tab-container {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
    padding-bottom: 6px;
    position: relative;
}

.tab-container::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(28, 22, 60, 0.2);
    pointer-events: none;
    z-index: 0;
}

.tab-item {
    text-decoration: none;
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px 0 14px 0;
    position: relative;
    transition: color 0.2s ease;
    z-index: 1;
}

.tab-item:hover {
    color: var(--primary-color);
}

.tab-item.active {
    color: var(--primary-color);
    font-weight: 700; /* 选中态加粗 */
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    border-radius: 0;
}

/* 业务介绍模块 */
.business-intro {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-primary);
}

.intro-title {
    font-size: 40px;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    font-family: 'Inter', sans-serif;
}

.intro-description {
    font-size: 18px;
    color: var(--text-primary);
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: var(--spacing-xl);
    max-width: 100%;
    text-align: left;
}

.intro-card {
    background: #FAF9FF;
    border-radius: 12px;
    padding: 24px;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: var(--spacing-md);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-outline {
    background: transparent;
    border: 3px solid var(--border-color);
    color: var(--primary-color);
    width: 300px;
    height: 45px;
    font-size: 16px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* 服务特色模块 */
.service-features {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-primary);
}

.features-title {
    font-size: 40px;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: var(--spacing-2xl);
    font-family: 'Inter', sans-serif;
    text-align: left;
}

.features-content {
    display: flex;
    gap: var(--spacing-4xl);
    align-items: flex-start;
}

.features-list {
    flex: 1;
    max-width: 560px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: #1F27C4;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(31,39,196,0.15);
    line-height: 0; /* 去除行内基线影响，确保视觉正中 */
}

.feature-icon img {
    width: auto;
    height: auto;
    max-width: 22px;
    max-height: 22px;
    display: block; /* 消除内联图片基线 */
    object-fit: contain;
}

/* 中间第二条图标略小，单独放大以抵消素材留白 */
.features-list .feature-item:nth-child(2) .feature-icon img {
    max-width: 26px;
    max-height: 26px;
}

.feature-text {
    flex: 1;
}

.feature-title {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 6px;
}

.feature-description {
    font-size: 14px;
    color: rgba(28, 22, 60, 0.7);
    line-height: 1.6;
}

.features-demo {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.demo-image {
    width: 100%;
    max-width: 520px;
    height: auto;
    display: block;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    margin-top: -20px; /* 轻微上移，贴合左侧文字顶部 */
}

.demo-image:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* 合作对象模块 */
.partners-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-primary);
}

.who-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 28px;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.partner-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.partner-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.partner-image {
    width: 90%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* 保持左右边界不变：左图贴左，中图居中，右图贴右 */
.partner-cards .partner-card:first-child .partner-image {
    align-self: flex-start;
}
.partner-cards .partner-card:nth-child(2) .partner-image {
    align-self: center;
}
.partner-cards .partner-card:last-child .partner-image {
    align-self: flex-end;
}

/* 让标题与对应图片左侧对齐，宽度与图片一致 */
.partner-card .partner-title {
    width: 90%;
    text-align: left;
}
.partner-cards .partner-card:first-child .partner-title {
    align-self: flex-start;
}
.partner-cards .partner-card:nth-child(2) .partner-title {
    align-self: center;
}
.partner-cards .partner-card:last-child .partner-title {
    align-self: flex-end;
}

.partner-title {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 800;
}

/* 行动号召模块 */
.cta-section {
    padding: 60px 0;
    background: #ffffff;
}

.cta-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.cta-title {
    font-size: 28px;
    color: var(--text-primary);
    font-weight: 700;
    text-align: left;
}

.cta-description {
    font-size: 18px;
    color: var(--text-primary);
    line-height: 1.65;
    opacity: 0.9;
    text-align: left;
    max-width: 100%;
}

.cta-card {
    background: #FAF9FF;
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.cta-card .btn {
    margin-top: 4px;
}

/* 页脚模块 */
.footer {
    background: transparent;
    min-height: 64px;
    display: flex;
    align-items: center;
    margin-top: var(--spacing-2xl);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md) 24px var(--spacing-xl) 24px;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-lead {
    font-size: 16px;
    color: rgba(28, 22, 60, 0.5);
    text-align: left;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-top: 1px solid rgba(28, 22, 60, 0.2);
    margin-top: 2px;
    padding-top: var(--spacing-sm);
}

/* 与子站一致的版权文字样式 */
.footer-copyright {
    font-size: 12px;
    color: rgba(28, 22, 60, 0.5);
    flex: 1;
    min-width: 200px;
}

/* 页脚与子站保持一致：仅版权+政策链接 */

.footer-policies {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.policy-link {
    font-size: 12px;
    color: rgba(28, 22, 60, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.policy-link:hover {
    color: rgba(28, 22, 60, 0.7);
}

.policy-separator {
    font-size: 12px;
    color: rgba(28, 22, 60, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .features-content {
        flex-direction: column;
        gap: var(--spacing-2xl);
    }
    
    .features-list {
        max-width: 100%;
    }
    
    .partner-cards {
        justify-content: center;
    }
    
    .partner-card {
        width: 100%;
        max-width: 280px;
    }
    
    .tab-container {
        justify-content: center;
    }
    
    .banner-title {
        font-size: 28px;
    }
    
    .intro-title {
        font-size: 20px;
    }
    
    .cta-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 var(--spacing-md);
    }
    
    .nav-links {
        gap: var(--spacing-md);
    }
    
    .nav-link {
        font-size: 14px;
        padding: 6px 8px;
    }
    
    .banner-title {
        font-size: 24px;
    }
    
    .btn {
        min-width: 140px;
        height: 36px;
        font-size: 14px;
    }
    
    .partner-card {
        height: 160px;
    }
}
