/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 全局样式 */
:root {
    --primary-color: #3a86ff;
    --secondary-color: #8338ec;
    --dark-color: #10151f;/*212529;*/
    --light-color: #f8f9fa;
    --accent-color: #ff006e;
    --gray-color: #161616;/*#6c757d;*/
    --light-gray: #e9ecef;
    --transition: all 0.3s ease;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(58, 134, 255, 0.2);
}

/* 按钮禁用状态样式 */
.btn:disabled,
.btn.disabled {
    background: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.6;
}

.btn:disabled:hover,
.btn.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.logo a span {
    color: var(--primary-color);
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.menu ul {
    display: flex;
    align-items: center;
}

.menu ul li {
    margin-left: 30px;
}

.menu ul li a {
    font-weight: 500;
    color: var(--dark-color);
    position: relative;
    transition: var(--transition);
}

.menu ul li a:hover {
    color: var(--primary-color);
}

.menu ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.menu ul li a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-color);
}

.menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 英雄区域样式 */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(58,134,255,0.1) 0%, rgba(131,56,236,0.05) 100%);
    z-index: 0;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    width: 100%;
    padding: 0 20px;
    background: rgba(0, 0, 0, 0.2);
}

.slide-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
}

.slide-content h1 span {
    color: var(--primary-color);
}

.slide-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    max-width: 800px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    z-index: 10;
}

.prev-btn, .next-btn {
    background: rgba(255, 255, 255, 0.5);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--dark-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 功能区域样式 */
.features {
    padding: 100px 0;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header h2 span {
    color: var(--primary-color);
}

.section-header p {
    font-size: 18px;
    color: var(--gray-color);
    max-width: 650px;
    margin: 0 auto;
}

.section-tag {
    text-align: center;
    margin-bottom: 20px;
}

.tag {
    display: inline-block;
    padding: 8px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(58, 134, 255, 0.2);
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

.cell-section {
    padding: 100px 0 0 0;
    background-color: #ccdbe1;/*#dae9eb; /* 淡灰色背景 */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

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

.article-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    padding: 0 20px;
}

.article-text {
    flex: 0 0 75%; /* 左侧文本占80% */
    min-width: 300px;
    padding: 10px 0;
}

.article-text p {
    color: #000;/*var(--gray-color);*/
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.8;
}

.article-button {
    flex: 0 0 20%; /* 右侧按钮占20% */
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 0;
    height: 100%;
}

.article-image-full {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 10px;
}

.article-image-full img {
    width: 100%;
    height: auto;
    max-height: 450px;
    display: block;
    object-fit: cover;
}

@media (max-width: 768px) {
    .article-content-wrapper {
        flex-direction: column;
    }
    
    .article-text,
    .article-button {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .article-button {
        justify-content: center;
        padding-top: 20px;
    }
}



.features-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.feature-item {
    flex: 0 0 calc(33.33% - 30px);
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    margin-bottom: 30px;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 24px;
}

.feature-item h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-item p {
    color: var(--gray-color);
}

/* 关于我们样式 */
.about {
    padding: 100px 0;
    background-color: var(--light-color);
}

.about .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.about-image {
    flex: 0 0 calc(50% - 30px);
    margin-bottom: 30px;
}

.about-image img {
    max-width: 100%;
    height: 400px;/*auto;*/
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content {
    flex: 0 0 calc(50% - 30px);
}

.about-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-content h2 span {
    color: var(--primary-color);
}

.about-content p {
    color: #111;
    margin-bottom: 30px;
    font-size: 18px;
}

/* 联系我们样式 */
.contact {
    padding: 100px 0;
    background-color: white;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact-info {
    flex: 0 0 calc(50% - 30px);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--gray-color);
}

.contact-form {
    flex: 0 0 calc(50% - 30px);
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(58, 134, 255, 0.1);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* 页脚样式 */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 70px 0 20px;
}

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

.footer-logo {
    flex: 0 0 calc(40% - 30px);
    margin-bottom: 30px;
}

.footer-logo a {
    font-size: 28px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    height: 40px; /* 确保logo区域高度固定 */
}

.footer-logo-img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.footer-logo a span {
    color: var(--primary-color);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    flex: 0 0 calc(19% - 30px);
    margin-bottom: 30px;
}

.footer-links h3,
.footer-social h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-social {
    flex: 0 0 calc(19% - 30px);
    margin-bottom: 30px;
}

.footer-social ul {
    display: flex;
}

.footer-social ul li {
    margin-right: 15px;
}

.footer-social ul li a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.footer-social ul li a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact {
    flex: 0 0 calc(19% - 30px);
    margin-bottom: 30px;
}

.footer-contact h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-contact ul li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact ul li i {
    margin-right: 10px;
    color: var(--primary-color);
}




/* 概念实验室样式 */
.lab-section {
    padding: 100px 0;
    background-color: var(--light-color);
    overflow: hidden;
}

.lab-cards,
.design-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 60px;
    align-items: stretch;
}

.concepts-page .lab-card,
.design-page .design-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.concepts-page .lab-card-content,
.design-page .design-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.concepts-page .lab-card-description,
.design-page .design-card-content p {
    flex: 1;
}

.lab-card {
    flex: 0 0 calc(33.33% - 20px);
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.lab-card:hover {
    /*transform: translateY(-10px);*/
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/*添加*/
.lab-card:hover h3,.design-card:hover h3{
color:#3a86ff;
}


.design-card {
    flex: 0 0 calc(33.33% - 20px);
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.design-card:hover {
    /*transform: translateY(-8px);*/
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.design-card-header {
    padding: 20px 25px;
    background-color: white;
    border-bottom: 1px solid #f0f2f5;
}

.design-card-image {
    height: 220px;
    overflow: hidden;
}

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

.design-card:hover .design-card-image img {
    transform: scale(1.05);
}

.design-card-content {
    padding: 25px;
}

.design-card-content p {
    font-size: 16px;
    color: var(--gray-color);
    margin-bottom: 20px;
    line-height: 1.7;
}

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

.design-features li {
    font-size: 15px;
    color: #666;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.design-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

/* 生物设计区块样式 */
.design-section {
    padding: 100px 0;
    background-color: #f9fafc;
}

.design-cards {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    gap: 30px;
    flex-wrap: wrap;
    align-items: stretch;
}

.design-card-header {
    padding: 20px 25px;
    background-color: white;
    border-bottom: 1px solid #f0f2f5;
}

.design-card-header h3 {
    font-size: 20px;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
    color: #000; /*var(--primary-color);*/
}

.design-card-image {
    height: 220px;
    overflow: hidden;
}

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

.design-card:hover .design-card-image img {
    transform: scale(1.05);
}

.design-card-content {
    padding: 25px;
}

.design-card-content p {
    font-size: 16px;
    color: var(--gray-color);
    margin-bottom: 20px;
    line-height: 1.7;
}

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

.design-features li {
    font-size: 15px;
    color: #666;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.design-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

/* 国家发展战略样式 */
.plan-section {
    padding: 100px 0;
    background-color: white;
}

.plan-content {
    margin-top: 60px;
    overflow: hidden;
}

.plan-image {
    float: left;
    width: 50%;
    max-width: 600px;
    margin-right: 40px;
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.plan-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.plan-content > p {
    font-size: 18px;
    color: var(--gray-color);
    margin-bottom: 30px;
    line-height: 1.8;
}

.plan-conclusion {
    clear: both;
}

.lab-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.lab-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.lab-card:hover .lab-card-image img {
    transform: scale(1.1);
}

.lab-card-content {
    padding: 25px;
}

.lab-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
    line-height: 1.3;
}

.lab-card-description {
    color: var(--gray-color);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.7;
}

.lab-card-scenario {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 13px;
    background-color: rgba(58, 134, 255, 0.1);
    padding: 10px 15px;
    border-radius: 20px;
    display: inline-block;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 40px;
    }
    .feature-item {
        flex: 0 0 calc(50% - 30px);
    }
    .plan-image {
        width: 40%;
        margin-right: 30px;
    }
    .about-image,
    .about-content {
        flex: 0 0 100%;
    }
    .contact-info,
    .contact-form {
        flex: 0 0 100%;
    }
    .footer-logo,
    .footer-links,
    .footer-social,
    .footer-contact {
        flex: 0 0 calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        padding: 20px 0;
    }
    .menu ul {
        flex-direction: column;
        align-items: center;
    }
    .menu ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    .menu ul li a {
        display: inline-block;
        padding: 15px 0;
        font-size: 18px;
        position: relative;
        text-align: center;
        width: auto;
    }
    
    .menu ul li a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 3px;
        background-color: var(--primary-color);
        transition: width 0.3s ease;
    }
    
    .menu ul li a:hover::after {
        width: 100%;
    }
    .mobile-menu {
        display: block;
    }
    .slide-content h1 {
        font-size: 36px;
    }
    .slide-content p {
        font-size: 16px;
    }
    .feature-item {
        flex: 0 0 100%;
    }

    .footer-logo,
    .footer-links,
    .footer-social,
    .footer-contact {
        flex: 0 0 100%;
    }
}

@media (max-width: 576px) {
    .slide-content h1 {
        font-size: 32px;
    }
    .slide-content p {
        font-size: 14px;
    }
    .section-header h2 {
        font-size: 28px;
    }
    .about-content h2 {
        font-size: 28px;
    }
}

/* 卡片链接样式 */
.lab-card-link,
.design-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.lab-card-link {
    flex: 0 0 calc(50% - 15px);
}

.design-card-link {
    flex: 0 0 calc(50% - 15px);
}

/* 主页卡片链接样式 */
#lab .lab-card-link,
#design .design-card-link {
    flex: 0 0 calc(33.33% - 20px);
}

.lab-card-link:hover,
.design-card-link:hover {
    color: inherit;
    text-decoration: none;
}

/* 主页卡片等高设计 */
#lab .lab-card,
#design .design-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#lab .lab-card-content,
#design .design-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#lab .lab-card-description,
#design .design-card-content p {
    flex: 1;
}

/* 列表页面卡片等高设计 */
.concepts-page .lab-card,
.design-page .design-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.concepts-page .lab-card-content,
.design-page .design-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.concepts-page .lab-card-description,
.design-page .design-card-content p {
    flex: 1;
}

/* 列表页面卡片容器样式 */
.concepts-page .lab-cards,
.design-page .design-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 60px;
    align-items: stretch;
}
