/* ============================================= */
/* Laboratory.hk - 全局样式 */
/* ============================================= */

/* 基础重置与全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #0066cc;
    color: white;
    border: 2px solid #0066cc;
}

.btn-primary:hover {
    background-color: #0055aa;
    border-color: #0055aa;
    text-decoration: none;
}

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

.btn-secondary:hover {
    background-color: rgba(0, 102, 204, 0.1);
    text-decoration: none;
}

/* ============================================= */
/* 头部样式 */
/* ============================================= */

header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: #333;
}

.logo-text p {
    font-size: 0.9rem;
    color: #666;
}

/* 导航菜单 */
/* ============================================= */
/* 导航菜单样式 - 响应式设计 */
/* ============================================= */
/* ============================================= */
/* 导航菜单样式 - 响应式设计 */
/* ============================================= */

/* 基础导航样式 */
nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
    position: relative;
}

nav ul li a {
    color: #333;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: block;
}

nav ul li a:hover,
nav ul li a:focus {
    background-color: #f0f0f0;
    text-decoration: none;
    color: #0066cc;
}

nav ul li a.active {
    background-color: #e6f2ff;
    color: #0066cc;
}

/* 移动端菜单切换按钮 */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    padding: 10px;
    background: none;
    border: none;
    color: #333;
    transition: color 0.3s;
}

.menu-toggle:hover {
    color: #0066cc;
}

/* 平板设备响应式设计 (768px-992px) */
@media screen and (max-width: 992px) {
    nav ul li {
        margin-left: 15px;
    }
    
    nav ul li a {
        padding: 8px 10px;
        font-size: 0.95rem;
    }
}

/* 移动设备响应式设计 (小于768px) */
@media screen and (max-width: 768px) {
    .header-container {
        padding: 10px 15px;
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: block;
        order: 1;
    }
    
    nav {
        width: 100%;
        order: 3;
        margin-top: 10px;
        display: none;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        background-color: #fff;
        padding: 15px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        border-radius: 8px;
    }
    
    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        padding: 12px 20px;
        font-size: 1rem;
        transition: all 0.2s;
    }
    
    nav ul li a:hover,
    nav ul li a:focus {
        background-color: #0066cc;
        color: white;
    }
    
    nav ul li a.active {
        background-color: #0066cc;
        color: white;
    }
    
    /* 小屏幕logo调整 */
    .logo {
        order: 0;
        flex: 1;
    }
}

/* 超小屏幕设备 (小于480px) */
@media screen and (max-width: 480px) {
    .header-container {
        padding: 8px 10px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 1.3rem;
    }
    
    .logo-text p {
        font-size: 0.8rem;
    }
    
    nav ul li a {
        padding: 10px 15px;
    }
    
    .menu-toggle {
        font-size: 1.5rem;
        padding: 8px;
    }
}




/* ============================================= */
/* Banner 样式 */
/* ============================================= */

.hero-banner {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 40px;
}

.banner-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.slide.active .slide-content {
    transform: translateY(0);
}

.slide h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.slide p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.banner-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}


/* ============================================= */
/* 首页样式 */
/* ============================================= */

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

.hero {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    text-align: center;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #222;
}

.hero p {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 20px;
}

/* 服务部分 */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #0066cc;
}

.service-card p {
    color: #666;
    margin-bottom: 15px;
}

/* ============================================= */
/* 关于我们页面样式 */
/* ============================================= */

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #0066cc;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: center;
}

.about-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.about-content p {
    margin-bottom: 15px;
    color: #555;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 移动端样式 */
@media (max-width: 768px) {
    .about-section {
        grid-template-columns: 1fr; /* 改为单列布局 */
    }
    
    /* 可选：调整图片和内容在移动端的顺序 */
    .about-section {
        grid-template-areas: "content" "image";
    }
    
    .about-content {
        grid-area: content;
    }
    
    .about-image {
        grid-area: image;
    }
}


.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.mission-card, .vision-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.mission-card h3, .vision-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #0066cc;
}

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

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.team-member {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.member-info {
    padding: 20px;
}

.member-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #333;
}

.member-info p {
    color: #666;
    font-style: italic;
}

/* ============================================= */
/* 项目列表页面样式 */
/* ============================================= */

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #0066cc;
}

.breadcrumb span {
    margin: 0 5px;
    color: #999;
}

.filter-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group h3 {
    width: 100%;
    margin-bottom: 10px;
    color: #333;
}

.filter-btn {
    background-color: #f0f0f0;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #0066cc;
    color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.project-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

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

.project-image {
    height: 200px;
    overflow: hidden;
}

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

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

.project-content {
    padding: 20px;
}

.project-category {
    display: inline-block;
    background-color: #e6f2ff;
    color: #0066cc;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.project-description {
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.pagination a {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 4px;
    background-color: #f0f0f0;
    color: #333;
    transition: all 0.3s;
}

.pagination a:hover, .pagination a.active {
    background-color: #0066cc;
    color: #fff;
}



/* ============================================= */
/* 页脚样式 */
/* ============================================= */

footer {
    background-color: #333;
    color: #fff;
    padding: 40px 5% 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

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

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

.footer-column ul li a {
    color: #ccc;
}

.footer-column ul li a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}



/* ============================================= */
/* 联系我们页面特有样式 */
/* ============================================= */

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

/* 联系信息卡片 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.info-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    margin-right: 20px;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #0066cc;
}

.info-content p {
    color: #555;
    line-height: 1.6;
}

/* 联系表单 */
.contact-form-section {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 50px;
}

.contact-form-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.contact-form-section p {
    color: #666;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0066cc;
    outline: none;
}

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

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
    height: 18px;
}

/* 地图部分 */
.map-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.map-container {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 交通指引 */
.transportation h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.transport-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.transport-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.transport-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #0066cc;
}

.transport-card p {
    color: #555;
}

/* 社交链接 */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: #0066cc;
}

.social-links img {
    filter: brightness(0) saturate(100%) invert(36%) sepia(93%) saturate(748%) hue-rotate(176deg) brightness(89%) contrast(93%);
    transition: filter 0.3s;
}

.social-links a:hover img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
}


/* ============================================= */
/* 项目详情页特有样式（简化版） */
/* ============================================= */

/* 面包屑导航 */
.breadcrumb {
    margin: 20px 0;
    font-size: 0.9rem;
    color: #666;
    padding: 10px 0;
}

.breadcrumb a {
    color: #666;
    transition: color 0.3s;
}

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

.breadcrumb span {
    margin: 0 8px;
    color: #999;
}

/* 项目标题区域 */
.project-header {
    margin-bottom: 30px;
}

.project-category {
    display: inline-block;
    background-color: #e6f2ff;
    color: #0066cc;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.project-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #666;
    margin-top: 15px;
}

.project-meta strong {
    color: #333;
    font-weight: 500;
    margin-right: 5px;
}

/* 文章内容区域 */
.project-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 50px;
}

.project-content p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* 相关项目 */
.related-projects {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #0066cc;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.related-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

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

.related-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.related-image {
    height: 200px;
    overflow: hidden;
}

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

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

.related-content {
    padding: 20px;
}

.related-category {
    display: inline-block;
    background-color: #e6f2ff;
    color: #0066cc;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.related-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .project-title {
        font-size: 1.8rem;
    }
    
    .project-content {
        padding: 30px;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 10px;
    }
}

@media screen and (max-width: 480px) {
    .project-title {
        font-size: 1.6rem;
    }
    
    .project-content {
        padding: 25px 20px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}