/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

a:hover {
    color: #1a73e8;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #1a73e8;
    color: white;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #0d5bba;
    color: white;
}

.btn-small {
    display: inline-block;
    padding: 8px 20px;
    background-color: #1a73e8;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-small:hover {
    background-color: #0d5bba;
    color: white;
}

/* 头部样式 */
header {
    background-color: white;
    box-shadow: 0 2px 10px 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: 15px 0;
}

.logo img {
    height: 40px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    position: relative;
}

nav ul li.active a {
    color: #1a73e8;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #1a73e8;
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

nav ul li a:hover:after,
nav ul li.active a:after {
    width: 100%;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 70px;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* 特性区域 */
.features {
    padding: 80px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.features h2 {
    font-size: 2rem;
    margin-bottom: 50px;
    color: #333;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item .icon {
    font-size: 2.5rem;
    color: #1a73e8;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* 服务预览 */
.services-preview {
    padding: 80px 0;
    text-align: center;
}

.services-preview h2 {
    font-size: 2rem;
    margin-bottom: 50px;
    color: #333;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-item h3 {
    font-size: 1.3rem;
    margin: 20px 0 10px;
}

.service-item p {
    color: #666;
    margin-bottom: 20px;
    padding: 0 20px;
}

/* CTA区域 */
.cta {
    padding: 60px 0;
    background-color: #1a73e8;
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta .btn {
    background-color: white;
    color: #1a73e8;
}

.cta .btn:hover {
    background-color: #f1f1f1;
}

/* 页脚 */
footer {
    background-color: #2d2d2d;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-col p {
    margin-bottom: 15px;
    color: #bbb;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #bbb;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #bbb;
    font-size: 14px;
}

/* 页面头部通用样式 */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    height: 300px;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
}

/* 服务详情页样式 */
.services-detail {
    padding: 80px 0;
}

.service-category {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    gap: 40px;
}

.service-category:nth-child(even) {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
}

.service-image {
    flex: 1;
}

.service-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-text h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.service-text p {
    margin-bottom: 20px;
    color: #555;
}

.service-text ul {
    margin: 20px 0 30px;
    padding-left: 20px;
}

.service-text ul li {
    margin-bottom: 10px;
    color: #555;
}

/* 案例展示页样式 */
.portfolio {
    padding: 80px 0;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: #f1f1f1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active {
    background-color: #1a73e8;
    color: white;
}

.filter-btn:hover {
    background-color: #ddd;
}

.filter-btn.active:hover {
    background-color: #0d5bba;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 115, 232, 0.9);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 20px;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.portfolio-overlay p {
    margin-bottom: 20px;
}

.portfolio-link {
    color: white;
    border: 1px solid white;
    padding: 8px 20px;
    border-radius: 4px;
    transition: all 0.3s;
}

.portfolio-link:hover {
    background-color: white;
    color: #1a73e8;
}

/* 客户评价 */
.testimonials {
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.testimonials h2 {
    font-size: 2rem;
    margin-bottom: 50px;
    color: #333;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-item p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.client-info h4 {
    font-size: 1.2rem;
    color: #333;
}

.client-info p {
    font-style: normal;
    color: #777;
}

/* 关于我们页样式 */
.about-company {
    padding: 80px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
}

/* 价值观 */
.our-values {
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.our-values h2 {
    font-size: 2rem;
    margin-bottom: 50px;
    color: #333;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.value-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1a73e8;
}

.value-item p {
    color: #666;
}

/* 团队介绍 */
.our-team {
    padding: 80px 0;
    text-align: center;
}

.our-team h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

.our-team p {
    max-width: 800px;
    margin: 0 auto 20px;
    color: #555;
}

/* 联系我们页样式 */
.contact {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 50px;
}

.contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #333;
}

.info-item {
    margin-bottom: 30px;
}

.info-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1a73e8;
}

.info-item p {
    color: #555;
    margin-bottom: 5px;
}

.contact-form h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1a73e8;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 地图 */
.map {
    padding: 0 0 80px;
}

.map h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}