/* ==========================================================================
   关于我们页面样式
   ========================================================================== */

/* 全局变量 */
:root {
    --primary-color: #1890ff;
    --primary-hover: #0070e0;
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #999;
    --border-color: #e8e8e8;
    --bg-gray: #f5f5f5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Body 样式 */
.about-page {
    background-color: #fff;
}

/* ==========================================================================
   页面头部
   ========================================================================== */

.about-hero {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
}

.about-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, 0.05) 35px, rgba(255, 255, 255, 0.05) 70px);
    animation: hero-bg-move 3s linear infinite;
}

@keyframes hero-bg-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(70px); }
}

.about-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.about-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: 2px;
}

.about-hero-title a {
    color: #fff;
    text-decoration: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s;
}

.about-hero-title a:hover {
    opacity: 0.85;
}

.about-hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    margin: 0 0 20px;
    opacity: 0.9;
    letter-spacing: 4px;
}

.about-hero-subtitle a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.about-hero-subtitle a:hover {
    opacity: 0.8;
}

.about-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.9;
}

.about-breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.about-breadcrumb a:hover {
    opacity: 0.8;
}

.about-breadcrumb .separator {
    opacity: 0.6;
}

.about-breadcrumb .current {
    opacity: 0.8;
}

/* ==========================================================================
   公司介绍
   ========================================================================== */

.about-intro {
    padding: 80px 0;
    background-color: #fff;
}

.intro-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.intro-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 30px;
    position: relative;
}

.intro-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.intro-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px;
    line-height: 1.4;
}

.intro-slogan {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 500;
    margin: 0;
}

.intro-content {
    font-size: 16px;
    line-height: 2;
    color: var(--text-secondary);
}

/* 富文本内容样式 */
.intro-content p {
    margin: 0 0 24px;
    text-indent: 2em;
}

.intro-content p:last-child {
    margin-bottom: 0;
}

.intro-content h1,
.intro-content h2,
.intro-content h3,
.intro-content h4,
.intro-content h5,
.intro-content h6 {
    color: var(--text-primary);
    margin: 32px 0 16px;
    line-height: 1.5;
    font-weight: 600;
}

.intro-content h1 { font-size: 28px; }
.intro-content h2 { font-size: 24px; }
.intro-content h3 { font-size: 20px; }
.intro-content h4 { font-size: 18px; }

.intro-content ul,
.intro-content ol {
    margin: 16px 0;
    padding-left: 2em;
    list-style-position: outside;
}

.intro-content ul {
    list-style-type: disc;
}

.intro-content ol {
    list-style-type: decimal;
}

.intro-content li {
    margin: 8px 0;
}

.intro-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.intro-content a:hover {
    border-bottom-color: var(--primary-color);
}

.intro-content img {
    max-width: 100%;
    height: auto;
    margin: 24px auto;
    display: block;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.intro-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    background: var(--bg-gray);
    border-left: 4px solid var(--primary-color);
    color: var(--text-secondary);
    font-style: italic;
}

.intro-content code {
    padding: 2px 6px;
    background: var(--bg-gray);
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.intro-content pre {
    margin: 24px 0;
    padding: 16px;
    background: #f6f8fa;
    border-radius: 6px;
    overflow-x: auto;
}

.intro-content pre code {
    padding: 0;
    background: none;
}

/* ==========================================================================
   站点风采
   ========================================================================== */

.about-gallery {
    padding: 80px 0 100px;
    background: linear-gradient(to bottom, #fff 0%, var(--bg-gray) 100%);
}

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

.gallery-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
}

.gallery-subtitle {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 300;
    margin: 0;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* 时间轴容器 */
.gallery-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

/* 中间线 */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--primary-color) 10%, 
        var(--primary-color) 90%, 
        transparent 100%
    );
    transform: translateX(-50%);
}

/* 时间轴项目 */
.timeline-item {
    position: relative;
    width: 45%;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.timeline-right {
    margin-left: auto;
    text-align: left;
}

.timeline-left {
    margin-right: auto;
    text-align: right;
}

/* 时间轴圆点 */
.timeline-dot {
    position: absolute;
    top: 30px;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(24, 144, 255, 0.1);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-right .timeline-dot {
    left: -58px;
}

.timeline-left .timeline-dot {
    right: -58px;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(24, 144, 255, 0.2);
}

/* 时间轴卡片 */
.timeline-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.timeline-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.timeline-image {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background: var(--bg-gray);
    cursor: pointer;
}

.timeline-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.timeline-card:hover .timeline-image img {
    transform: scale(1.08);
}

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

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

.view-icon {
    color: #fff;
    animation: icon-pulse 1.5s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.timeline-content {
    padding: 16px 20px;
}

.timeline-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.timeline-right .timeline-date {
    justify-content: flex-start;
}

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

/* ==========================================================================
   图片放大查看（Lightbox）
   ========================================================================== */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lightbox-zoom-in 0.3s ease;
}

@keyframes lightbox-zoom-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.lightbox-loading {
    color: #fff;
    font-size: 18px;
}

/* ==========================================================================
   响应式设计 - 平板
   ========================================================================== */

@media (max-width: 1024px) {
    .about-hero {
        height: 250px;
    }
    
    .about-hero-title {
        font-size: 40px;
    }
    
    .intro-title {
        font-size: 32px;
    }
    
    .gallery-title {
        font-size: 32px;
    }
}

/* ==========================================================================
   响应式设计 - 手机
   ========================================================================== */

@media (max-width: 768px) {
    .about-hero {
        height: 200px;
    }
    
    .about-hero-title {
        font-size: 32px;
        margin-bottom: 8px;
    }
    
    .about-hero-subtitle {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .about-intro {
        padding: 50px 0;
    }
    
    .intro-header {
        margin-bottom: 40px;
        padding-bottom: 20px;
    }
    
    .intro-title {
        font-size: 28px;
    }
    
    .intro-slogan {
        font-size: 16px;
    }
    
    .intro-content {
        font-size: 15px;
        line-height: 1.8;
    }
    
    .about-gallery {
        padding: 50px 0 60px;
    }
    
    .gallery-header {
        margin-bottom: 40px;
    }
    
    .gallery-title {
        font-size: 28px;
    }
    
    .gallery-subtitle {
        font-size: 14px;
    }
    
    /* 移动端时间轴改为单列 */
    .timeline-line {
        left: 30px;
    }
    
    .timeline-item,
    .timeline-left,
    .timeline-right {
        width: 100%;
        margin-left: 60px;
        margin-right: 0;
        text-align: left;
    }
    
    .timeline-item {
        margin-bottom: 40px;
    }
    
    .timeline-right .timeline-dot,
    .timeline-left .timeline-dot {
        left: -44px;
        right: auto;
    }
    
    .timeline-right .timeline-date,
    .timeline-left .timeline-date {
        justify-content: flex-start;
    }
    
    .timeline-content {
        padding: 12px 16px;
    }
    
    .timeline-date {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .about-hero-title {
        font-size: 28px;
    }
    
    .intro-title {
        font-size: 24px;
    }
    
    .gallery-title {
        font-size: 24px;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-left,
    .timeline-right {
        margin-left: 50px;
    }
    
    .timeline-right .timeline-dot,
    .timeline-left .timeline-dot {
        left: -34px;
    }
    
    /* Lightbox 移动端优化 */
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
    }
}

/* ==========================================================================
   打印样式
   ========================================================================== */

@media print {
    .about-hero {
        background: #1890ff;
        height: auto;
        padding: 30px 0;
    }
    
    .about-hero-bg {
        display: none;
    }
    
    .timeline-line,
    .timeline-dot {
        display: none;
    }
    
    .timeline-item {
        width: 100%;
        margin: 0 0 30px;
        page-break-inside: avoid;
    }
    
    .timeline-card {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}

