/* =================== 【公共样式】 =================== */
/* 全局样式 */

:root {
    --primary-color: #f7892e;
    --primary-light: #fecf51;
    --primary-dark: #F68425;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 80px; /* 为固定导航栏留出空间 */
    /** 字体平滑 **/
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;

}

/* 全局加粗样式优化 */

h1, h2, h3, h4, h5, h6, b, strong, th {
    letter-spacing: 0.01em; /* 稍微增加间距，让细一点的加粗字体更清晰 */
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* 页面标题 */

.page-header {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf9 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 134, 255, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='1' fill='%230086ff' fill-opacity='0.1'/%3E%3C/svg%3E") repeat;
    z-index: 0;
    opacity: 0.3;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
    position: relative;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 0 2px 10px rgba(0, 134, 255, 0.2);
    transition: all 0.3s ease;
}

.page-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), #0066cc);
    margin: 20px auto;
    border-radius: 2px;
    animation: expandWidth 1s ease-out 0.5s both;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Top Stats Glass Section
   ========================================================================== */

/* 页面标题的多种动画效果类 */

.page-header.float { animation: float 4s ease-in-out infinite; }

.page-header.pulse { animation: pulse 3s ease-in-out infinite; }

.page-header.wave { animation: wave 10s linear infinite; }

.page-header.colorShift { animation: colorShift 8s ease-in-out infinite; }

.page-header.particles::after { animation: particles 20s linear infinite; }

.page-header.zoom { animation: zoom 3s ease-in-out infinite; }

.page-header.shake { animation: shake 3s ease-in-out infinite; }

.page-header.flip { animation: flip 6s ease-in-out infinite; }

.page-header.bounce { animation: bounce 2s ease-in-out infinite; }

.page-header.swing { animation: swing 3s ease-in-out infinite; }

.page-header.wobble { animation: wobble 3s ease-in-out infinite; }

.page-header.tada { animation: tada 3s ease-in-out infinite; }

.page-header.jello { animation: jello 3s ease-in-out infinite; }

.page-header.hueRotate { animation: hueRotate 10s linear infinite; }

.page-header.blur { animation: blur 4s ease-in-out infinite; }

/* 旋转动画保持在::before元素上 */

.page-header::before {
    animation: rotate 20s linear infinite;
}

/* 合作伙伴 */

.partners-section {
    background: white;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
    max-width: 100%;
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
}

.partner-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* =================== 【其他页面样式】 =================== */
/* 关于我们页面 */

.about-section {
    background: white;
}

/* 发展历程 - 现代横向时间线 */

.modern-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modern-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--primary-color) 10%, var(--primary-color) 90%, transparent);
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    width: 100%;
    height: 240px; /* 给上下内容预留足够空间 */
    text-align: center;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    perspective: 1000px;
    z-index: 10; /* 提升层级，确保在连接线上面 */
}

.timeline-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.8), 0 0 10px rgba(0, 134, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 恢复图标显示 */

.timeline-dot i {
    display: block;
}

.timeline-item:hover .timeline-dot {
    background: var(--primary-color);
    color: white;
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.5), 0 0 20px rgba(0, 134, 255, 0.4);
}

.timeline-content {
    width: 95%;
    max-width: 180px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    z-index: 5;
    text-align: center;
}

.timeline-item:hover .timeline-content {
    box-shadow: 0 12px 30px rgba(0, 134, 255, 0.12);
    transform: translateX(-50%) translateY(-5px);
    border-color: rgba(0, 134, 255, 0.2);
}

/* 奇数项在上方 */

.timeline-item:nth-child(odd) .timeline-content {
    bottom: 50%;
    margin-bottom: 35px;
}

/* 偶数项在下方 */

.timeline-item:nth-child(even) .timeline-content {
    top: 50%;
    margin-top: 35px;
}

.timeline-content::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 12px;
    height: 12px;
    background: white;
    transform: translateX(-50%) rotate(45deg);
    border: 1px solid rgba(0, 0, 0, 0.03);
    z-index: 0;
}

/* 奇数项箭头向下 */

.timeline-item:nth-child(odd) .timeline-content::after {
    bottom: -6px;
    border-top: none;
    border-left: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    border-right: 1px solid rgba(0, 0, 0, 0.03);
}

/* 偶数项箭头向上 */

.timeline-item:nth-child(even) .timeline-content::after {
    top: -6px;
    border-bottom: none;
    border-right: none;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-left: 1px solid rgba(0, 0, 0, 0.03);
}

.timeline-year {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(0, 134, 255, 0.1);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.timeline-content p {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 0;
    line-height: 1.4;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 奇数项延迟一点动画，形成波浪感 */

.timeline-item:nth-child(odd).reveal-on-scroll {
    transition-delay: 0s;
}

.timeline-item:nth-child(even).reveal-on-scroll {
    transition-delay: 0.2s;
}

/* 响应式调整 - 992px以下变为垂直布局 */

@media (max-width: 991px) {
    .modern-timeline {
        flex-direction: column;
        padding: 40px 0;
        align-items: stretch;
        max-width: 600px;
    }
    
    .modern-timeline::before {
        top: 0;
        bottom: 0;
        left: 30px;
        right: auto;
        width: 3px;
        height: 100%;
        background: linear-gradient(to bottom, transparent, var(--primary-color) 10%, var(--primary-color) 90%, transparent);
        transform: none;
    }
    
    .timeline-item {
        height: auto;
        margin-bottom: 40px;
        text-align: left;
        display: block;
        padding-left: 80px;
    }
    
    .timeline-dot {
        top: 25px;
        left: 30px;
        transform: translateX(-50%);
        width: 24px;
        height: 24px;
    }
    
    .timeline-item:hover .timeline-dot {
        transform: translateX(-50%) scale(1.3);
    }
    
    .timeline-content {
        position: relative;
        left: 0;
        top: 0;
        bottom: 0;
        transform: none !important;
        width: 100%;
        max-width: 100%;
        margin: 0 !important;
    }
    
    .timeline-item:hover .timeline-content {
        transform: translateY(-5px) !important;
    }
    
    /* 重置所有奇偶差异为统一左侧布局 */
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        bottom: auto;
        top: auto;
        margin: 0;
    }
    
    .timeline-content::after {
        left: -7px;
        top: 25px;
        bottom: auto;
        transform: rotate(45deg);
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
        border-left: 1px solid rgba(0, 0, 0, 0.03);
        border-top: none !important;
        border-right: none !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -7px;
        top: 25px;
        bottom: auto;
    }
    
    /* 移除动画延迟，垂直滚动不需要左右波浪 */
    .timeline-item:nth-child(even).reveal-on-scroll {
        transition-delay: 0s;
    }
}

/* 企业文化 - 优化版 */

.culture-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.culture-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    opacity: 0;
    z-index: -1;
    transition: all 0.4s ease;
}

.culture-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 134, 255, 0.15);
}

.culture-card:hover::before {
    opacity: 1;
}

.culture-card:hover h3,
.culture-card:hover p {
    color: white;
}

.culture-icon-box {
    width: 70px;
    height: 70px;
    background: rgba(0, 134, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
}

.culture-card:hover .culture-icon-box {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: rotateY(360deg);
}

.culture-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.culture-card p {
    color: var(--secondary-color);
    margin-bottom: 0;
    transition: all 0.3s ease;
}

/* ---------------------------------------------------------
   通用组件与布局 (Shared across pages)
   --------------------------------------------------------- */

/* Bento Grid 布局 - 通用 */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 24px;
    margin-bottom: 50px;
}

.bento-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 134, 255, 0.08);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    padding: 30px;
    min-height: 240px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 134, 255, 0.12);
    border-color: rgba(0, 134, 255, 0.2);
}

.bento-item.large {
    grid-column: span 7;
}
.filter-tab:hover,
.filter-tab.active {
    background: var(--primary-color);
    color: white;
}

.case-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.case-image {
    position: relative;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.5s ease;
}

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

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 123, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.case-content {
    padding: 20px;
}

.case-category {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 134, 255, 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.case-content h3 {
    margin: 0 0 10px 0;
    color: var(--dark-color);
}

.case-content p {
    color: var(--secondary-color);
    margin: 0;
    font-size: 0.95rem;
}

.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    position: relative;
    margin-bottom: 20px;
}

.testimonial-content p {
    color: var(--secondary-color);
    font-style: italic;
    margin: 0;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 4rem;
    color: rgba(0, 123, 255, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

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

.author-info h4 {
    margin: 0 0 5px 0;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.author-info p {
    margin: 0;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* 开源项目页面 */

.opensource-intro {
    background: white;
}

.intro-content h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.intro-content p {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.intro-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.intro-list li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: var(--secondary-color);
}

.intro-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-links {
    text-align: right;
}

.project-content {
    padding: 20px;
}

.project-content p {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.project-features h4 {
    margin: 0 0 15px 0;
    color: var(--dark-color);
}

.project-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.project-features ul li {
    padding: 5px 0;
    color: var(--secondary-color);
}

.project-stats {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.stat-item {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
}

.stat-item i {
    margin-right: 5px;
    color: var(--primary-color);
}

.contribute-section {
    background: white;
}

.contribute-step {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
}

.contribute-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 20px;
}

.contribute-step h3 {
    margin: 0 0 15px 0;
    color: var(--dark-color);
}

.contribute-step p {
    color: var(--secondary-color);
    margin: 0;
}

.community-section {
    background: #f8f9fa;
}

.community-card {
    background: white;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.community-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 134, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.community-card h3 {
    margin: 0 0 15px 0;
    color: var(--dark-color);
}

.community-card p {
    color: var(--secondary-color);
    margin: 0 0 10px 0;
}

.community-info {
    font-weight: 500;
    color: var(--primary-color);
    margin: 0;
}

/* 联系我们页面 */

.contact-info-section {
    background: white;
}

.contact-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 134, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.contact-card h3 {
    margin: 0 0 15px 0;
    color: var(--dark-color);
}

.contact-card p {
    color: var(--secondary-color);
    margin: 0 0 10px 0;
}

.contact-form-section {
    background: #f8f9fa;
}

.contact-form {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
}

.form-control,
.form-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.map-section {
    background: white;
}

.map-container {
    height: 600px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.work-time-section {
    background: #f8f9fa;
}

.work-time-content p {
    font-size: 1.2rem;
    margin: 10px 0;
    color: var(--secondary-color);
}

/* 响应式设计已提取至对应组件样式文件 */

