/* =========================
   动画定义
========================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-2rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(2rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-delay-100 {
    animation-delay: 0.1s;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

.animate-delay-300 {
    animation-delay: 0.3s;
}

.animate-delay-400 {
    animation-delay: 0.4s;
}

.animate-delay-500 {
    animation-delay: 0.5s;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(2rem);
    transition: all 0.8s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-2rem);
    transition: all 0.8s ease-out;
}

.scroll-animate-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(2rem);
    transition: all 0.8s ease-out;
}

.scroll-animate-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* =========================
   页面标题样式
========================= */
.page-header {
    background: #666 url('../images/nbanner.jpg') center/cover no-repeat;
    padding: calc(5rem + 3vw) 5% calc(2.5rem + 1vw);
    min-height: 28.125rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.page-header-inner {
    max-width: 100rem;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.page-header-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 0.625rem 0;
    letter-spacing: 0.125rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1.5rem 0;
}

.page-header-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* =========================
   公司简介样式
========================= */
.company-section {
    padding: 5rem 5%;
    background: #fff;
}

.company-container {
    max-width: 100rem;
    margin: 0 auto;
}

.company-header {
    margin-bottom: 3.75rem;
}

.company-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.9375rem;
}

.company-content {
    display: flex;
    gap: 5rem;
    align-items: flex-start;
}

.company-text {
    flex: 1;
    max-width: 50%;
}

.company-text p {
    font-size: 1rem;
    color: #666;
    line-height: 1.9;
    margin-bottom: 1.875rem;
    text-align: justify;
}

.company-stats {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding: 0;
}

.company-stats .stat-item {
    flex: 1;
    background: transparent;
    padding: 1rem 0;
    text-align: left;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.company-stats .stat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, #005AAA, #eee);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.company-stats .stat-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #eee;
    transition: opacity 0.3s ease;
}

.company-stats .stat-item:hover {
    transform: translateY(-3px);
}

.company-stats .stat-item:hover::after {
    opacity: 1;
}

.company-stats .stat-item:hover::before {
    opacity: 0;
}

.company-stats .stat-item .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #005AAA;
    margin-bottom: 0.25rem;
}

.company-stats .stat-item p {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0;
    transition: none;
}

.company-image {
    flex: 1;
    max-width: 50%;
}

.company-image .image-placeholder {
    width: 100%;
    height: 31.25rem;
    background: #e8e8e8;
    border-radius: 0;
}

.company-image .company-img {
    width: 100%;
    height: 31.25rem;
    object-fit: cover;
    border-radius: 0;
}

/* =========================
   企业使命样式
========================= */
.mission-section {
    padding: 0;
    margin: 0;
}

.mission-bg {
    background: #fff;
    position: relative;
    padding: 6.25rem 5%;
}

.mission-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/qiyeyuanjing02.png') center bottom / cover no-repeat;
    opacity: 0.15;
    z-index: 1;
}

.mission-container {
    max-width: 100rem;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.mission-header {
    text-align: center;
    margin-bottom: 3.75rem;
}

.mission-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.mission-content {
    padding: 2rem 0;
}

.culture-main {
    text-align: center;
}

.culture-title {
    margin-bottom: 2.5rem;
}

.culture-title-line {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.6;
}

.culture-desc {
    max-width: 50rem;
    margin: 0 auto 3rem;
}

.culture-desc p {
    font-size: 0.9375rem;
    color: #666;
    line-height: 2;
    margin: 0 0 0.75rem 0;
}

.culture-desc p:last-child {
    margin-bottom: 0;
}

.culture-image {
    margin-top: 2rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.culture-image img {
    width: 100%;
    height: 31rem;
    object-fit: cover;
    display: block;
}

.mission-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.mission-item h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.25rem;
}

.mission-item p {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.8;
    text-align: justify;
}

/* =========================
   荣誉资质样式
========================= */
.honor-section {
    padding: 5rem 5%;
    background: #fff;
}

.honor-container {
    max-width: 100rem;
    margin: 0 auto;
}

.honor-header {
    margin-bottom: 3.75rem;
}

.honor-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.9375rem;
}

.honor-scroll-container {
    overflow: hidden;
    margin-bottom: 2.5rem;
    position: relative;
    width: 100%;
    padding: 1.5rem 0;
}

.honor-scroll-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease-out;
}

.honor-card {
    background: #fff;
    border: 0.0625rem solid #eee;
    border-radius: 0.5rem;
    padding: 1.25rem;
    text-align: center;
    flex-shrink: 0;
    width: calc(25% - 1.5rem);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    transform: translateY(0);
    transition-delay: 0.15s;
    position: relative;
}

.honor-card:hover {
    box-shadow: 0 0.9375rem 2.5rem rgba(0, 90, 170, 0.1);
    border-color: #005AAA;
    transform: translateY(-0.375rem);
}

.honor-img {
    width: 100%;
    height: 13rem;
    background: #fff;
    border-radius: 0.25rem;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    transition: transform 0.4s ease;
}

.honor-card:hover .honor-img {
    transform: scale(1.05);
}

.honor-name {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.honor-card:hover .honor-name {
    color: #005AAA;
}

.honor-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.625rem;
}

.honor-name {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0;
}

.honor-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.honor-dots .dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.honor-dots .dot.active {
    width: 1.25rem;
    border-radius: 0.25rem;
    background: #005AAA;
}

.honor-dots .dot:hover {
    background: #005AAA;
}

/* =========================
   发展历程样式
========================= */
.history-section {
    padding: 7.5rem 5%;
    background: #666 url('../images/fazhanlicheng.jpg') center/cover no-repeat;
    position: relative;
}

.history-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.history-container {
    max-width: 100rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.history-header {
    margin-bottom: 3rem;
    text-align: left;
}

.history-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.timeline {
    position: relative;
    padding: 0;
}

.timeline-main {
    text-align: center;
    margin-bottom: 4rem;
}

.timeline-year-large {
    font-size: 6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 1rem;
}

.timeline-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    max-width: 40rem;
    margin: 0 auto;
}

.timeline-bar {
    position: relative;
    padding: 0.5rem 0;
    height: 5rem;
}

.timeline-line {
    position: absolute;
    top: 1rem;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
}

.timeline-items {
    display: flex;
    justify-content: center;
    gap: 6.5rem;
    position: relative;
    z-index: 2;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.timeline-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #fff;
    border: 0.1875rem solid #fff;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.timeline-dot.active {
    background: #005AAA;
    border-color: #fff;
    transform: scale(1.3);
    box-shadow: 0 0 1.5rem rgba(0, 90, 170, 0.5);
}

.timeline-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.timeline-item .year {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.timeline-item:hover .year {
    color: #fff;
}

.timeline-item .year.active {
    color: #fff;
}

.timeline-arrow {
    position: absolute;
    top: 1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 3;
    transform: translateY(-50%);
    border: none;
    outline: none;
    box-shadow: none;
}

.timeline-arrow svg {
    width: 0.875rem;
    height: 0.875rem;
    stroke: #333;
    fill: none;
}

.timeline-arrow:hover {
    background: #f0f0f0;
}

.timeline-arrow:active {
    background: #e0e0e0;
}

.timeline-arrow:focus {
    outline: none;
}

.timeline-arrow-left {
    left: 0;
}

.timeline-arrow-right {
    right: 0;
}

/* =========================
   导航激活状态样式
========================= */
.menu-item.active > a {
    color: #005AAA;
}

.menu-item.active .nav-arrow path {
    stroke: #005AAA;
}

/* =========================
   响应式样式
========================= */
@media (max-width: 75rem) {
    .company-content {
        flex-direction: column;
        gap: 2.5rem;
    }

    .company-text,
    .company-image {
        max-width: 100%;
    }
    
    .company-image {
        max-width: 100%;
    }
    
    .mission-content {
        flex-direction: column;
        gap: 2.5rem;
        padding: 2.5rem 1.875rem;
    }
    
    .honor-card {
        width: calc(50% - 1rem);
    }
    
    .timeline-year-large {
        font-size: 5rem;
    }
}

@media (max-width: 48rem) {
    .breadcrumb {
        padding: 6.875rem 3% 0.9375rem;
    }
    
    .company-section {
        padding: 3.125rem 3%;
    }
    
    .company-header h2,
    .honor-header h2,
    .history-header h2 {
        font-size: 1.625rem;
    }
    
    .company-text p {
        font-size: 0.9375rem;
    }
    
    .company-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.875rem;
        margin-top: 1.875rem;
    }
    
    .company-stats .stat-item {
        min-width: 0;
        padding: 0.875rem 0.75rem;
        text-align: center;
        background: #f7f9fc;
        border-radius: 0.5rem;
    }
    
    .company-stats .stat-item .stat-number {
        font-size: 1.875rem;
    }

    .company-stats .stat-item p {
        font-size: 0.8125rem;
        line-height: 1.7;
    }

    .company-stats .stat-item::before,
    .company-stats .stat-item::after {
        display: none;
    }
    
    .company-image .image-placeholder {
        height: 17.5rem;
    }
    
    .mission-bg {
        padding: 5rem 3%;
    }
    
    .mission-content {
        padding: 1.875rem 1.25rem;
    }
    
    .mission-item h3 {
        font-size: 1.25rem;
    }
    
    .honor-section {
        padding: 3.125rem 3%;
    }
    
    .honor-card {
        width: calc(100% - 1rem);
    }
    
    .honor-img {
        height: 9.375rem;
    }
    
    .history-section {
        padding: 3.125rem 3%;
    }
    
    .timeline-year-large {
        font-size: 3.75rem;
    }
    
    .timeline-items {
        flex-wrap: wrap;
        gap: 0.625rem;
        justify-content: center;
    }
    
    .timeline-item .year {
        font-size: 0.8125rem;
    }
}

@media (max-width: 30rem) {
    .company-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
    
    .company-stats .stat-item {
        padding: 0.75rem 0.5rem;
    }
    
    .company-stats .stat-item .stat-number {
        font-size: 1.625rem;
    }
    
    .company-stats .stat-item p {
        font-size: 0.75rem;
        line-height: 1.6;
    }
}
