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

/* 基础样式 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: #333;
}

ul, li {
    list-style: none;
}

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

/* 布局样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 通用组件 */
.section {
    padding: 60px 0;
}

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

.section__title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.section__title p {
    font-size: 16px;
    color: #666;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #007bff;
    color: #fff;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

.btn--secondary {
    background-color: #6c757d;
}

.btn--secondary:hover {
    background-color: #5a6268;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__top {
    background-color: #f5f5f5;
    padding: 10px 0;
}

.header__top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__top-left {
    font-size: 14px;
    color: #666;
}

.header__top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header__top-right a {
    font-size: 14px;
    color: #666;
}

.header__top-right a:hover {
    color: #007bff;
}

.header__phone {
    font-size: 14px;
    color: #007bff;
    font-weight: 500;
}

.header__bottom {
    padding: 15px 0;
}

.header__bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 50px;
    width: auto;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-left: 10px;
}

/* 导航样式 */
.nav {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__item {
    position: relative;
}

.nav__item a {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
}

.nav__item a:hover,
.nav__item a.active {
    color: #007bff;
}

.nav__item--has-dropdown:hover .nav__dropdown {
    display: block;
}

.nav__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    min-width: 200px;
    z-index: 100;
}

.nav__dropdown-item {
    padding: 8px 20px;
}

.nav__dropdown-item a {
    font-size: 14px;
    color: #666;
}

.nav__dropdown-item a:hover {
    color: #007bff;
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.nav__badge {
    display: inline-flex;
    align-items: center;
}

.badge {
    background-color: #dc3545;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

/* 移动端侧边栏 */
.sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: left 0.3s ease;
}

.sidebar.active {
    left: 0;
}

.sidebar__header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar__close {
    font-size: 24px;
    cursor: pointer;
}

.sidebar__nav {
    padding: 20px;
}

.sidebar__item {
    margin-bottom: 10px;
}

.sidebar__item a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
}

.sidebar__item a.active {
    color: #007bff;
}

.sidebar__dropdown {
    display: none;
    padding-left: 20px;
}

.sidebar__dropdown-item a {
    font-size: 14px;
    padding: 8px 0;
}

.sidebar__item--open .sidebar__dropdown {
    display: block;
}

/* 遮罩层 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.overlay.active {
    display: block;
}

/* Banner样式 */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.banner__title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.banner__subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* 服务介绍 */
.services {
    background-color: #f8f9fa;
}

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

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

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

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

.service__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

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

/* 关于我们 */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about__content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.about__content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

.about__image {
    max-width: 100%;
    border-radius: 8px;
}

/* 解决方案 */
.solutions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.solution__card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.solution__image {
    height: 200px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.solution__content {
    padding: 20px;
}

.solution__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.solution__desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* 荣誉资质 */
.honor {
    background-color: #f8f9fa;
}

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

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

.honor__icon {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 15px;
}

.honor__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.honor__desc {
    font-size: 14px;
    color: #666;
}

/* 联系我们 */
.contact {
    background-color: #007bff;
    color: #fff;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact__info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact__list {
    margin-bottom: 30px;
}

.contact__item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact__item i {
    font-size: 20px;
    margin-right: 15px;
}

.contact__item span {
    font-size: 16px;
}

.contact__form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    color: #333;
}

.contact__form h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.form__group {
    margin-bottom: 20px;
}

.form__group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.form__group input,
.form__group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form__group textarea {
    resize: vertical;
    min-height: 120px;
}

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

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

.footer__logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer__logo img {
    height: 40px;
    width: auto;
}

.footer__logo h2 {
    font-size: 20px;
    margin-left: 10px;
}

.footer__desc {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
}

.footer__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer__links li {
    margin-bottom: 10px;
}

.footer__links a {
    font-size: 14px;
    color: #999;
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: #fff;
}

.footer__contact li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #999;
}

.footer__contact i {
    margin-right: 10px;
}

.footer__bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
    color: #999;
}

.footer__bottom a {
    color: #999;
}

.footer__bottom a:hover {
    color: #fff;
}

/* 页面内容 */
.page__content {
    padding: 40px 0;
}

.page__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.page__desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

.page__section {
    margin-bottom: 40px;
}

.page__section h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.page__section p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

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

.page__feature {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.page__feature h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.page__feature p {
    font-size: 14px;
    color: #666;
}

/* 荣誉资质页面 */
.honor-page__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.honor-page__card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.honor-page__card img {
    max-width: 200px;
    margin-bottom: 20px;
}

.honor-page__card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.honor-page__card p {
    font-size: 14px;
    color: #666;
}

/* 响应式设计 */

/* 平板端 */
@media (max-width: 1024px) {
    .nav__list {
        gap: 20px;
    }
    
    .banner__title {
        font-size: 36px;
    }
    
    .about__grid {
        grid-template-columns: 1fr;
    }
    
    .contact__grid {
        grid-template-columns: 1fr;
    }
}

/* 手机端 */
@media (max-width: 768px) {
    .header__top {
        display: none;
    }
    
    .header__bottom-content {
        justify-content: space-between;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    .nav__list {
        display: none;
    }
    
    .nav__toggle {
        display: block;
    }
    
    .sidebar {
        display: block;
    }
    
    .banner {
        padding: 60px 0;
    }
    
    .banner__title {
        font-size: 28px;
    }
    
    .banner__subtitle {
        font-size: 16px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section__title h2 {
        font-size: 24px;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .solutions__grid {
        grid-template-columns: 1fr;
    }
    
    .honor__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
    }
    
    .page__title {
        font-size: 24px;
    }
    
    .page__features {
        grid-template-columns: 1fr;
    }
}

/* 小屏幕手机 */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .banner__title {
        font-size: 24px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo h1 {
        font-size: 16px;
    }
    
    .service__card,
    .solution__card,
    .honor__card {
        padding: 20px;
    }
}