/* ==================== optimized.css 完整版（整合 optimized1.css 并优化字体） ==================== */

/* 确保header不会遮挡内容 */
body {
    padding-top: 56px;
}

/* 响应式调整 */
@media (min-width: 768px) {
    body {
        padding-top: 60px;
    }
}

/* 导航栏容器样式 */
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* 导航菜单样式 */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 10px;
}

/* 搜索表单样式 */
.search-form {
    display: flex;
    align-items: center;
}

.search-form input {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 30px;
}

.search-form button {
    background: none;
    border: none;
    padding: 0 5px;
    color: #333;
}

/* 电话号码区域样式 */
.phone-numbers {
    display: flex;
    flex-direction: column;
}

.phone-item {
    display: flex;
    align-items: center;
    margin: 2px 0;
    font-size: 14px;
}

.phone-icon {
    margin-right: 5px;
    font-size: 16px;
}

/* 移动端特定样式 */
@media (max-width: 767.98px) {
    .phone-numbers.d-md-none {
        display: flex !important;
        flex-direction: row;
    }
    
    .phone-numbers.d-md-none .phone-item {
        margin-right: 15px;
    }
    
    .search-form {
        flex-grow: 1;
        max-width: 150px;
    }
}

/* 移动端导航菜单样式 */
.navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-nav {
    padding: 10px;
}

.nav-item {
    margin: 5px 0;
}

.nav-link {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: #007bff;
    background-color: #f8f9fa;
}

/* 统一黑色文字 */
.nav-menu a,
.nav-link {
    color: #000 !important; 
}

/* 白皮书新徽章 */
.whitepaper-menu {
    position: relative;
}
.whitepaper-menu .new-badge {
    position: absolute;
    top: -5px;
    right: 0;
    background: #ff6b6b;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    transform: translateX(50%);
}

/* 电话右移 */
.phone-numbers {
    margin-right: 50px; 
}

/* 三横按钮定位 */
.navbar-toggler {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* 去掉导航文字底边 */
.nav-link,
.nav-link:hover,
.nav-link.active {
    border-bottom: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

/* ==================== 欧拉大师模块新增样式 ==================== */
.euler-home-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e8f0fe 100%);
    position: relative;
    overflow: hidden;
}

.euler-home-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,102,204,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.euler-home-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0066cc, #6e00ff);
    color: #fff;
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,102,204,0.2);
}

.euler-home-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #1e293b;
}

.euler-home-title span {
    background: linear-gradient(135deg, #0066cc, #6e00ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.euler-home-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 40px;
    max-width: 800px;
}

.euler-home-highlight {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px 50px;
    margin-bottom: 40px;
    padding: 25px 30px;
    background: #fff;
    border-radius: 60px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #e5e7eb;
}

.euler-home-highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.euler-home-highlight-item i {
    font-size: 2rem;
    color: #0066cc;
}

.euler-home-highlight-item strong {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-right: 5px;
}

.euler-home-highlight-item span {
    font-size: 0.9rem;
    color: #6b7280;
}

.euler-home-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.euler-home-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}

.euler-home-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,102,204,0.1);
    border-color: #0066cc;
}

.euler-home-card-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #0066cc, #6e00ff);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 18px;
    box-shadow: 0 6px 15px rgba(0,102,204,0.2);
}

.euler-home-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1e293b;
}

.euler-home-card p {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 0;
}

.euler-home-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 15px;
}

.euler-home-tag {
    background: #e8f0fe;
    color: #0066cc;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

.euler-home-compare {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.euler-home-compare-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 12px 25px;
    border-radius: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e5e7eb;
}

.euler-home-compare-item .label {
    color: #6b7280;
    font-size: 0.85rem;
}

.euler-home-compare-item .value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0066cc;
}

.euler-home-compare-item .desc {
    font-size: 0.8rem;
    color: #6b7280;
}

.euler-home-cta {
    text-align: center;
    margin-top: 30px;
}

.euler-home-cta .btn {
    padding: 14px 40px;
    font-size: 1rem;
}

@media (max-width: 992px) {
    .euler-home-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .euler-home-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .euler-home-grid {
        grid-template-columns: 1fr;
    }
    .euler-home-highlight {
        gap: 20px;
    }
}

/* ==================== 服务标签激活状态 ==================== */
.service-tab {
    transition: all 0.2s ease;
}

.service-tab.active {
    background: #0066cc !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 6px 12px rgba(0,102,204,0.2) !important;
    border-color: #0066cc !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}

.service-tab:hover {
    background: rgba(0,102,204,0.08) !important;
    color: #0052a3 !important;
    border-color: #0066cc !important;
}

.service-tab.active:hover {
    background: #0052a3 !important;
    color: #ffffff !important;
}

/* ==================== 案例筛选按钮激活状态 ==================== */
.case-filter-btn {
    transition: all 0.2s ease;
}

.case-filter-btn.active {
    background: #3385ff !important;
    border-color: #3385ff !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(51,133,255,0.35);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ==================== 案例卡片样式（字体已优化） ==================== */
.case-detail-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: 100%;
    border: 1px solid #e5e7eb;
}

.case-image {
    height: 140px;
    background: linear-gradient(135deg, #0066cc, #6e00ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.2rem;
    position: relative;
}

.case-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,.3), transparent);
}

.case-logo {
    position: absolute;
    bottom: .8rem;
    left: 1rem;
    z-index: 2;
    background: rgba(255,255,255,.95);
    color: #1f2937;
    padding: .3rem .8rem;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.case-content {
    padding: 1.2rem;
}

.case-tag {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: .25rem .8rem;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 600;
    margin-bottom: .8rem;
}

.case-content h4 {
    font-size: 1.1rem;
    margin: .3rem 0;
    color: #1f2937;
}

/* 案例描述：从原来的 .8rem 提升到 0.92rem */
.case-content > p {
    color: #4b5563;
    font-size: 0.92rem;
    margin-bottom: .8rem;
}

.case-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .6rem;
    margin-bottom: .8rem;
}

.case-stat {
    text-align: center;
    padding: .7rem;
    background: #f8fafc;
    border-radius: .6rem;
}

.case-stat-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0066cc;
}

.case-stat-label {
    font-size: .65rem;
    color: #6b7280;
}

/* 客户证言：从原来的 .75rem 提升到 0.9rem */
.case-quote {
    font-size: 0.9rem;
    color: #4b5563;
    padding: .8rem;
    background: #f1f5f9;
    border-radius: .6rem;
    border-left: 3px solid #0066cc;
}

.case-quote-author {
    color: #0066cc;
    font-weight: 600;
    margin-top: 4px;
}

/* ==================== 案例更多提示 ==================== */
.case-more-hint {
    text-align: center;
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    border-radius: 16px;
}

.case-more-hint p {
    color: #64748b;
    margin-bottom: 15px;
    font-size: 1rem;
}

.case-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0066cc;
    color: #fff;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all .3s;
}

.case-more-btn:hover {
    background: #0056b3;
    color: #fff;
    transform: translateY(-2px);
}

/* ==================== LOGO瀑布流 ==================== */
.logo-marquee-section {
    padding: 30px 0;
    background: #f8fafc;
    overflow: hidden;
}

.logo-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.logo-marquee-wrapper::before,
.logo-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, #f8fafc, transparent);
}

.logo-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(-90deg, #f8fafc, transparent);
}

.logo-marquee-track {
    display: flex;
    animation: marquee 35s linear infinite;
    width: fit-content;
}

.logo-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.logo-marquee-item {
    flex-shrink: 0;
    width: 130px;
    height: 65px;
    margin: 0 12px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.03);
    filter: none;
    opacity: 1;
    transition: all .3s;
}

.logo-marquee-item:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.02);
}

.logo-marquee-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ==================== 荣誉墙 ==================== */
.honors-section {
    padding: 2.5rem 0;
}

.honor-card {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 1.2rem;
}

.honor-img-wrapper {
    height: 140px;
    background: #f1f5f9;
    border-radius: 8px;
    position: relative;
}

.honor-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.honor-img-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #64748b;
    font-size: .8rem;
    z-index: 1;
}

/* ==================== 出版著作 ==================== */
.books-section {
    padding: 2.5rem 0;
}

.book-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.book-cover {
    height: 180px;
    background: linear-gradient(135deg, #0066cc, #6e00ff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-cover img {
    width: 100px;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background: #fff;
}

.book-info {
    padding: 1rem;
}

/* ==================== 培训现场 ==================== */
.training-section {
    padding: 2.5rem 0;
    background: #0f172a;
    color: #fff;
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .8rem;
}

.training-item {
    aspect-ratio: 4/3;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #1e293b;
}

.training-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all .3s;
}

.training-item:hover img {
    transform: scale(1.1);
}

.training-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: .8rem;
    background: linear-gradient(to top, rgba(0,0,0,.8), transparent);
    opacity: 0;
    transition: .3s;
}

.training-item:hover .training-overlay {
    opacity: 1;
}

.training-text {
    font-size: .75rem;
    color: #fff;
}

@media (max-width: 768px) {
    .training-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== CTA区域 ==================== */
.cta-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #0066cc, #6e00ff);
    color: #fff;
    text-align: center;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 700;
}

.cta-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* ==================== 浮动CTA ==================== */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.floating-btn {
    background: linear-gradient(135deg, #0066cc, #6e00ff);
    color: #fff;
    border-radius: 50px;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0,102,204,0.3);
}

.floating-btn.phone {
    background: linear-gradient(135deg, #10b981, #059669);
}

.floating-btn.whitepaper {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

@media (max-width: 768px) {
    .floating-cta {
        left: 20px;
        right: 20px;
        flex-direction: row;
        justify-content: center;
    }
}

/* ==================== 视频弹窗 ==================== */
#videoModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

#videoContainer {
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

/* ==================== FAQ（字体已优化） ==================== */
.faq-item:first-child {
    border-top: 1px solid #e5e7eb;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-question {
    padding: 1rem 0;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;    /* 新增，提升问题字号 */
}

.faq-answer {
    padding-bottom: 1rem;
    color: #6b7280;
    display: none;
    font-size: 0.9rem;     /* 新增，提升答案字号 */
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* ==================== 白皮书横幅 ==================== */
.whitepaper-banner {
    background: linear-gradient(135deg, #f0f7ff, #e6f2ff);
    border-radius: 1rem;
    padding: 1.2rem 2rem;
    border: 1px dashed #0066cc;
}

/* ==================== 新闻卡片 ==================== */
.news-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.2rem;
    border: 1px solid #e5e7eb;
    height: 100%;
}

/* ==================== 原有 optimized.css 中未重复的补充样式 ==================== */

/* 顾问统计网格 */
.advisor-stats-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; margin-bottom: 2rem;
}
.advisor-stat-card {
    background: #fff; border-radius: 1rem; padding: 1.2rem;
    text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}
.advisor-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
.advisor-stat-number {
    font-size: 1.8rem; font-weight: 800; color: #0066cc; line-height: 1.2;
}
.advisor-stat-label {
    font-weight: 600; color: #1e293b; margin: 0.3rem 0;
}
.advisor-stat-desc { font-size: 0.8rem; color: #6b7280; }

/* 时间轴 */
.timeline-horizontal {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 1rem 2rem; margin-top: 1.5rem;
}
.timeline-item {
    display: flex; flex-direction: column;
    align-items: center; min-width: 70px;
}
.timeline-item .year {
    font-weight: 700; color: #0066cc; font-size: 1.1rem;
}
.timeline-item .milestone {
    font-size: 0.8rem; color: #6b7280; text-align: center; line-height: 1.3;
}

/* 双驱一基横幅 */
.dual-drive-banner {
    background: linear-gradient(135deg, #f8faff, #eef4ff);
    border-radius: 1rem; padding: 1.2rem 1.5rem;
    border: 1px solid #dbeafe;
}

/* 服务卡片悬停 */
.service-card {
    transition: all 0.3s;
}
.service-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 24px 40px -12px rgba(0, 102, 204, 0.15) !important;
}

/* 统一卡片悬停 */
.unified-card {
    transition: all 0.3s;
}
.unified-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

/* 认证卡片悬停 */
.auth-card, .data-card {
    transition: all 0.3s;
}
.auth-card:hover, .data-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
}

/* 按钮全局样式 */
.btn {
    border-radius: 50px !important;
    font-weight: 600 !important;
    transition: all 0.2s !important;
}
.btn-primary {
    background: linear-gradient(135deg, #0066cc, #0056b3) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0,102,204,0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,102,204,0.3);
}
.btn-outline-primary {
    border: 2px solid #0066cc !important;
    color: #0066cc !important;
}
.btn-outline-primary:hover {
    background: #0066cc !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* 框架通用元素 */
.promise-cta { margin-top: 1.5rem; }
.icon-wrapper {
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(255,255,255,0.2); display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .timeline-horizontal { gap: 0.8rem 1.2rem; }
    .advisor-stats-grid { gap: 0.8rem; }
}