/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* 导航栏样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo img {
    height: 50px;
}

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

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #007bff;
}

.mobile-menu {
    display: none;
}

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

/* 轮播图组件样式 */
.carousel-section {
    width: 100%;
    height: calc(100vh - 80px);
    position: relative;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 20px;
    text-align: center;
}

.carousel-caption h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.carousel-caption p {
    font-size: 16px;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 10;
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-indicators {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: white;
}

/* 关于我们部分样式 */
.about-section {
    padding: 80px 0;
    background-color: white;
}

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

/* 公司简介内容容器 */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

/* 公司简介文本部分 */
.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    text-align: left;
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
    max-width: 100%;
}

/* 公司简介媒体部分 */
.about-media {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

/* 图片样式 */
.media-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.media-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.media-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    background-color: #f8f9fa;
    padding: 15px;
    text-align: center;
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 视频样式 */
.media-video {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.media-video video {
    width: 100%;
    height: auto;
    display: block;
}

.video-caption {
    background-color: #f8f9fa;
    padding: 15px;
    text-align: center;
    font-size: 14px;
    color: #666;
    margin: 0;
}

.company-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.info-item i {
    font-size: 32px;
    color: #007bff;
    margin-bottom: 10px;
}

.info-item span {
    font-size: 14px;
    color: #666;
}

/* 服务项目部分样式 */
.services-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

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

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

.service-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-item i {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.service-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 产品展示部分样式 */
.products-section {
    padding: 80px 0;
    background-color: white;
}

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

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

.product-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

.product-item h3 {
    font-size: 20px;
    margin: 20px;
    color: #333;
}

.product-item p {
    font-size: 14px;
    color: #666;
    margin: 0 20px 20px;
    line-height: 1.6;
}

/* 联系我们部分样式 */
.contact-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

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

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

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

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 24px;
    color: #007bff;
    margin-right: 15px;
    min-width: 30px;
}

.contact-item span {
    font-size: 16px;
    color: #333;
}

/* 留言板组件样式 */
.message-board {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-board h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

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

.submit-btn {
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover:not(:disabled) {
    background-color: #0056b3;
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 页面切换按钮组件样式 */
.page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    gap: 5px;
}

.page-button.primary {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.page-button.primary:hover:not(:disabled) {
    background-color: #0056b3;
    border-color: #0056b3;
}

.page-button.success {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

.page-button.success:hover:not(:disabled) {
    background-color: #1e7e34;
    border-color: #1e7e34;
}

.page-button.warning {
    background-color: #ffc107;
    color: #212529;
    border-color: #ffc107;
}

.page-button.warning:hover:not(:disabled) {
    background-color: #e0a800;
    border-color: #e0a800;
}

.page-button.danger {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

.page-button.danger:hover:not(:disabled) {
    background-color: #c82333;
    border-color: #c82333;
}

.page-button.info {
    background-color: #17a2b8;
    color: white;
    border-color: #17a2b8;
}

.page-button.info:hover:not(:disabled) {
    background-color: #138496;
    border-color: #138496;
}

.page-button.text {
    background-color: transparent;
    color: #333;
    border-color: transparent;
}

.page-button.text:hover:not(:disabled) {
    background-color: #f8f9fa;
    color: #007bff;
}

.page-button.large {
    padding: 12px 24px;
    font-size: 16px;
}

.page-button.medium {
    padding: 8px 16px;
    font-size: 14px;
}

.page-button.small {
    padding: 6px 12px;
    font-size: 13px;
}

.page-button.mini {
    padding: 4px 8px;
    font-size: 12px;
}

.page-button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info,
.footer-links,
.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-info h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-info p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
    font-size: 16px;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #ccc;
    font-size: 20px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.footer-bottom p {
    font-size: 14px;
    color: #ccc;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .menu-btn {
        background: none;
        border: none;
        font-size: 24px;
        color: #333;
        cursor: pointer;
    }
    
    .carousel-section {
        height: 400px;
    }
    
    .carousel-caption h3 {
        font-size: 20px;
    }
    
    .carousel-caption p {
        font-size: 14px;
    }
    
    .about-section,
    .services-section,
    .products-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .about-section h2,
    .services-section h2,
    .products-section h2,
    .contact-section h2 {
        font-size: 28px;
    }
    
    .company-info {
        flex-direction: column;
        align-items: center;
    }
    
    /* 公司简介响应式样式 */
    .about-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-text p {
        text-align: justify;
    }
    
    .about-media {
        order: 1;
        max-width: 100%;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}