/* 
 * 睿搏国际教育 - 现代化高端样式
 * 设计风格：商务专业 + 支付宝设计风
 * 特点：简洁大气、精致动画、高端质感
 */

/* ==================== 全局变量 ==================== */
:root {
    /* 主色调 - 深蓝商务 */
    --primary-color: #1677ff;
    --primary-dark: #0050b3;
    --primary-light: #4096ff;
    --primary-bg: #e6f4ff;
    
    /* 辅助色 */
    --success-color: #52c41a;
    --warning-color: #faad14;
    --error-color: #ff4d4f;
    
    /* 中性色 */
    --text-primary: #1f1f1f;
    --text-secondary: #595959;
    --text-disabled: #bfbfbf;
    --border-color: #d9d9d9;
    --background: #f5f7fa;
    --white: #ffffff;
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 8px 24px rgba(22, 119, 255, 0.2);
    
    /* 圆角 */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    
    /* 动画 */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* ==================== 基础重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== 导航栏 - 支付宝风格 ==================== */
.header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

.header.scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-logo-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: width var(--transition-base);
}

.nav-menu a:hover {
    color: var(--primary-color);
    background: var(--primary-bg);
}

.nav-menu a:hover::after {
    width: 80%;
}

.nav-menu a.active {
    color: var(--primary-color);
}

/* 导航栏搜索框 - 集成到导航栏 */
.header-search {
    flex: 0 0 320px;
    margin: 0 20px;
}

.header-search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.header-search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    font-size: 14px;
    transition: all var(--transition-fast);
    outline: none;
}

.header-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.header-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
}

.header-search-btn:hover {
    background: var(--primary-bg);
    color: var(--primary-dark);
}

/* 移动端菜单按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

/* ==================== 旧搜索栏样式 - 已废弃 ==================== */
/* 删除或注释掉，使用导航栏集成搜索框 */
.search-bar {
    background: var(--white);
    padding: 16px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

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

.search-box {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 48px 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    font-size: 14px;
    transition: all var(--transition-fast);
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}

.search-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* ==================== Banner 轮播 - 全屏高端 ==================== */
.banner {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-top: 64px; /* 导航栏高度 */
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.8) 0%, rgba(0, 80, 179, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 24px;
    animation: slideUp 1s ease;
}

.banner-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
}

.banner-subtitle {
    font-size: 20px;
    line-height: 1.8;
    opacity: 0.95;
    margin-bottom: 32px;
}

.banner-btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-base);
}

.banner-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Banner 控制按钮 */
.banner-arrows {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.banner-arrow {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.banner-arrow.active {
    background: var(--white);
    width: 32px;
    border-radius: 6px;
}

/* ==================== 服务分类 - 卡片式 ==================== */
.services {
    padding: 80px 0;
    background: var(--white);
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 16px;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-bg);
    border-radius: 50%;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    transform: rotateY(360deg);
}

.service-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.service-icon i {
    font-size: 36px;
    color: var(--primary-color);
}

.service-card:hover .service-icon i {
    color: var(--white);
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.service-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== 案例展示 - 网格布局 ==================== */
.cases {
    padding: 80px 0;
    background: var(--background);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 0 auto;
}

.case-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    cursor: pointer;
}

.case-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.case-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.case-card:hover .case-overlay {
    opacity: 1;
}

.case-content {
    padding: 24px;
}

.case-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.case-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== 优势展示 - 带动画 ==================== */
.features {
    padding: 80px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-item {
    text-align: center;
    padding: 32px;
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-base);
}

.feature-item:hover {
    background: var(--primary-bg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 36px;
    box-shadow: 0 4px 16px rgba(22, 119, 255, 0.3);
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==================== 新闻资讯 - 列表 ==================== */
.news {
    padding: 80px 0;
    background: var(--background);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    background: var(--white);
    padding: 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.news-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
}

.news-date {
    min-width: 80px;
    text-align: center;
    padding: 12px;
    background: var(--primary-bg);
    border-radius: var(--border-radius-md);
}

.news-date .day {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.news-content {
    flex: 1;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color var(--transition-fast);
}

.news-item:hover .news-title {
    color: var(--primary-color);
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== 页脚 ==================== */
.footer {
    background: #001529;
    color: var(--white);
    padding: 60px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.75);
    line-height: 2;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* ==================== 动画效果 ==================== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.9);
    }
    to {
        transform: scale(1);
    }
}

/* 滚动动画类 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 64px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 64px);
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        transition: left var(--transition-base);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .banner {
        height: 400px;
    }
    
    .banner-title {
        font-size: 32px;
    }
    
    .banner-subtitle {
        font-size: 16px;
    }
    
    .services-grid,
    .cases-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
}

/* ==================== 工具类 ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.mt-40 {
    margin-top: 40px;
}

.mb-40 {
    margin-bottom: 40px;
}

.hidden {
    display: none;
}

/* ==================== 在线客服 ==================== */
/* 在线客服按钮 */
.nav-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.nav-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.nav-contact i {
    font-size: 18px;
}

.nav-contact span {
    font-size: 14px;
    font-weight: 500;
}

/* 在线客服弹窗 */
.wechat-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.wechat-content {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    max-width: 350px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.wechat-content h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.wechat-content img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

.wechat-content p {
    font-size: 16px;
    color: #666;
    margin: 8px 0;
}

.wechat-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.wechat-close:hover {
    color: #333;
    transform: rotate(90deg);
}
