/**
 * 关于我们页面样式
 * About Page Styles
 * 
 * @package Saifeng
 * @since 1.2.0
 */

/* ===== INTRO SECTION ===== */
.intro-section {
    /* background set via inline style */
    background: var(--white);
}

.intro-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.intro-title {
    font-size: 36px;
    color: var(--dark-blue);
    margin: 16px 0 28px;
    text-transform: none;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
}

.intro-text {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.9;
    margin-bottom: 20px;
}

.intro-stats {
    display: flex;
    gap: 48px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

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

.stat-number {
    display: block;
    font-size: 42px;
    font-weight: 700;
    color: var(--electric-blue);
    font-family: 'Oswald', sans-serif;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--gray-600);
    margin-top: 4px;
}

.intro-visual {
    position: relative;
}

.intro-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
}

.intro-image img {
    width: 100%;
    height: auto;
    min-height: 350px;
    max-height: 550px;
    object-fit: cover;
    display: block;
}

.intro-image video {
    width: 100%;
    height: auto;
    min-height: 350px;
    display: block;
    border-radius: 20px;
}

.intro-video-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(30, 80, 230, 0.4);
    z-index: 10;
}

.intro-video-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
    stroke: none;
}

.intro-video-btn span {
    font-size: 14px;
    font-weight: 600;
}

.intro-video-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 15px 40px rgba(30, 80, 230, 0.5);
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 80px;
    /* background removed - now set dynamically via inline style */
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    position: relative;
    z-index: 10;
}

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

.stat-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--cyan-glow);
    stroke-width: 1.5;
    fill: none;
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    font-family: 'Oswald', sans-serif;
}

.stat-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

/* ===== TIMELINE SECTION ===== */
.timeline-section {
    background: var(--gray-100);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--electric-blue), var(--cyan-glow));
}

.timeline-item {
    display: flex;
    gap: 60px;
    margin-bottom: 48px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
    text-align: right;
}

.timeline-item:nth-child(odd) .timeline-content {
    padding-right: 60px;
}

.timeline-item:nth-child(even) .timeline-content {
    padding-left: 60px;
}

.timeline-year {
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 48px;
    font-weight: 700;
    color: var(--electric-blue);
    font-family: 'Oswald', sans-serif;
    opacity: 0.3;
}

.timeline-item:nth-child(odd) .timeline-year {
    justify-content: flex-start;
}

.timeline-item:nth-child(even) .timeline-year {
    justify-content: flex-end;
}

.timeline-content {
    flex: 1;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 10px;
    width: 16px;
    height: 16px;
    background: var(--electric-blue);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--gray-100), 0 0 0 6px var(--electric-blue);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -68px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -68px;
}

.timeline-content h3 {
    font-size: 22px;
    color: var(--dark-blue);
    margin-bottom: 12px;
    text-transform: none;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
}

.timeline-content p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===== ADVANTAGES SECTION ===== */
.advantages-section {
    background: var(--white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.advantage-card,
.advantage-item {
    text-align: center;
    padding: 40px 28px;
    background: var(--gray-100);
    border-radius: 20px;
    transition: all 0.4s ease;
}

.advantage-card:hover,
.advantage-item:hover {
    background: var(--white);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(30, 80, 230, 0.12);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(30, 80, 230, 0.1), rgba(0, 212, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--electric-blue);
    stroke-width: 1.5;
    fill: none;
}

.advantage-title {
    font-size: 20px;
    color: var(--dark-blue);
    margin-bottom: 12px;
    text-transform: none;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
}

.advantage-desc {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===== CERTIFICATES SECTION ===== */
.certificates-section {
    background: var(--gray-100);
}

.cert-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cert-item {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
}

.cert-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(30, 80, 230, 0.12);
}

.cert-item-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.cert-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cert-item:hover .cert-item-image img {
    transform: scale(1.1);
}

.cert-item-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cert-item:hover .cert-item-zoom {
    opacity: 1;
}

.cert-item-zoom svg {
    width: 22px;
    height: 22px;
    stroke: var(--white);
    stroke-width: 2;
    fill: none;
}

.cert-item-content {
    padding: 20px;
}

.cert-item-title {
    font-size: 16px;
    color: var(--dark-blue);
    margin-bottom: 6px;
    text-transform: none;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
}

.cert-item-desc {
    font-size: 13px;
    color: var(--gray-600);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: var(--gray-100);
}

/* 联系信息卡片网格 */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.contact-info-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

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

.contact-info-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-info-icon {
    background: var(--electric-blue);
}

.contact-info-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--electric-blue);
    transition: stroke 0.3s ease;
}

.contact-info-card:hover .contact-info-icon svg {
    stroke: var(--white);
}

.contact-info-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.contact-info-value {
    font-size: 15px;
    line-height: 1.6;
    color: var(--dark-blue);
}

.contact-info-value a {
    color: var(--electric-blue);
    text-decoration: none;
}

.contact-info-value a:hover {
    text-decoration: underline;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-desc {
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-item-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(30, 80, 230, 0.1), rgba(0, 212, 255, 0.1));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--electric-blue);
    stroke-width: 1.5;
    fill: none;
}

.contact-item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-item-label {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.contact-item-value {
    font-size: 15px;
    color: var(--dark-blue);
    font-weight: 500;
    line-height: 1.6;
}

.contact-map {
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.contact-map-placeholder svg {
    width: 48px;
    height: 48px;
    stroke: var(--electric-blue);
    stroke-width: 1.5;
    fill: none;
}

.contact-map-placeholder span {
    font-size: 15px;
    color: var(--gray-600);
}

/* ===== VIDEO MODAL ===== */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-modal-close svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
    stroke-width: 2;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.video-modal-content {
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
}

.video-modal-content iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .intro-wrapper {
        gap: 60px;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .advantages-grid,
    .cert-gallery,
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .intro-wrapper {
        grid-template-columns: 1fr;
    }
    
    .intro-visual {
        order: -1;
    }
    
    .intro-stats {
        justify-content: flex-start;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: column;
        text-align: left;
        padding-left: 80px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        padding-left: 0;
        padding-right: 0;
    }
    
    .timeline-year {
        font-size: 36px;
        opacity: 1;
    }
    
    .timeline-item:nth-child(odd) .timeline-year,
    .timeline-item:nth-child(even) .timeline-year {
        justify-content: flex-start;
    }
    
    .timeline-content::before {
        left: -58px !important;
        right: auto !important;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .stats-section {
        padding: 60px 20px;
    }
    
    .stat-value {
        font-size: 36px;
    }
    
    .advantages-grid,
    .cert-gallery,
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .intro-stats {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 20px;
        justify-content: flex-start;
    }
    
    .intro-stat {
        text-align: left;
        flex-shrink: 0;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 12px;
        white-space: nowrap;
    }
    
    .intro-image img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .intro-title {
        font-size: 28px;
    }
    
    .intro-video-btn {
        padding: 14px 24px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(odd) {
        padding-left: 50px;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-content::before {
        left: -43px !important;
    }
    
    .advantage-card {
        padding: 28px 20px;
    }
}
