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

/* === BANNER 区域 === */
.banner {
    position: relative;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
}

.banner-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--text-white);
}

.banner-title {
    font-size: 28px;
    font-weight: 400;
    line-height: 36px;
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-align: center;
}

.banner-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.banner-desc {
    font-size: 20px;
    font-weight: 400;
    line-height: 34px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.banner-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 14px;
}

.banner-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-normal);
}

.banner-breadcrumb a:hover {
    color: var(--text-white);
}

.separator {
    color: rgba(255, 255, 255, 0.6);
}

.current {
    color: var(--text-white);
    font-weight: 500;
}

.banner-btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--secondary-green);
    color: var(--text-white);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition-normal);
    text-decoration: none;
}

.banner-btn:hover {
    background: #219a52;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* === 公司介绍区域 === */
.company-intro {
    padding: 90px 0;
    background: var(--bg-white);
}

.intro-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
    min-height: 460px;
}

.intro-left {
    display: flex;
    flex-direction: column;
    max-width: 520px;
    width: 100%;
}

.intro-header {
    margin-bottom: 30px;
}

.intro-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.title-line {
    width: 520px;
    max-width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #60B83C 0%, #109AFC 100%);
    border-radius: 0px 0px 0px 0px;
    margin-bottom: 20px;
}

.intro-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brand-en {
    width: 300px;
    height: 60px;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    font-size: 48px;
    color: rgba(17,154,249,0.2);
    line-height: 60px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

.brand-cn {
    width: 360px;
    height: 36px;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #119AF9;
    line-height: 36px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

.intro-content {
    flex: 1;
}

.intro-text {
    width: 100%;
    max-width: 500px;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #1F2329;
    line-height: 26px;
    text-align: left;
    font-style: normal;
    text-transform: none;
    margin-bottom: 0;
    letter-spacing: -0.3px;
}

.intro-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-image {
    width: 100%;
    max-width: 580px;
}

.company-img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border-radius: 0;
    box-shadow: var(--shadow-large);
}

/* === 发展历程区域 === */
.development-history {
    padding: var(--section-padding);
    background-image: url('../images/pc/about/timeline-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 60px;
    position: relative;
}

.history-title-wrapper {
    display: flex;
    flex-direction: column;
    margin-left: 0;
    flex: 1;
    width: 100%;
}

.history-line {
    width: 100%;
    max-width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #60B83C 0%, #109AFC 100%);
    border-radius: 0px 0px 0px 0px;
    margin-top: 16px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-arrows {
    display: flex;
    gap: 10px;
    padding-top: 4px;
    transform: translateX(-16px);
    position: absolute;
    top: 0;
    right: 0;
}

.nav-arrow {
    width: 44px;
    height: 36px;
    background: var(--bg-white);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: none;
}

.nav-arrow:hover {
    background: var(--primary-blue);
    color: var(--text-white);
}

.history-bg {
    position: relative;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    height: 400px;
    background: transparent;
}

.history-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-timeline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.timeline-container {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: 100%;
    gap: 60px;
    transition: transform 0.3s ease;
}

/* Slightly indent the first milestone so its content and image are not flush to the edge */
.timeline-container .timeline-item:first-child {
    margin-left: 24px;
}

.timeline-item {
    --year-icon-size: 20px;
    --timeline-axis-offset: -8px;
    --timeline-image-height: 140px;
    --timeline-line-overlap: 4px;
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    color: var(--text-primary);
    width: 220px;
    max-width: 220px;
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-item:nth-child(odd) {
    transform: none;
}

/* 奇数位置项目的内容向上移动 */
.timeline-item:nth-child(odd) .timeline-year,
.timeline-item:nth-child(odd) .timeline-content {
    transform: translateY(-30px);
}

/* 奇数位置的竖线加长（从上面延长） */
.timeline-item:nth-child(odd) .timeline-line {
    height: calc(100% - var(--year-icon-size) - var(--timeline-image-height) + 40px + var(--timeline-line-overlap)) !important;
    top: calc(var(--year-icon-size) - var(--timeline-line-overlap) - 14px) !important;
}

/* 偶数位置的竖线稍微短一点（从上面减短） */
.timeline-item:nth-child(even) .timeline-line {
    height: calc(100% - var(--year-icon-size) - var(--timeline-image-height) - 17px + var(--timeline-line-overlap)) !important;
    top: calc(var(--year-icon-size) + 17px - var(--timeline-line-overlap)) !important;
}

.timeline-year {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition-normal);
    margin-left: 0;
}

.year-icon {
    width: var(--year-icon-size);
    height: var(--year-icon-size);
    border: 2px solid #1F2329;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: var(--transition-normal);
    margin-left: var(--timeline-axis-offset);
}

.year-dot {
    width: 8px;
    height: 8px;
    background: #1F2329;
    border-radius: 50%;
    transition: var(--transition-normal);
}

.year-text {
    font-size: 28px;
    font-weight: 700;
    color: #1F2329;
    transition: var(--transition-normal);
}

.timeline-year:hover .year-icon,
.timeline-year.active .year-icon {
    border-color: #119AF9;
}

.timeline-year:hover .year-dot,
.timeline-year.active .year-dot {
    background: #119AF9;
}

.timeline-year:hover .year-text,
.timeline-year.active .year-text {
    color: #119AF9;
}

/* Hover anywhere on a milestone (including the image) to highlight title and content */
.timeline-item:hover .year-text,
.timeline-item:hover .timeline-desc {
    color: #119AF9;
}

.timeline-item:hover .year-dot {
    background: #119AF9;
}

.timeline-item:hover .year-icon {
    border-color: #119AF9;
}

.timeline-content {
    margin-bottom: 20px;
    margin-left: calc(var(--timeline-axis-offset) + var(--year-icon-size) + 12px);
}

.timeline-line {
    position: absolute;
    width: 2px;
    height: calc(100% - var(--year-icon-size) - var(--timeline-image-height) + var(--timeline-line-overlap));
    background: #C8C8C8;
    left: calc(var(--timeline-axis-offset) + (var(--year-icon-size) / 2));
    top: calc(var(--year-icon-size) - var(--timeline-line-overlap));
    transition: var(--transition-normal);
}

.timeline-item:hover .timeline-line,
.timeline-item.active .timeline-line {
    background: #119AF9;
}

.timeline-desc {
    width: 200px;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #212121;
    line-height: 20px;
    text-align: left;
    font-style: normal;
    text-transform: none;
    word-wrap: break-word;
}

.timeline-image {
    width: 200px;
    height: var(--timeline-image-height);
    border-radius: 0;
    overflow: hidden;
    align-self: flex-start;
    margin-left: calc(var(--timeline-axis-offset) + (var(--year-icon-size) / 2));
    position: relative;
}

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

/* === 企业文化区域 === */
.corporate-culture {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.corporate-culture .section-title {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    color: #1F2329;
    margin: 0 0 20px;
}

.culture-layout {
    display: flex;
    flex-direction: column;
}

.culture-left {
    margin-bottom: 40px;
}

.culture-image {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    height: 380px;
}

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

.culture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(52, 152, 219, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.culture-quote {
    text-align: center;
    color: var(--text-white);
    max-width: 600px;
    padding: 40px;
    position: relative;
    z-index: 2;
}

.quote-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
}

.quote-text {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.95;
}

.culture-nav {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    z-index: 2;
}

.culture-nav-btn {
    width: 56px;
    height: 56px;
    background: transparent;
    color: #FFFFFF;
    border: none;
    border-radius: 0;
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition-normal);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.culture-nav-btn:hover {
    transform: translateY(-2px);
}

/* === 企业优势区域 === */
.corporate-advantages {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.advantage-item {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-small);
    transition: var(--transition-normal);
    position: relative;
    cursor: pointer;
    overflow: visible;
}

.advantage-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.advantage-item::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FFEE57 0%, #79AA63 100%), linear-gradient(90deg, #60B83C 0%, #109AFC 100%);
    border-radius: 0;
    transition: width 0.3s ease;
}

.advantage-item:hover::after,
.advantage-item.active::after {
    width: min(473px, 100%);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon .icon {
    width: 40px;
    height: 40px;
}

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

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

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

/* === 企业荣誉区域 === */
.corporate-honors {
    padding: var(--section-padding);
    background: #F9F9F9;
}

.honors-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.honors-carousel {
    position: relative;
    overflow: hidden;
}

.honors-container {
    display: flex;
    gap: 40px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    transition: transform 0.3s ease;
}

.honor-item {
    flex: 0 0 250px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-normal);
    position: relative;
    cursor: pointer;
    overflow: visible;
}

.honor-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

.honor-item::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FFEE57 0%, #79AA63 100%), linear-gradient(90deg, #60B83C 0%, #109AFC 100%);
    border-radius: 0;
    transition: width 0.3s ease;
}

.honor-item:hover::after,
.honor-item.active::after {
    width: 100%;
}

.honor-img {
    width: 150px;
    height: 200px;
    object-fit: contain;
    margin: 0 auto 20px;
}

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

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

.honor-year {
    font-size: 14px;
    color: var(--text-secondary);
}

/* === 响应式设计 === */
@media (max-width: 1024px) {
    .company-intro {
        padding: var(--section-padding);
    }

    .intro-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        min-height: auto;
    }
    
    .intro-right {
        order: -1;
    }

    .intro-left {
        max-width: 100%;
    }

    .intro-text {
        max-width: 100%;
    }

    .intro-image {
        max-width: 100%;
    }

    .company-img {
        height: auto;
        min-height: 0;
    }

    .nav-arrows {
        position: static;
        transform: none;
        padding-top: 0;
    }
    
    .timeline-container {
        flex-direction: column;
        gap: 30px;
        transform: none !important;
    }
    
    .timeline-item {
        --year-icon-size: 18px;
        --timeline-axis-offset: -6px;
        --timeline-image-height: 70px;
        max-width: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 12px;
        transform: none;
    }
    
    .timeline-year {
        font-size: 24px;
        margin-bottom: 4px;
        width: auto;
    }
    
    .timeline-image {
        width: 120px;
        height: var(--timeline-image-height);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .honors-container {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .honor-item {
        flex: 0 0 300px;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 300px;
    }
    
    .banner-title {
        font-size: 36px;
    }
    
    .banner-subtitle {
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .intro-title {
        font-size: 28px;
    }
    
    .brand-en {
        font-size: 20px;
    }
    
    .brand-cn {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .history-timeline {
        padding: 0 30px;
    }
    
    .timeline-item {
        --year-icon-size: 18px;
        --timeline-axis-offset: -4px;
        --timeline-image-height: 60px;
        transform: none;
    }
    
    .timeline-year {
        font-size: 20px;
        width: auto;
    }
    
    .timeline-title {
        font-size: 16px;
    }
    
    .timeline-desc {
        font-size: 12px;
    }
    
    .timeline-image {
        width: 100px;
        height: var(--timeline-image-height);
    }
    
    .culture-image {
        height: 300px;
    }

    .culture-nav {
        display: none;
    }
    
    .quote-title {
        font-size: 24px;
    }
    
    .quote-text {
        font-size: 16px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .advantage-item {
        padding: 20px;
    }
    
    .advantage-icon {
        width: 60px;
        height: 60px;
    }
    
    .advantage-icon .icon {
        width: 30px;
        height: 30px;
    }
    
    .honor-item {
        flex: 0 0 280px;
        padding: 20px;
    }
    
    .honor-img {
        width: 120px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .banner-breadcrumb {
        flex-direction: column;
        gap: 4px;
    }
    
    .banner-breadcrumb .separator {
        display: none;
    }
    
    .history-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-arrows {
        order: -1;
    }
    
    .timeline-item {
        --year-icon-size: 16px;
        --timeline-axis-offset: -2px;
        --timeline-image-height: 60px;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 12px;
        transform: none;
    }
    
    .timeline-year {
        width: auto;
    }
    
    .honors-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .honor-item {
        flex: 0 0 250px;
    }
}
