/* ==================== 公共基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 40px 20px 20px;
}

.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    border: 3px solid #000;
    position: relative;
}

.logo1 img{
    width: 85px;
}
.tagline {
    font-size: 12px;
    color: #000;
    margin: 10px auto;
}

/* 导航栏 */
.nav {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-size: 22px;
    transition: color 0.3s;
    border-right: 1px solid #ccc;
    padding:0 50px;
}

.nav a:hover,
.nav a.active {
    color: #000;
    font-weight: 500;
}

/* 搜索框 */
.search-container {
    max-width: 760px;
    margin: 40px auto;
    padding: 0 20px;
    margin-top: 0;
}

.search-box {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    background: #f8f8f8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 15px center;
    background-size: 18px;
}

.search-box:focus {
    outline: none;
    border-color: #ccc;
    background-color: #fff;
}

/* 合作伙伴 */
.partners {
    text-align: center;
    padding: 80px 20px 40px;
    background: #f7f7f7;
}

.partners h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 40px;
    color: #666;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-logo {
    opacity: 1;
    height: 80px;
    transition: opacity 0.3s;
}

.partner-logo:hover {
    opacity: 0.7;
}

/* 页脚 */
.footer {
    background: #fff;
    padding: 30px 20px;
    border-top: 1px solid #e0e0e0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    color: #666;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #000;
}

.footer-info {
    text-align: center;
    padding: 20px 0;
}

.footer-logo {
    width: 120px;
    margin: 0 auto 20px;
}

.footer-info p {
    font-size: 12px;
    color: #999;
    line-height: 1.8;
}


/* ==================== 首页特有样式 ==================== */
body.page-index .hero-slider {
    width: 100%;
    height: 600px;
    background: #000;
    position: relative;
    overflow: hidden;
    margin-bottom: 80px;
}

body.page-index .slide {
    width: 100%;
    height: 100%;
    display: none;
    position: relative;
}

body.page-index .slide.active {
    display: block;
}

body.page-index .slide-content {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    text-align: right;
    z-index: 2;
}

body.page-index .slide-label {
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 10px;
    opacity: 0.7;
}

body.page-index .slide-title {
    font-size: 72px;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1;
}

body.page-index .slide-subtitle {
    font-size: 18px;
    opacity: 0.8;
}

body.page-index .slide-image {
    position: absolute;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 400px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

body.page-index .slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

body.page-index .slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

body.page-index .slider-dot.active {
    background: #fff;
    width: 30px;
    border-radius: 5px;
}

body.page-index .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

body.page-index .slider-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.page-index .slider-arrow.prev {
    left: 20px;
}

body.page-index .slider-arrow.next {
    right: 20px;
}

body.page-index .section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 400;
    margin: 80px 0 50px;
}

body.page-index .cases-grid {
    max-width: 1400px;
    margin: 0 auto 80px;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

body.page-index .case-item {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s;
}

body.page-index .case-item:hover {
    transform: translateY(-5px);
}

body.page-index .case-image {
    width: 100%;
    aspect-ratio: 3/4;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

body.page-index .case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.page-index .case-item:nth-child(4n+1) .case-image {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

body.page-index .case-item:nth-child(4n+2) .case-image {
    background: linear-gradient(135deg, #d4a574 0%, #c9995f 100%);
}

body.page-index .case-item:nth-child(4n+3) .case-image {
    background: linear-gradient(135deg, #87ceeb 0%, #6ab8d8 100%);
}

body.page-index .case-item:nth-child(4n) .case-image {
    background: linear-gradient(135deg, #e8957a 0%, #d87a5f 100%);
}

body.page-index .placeholder-text {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    text-align: center;
    padding: 20px;
}

body.page-index .discover-more-container {
    text-align: center;
    margin: 60px 0 80px;
}

body.page-index .discover-more-btn {
    padding: 14px 50px;
    border: 2px solid #4A90E2;
    background: #fff;
    color: #4A90E2;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

body.page-index .discover-more-btn:hover:not(:disabled) {
    background: #4A90E2;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

body.page-index .discover-more-btn:active:not(:disabled) {
    transform: translateY(0);
}

body.page-index .discover-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

body.page-index .hidden-item {
    display: none;
}

/* 淡入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==================== 实验室页面特有样式 ==================== */
body.page-lab .main-title {
    text-align: center;
    font-size: 32px;
    font-weight: 400;
    margin: 60px 0 50px;
}

body.page-lab .projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

body.page-lab .project-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s;
}

body.page-lab .project-card:hover {
    transform: translateY(-5px);
}

body.page-lab .project-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

body.page-lab .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.page-lab .project-title {
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    color: #333;
}

body.page-lab .project-card:nth-child(1) .project-image,
body.page-lab .project-card:nth-child(3) .project-image {
    background: linear-gradient(135deg, #d4a574 0%, #c9995f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.page-lab .project-card:nth-child(2) .project-image,
body.page-lab .project-card:nth-child(4) .project-image {
    background: linear-gradient(135deg, #5a7a8f 0%, #4a6a7f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.page-lab .load-more {
    text-align: center;
    margin: 60px 0;
}

body.page-lab .load-more button {
    padding: 12px 40px;
    border: 1px solid #333;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

body.page-lab .load-more button:hover {
    background: #333;
    color: #fff;
}

/* 列表页加载更多按钮样式 */
body.page-lab .discover-more-container {
    text-align: center;
    margin: 60px 0 80px;
}

body.page-lab .discover-more-btn {
    padding: 14px 50px;
    border: 2px solid #4A90E2;
    background: #fff;
    color: #4A90E2;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

body.page-lab .discover-more-btn:hover:not(:disabled) {
    background: #4A90E2;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

body.page-lab .discover-more-btn:active:not(:disabled) {
    transform: translateY(0);
}

body.page-lab .discover-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* ==================== 文章页面特有样式 ==================== */
body.page-article {
    line-height: 1.8;
}

body.page-article .breadcrumb {
    max-width: 1200px;
    margin: 40px auto 20px;
    padding: 0 40px;
    font-size: 13px;
    color: #999;
}

body.page-article .breadcrumb a {
    color: #999;
    text-decoration: none;
}

body.page-article .breadcrumb a:hover {
    color: #333;
}

body.page-article .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

body.page-article .article-content {
    max-width: 100%;
}

body.page-article .article-title {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 40px;
    line-height: 1.4;
}

body.page-article .article-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

body.page-article .article-image img {
    width: 100%;
    height: auto;
    display: block;
}

body.page-article .placeholder-image {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
}

body.page-article .article-text {
    font-size: 15px;
    line-height: 2;
    color: #555;
    margin-bottom: 30px;
}

body.page-article .sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

body.page-article .sidebar-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
}

body.page-article .related-article {
    margin-bottom: 30px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s;
}

body.page-article .related-article:hover {
    transform: translateX(5px);
}

body.page-article .related-image {
    width: 100%;
    aspect-ratio: 16/10;
    background: #f0f0f0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

body.page-article .related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.page-article .related-title {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}


/* ==================== 联系页面特有样式 ==================== */
body.page-contact .nav {
    border-bottom: 1px solid #e0e0e0;
}

body.page-contact .container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

body.page-contact .contact-info {
    padding: 20px 0;
}

body.page-contact .contact-info h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 10px;
}

body.page-contact .contact-info h3 {
    font-size: 14px;
    color: #999;
    font-weight: normal;
    margin-bottom: 30px;
}

body.page-contact .contact-info p {
    font-size: 13px;
    color: #999;
    margin-bottom: 30px;
    line-height: 1.8;
}

body.page-contact .contact-item {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

body.page-contact .contact-item strong {
    color: #999;
    font-weight: normal;
}

body.page-contact .qrcode {
    width: 150px;
    height: 150px;
    border: 1px solid #ddd;
    margin-top: 40px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.page-contact .map-container {
    width: 100%;
    height: 500px;
    border: 1px solid #e0e0e0;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

body.page-contact .map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #e8f4f8 0%, #f0f0f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}


/* ==================== 响应式设计 ==================== */
@media (max-width: 1200px) {
    body.page-index .cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 968px) {
    body.page-article .container {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    body.page-article .sidebar {
        position: static;
    }

    body.page-article .article-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .nav {
        gap: 40px;
    }

    .partner-logos {
        gap: 30px;
    }

    /* 首页响应式 */
    body.page-index .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }

    body.page-index .slide-title {
        font-size: 48px;
    }

    body.page-index .slide-image {
        width: 300px;
        height: 250px;
    }

    body.page-index .hero-slider {
        height: 400px;
    }

    /* 实验室页面响应式 */
    body.page-lab .projects-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    body.page-lab .main-title {
        font-size: 24px;
    }

    /* 联系页面响应式 */
    body.page-contact .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

