* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    overflow-x: auto;
    background-color: #ffffff;
}

/* ====== 导航栏样式 - 与 index.html 一致 ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar:hover {
    background-color: rgba(255, 255, 255, 0.98);
}

.navbar:hover .nav-link {
    color: #000000;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 80px;
}

.logo-link {
    position: absolute;
    left: 150px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
}

.logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-hover {
    display: none;
}

.navbar:hover .logo-default {
    display: none;
}

.navbar:hover .logo-hover {
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin-right: 40px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    right: 20px;
    height: 2px;
    background-color: #ffffff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar:hover .nav-link::after {
    background-color: #000000;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-item-has-children {
    position: relative;
}

.nav-item-active > .nav-link::after {
    transform: scaleX(1);
}

/* 二级菜单样式 - 同步 index.html */
.sub-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 200px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    list-style: none;
    padding: 8px;
    border-radius: 16px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.12),
        0 2px 10px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2000;
}

.sub-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(255, 255, 255, 0.98);
    filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.05));
}

.nav-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.sub-menu-item {
    padding: 0;
    margin: 2px 0;
}

.sub-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 14px 20px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.sub-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6ee7b7 0%, #10b981 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.sub-menu-link::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 20px;
    background: linear-gradient(180deg, #6ee7b7 0%, #10b981 100%);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.sub-menu-link:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.sub-menu-link:hover::before {
    opacity: 1;
}

.sub-menu-link:hover::after {
    transform: translateY(-50%) scaleY(1);
}

.sub-menu-item + .sub-menu-item {
    position: relative;
}

.sub-menu-item + .sub-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.06) 20%,
        rgba(0, 0, 0, 0.06) 80%,
        transparent 100%);
}

/* ====== 页面 Banner 区域 - 占屏幕 1/2 ====== */
.company-banner {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/banner2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.company-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.55));
}

.company-banner-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #ffffff;
}

.company-banner-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 6px;
}

.company-banner-subtitle {
    font-size: 22px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 4px;
}

/* ====== 横向导航菜单 ====== */
.company-tabs-wrapper {
    position: sticky;
    top: 80px;
    z-index: 500;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.company-tabs {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 0 20px;
}

.company-tab {
    flex: 1;
    max-width: 220px;
    text-align: center;
    padding: 22px 30px;
    color: #4b5563;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.company-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #10b981 0%, #6ee7b7 100%);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.company-tab:hover {
    color: #10b981;
}

.company-tab:hover::after {
    transform: translateX(-50%) scaleX(0.8);
}

.company-tab.active {
    color: #10b981;
    font-weight: 600;
}

.company-tab.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* ====== 公共区块 ====== */
.company-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

.company-section:nth-child(even) {
    background-color: #f8fafc;
}

.company-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 24px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #6ee7b7 100%);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 50px;
}

/* ====== 公司简介 Tab ====== */
.intro-content {
    max-width: 1000px;
    margin: 0 auto;
}

.intro-text {
    font-size: 16px;
    line-height: 1.9;
    color: #374151;
    margin-bottom: 18px;
    text-align: justify;
}

.intro-text strong {
    color: #10b981;
    font-weight: 600;
}

.intro-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.intro-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    padding: 36px 28px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    text-align: center;
}

.intro-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(16, 185, 129, 0.15);
    border-color: #6ee7b7;
}

.intro-card-number {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981 0%, #6ee7b7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.intro-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.intro-card-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
}

/* ====== 发展历程 Tab - 纵向时间轴 ====== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 170px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg,
        #6ee7b7 0%,
        #10b981 50%,
        #6ee7b7 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 162px;
    top: 18px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border: 4px solid #10b981;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.timeline-item:nth-child(odd) .timeline-dot {
    background: #10b981;
}

.timeline-year {
    flex-shrink: 0;
    width: 150px;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981 0%, #6ee7b7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-top: 6px;
    text-align: right;
    padding-right: 30px;
}

.timeline-content {
    flex: 1;
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #10b981;
    margin-left: 60px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.15);
}

.timeline-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
}

/* ====== 照片墙 ====== */
.photo-grid {
    display: grid;
    gap: 24px;
    margin-top: 30px;
}

.photo-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.photo-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
}

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

.photo-item {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.photo-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(16, 185, 129, 0.18);
    border-color: #6ee7b7;
}

.photo-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.photo-item-large .photo-wrapper {
    aspect-ratio: 3 / 2;
}

.photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-item-certificate .photo-wrapper {
    background: #ffffff;
}

.photo-item-certificate .photo-image {
    object-fit: contain;
}

.photo-item:hover .photo-image {
    transform: scale(1.08);
}

.photo-caption {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    text-align: center;
    background: #ffffff;
    border-top: 1px solid #f3f4f6;
}

/* ====== 页脚样式 - 与 index.html 一致 ====== */
.site-footer {
    position: relative;
    width: 100%;
    background-color: #0f0f1a;
    color: #ffffff;
    padding: 50px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    gap: 40px;
}

.footer-left {
    flex: 1;
}

.footer-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-intro {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-details {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-item {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.qrcode-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: #ffffff;
    padding: 6px;
}

.qrcode-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-beian {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.beian-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.beian-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ====== 响应式设计 ====== */
@media (max-width: 1024px) {
    .photo-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar-container {
        height: 60px;
        padding: 0 15px;
    }

    .logo {
        height: 35px;
    }

    .nav-menu {
        gap: 20px;
        margin-right: 0;
    }

    .nav-link {
        font-size: 14px;
        padding: 8px 12px;
    }

    .company-banner {
        height: 40vh;
    }

    .company-banner-title {
        font-size: 36px;
        letter-spacing: 4px;
    }

    .company-banner-subtitle {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .company-tabs-wrapper {
        top: 60px;
    }

    .company-tab {
        padding: 16px 12px;
        font-size: 14px;
    }

    .company-section {
        padding: 50px 15px;
    }

    .section-title {
        font-size: 28px;
    }

    .intro-cards {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline::before {
        left: 13px;
        width: 2px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 16px;
    }

    .timeline-dot {
        left: -14px;
    }

    .timeline-year {
        width: auto;
        font-size: 22px;
        margin-bottom: 8px;
        text-align: left;
        padding-left: 0;
        padding-right: 0;
    }

    .timeline-content {
        margin-left: 0;
        width: 100%;
    }

    .photo-grid-4,
    .photo-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .photo-grid-2,
    .photo-grid-4,
    .photo-grid-3 {
        grid-template-columns: 1fr;
    }
}
