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

/* 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;
    margin-top: var(--spacing-lg);
}

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

/* 服务支持模块 - 与 Students 页的 process-section 完全一致 */
.process-section {
    padding: 56px 0 112px;
    background: #ffffff;
}

.process-section .container {
    display: flex;
    align-items: stretch;
    gap: 48px;
}

.process-content {
    flex: 0 0 36%;
    position: relative;
    padding: 0 48px 0 0;
    z-index: 0;
    display: flex;
    align-items: center;
}

.process-content::before {
    content: '';
    position: absolute;
    left: calc(-50vw + 50% + 24px);
    right: 0;
    top: -16px;
    width: auto;
    height: calc(100% + 32px);
    background: #FAF9FF;
    border-radius: 0 16px 16px 0;
    z-index: -1;
    pointer-events: none;
}

/* 移除额外左边距，保持与上方标题一致对齐 */

/* 标题与上一模块左边缘对齐（保持背景条宽度不变） */
.process-title { margin-left: 0; }

.process-title {
    font-family: 'Inter', sans-serif;
    font-size: 40px;
    color: #1F27C4;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.process-steps {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 64px;
    row-gap: 48px;
}

.step-item {
    padding: 0;
    background: transparent;
}

.step-item:hover { transform: none; }

.step-title {
    font-size: 20px;
    color: #1C163C;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-description {
    font-size: 14px;
    color: rgba(28, 22, 60, 0.4);
    line-height: 1.5;
}

/* 移除旧的 support-* 样式，避免干扰 */
.support-services, .support-content, .support-title-section, .support-title,
.support-list, .support-item, .service-title, .service-description { display: initial; }

/* 成功案例模块 */
.success-stories {
    padding: 56px 0;
    background: var(--bg-secondary);
}

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

.stories-intro {
    font-size: 14px;
    color: rgba(28, 22, 60, 0.4);
    line-height: 1.5;
    margin-bottom: 48px;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 320px);
    justify-content: space-between;
    gap: 24px;
}

.story-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 28px 20px 32px;
    transition: box-shadow 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(31,39,196,0.06);
    max-width: 320px;
    margin: 0;
}

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

.student-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 16px;
    overflow: hidden;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 8px 0 8px;
}

.student-role {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 20px;
}

.student-quote {
    font-size: 16px;
    line-height: 1.6;
    color: #2E33C7;
}


/* 资源模块 */
.helpful-resources {
    padding: var(--spacing-2xl) 0;
    background: #ffffff;
}

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

.resources-intro {
    font-size: 14px;
    color: rgba(28, 22, 60, 0.4);
    line-height: 1.5;
    margin-bottom: 48px;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 56px; /* 卡片之间更大间距 */
    row-gap: 40px;
    align-items: start;
}

/* 让两张卡片的外侧与容器边缘保持原有距离，仅缩小卡片本身宽度 */
.resources-grid .resource-card:first-child {
    justify-self: start;
    max-width: 520px;
    width: 100%;
}

.resources-grid .resource-card:last-child {
    justify-self: end;
    max-width: 520px;
    width: 100%;
}

@media (max-width: 1024px) {
    .resources-grid .resource-card:first-child,
    .resources-grid .resource-card:last-child {
        max-width: 480px;
    }
}

@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 24px;
    }
    .resources-grid .resource-card:first-child,
    .resources-grid .resource-card:last-child {
        justify-self: stretch;
        max-width: none;
    }
}

/* Helpful Resources 下方提示，与 businesses 页 custom-plan 样式一致 */
.resources-more {
    text-align: center;
    margin-top: 32px;
}

.resources-more .more-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.resources-more .more-question { color: #645E80; }
.resources-more .more-action { color: #2028C4; }

.resource-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    transition: none;
    box-shadow: none;
    padding: 0;
}

.resource-card:hover {
    box-shadow: none;
}

.resource-image {
    width: 100%;
    height: auto;
}

.cover-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.resource-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: var(--spacing-md) 0 var(--spacing-sm) 0;
    padding: 0;
}

.resource-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 var(--spacing-lg) 0;
    padding: 0;
}

/* 资源卡片：仅按钮居中，文字保持左对齐；图片与按钮等宽 */
.helpful-resources .resource-card { text-align: left; }
.helpful-resources .resource-name,
.helpful-resources .resource-description { text-align: left; }
.helpful-resources .resource-image { width: 100%; }
.helpful-resources .resource-image img { width: 100%; height: auto; display: block; }
.helpful-resources .btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    line-height: 40px;
    padding: 0;
    text-align: center;
}

/* 悬浮态与全站一致 */
.helpful-resources .btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-secondary);
    border-color: var(--primary-color);
}

/* 资源卡片按钮与内容间距（比 Our Programmes 多按钮）*/
.resource-card .btn {
    margin-top: 4px;
}

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

.cta-content {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    min-height: 420px;
}

.cta-background {
    position: absolute;
    inset: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;               /* 覆盖整屏宽 */
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    z-index: 0;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cta-form {
    position: relative;
    z-index: 1;                  /* 置于背景图之上 */
    background: var(--primary-color);
    padding: 28px;
    border-radius: 0;
    color: white;
    width: min(480px, 100%);
}

.cta-title {
    font-size: 32px;
    color: white;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.application-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-input {
    width: 100%;
    height: 38px;
    border: none;
    border-bottom: 2px solid rgba(255,255,255,0.9);
    background: transparent;
    padding: 2px 0;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #FFFFFF;
}

.form-input:focus {
    outline: none;
    border-bottom-color: #FFFFFF;
}

/* 占位符样式，模拟大号标签效果 */
.form-input::placeholder {
    color: rgba(255,255,255,0.95);
    font-style: italic;
}

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--primary-color);
    width: 160px;
    height: 40px;
    line-height: 36px;
}

.btn-outline:hover {
    background: #ECECF9;
}

.cta-form .btn-primary {
    background: transparent;
    color: #FFFFFF;
    width: 100%;
    height: 48px;
    font-size: 15px;
    border: 2px solid #FFFFFF;
    border-radius: 0;            /* 无圆角 */
    margin-top: 16px;
}

.cta-form .btn-primary:hover {
    background: #FFFFFF;
    color: var(--primary-color);
}

/* Footer - 与主站完全一致 */
.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);
}

.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) {
    .process-section .container {
        flex-direction: column;
        gap: 32px;
    }
    .process-steps {
        grid-template-columns: 1fr;
        row-gap: 24px;
        column-gap: 24px;
    }
    
    .stories-grid,
    .resources-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .logo-scroll-container {
        width: 100%;
        margin-left: 0;
    }
    
    .logo-scroll-track {
        padding: 0 24px;
        animation-duration: 100s;
    }
    
    .cta-content {
        flex-direction: column;
        gap: var(--spacing-2xl);
    }
    
    .tab-container {
        justify-content: center;
    }
    
    .banner-title {
        font-size: 28px;
    }
    
    .intro-title {
        font-size: 20px;
    }
}

@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;
    }
}
