/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

/* 导航栏样式 */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
}

/* 语言切换器 */
.language-switcher {
    display: flex;
    gap: 10px;
}

.language-switcher button {
    padding: 5px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.language-switcher button:hover {
    background-color: #2980b9;
}

/* 轮播图 */
.hero-slider {
    height: 500px;
    overflow: hidden;
}

.hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 主要内容区 */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 关于我们页面 */
.about-section {
    margin-bottom: 40px;
}

.about-content {
    display: flex;
    gap: 30px;
    align-items: center;
}

.about-content img {
    width: 50%;
    border-radius: 8px;
}

.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #3498db;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #3498db;
}

/* 服务项目页面 */
.services-section {
    margin-bottom: 40px;
}

.service-category {
    margin-bottom: 40px;
}

.service-category h3 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

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

.service-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-item h4 {
    padding: 15px 20px 5px;
    color: #2c3e50;
}

.service-item p {
    padding: 0 20px 15px;
    color: #666;
}

/* 案例展示页面 */
.portfolio-section {
    margin-bottom: 40px;
}

.portfolio-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.portfolio-filter button {
    padding: 8px 15px;
    background-color: #f1f1f1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.portfolio-filter button.active {
    background-color: #3498db;
    color: white;
}

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

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 250px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

/* 专业团队页面 */
.team-section {
    margin-bottom: 40px;
}

.team-category {
    margin-bottom: 40px;
}

.team-category h3 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

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

.team-member {
    text-align: center;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-member h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.team-member p {
    color: #666;
}

/* 首页里程碑样式 */
.timeline-preview {
    padding: 60px 0;
    background-color: #f5f7fa;
}

.timeline-preview .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.timeline-items {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    position: relative;
}

.timeline-items::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #3498db;
    z-index: 1;
}

.timeline-item {
    position: relative;
    z-index: 2;
    background: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    width: 22%;
}

.timeline-item h3 {
    color: #3498db;
    font-size: 24px;
    margin: 0 0 5px;
}

.timeline-item p {
    margin: 0;
    color: #555;
}

/* 创意时间轴样式 */
.timeline-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

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

.timeline-line {
    position: absolute;
    width: 4px;
    background-color: #3498db;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: white;
    border: 3px solid #3498db;
    border-radius: 50%;
    text-align: center;
    line-height: 44px;
    font-size: 24px;
    box-shadow: 0 0 0 4px #f8f9fa;
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -25px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}

.timeline-content {
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    position: relative;
}

.timeline-content h3 {
    color: #3498db;
    margin-top: 0;
}

.timeline-content p {
    margin-bottom: 0;
}

/* 首页新增区块样式 */
.quick-intro {
    text-align: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.about-preview {
    padding: 60px 0;
    background-color: white;
}

.about-preview .container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.services-preview {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.services-preview .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.service-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.service-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-item h3 {
    padding: 15px;
    color: #2c3e50;
}

.portfolio-preview {
    padding: 60px 0;
    background-color: white;
}

.portfolio-preview .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.portfolio-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.portfolio-item {
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.team-preview {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.team-preview .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

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

.team-member {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-member h3 {
    color: #2c3e50;
}

/* 联系我们页面 */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-info {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-details {
    margin-bottom: 30px;
}

.contact-details div {
    margin-bottom: 20px;
}

.contact-details h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.contact-details p {
    color: #666;
}

.contact-map {
    height: 300px;
    margin-top: 20px;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    resize: vertical;
}

button[type="submit"] {
    background-color: #3498db;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

button[type="submit"]:hover {
    background-color: #2980b9;
}

/* 页脚 */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}