/* ==================== optimized.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;
}
.nav-menu a,
.nav-link {
    color: #000 !important;
}

/* 搜索表单 */
.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;
    margin-right: 50px;
}
.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;
}

/* 白皮书新徽章 */
.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%);
}

/* 三横按钮定位 */
.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;
}

/* ===== 导航栏品牌化样式 ===== */
.navbar .nav-link {
    color: #333 !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}
.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 50%;
    height: 2.5px;
    background: #0066cc;
    border-radius: 2px;
    transition: transform 0.2s ease;
}
.navbar .nav-link:hover {
    color: #0066cc !important;
    background: #e8f2ff;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}
.navbar .nav-link.active {
    color: #0066cc !important;
    font-weight: 600;
}

/* 桌面端紧凑化 */
@media (min-width: 768px) {
    .navbar .nav-link {
        font-size: 0.8rem !important;
        padding: 0.25rem 0.4rem !important;
    }
}

/* 移动端菜单项 */
@media (max-width: 767.98px) {
    .navbar .nav-link {
        padding: 0.65rem 1rem !important;
        border-left: 3px solid transparent;
        border-radius: 0;
    }
    .navbar .nav-link:hover,
    .navbar .nav-link.active {
        border-left-color: #0066cc;
        background: #f0f6ff;
    }
    .navbar .nav-link::after {
        display: none;
    }
}

/* NEW 徽标呼吸动画 */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== 欧拉大师模块 ===== */
.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; }
.case-content > p { color: #4b5563; font-size: .8rem; 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; }
.case-quote {
    font-size: .75rem; 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);
    transition: all .3s;
}
.logo-marquee-item:hover { 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%; }

.navbar-brand {
    display: flex !important;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    margin-right: 0.5rem;
}