/* ===================================================
   Maxta History Page - 发展历程页面样式
   专业的时间线设计,展示16年技术演进之路
   =================================================== */

/* ===== CSS Variables ===== */
:root {
    --primary-blue: #3B82F6;
    --light-blue: #EFF6FF;
    --white: #FFFFFF;
    --black: #1F2937;
    --medium-gray: #6B7280;
    --light-gray: #F3F4F6;
}

/* ===== Base Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* ===== General Section Styles ===== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-badge i {
    width: 16px;
    height: 16px;
}

.section-title-main {
    font-size: 40px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-desc-main {
    font-size: 18px;
    color: var(--medium-gray);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.subsection-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 32px;
    text-align: center;
}

/* ===== Hero Section ===== */
.history-hero {
    position: relative;
    padding: var(--space-xxl) 0 var(--space-xl);
    background: linear-gradient(135deg, #F8FAFB 0%, #E8F0FF 100%);
    overflow: hidden;
    margin-top: 0;
}

.history-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(46, 91, 186, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 91, 186, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
    z-index: 0;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.history-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.history-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
}

.history-hero-badge i {
    width: 18px;
    height: 18px;
}

.history-hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 24px;
    line-height: 1.2;
}

.history-hero-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--medium-gray);
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.history-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.history-stat-item {
    text-align: center;
}

.history-stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.history-stat-label {
    font-size: 14px;
    color: var(--medium-gray);
    font-weight: 500;
}

/* ===== Timeline Section ===== */
.history-timeline-section {
    padding: 80px 0;
    background: var(--white);
}

.history-timeline {
    position: relative;
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 40px 0;
}

.history-timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, 
        transparent 0%,
        #E5E7EB 5%,
        #3B82F6 50%,
        #E5E7EB 95%,
        transparent 100%
    );
    transform: translateX(-50%);
}

.history-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.history-timeline-item.history-animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 左侧时间线 */
.history-timeline-left .history-timeline-content {
    grid-column: 1;
    text-align: right;
}

.history-timeline-left .history-timeline-marker {
    grid-column: 2;
}

/* 右侧时间线 */
.history-timeline-right .history-timeline-content {
    grid-column: 3;
    text-align: left;
}

.history-timeline-right .history-timeline-marker {
    grid-column: 2;
}

.history-timeline-marker {
    position: relative;
    display: flex;
    align-items: flex-start;
    padding-top: 12px;
}

.history-timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--white);
    border: 3px solid var(--primary-blue);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.history-timeline-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--primary-blue);
    border-radius: 50%;
}

.history-dot-pulse {
    animation: history-pulse 2s ease-in-out infinite;
}

@keyframes history-pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.2), 0 0 0 16px rgba(59, 130, 246, 0.1);
    }
}

.history-year-badge {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.history-timeline-card {
    background: var(--white);
    padding: 28px;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.history-timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

.history-timeline-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #60A5FA 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 16px;
}

.history-timeline-icon i {
    width: 24px;
    height: 24px;
}

.history-timeline-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 12px;
    line-height: 1.4;
}

.history-timeline-card p {
    font-size: 15px;
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 16px;
}

.history-timeline-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.history-timeline-left .history-timeline-tags {
    justify-content: flex-end;
}

.history-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #F0F9FF;
    color: var(--primary-blue);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #DBEAFE;
}

/* 特殊卡片样式 */
.history-card-highlight {
    background: linear-gradient(135deg, #F0F9FF 0%, #DBEAFE 100%);
    border-color: var(--primary-blue);
}

.history-card-major {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-color: #F59E0B;
}

.history-card-major .history-year-badge {
    background: #F59E0B;
}

.history-card-major .history-timeline-icon {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
}

.history-card-future {
    background: linear-gradient(135deg, #F3E8FF 0%, #E9D5FF 100%);
    border-color: #9333EA;
}

.history-card-future .history-year-badge {
    background: #9333EA;
}

.history-card-future .history-timeline-icon {
    background: linear-gradient(135deg, #9333EA 0%, #A855F7 100%);
}

/* ===== Achievements Section ===== */
.history-achievements-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #F8FAFB 0%, #EFF6FF 100%);
}

.history-achievement-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.history-achievement-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.history-achievement-card.history-animate-in {
    opacity: 1;
    transform: translateY(0);
}

.history-achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

.history-achievement-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--light-blue) 0%, #DBEAFE 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    margin: 0 auto 20px;
}

.history-achievement-icon i {
    width: 32px;
    height: 32px;
}

.history-achievement-year {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.history-achievement-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
    line-height: 1.4;
}

.history-achievement-card p {
    font-size: 13px;
    color: var(--medium-gray);
    line-height: 1.5;
}

.history-achievement-card.history-card-highlight {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-color: #F59E0B;
}

.history-achievement-card.history-card-highlight .history-achievement-icon {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #F59E0B;
}

.history-achievement-card.history-card-highlight .history-achievement-year {
    color: #F59E0B;
}

/* ===== Funding Section ===== */
.history-funding-section {
    padding: 80px 0;
    background: var(--white);
}

.history-funding-timeline {
    position: relative;
    margin-top: 48px;
    padding: 40px 0;
}

.history-funding-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 80px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        #E5E7EB 5%,
        var(--primary-blue) 50%,
        #E5E7EB 95%,
        transparent 100%
    );
}

.history-funding-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    position: relative;
}

.history-funding-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    border: 2px solid #E5E7EB;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.history-funding-card.history-animate-in {
    opacity: 1;
    transform: translateY(0);
}

.history-funding-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

.history-funding-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--light-blue) 0%, #DBEAFE 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    margin: 0 auto 20px;
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.1);
}

.history-funding-icon i {
    width: 28px;
    height: 28px;
}

.history-funding-year {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.history-funding-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.history-funding-card p {
    font-size: 14px;
    color: var(--medium-gray);
    margin-bottom: 12px;
}

.history-funding-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--light-blue);
    color: var(--primary-blue);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.history-funding-amount {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: var(--white);
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    margin-top: 8px;
}

.history-funding-card.history-card-current {
    background: linear-gradient(135deg, #F0F9FF 0%, #DBEAFE 100%);
    border-color: var(--primary-blue);
    border-width: 3px;
}

.history-funding-card.history-card-current .history-funding-icon {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #60A5FA 100%);
    color: var(--white);
    animation: history-pulse 2s ease-in-out infinite;
}

.history-funding-summary {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid #E5E7EB;
}

.history-funding-stat {
    text-align: center;
}

/* ===== Tech Evolution Section ===== */
.history-tech-evolution {
    padding: 40px 0;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
}

.history-tech-evolution .section-title-main,
.history-tech-evolution .section-desc-main {
    color: var(--white);
}

.history-tech-stages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.history-tech-stage {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.history-tech-stage:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.history-tech-stage-header {
    margin-bottom: 12px;
}

.history-tech-year {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.history-tech-stage h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.history-tech-stage-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 12px;
}

.history-tech-stage-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-tech-stage-content li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.history-tech-stage-content li i {
    width: 20px;
    height: 20px;
    color: #10B981;
    flex-shrink: 0;
}

.history-stage-current {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: var(--primary-blue);
    border-width: 2px;
}

.history-stage-current .history-tech-year {
    background: var(--primary-blue);
    color: var(--white);
}

/* ===== CTA Section ===== */
.history-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1E40AF 100%);
    position: relative;
    overflow: hidden;
}

.history-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.history-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.history-cta-content h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.history-cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.history-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ===== Button Styles ===== */
.maxta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.maxta-btn i {
    width: 20px;
    height: 20px;
}

.maxta-btn-primary {
    background: var(--white);
    color: var(--primary-blue);
}

.maxta-btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.maxta-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.maxta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.maxta-btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

.maxta-btn-lg i {
    width: 22px;
    height: 22px;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .history-hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .history-timeline-line {
        left: 40px;
        transform: none;
    }

    .history-timeline-item {
        grid-template-columns: auto 1fr;
        gap: 24px;
    }

    .history-timeline-left .history-timeline-content,
    .history-timeline-right .history-timeline-content {
        grid-column: 2;
        text-align: left;
    }

    .history-timeline-left .history-timeline-marker,
    .history-timeline-right .history-timeline-marker {
        grid-column: 1;
    }

    .history-timeline-left .history-timeline-tags,
    .history-timeline-right .history-timeline-tags {
        justify-content: flex-start;
    }

    .history-achievement-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .history-funding-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .history-tech-stages {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .history-hero {
        padding: 80px 0 60px;
    }

    .history-hero-title {
        font-size: 32px;
    }

    .history-hero-description {
        font-size: 16px;
    }

    .history-hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .history-stat-number {
        font-size: 36px;
    }

    .history-timeline-section {
        padding: 60px 0;
    }

    .history-timeline-line {
        left: 24px;
    }

    .history-timeline-item {
        margin-bottom: 40px;
    }

    .history-timeline-card {
        padding: 20px;
    }

    .history-timeline-card h3 {
        font-size: 18px;
    }

    .history-achievement-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .history-funding-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .history-funding-line {
        display: none;
    }

    .history-funding-summary {
        gap: 40px;
        flex-wrap: wrap;
    }

    .history-cta-content h2 {
        font-size: 32px;
    }

    .history-cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .history-hero-stats {
        grid-template-columns: 1fr;
    }

    .history-achievement-grid,
    .history-funding-cards {
        grid-template-columns: 1fr;
    }

    .history-funding-summary {
        flex-direction: column;
        gap: 24px;
    }
}

/* ===== Animations ===== */
@keyframes history-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}