/* Key&I 主站样式 - KeyInspiring */

/* 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: 1440px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

/* 导航栏模块 - 完全复制子网站样式 */
.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 var(--spacing-xl);
}

/* 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);
}


/* 操作按钮 */
.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-section {
    padding: calc(80px + 40px) 0 40px;
    background: #ffffff;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-content {
    flex: 1;
    max-width: 1000px;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 50px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 32px;
    text-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-buttons .btn {
    min-width: 160px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
    line-height: 1;
}

.btn-outline {
    background: transparent;
    color: #1F27C4;
    border: 2px solid #1F27C4;
}

.btn-outline:hover {
    background: #1F27C4;
    color: #FAF9FF;
}

.btn-primary {
    background: #1F27C4;
    color: #FAF9FF;
}

.btn-primary:hover {
    background: #161C99;
}

.hero-image {
    flex: 1.37;
    min-height: 320px;
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-image img {
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    max-width: 92%;
    max-height: 92%;
    margin-left: auto;
}

/* 关于我们模块 */
.about-section {
    padding: 40px 0;
    background: #ffffff;
}

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

.section-title {
    font-size: 40px;
    color: #1C163C;
    font-weight: 700;
    text-align: left;
    margin-bottom: 32px;
    font-family: 'Inter', sans-serif;
}

.about-card {
    background: #FAF9FF;
    border-radius: 12px;
    padding: 24px;
    max-width: 100%;
    box-sizing: border-box;
}

.about-text {
    font-size: 16px;
    color: #1C163C;
    line-height: 1.6;
    opacity: 0.9;
    text-align: left;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* 成功案例模块 */
.success-section { display: none; }
.pathways-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-primary);
}

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

.pathways-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-xl);
    align-items: stretch;
}

.pathway-card {
    background: #FAF9FF;
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 260px;
}

.pathway-header {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: rgba(28,22,60,0.55);
    text-transform: uppercase;
}

.pathway-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 8px;
}

.pathway-title .brand { color: var(--primary-color); }

.pathway-text {
    font-size: 15px;
    color: rgba(28,22,60,0.7);
    line-height: 1.6;
    margin: 0 0 24px 0; /* 与按钮拉开更大的距离 */
}

.pathway-btn {
    align-self: flex-start;
    margin-top: auto; /* 将按钮压到卡片底部，保持三列同高对齐 */
}

@media (max-width: 1024px) {
    .pathways-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .pathways-grid { grid-template-columns: 1fr; }
}

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

.success-cards {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    align-items: center;
    flex-wrap: wrap;
    overflow: visible;
    width: 100%;
    position: relative;
}

/* 滚动容器 */
.story-scroll-container {
    width: 100vw;
    max-width: none;
    overflow: visible;
    position: relative;
    margin-left: calc(-50vw + 50%);
}

/* 滚动轨道 */
.story-scroll-track {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
    animation: scrollStories 180s linear infinite;
    width: max-content;
    padding: 0 var(--spacing-3xl);
    overflow: visible;
}

/* 悬浮时暂停，减少眩晕感 */
.story-scroll-container:hover .story-scroll-track {
    animation-play-state: paused;
}

/* 滚动动画 - 比Logo慢1.5倍 */
@keyframes scrollStories {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.story-card {
    width: 240px;
    height: 160px;
    background: #CFCFCF;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.story-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-4px);
}

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

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



.company-logos {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    align-items: center;
    flex-wrap: wrap;
    overflow: visible;
    width: 100%;
    position: relative;
}

/* 主页 CTA（与 Key PLUS 视觉保持一致） */
.cta-section {
    padding: 60px 0;
    background: #ffffff;
}

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

.cta-card {
    background: #FAF9FF;
    border-radius: 12px;
    padding: 24px; /* 与上方卡片一致，保持左缘对齐 */
    min-height: 200px;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.cta-title {
    font-size: 24px;
    font-weight: 700;
    color: #1C163C;
    margin-bottom: 12px;
}

.cta-text {
    font-size: 16px;
    color: rgba(28,22,60,0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

.cta-card .btn {
    min-width: 200px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* 滚动容器 */
.logo-scroll-container {
    width: 100vw;
    max-width: none;
    overflow: visible;
    position: relative;
    margin-left: calc(-50vw + 50%);
}

/* 滚动轨道 */
.logo-scroll-track {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
    animation: scrollLogos 90s linear infinite;
    width: max-content;
    padding: 0 var(--spacing-3xl);
    overflow: visible;
    will-change: transform;
    transform: translateZ(0);
}

/* 悬浮时暂停，减轻眩晕感 */
.logo-scroll-container:hover .logo-scroll-track {
    animation-play-state: paused;
}

/* 滚动动画 */
@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 单个Logo项 */
.logo-item {
    flex-shrink: 0;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    overflow: visible;
}

/* 企业图片 */
.company-image {
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    object-fit: none;
    border-radius: var(--radius-sm);
    transition: transform 0.2s ease;
    display: block;
    transform: scale(0.8);
}

.company-image:hover {
    transform: scale(1.1);
}

/* 性能优化：延迟渲染非首屏区块，保持视觉不变 */
.about-section {
    content-visibility: auto;
    contain-intrinsic-size: 480px;
}

.success-section {
    content-visibility: auto;
    contain-intrinsic-size: 320px;
}

.partners-section {
    content-visibility: auto;
    contain-intrinsic-size: 240px;
}

.footer {
    content-visibility: auto;
    contain-intrinsic-size: 100px;
}

/* 页脚模块 */
.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) var(--spacing-xl) var(--spacing-xl) var(--spacing-xl);
    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; /* Contact Us 更贴近分割线 */
    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) {
    .hero-container {
        flex-direction: column;
        gap: var(--spacing-2xl);
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 28px;
        margin-left: 0;
    }
    
    .hero-buttons {
        margin-left: 0;
    }
    
    .hero-image {
        max-width: 100%;
    }
    
    .success-cards {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .story-card {
        width: calc(50% - var(--spacing-sm));
        margin-bottom: var(--spacing-md);
    }
    
    .partners-logos {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .partner-logo {
        margin-bottom: var(--spacing-md);
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .copyright {
        margin-left: 0;
    }
    
    .footer-right {
        margin-right: 0;
    }
}

@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;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .btn-primary {
        width: 140px;
        height: 44px;
        font-size: 14px;
    }
    
    .story-card {
        width: 100%;
    }
}

/* Partner Universities 样式 */
.partner-universities {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-primary);
}

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

.universities-title {
    font-size: 40px;
    color: #1C163C;
    font-weight: 700;
    text-align: left;
    margin-bottom: 32px;
    font-family: 'Inter', sans-serif;
}

/* 滚动容器 */
.logo-scroll-container {
    width: 100vw;
    max-width: none;
    overflow: visible;
    position: relative;
    margin-left: calc(-50vw + 50%);
}

/* 滚动轨道 */
.logo-scroll-track {
    display: flex;
    gap: 24px;
    align-items: center;
    animation: scrollUniversities 150s linear infinite;
    width: max-content;
    padding: 0 60px;
    overflow: visible;
}

/* 滚动动画 */
@keyframes scrollUniversities {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 单个Logo项 */
.logo-item {
    flex-shrink: 0;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    overflow: visible;
    margin: 0;
}

/* 强制间距一致性 */
.logo-item:not(:last-child) {
    margin-right: 24px;
}

.logo-item:last-child {
    margin-right: 0;
}

/* 大学图片 */
.university-image {
    max-width: 160px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.2s ease;
    display: block;
}

.university-image:hover {
    transform: scale(1.05);
}
