/* 主样式文件 */
:root {
    --primary-color: #4CAF50;    /* 主要绿色 */
    --secondary-color: #45a049;  /* 深绿色，用于悬停效果 */
    --text-color: #333;         /* 文本颜色 */
    --light-color: #fff;        /* 白色 */
    --border-color: #ddd;       /* 边框颜色 */
}

/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 链接样式 */
a {
    text-decoration: none;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* 头部样式 */
header {
    background-color: var(--light-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    width: 150px;
    height: 50px;
}

.logo img {
    max-width: 100%;
    height: auto;
}

/* 导航菜单 */
nav {
    display: flex;
    align-items: center;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

.language-switch {
    margin-left: 2rem;
}

/* 主要内容区域 */
main {
    margin-top: 80px;
    padding: 2rem 5%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* 页脚样式 */
footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 2rem 5%;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-content {
    flex: 1;
    margin-right: 2rem;
}

.footer-content h3 {
    margin-bottom: 1rem;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 列表样式 */
ul {
    padding-left: 1em; /* 缩进两个中文字符的宽度 */
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: var(--light-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

table th {
    background-color: var(--primary-color);
    color: var(--light-color);
    font-weight: bold;
}

/* 统一表格行背景色 */
table tbody tr {
    background-color: white;
}

/* 鼠标悬停效果 */
table tbody tr:hover {
    background-color: rgba(76,175,80,0.05);
}

/* 确保表格在移动设备上可以水平滚动 */
@media (max-width: 768px) {
    .table-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
    }
}

/* 公司图片展示区域 */
.company-images {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: nowrap;
}

.image-container {
    width: calc(33.33% - 14px);
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.image-container:hover {
    transform: translateY(-5px);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-container:hover .gallery-image {
    transform: scale(1.05);
}

/* 图片查看模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

.close {
    position: absolute;
    right: 25px;
    top: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .company-images {
        flex-direction: column;
        flex-wrap: wrap;
    }
    
    .image-container {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .modal-content {
        width: 95%;
    }

    /* 移动端footer优化 */
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .copyright {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        padding-top: 1rem;
        margin-top: 1rem;
    }

    .copyright span {
        white-space: nowrap;
    }
}