/* 战略执行系统主样式文件 */
:root {
    /* 主色调 - 调整为更稳重的战略主题色 */
    --primary: #1e40af;
    --secondary: #1e3a8a;
    --accent: #dc2626;
    --success: #059669;
    
    /* 中性色 */
    --white: #ffffff;
    --light: #f8fafc;
    --light-gray: #e2e8f0;
    --gray: #64748b;
    --dark: #0f172a;
    
    /* 效果 */
    --border-radius: 12px;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(30, 64, 175, 0.15);
    --transition: all 0.3s ease;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #f9fafb;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.cta-button, .btn, .jx-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.cta-button {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.cta-button:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* 在线咨询按钮样式 */
.jx-btn.jx-contact-online {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.jx-btn.jx-contact-online:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
}

/* 免费试用按钮样式 - 与在线咨询按钮区分颜色 */
.jx-btn.jx-contact-online:nth-of-type(1) {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.jx-btn.jx-contact-online:nth-of-type(1):hover {
    background: var(--primary);
    color: white;
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* 英雄区域 */
.hero {
    padding: 150px 0 80px;
    background: linear-gradient(120deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    padding-right: 40px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--dark);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* 统计数据 */
.stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

/* 通用区块样式 */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 1.1rem;
}

/* 功能特点区域 */
.features {
    padding: 100px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--light-gray);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* 图文展示区域 */
.alternate-section {
    padding: 100px 0;
    background: var(--light);
}

.image-left-container {
    display: flex;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
    /* 确保容器能够适应内部内容 */
    width: 100%;
    box-sizing: border-box;
}

.image-left {
    max-width: 620px;
    max-height: 406px;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    /* 确保图片能够正确缩放 */
    width: 100%;
    height: auto;
    display: block;
}

.content-right {
    flex: 1;
    width: 100%;
}

.content-section {
    padding: 20px;
}

.content-section h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.content-section p {
    margin-bottom: 20px;
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    margin-bottom: 30px;
}

.feature-list li {
    padding: 8px 0;
    color: var(--gray);
    position: relative;
    padding-left: 25px;
}

.feature-list li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 全宽大图区域 */
.full-width-section {
    padding: 100px 0;
    background: white;
    text-align: center;
}

.full-width-header {
    margin-bottom: 50px;
}

.full-width-header h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.full-width-header p {
    color: var(--gray);
    font-size: 1.2rem;
}

.full-width-image {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    height: auto;
}

/* BSC维度展示 */
.bsc-dimensions {
    padding: 100px 0;
    background: white;
}

.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.dimension-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 5px solid var(--primary);
}

.dimension-card:nth-child(1) {
    border-top-color: #3b82f6; /* 财务 - 蓝色 */
}

.dimension-card:nth-child(2) {
    border-top-color: #10b981; /* 客户 - 绿色 */
}

.dimension-card:nth-child(3) {
    border-top-color: #f59e0b; /* 内部流程 - 橙色 */
}

.dimension-card:nth-child(4) {
    border-top-color: #8b5cf6; /* 学习成长 - 紫色 */
}

.dimension-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.dimension-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
}

.dimension-card:nth-child(1) .dimension-icon {
    background: #3b82f6;
}

.dimension-card:nth-child(2) .dimension-icon {
    background: #10b981;
}

.dimension-card:nth-child(3) .dimension-icon {
    background: #f59e0b;
}

.dimension-card:nth-child(4) .dimension-icon {
    background: #8b5cf6;
}

.dimension-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.dimension-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* 客户区域 */
.clients {
    padding: 100px 0;
    background: var(--light);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.client-card {
    background: white;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.client-card:hover {
    transform: translateY(-5px);
}

.client-card h4 {
    margin-top: 15px;
    font-size: 1rem;
    color: var(--gray);
}

/* 动画 */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .image-left-container {
        flex-direction: column;
        gap: 40px;
        /* 确保容器完全填充宽度 */
        width: 100%;
        margin-bottom: 60px;
    }
    
    /* 确保文字在图片上方显示 */
    .image-left-container .content-right {
        order: 1;
    }
    
    .image-left-container .image-left {
        order: 2;
    }
    
    .image-left {
        width: 100%;
        max-width: 500px;
        max-height: none;
        height: auto;
        margin: 0 auto;
        /* 确保图片能够正确缩放 */
        display: block;
    }
    
    .content-right {
        width: 100%;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .btn-group {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button, .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    /* 统计数据响应式 */
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .full-width-header h2 {
        font-size: 1.8rem;
    }
    
    .full-width-header p {
        font-size: 1rem;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }
    
    .content-section h3 {
        font-size: 1.6rem;
    }
    
    /* 确保文字在图片上方显示 */
    .image-left-container .content-right {
        order: 1;
        padding: 15px;
    }
    
    .image-left-container .image-left {
        order: 2;
    }
    
    /* 768px下优化战略与绩效联动区域 */
    .full-width-section div[style*="margin: 80px 0"] {
        margin: 0 !important;
        padding: 20px 0 !important;
    }
    
    .full-width-section div[style*="background: white"] {
        padding: 5px !important;
    }
    
    .full-width-section div[style*="width: 100%; height: 600px"] {
        height: auto !important;
        min-height: 200px;
    }
    
    .full-width-image {
        max-height: 220px !important;
        width: 100% !important;
        object-fit: contain;
    }
}

/* 小屏幕手机适配 */
@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .section-title h2::after {
        width: 60px;
        height: 3px;
    }
    
    .features,
    .alternate-section,
    .full-width-section,
    .bsc-dimensions,
    .clients {
        padding: 60px 0;
    }
    
    .features-grid,
    .dimensions-grid,
    .clients-grid {
        gap: 20px;
    }
    
    .feature-card,
    .dimension-card,
    .client-card {
        padding: 20px 15px;
    }
    
    /* 图片布局特殊优化 - 解决手机端下方空白问题 */
    .image-left-container {
        gap: 30px;
        margin-bottom: 40px !important;
        /* 确保在移动端完全堆叠布局 */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        /* 移除可能导致空白的任何内边距 */
        padding: 0 !important;
        /* 确保容器能够适应内部内容 */
        min-height: 0 !important;
        /* 确保容器不会被固定高度限制 */
        height: auto !important;
    }
    
    /* 确保文字在图片上方显示 */
    .image-left-container .content-right {
        order: 1;
    }
    
    .image-left-container .image-left {
        order: 2;
    }
    
    /* 确保所有区块（不仅仅是第一个）都有紧凑的间距 */
    .image-left-container:nth-child(2),
    .image-left-container:nth-child(3),
    .image-left-container:nth-child(4) {
        margin-bottom: 40px !important;
    }
    
    /* 移除内联样式中可能的margin-top */
    .image-left-container[style*="margin-top: 80px"] {
        margin-top: 40px !important;
    }
    
    /* 修复图片尺寸问题 */
    .image-left {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        /* 移除固定尺寸限制 */
        min-height: 0 !important;
        max-height: none !important;
        /* 移除HTML中设置的width和height属性影响 */
        max-width: 100vw !important;
        /* 确保图片正确缩放 */
        object-fit: contain;
        display: block;
    }
    
    /* 确保内容区域完全填充父容器 */
    .content-right {
        width: 100% !important;
        padding: 15px !important;
        margin: 0 !important;
        /* 确保内容区不会有额外空间 */
        flex-shrink: 1;
    }
    
    .content-section h3 {
        font-size: 1.4rem;
        margin-top: 10px !important;
        margin-bottom: 15px !important;
    }
    
    .content-section p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 15px !important;
    }
    
    /* 优化列表样式 */
    .feature-list {
        margin-bottom: 20px !important;
        padding-left: 0 !important;
    }
    
    .feature-list li {
        padding: 6px 0;
        padding-left: 20px !important;
        font-size: 0.95rem;
    }
    
    /* 优化按钮样式 */
    .cta-button {
        display: block;
        margin-top: 15px !important;
        margin-bottom: 0 !important;
        width: 100%;
        text-align: center;
        /* 确保按钮正确显示 */
        padding: 12px 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* 战略与绩效管理联动区域特殊适配 */
    .full-width-section div[style*="margin: 80px 0"] {
        margin: 30px 0 !important;
        padding: 30px 0 !important;
    }
    
    .full-width-section div[style*="text-align: center"] > div[style*="margin-bottom: 60px"] {
        margin-bottom: 20px !important;
    }
    
    .full-width-section div[style*="text-align: center"] h2 {
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }
    
    .full-width-section div[style*="text-align: center"] p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        max-width: 100% !important;
    }
    
    .full-width-section div[style*="background: white"] {
        padding: 15px !important;
        border-radius: 8px !important;
        margin: 0 auto !important;
    }
    
    .full-width-section div[style*="width: 100%; height: 600px"] {
        height: auto !important;
        min-height: 200px;
        padding: 10px 0;
    }
    
    /* 移除任何可能导致空白的固定高度 */
    div[style*="height: 600px"],
    div[style*="height: 400px"] {
        height: auto !important;
        min-height: 200px;
    }
    
    /* 优化SVG图片容器 */
    .full-width-image {
        max-height: 300px !important;
        width: 100% !important;
        object-fit: contain;
    }
    
    /* 更精确的选择器优化战略与绩效联动区域 */
    .full-width-section {
        margin: 0 !important;
        padding: 20px 0 !important;
    }
    
    .full-width-section .container > div:last-child {
        padding: 5px !important;
    }
    
    /* 优化SVG容器内部间距 */
    .full-width-section .container > div:last-child > div {
        padding: 0 !important;
        margin: 10px 0 !important;
    }
    
    /* 确保图片自适应且不留空白 */
    .full-width-section img {
        max-height: 220px !important;
        min-height: auto !important;
    }
    
    /* 确保容器不会有额外的空白 */
    .alternate-section .container {
        padding: 0 !important;
        max-width: 100% !important;
    }
}