/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Source Han Sans CN', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    align-items: center;
    height:100px;
    border-bottom:1px solid #eee;
    background:rgba(0,0,0,.15)
    /*background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;*/
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
}

.navbar .container {
    width:100%;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0px 1px 1px #000;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.navbar.active{
    background:#fff;
}
.navbar.active .logo{
    color: #333;
    text-shadow: none;
}
.logo::before {
    content: "|";
    color: #ffbe00;
    margin-right: 10px;
    font-size: 18px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 35px;
}

.nav-menu a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0px 1px 1px #000;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}
.navbar.active .nav-menu a{
    color:#333;
    text-shadow:none;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffbe00;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #ffbe00;
}
.navbar.active .nav-menu a:hover{
    color: #ffbe00;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero区域 */
.hero {
    height: 100vh;
    /*background: linear-gradient(135deg, #007BFF 0%, #00BFFF 100%);*/
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    /*padding-top: 80px;*/
    position: relative;
    overflow: hidden;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background-color: #fff;
    color: #007BFF;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    font-size: var(--base-desc-font-size);
    margin-top: 10px;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background-color: #f8f9fa;
}

/* 通用section样式 */
.section {
    padding: var(--base-title-padding);
}

/* 特色服务概览 */
.features.section {
    background: linear-gradient(to bottom, #f9f9f9 0%, #ffffff 100%);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-item {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: #007BFF;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* 服务部分 */
.services.section {
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: var(--base-title-font-size);
    margin-bottom: 20px;
    color: #333;
}

.section-subtitle {
    text-align: center;
    font-size: var(--base-desc-font-size);
    color: #666;
    margin-bottom: 70px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-item {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #007BFF;
}

.service-item p {
    color: #666;
    line-height: 1.6;
}

/* 案例部分 */
.portfolio.section {
    background-color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.portfolio-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-img {
    height: 200px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-info {
    padding: 25px;
}

.portfolio-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.portfolio-info p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* 客户评价 */
.testimonials.section {
    background-color: #f9f9f9;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-item::before {
    content: """;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: rgba(0, 123, 255, 0.1);
    font-family: Georgia, serif;
}

.testimonial-content {
    margin-bottom: 20px;
    font-size: var(--base-desc-font-size);
    line-height: 1.7;
    color: #555;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #007BFF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 15px;
}

.author-info h4 {
    font-size: var(--base-desc-font-size);
    color: #333;
    margin-bottom: 5px;
}

.author-info p {
    color: #007BFF;
    margin: 0;
    font-size: 0.9rem;
}

/* 关于我们 */
.about.section {
    background-color: #f9f9f9;
}

.about-content {
    max-width: var(--base-banner-size);
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.about-content p {
    font-size: var(--base-desc-font-size);
    color: #666;
    margin-bottom: 25px;
    line-height: 1.8;
}

/* 联系我们 */
.contact.section {
    background-color: white;
}

.contact-info {
    text-align: center;
    margin-bottom: 50px;
}

.contact-info p {
    font-size: 1.2rem;
    margin: 12px 0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info p i {
    margin-right: 10px;
    color: #007BFF;
    font-size: 1.2rem;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #333;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 16px;
    border: 2px solid #e1e5eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.contact-form textarea {
    min-height: 180px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #007BFF 0%, #00BFFF 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: var(--base-desc-font-size);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0069d9 0%, #00a2ff 100%);
}


/* 新闻详情页面通用样式 */
.news-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #007BFF;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.news-back-link:hover {
    color: #0056b3;
    transform: translateX(-5px);
}

.news-back-link i {
    transition: transform 0.3s ease;
}

.news-back-link:hover i {
    transform: translateX(-3px);
}

/* 移动端菜单样式 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    margin-top: 4px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.navbar.active .mobile-menu-toggle span {
    background-color: #333;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -100vw;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 10000;
    padding: var(--base-title-padding);
    padding-bottom: 1.875rem;
}

.mobile-menu-panel.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 30px;
    right: 20px;
    font-size: 30px;
    color: #333;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    color: #007BFF;
    transform: rotate(90deg);
}

.mobile-nav-menu {
    padding: 0 20px;
}

.mobile-menu-item {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 15px;
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

.mobile-menu-item a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu-item a:hover {
    color: #007BFF;
    padding-left: 10px;
}

.mobile-submenu {
    padding-left: 20px;
    margin-top: 10px;
}

.mobile-submenu a {
    font-size: 16px;
    color: #666;
    padding: 8px 0;
}

.mobile-submenu a:hover {
    color: #007BFF;
    padding-left: 5px;
}

.has-children > a::after {
    content: '▼';
    float: right;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.has-children.active > a::after {
    transform: rotate(180deg);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: var(--base-title-font-size);
    }
}
.banner_image.pc_image{
    display: block;
}
.banner_image.mb_image{
    display: none;
}
@media (max-width: 768px) {
    .banner_image.pc_image{
        display: none;
    }
    .banner_image.mb_image{
        display: block;
    }
    .mobile-menu-toggle{
        display: block;
    }
    .mobile-menu-toggle i{
        color:#fff;
        font-size:1.6rem;
    }
    .navbar.active .mobile-menu-toggle i{
        color:#2b2b2b;
    }
    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-grid,
    .portfolio-grid,
    .feature-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .section {
        padding: 70px 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: var(--base-desc-font-size);
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-item,
    .portfolio-item,
    .feature-item,
    .testimonial-item {
        padding: 30px 20px;
    }
    
    .cta-button {
        padding: 14px 30px;
        font-size: 1rem;
    }
}