/* Bio-Chain - 专业生物制品及药品物流运输 - 清理版CSS */

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #ffffff;
}

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

/* 导航栏 */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
    z-index: 10000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
    position: relative;
    z-index: 10001;
}

.logo a,
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s;
    position: relative;
    z-index: 10002;
    padding: 8px 12px;
    margin: -8px -12px;
    border-radius: 4px;
    pointer-events: auto !important;
}

.logo a:hover,
.logo-link:hover {
    opacity: 0.8;
}

.logo a:active,
.logo-link:active {
    opacity: 0.6;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    pointer-events: none !important;
    user-select: none;
    position: relative;
    z-index: 1;
}

.logo i {
    font-size: 2rem;
    color: #059669;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #059669;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #2c5282;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.btn:hover {
    background: #1a365d;
}

.btn-secondary {
    background: transparent;
    color: #2c5282;
    border: 2px solid #2c5282;
}

.btn-secondary:hover {
    background: #2c5282;
    color: white;
}

/* 主要内容区域 */
main {
    margin-top: 80px;
}

/* 首页横幅 */
.hero {
    background: linear-gradient(135deg, #a8e0d0 0%, #8dd4c0 50%, #72c8b0 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: #2c3e50;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a365d;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 特色服务 */
.features {
    padding: 80px 0;
    background: #f8fafc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #059669;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.1);
}

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

.feature i {
    font-size: 3rem;
    color: #059669;
    margin-bottom: 1.5rem;
}

.feature h3 {
    font-size: 1.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature p {
    color: #1f2937;
    font-size: 1.1rem;
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background: #ffffff;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #1f2937;
    margin-bottom: 3rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 4rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.1);
    border: 2px solid #1e3a8a;
}

.stat .number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 0.5rem;
}

.stat .label {
    font-size: 1.1rem;
    color: #1f2937;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-item {
    background: linear-gradient(180deg, #a8e0d0 0%, #8dd4c0 50%, #72c8b0 100%);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.about-item h3 {
    font-size: 1.5rem;
    color: #1a365d;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-item p {
    color: #4a5568;
    line-height: 1.8;
}

/* 服务展示 */
.services {
    padding: 80px 0;
    background: #f8fafc;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.services-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #1f2937;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #059669;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.1);
}

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

.service i {
    font-size: 3rem;
    color: #059669;
    margin-bottom: 1.5rem;
}

.service h3 {
    font-size: 1.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service h3 a {
    color: inherit;
    text-decoration: none;
}

.service h3 a:hover {
    color: #059669;
}

.service p {
    color: #1f2937;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* 专业领域 */
.expertise {
    padding: 80px 0;
    background: #ffffff;
}

.expertise h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.expertise-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #1f2937;
    margin-bottom: 3rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.expertise-item {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.1);
    border: 2px solid #1e3a8a;
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.expertise-item i {
    font-size: 3rem;
    color: #059669;
    margin-bottom: 1.5rem;
}

.expertise-item h3 {
    font-size: 1.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.expertise-item p {
    color: #1f2937;
    line-height: 1.6;
}

/* 联系我们 */
.contact {
    padding: 80px 0;
    background: #f8fafc;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #1f2937;
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #059669;
    margin-top: 0.5rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.contact-form {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.1);
    border: 2px solid #1e3a8a;
}

.contact-form h3 {
    font-size: 1.5rem;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #059669;
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

/* 页脚 */
.footer {
    background: linear-gradient(180deg, #4186b2 0%, #244c74 100%);
    color: #f7fafc;
    padding: 40px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #f7fafc;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #f7fafc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95634rem;
}

.footer-section ul li a:hover {
    color: #f7fafc;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
    font-size: 1.875rem;
    font-weight: 700;
    color: #f7fafc;
}

.footer-logo i {
    font-size: 2rem;
    color: #68d391;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-slogan {
    font-size: 0.8rem;
    color: #f7fafc;
    font-weight: 400;
}

.footer-section p {
    color: #f7fafc;
    line-height: 1.4;
    margin-bottom: 0.8rem;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: transparent;
    color: #f7fafc;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s;
    font-size: 2rem;
}

.social-links a:hover {
    background: #4a5568;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding: 0.81rem 0;
    text-align: center;
    background: #2c9cc4;
    margin-top: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
}

.footer-bottom p {
    color: #f7fafc;
    font-size: 0.8856rem;
}

.footer-bottom a {
    color: #ffffff;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 导航栏 */
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%; /* 默认完全隐藏在右侧 */
        width: 25%;
        max-width: 200px;
        min-width: 150px;
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 1rem 0;
        transition: right 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        box-shadow: -2px 4px 15px rgba(0, 0, 0, 0.2);
        border: 2px solid #e2e8f0;
        border-radius: 8px 0 0 8px;
        z-index: 10003;
        overflow-y: auto;
        max-height: calc(100vh - 100px);
        opacity: 0; /* 默认不可见 */
        visibility: hidden; /* 默认不可见 */
        pointer-events: none; /* 默认不可交互 */
    }
    
    .nav-menu.active {
        right: 0;
        opacity: 1; /* 激活时可见 */
        visibility: visible; /* 激活时可见 */
        pointer-events: auto; /* 激活时可交互 */
    }
    
    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
        display: block;
        color: #2c3e50;
        text-align: left;
        transition: background-color 0.3s;
    }
    
    .nav-menu a:hover {
        background-color: #f8fafc;
        color: #059669;
    }
    
    .nav-menu a.active {
        background-color: #e6f7f0;
        color: #059669;
        font-weight: 600;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 10004;
    }
    
    /* 确保logo在移动端可点击 */
    .logo,
    .logo-link {
        position: relative;
        z-index: 10005 !important;
    }
    
    /* 主要内容 */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    /* 网格布局 */
    .features-grid,
    .services-grid,
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* 页脚 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-section ul li a {
        font-size: 0.860706rem;
        padding: 0.3rem 0;
    }
    
    .footer-bottom p {
        font-size: 0.7872rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* 小屏幕菜单进一步优化 */
    .nav-menu {
        width: 35%;
        max-width: 160px;
        min-width: 120px;
        font-size: 0.9rem;
    }
    
    .nav-menu a {
        font-size: 0.85rem;
        padding: 0.7rem 0.8rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .feature,
    .service,
    .expertise-item,
    .about-item {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}
