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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #f8f9fa;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo-section {
    padding: 15px 0;
}

.logo-section .container {
    display: flex;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo img {
    height: 25px;
    width: auto;
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    white-space: nowrap;
}

nav ul li {
    margin-left: 25px;
}

nav ul li:first-child {
    margin-left: 0;
}

nav ul li a {
    color: #333;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
    white-space: nowrap;
}

nav ul li a:hover,
nav ul li.active a {
    color: #fff;
    background: #0066cc;
    text-decoration: none;
}

.content-wrapper {
    flex: 1;
    padding-top: 65px;
}

footer {
    background: #333;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-section h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 10px;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-section a {
    color: #ccc;
}

.footer-section a:hover {
    color: #0066cc;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #999;
    font-size: 13px;
}

.page-title {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.page-title h1 {
    font-size: 32px;
    font-weight: normal;
}

.sub-nav {
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.sub-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
}

.sub-nav ul li {
    padding: 12px 20px;
}

.sub-nav ul li a {
    color: #666;
}

.sub-nav ul li a:hover,
.sub-nav ul li.active a {
    color: #0066cc;
}

.banner {
    width: 100%;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Banner轮播图样式
   ======================================== */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 28px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.7);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: #fff;
}

@media (max-width: 768px) {
    .carousel-slide img {
        height: 300px;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .carousel-slide img {
        height: 220px;
    }
}

.about-section {
    padding: 30px 0;
    background: #fff;
}

.about-intro {
    margin-bottom: 40px;
}

.about-intro-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.about-intro-image {
    flex: 1;
}

.about-intro-image img {
    width: 100%;
    max-width: 450px;
    border-radius: 6px;
}

.about-intro-text {
    flex: 1.5;
}

.about-intro-text h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.about-intro-text p {
    font-size: 14px;
    color: #666;
    line-height: 2;
    margin-bottom: 15px;
    text-align: justify;
    text-indent: 2em;
}

.about-links {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
    padding: 30px 0;
    background: #f5f5f5;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.about-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #0066cc;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
}

.about-link:hover {
    color: #0088ee;
}

.about-link-image {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
}

.about-link-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-advantages {
    max-width: 1000px;
    margin: 0 auto;
}

.about-advantages h3 {
    font-size: 22px;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.advantages-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.advantage-row {
    display: flex;
    align-items: center;
    gap: 30px;
}

.advantage-row.reverse {
    flex-direction: row-reverse;
}

.advantage-img-box {
    width: 48%;
}

.advantage-img-box img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.advantage-info-box {
    width: 52%;
}

.advantage-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.advantage-icon {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.advantage-title {
    font-size: 20px;
    font-weight: bold;
    color: #0066cc;
}

.advantage-info-box p {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    text-align: justify;
}

@media (max-width: 768px) {
    .about-intro-row {
        flex-direction: column;
        align-items: center;
    }

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

    .about-links {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .advantage-row,
    .advantage-row.reverse {
        flex-direction: column;
    }

    .advantage-img-box {
        width: 100%;
    }

    .advantage-info-box {
        width: 100%;
    }

    .advantage-title {
        font-size: 18px;
    }

    .about-intro-text h2 {
        font-size: 24px;
    }

    .about-intro-text p {
        text-indent: 0;
    }
}

.stats-section {
    padding: 50px 0;
    background: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #0066cc;
    line-height: 1;
}

.stat-plus {
    font-size: 24px;
    color: #0066cc;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.business-section {
    padding: 60px 0;
    background: #f5f5f5;
}

.business-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.business-item {
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 400px;
}

.business-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
}

.business-link {
    display: block;
    margin-top: 15px;
    font-size: 18px;
    color: #0066cc;
}

.gallery-section {
    padding: 60px 0;
}

.gallery-section h2 {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.gallery-tab {
    padding: 10px 25px;
    background: #e0e0e0;
    border-radius: 20px;
    color: #666;
    cursor: pointer;
}

.gallery-tab.active {
    background: #0066cc;
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.gallery-item:not([data-category="生产线"]) {
    display: none;
}

.gallery-item {
    overflow: hidden;
    border-radius: 5px;
}

.gallery-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.certifications-section {
    padding: 50px 0;
    background: #f8f9fa;
}

.certifications-section h2 {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
}

.cert-flow-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    background-image: url('/images/rz/图片1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cert-flow-wrapper {
    position: relative;
    height: 380px;
    z-index: 1;
    perspective: 1000px;
    overflow: hidden;
}

.cert-flow-track {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-style: preserve-3d;
}

.cert-flow-item {
    position: absolute;
    width: 220px;
    height: 280px;
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    opacity: 0.4;
    transform: scale(0.5);
    z-index: 1;
    cursor: grab;
}

.cert-flow-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cert-flow-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 3;
}

.cert-flow-item.prev {
    opacity: 0.6;
    transform: scale(0.7) translateX(-130px);
    z-index: 2;
}

.cert-flow-item.next {
    opacity: 0.6;
    transform: scale(0.7) translateX(130px);
    z-index: 2;
}

.cert-flow-item.far-prev {
    opacity: 0.2;
    transform: scale(0.4) translateX(-260px);
    z-index: 1;
}

.cert-flow-item.far-next {
    opacity: 0.2;
    transform: scale(0.4) translateX(260px);
    z-index: 1;
}

@media (max-width: 768px) {
    .cert-flow-wrapper {
        height: 280px;
    }

    .cert-flow-item {
        width: 120px;
        height: 160px;
    }

    .cert-flow-item.prev {
        transform: scale(0.8) translateX(-60px);
    }

    .cert-flow-item.next {
        transform: scale(0.8) translateX(60px);
    }

    .cert-flow-item.far-prev {
        transform: scale(0.5) translateX(-120px);
    }

    .cert-flow-item.far-next {
        transform: scale(0.5) translateX(120px);
    }

    .cert-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}

.news-section {
    padding: 60px 0;
}

.news-section h2 {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.news-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.news-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
    height: 48px;
    overflow: hidden;
}

.news-title a {
    color: #333;
}

.news-title a:hover {
    color: #0066cc;
}

.news-excerpt {
    color: #666;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 15px;
    height: 67px;
    overflow: hidden;
}

.news-date {
    color: #999;
    font-size: 12px;
}

.milestones-section {
    padding: 20px 0;
    background: #fff;
}

.timeline-outwrap {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 0;
}

.timeline-center-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
}

.timeline-line-head {
    width: 10px;
    height: 10px;
    background: #0066cc;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-line-head:first-child {
    top: 0;
}

.timeline-line-head:last-child {
    bottom: 0;
}

.timeline-line {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #0066cc 0%, #0088ee 50%, #0066cc 100%);
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-item {
    position: relative;
    padding: 15px 0;
    display: flex;
    align-items: center;
}

.timeline-line-circle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-line-big-circle {
    width: 24px;
    height: 24px;
    border: 2px solid #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: all 0.3s;
}

.timeline-item:hover .timeline-line-big-circle {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 102, 204, 0.4);
}

.timeline-line-small-circle {
    width: 10px;
    height: 10px;
    background: #0066cc;
    border-radius: 50%;
}

.timeline-content-wrap {
    width: 45%;
    margin-left: 0;
    margin-right: 0;
}

.timeline-item:nth-child(odd) .timeline-content-wrap {
    margin-right: auto;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content-wrap {
    margin-left: auto;
    text-align: left;
}

.timeline-year {
    font-size: 22px;
    color: #0066cc;
    font-weight: bold;
    margin-bottom: 15px;
}

.timeline-content {
    background: #f5f5f5;
    padding: 20px 25px;
    border-radius: 6px;
    transition: all 0.3s;
}

.timeline-item:hover .timeline-content {
    background: #eef5ff;
}

.timeline-content-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-content-list li {
    color: #555;
    font-size: 14px;
    line-height: 2;
    padding: 6px 0;
}

@media (max-width: 768px) {
    .timeline-center-line {
        left: 30px;
        transform: none;
    }

    .timeline-line-head {
        left: 50%;
    }

    .timeline-line {
        left: 50%;
    }

    .timeline-line-circle {
        left: 30px;
        transform: translateX(-50%);
    }

    .timeline-content-wrap {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
        text-align: left !important;
    }

    .timeline-intro h2 {
        font-size: 26px;
    }
}

.accreditations-section {
    padding: 40px 0;
}

.accreditations-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.accreditations-left {
    width: 35%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.accreditations-icon {
    width: 380px;
    height: 304px;
    object-fit: contain;
}

.accreditations-text {
    font-size: 15px;
    color: #666;
    line-height: 2;
    margin: 0;
}

.accreditations-right {
    width: 65%;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 0;
}

.certifications-grid .cert-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 15px 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.certifications-grid .cert-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.certifications-grid .cert-item img {
    width: 187px;
    height: 260px;
    object-fit: contain;
    margin-bottom: 8px;
}

.certifications-grid .cert-item h4 {
    font-size: 13px;
    color: #333;
    margin: 0;
    font-weight: normal;
}

@media (max-width: 768px) {
    .accreditations-layout {
        flex-direction: column;
    }

    .accreditations-left,
    .accreditations-right {
        width: 100%;
    }

    .accreditations-left {
        align-items: center;
        text-align: center;
    }

    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.company-stats {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin: 30px 0;
}

.company-stats h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.awards-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 25px 0;
}

.award-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 15px 25px;
    border-radius: 8px;
    text-align: center;
    min-width: 180px;
}

.award-item .rank {
    font-size: 32px;
    font-weight: bold;
    color: #ff6600;
}

.award-item .desc {
    color: #666;
    font-size: 13px;
    margin-top: 8px;
}

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

.advantage-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: box-shadow 0.3s;
}

.advantage-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.advantage-item img {
    width: 100%;
    max-width: 280px;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.advantage-item h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
}

.advantage-item p {
    color: #666;
    font-size: 13px;
    line-height: 1.8;
    text-align: left;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .advantages {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
    }
    .logo-section .container {
        flex-direction: column;
        gap: 15px;
    }
    .header-left {
        flex-direction: column;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    nav ul li {
        margin: 5px 10px;
    }
    .content-wrapper {
        margin-top: 180px;
    }
    .about-content {
        flex-direction: column;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .business-grid {
        flex-direction: column;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .advantages {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        flex-direction: column;
        gap: 20px;
    }
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .timeline-year {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .certifications-grid {
        grid-template-columns: 1fr;
    }
}

/* 图片灯箱样式 */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 3000;
}

.lightbox-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3001;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.news-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
}

.news-modal-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 420px;
    height: 85%;
    background: #fff;
    border-radius: 12px;
    z-index: 2001;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.news-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.news-modal-close:hover {
    background: rgba(0,0,0,0.7);
}

.news-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.3);
    border-color: #fff;
}

.lightbox-container img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-trigger {
    cursor: zoom-in;
}