/* =================================
   全局样式 & 基础重置
   ================================= */
body {
    font-family: 'Arial', "Helvetica Neue", 'Microsoft YaHei', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1a202c;
    line-height: 1.3;
    margin-top: 0;
}

/* =================================
   头部样式 (Header)
   ================================= */
.main-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    max-height: 60px;
    width: auto;
    display: block;
}

.slogan {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #4a5568;
    white-space: nowrap;
}

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

.main-nav ul li {
    margin-left: 35px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
}

.main-nav ul li a.active,
.main-nav ul li a:hover {
    color: #0056b3;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #0056b3;
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

/* =================================
   【首页专属】高级感 Banner 样式
   ================================= */
.hero-banner-premium {
    position: relative;
    color: #fff;
    height: 60vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(to right, rgba(1, 42, 94, 0.85), rgba(0, 86, 179, 0.7)), url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.cta-button-premium {
    background: #f6ad55;
    color: #2d3748;
    padding: 18px 45px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: none;
}

.cta-button-premium:hover {
    background: #ed8936;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    color: #1a202c;
}

/* =================================
   【首页专属】核心服务板块样式
   ================================= */
.services-overview-premium {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 20px;
    color: #1a202c;
}

.section-intro {
    text-align: center;
    font-size: 18px;
    color: #718096;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.services-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-item-premium {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.service-item-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: transparent;
}

.service-item-premium .service-icon {
    font-size: 48px;
    margin-bottom: 25px;
}

.service-item-premium h3 {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 15px;
}

.service-item-premium p {
    font-size: 16px;
    color: #718096;
    line-height: 1.7;
}

/* =================================
   【内页通用】样式
   ================================= */
.page-header {
    background: #fff;
    text-align: center;
    padding: 60px 20px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 44px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    color: #718096;
    margin: 0;
}

.page-content {
    padding: 40px 0;
}

.page-content section {
    margin-bottom: 80px;
}

.page-content h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
}

/* =================================
   【关于我们】页面专属样式
   ================================= */
.about-section {
    display: flex;
    align-items: center;
    gap: 60px;
    background: #fff;
    padding: 50px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.about-image {
    flex: 0 0 40%;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    text-align: left;
    font-size: 36px;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 17px;
    color: #4a5568;
    line-height: 1.8;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.why-us-item {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.why-us-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: transparent;
}

.why-us-icon {
    font-size: 42px;
    margin-bottom: 20px;
}

.why-us-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.why-us-item p {
    font-size: 16px;
    color: #718096;
    line-height: 1.7;
}

/* =================================
   【服务项目】页面样式
   ================================= */
.service-detail {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 40px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.service-detail.reverse {
    flex-direction: row-reverse;
}

.service-image {
    flex: 1;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-text {
    flex: 1;
}

.service-text h2 {
    text-align: left;
    margin-bottom: 15px;
    font-size: 32px;
}

.service-text p {
    margin-bottom: 25px;
    font-size: 16px;
    color: #4a5568;
}

.service-text ul {
    list-style: none;
    padding-left: 0;
    font-size: 16px;
}

.service-text ul li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
    color: #4a5568;
}

.service-text ul li::before {
    content: '✔';
    color: #38a169;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 18px;
}

.section-divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 60px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.plan {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    padding: 40px 30px;
    background: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.plan:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.plan.popular {
    border-color: #007bff;
    border-width: 2px;
    position: relative;
    overflow: hidden;
}

.plan.popular::before {
    content: '推荐';
    position: absolute;
    top: 15px;
    right: -25px;
    background: #007bff;
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 13px;
    font-weight: bold;
    z-index: 10;
}

.plan h3 { font-size: 26px; margin-bottom: 20px; }
.plan .price { font-size: 32px; font-weight: bold; color: #007bff; margin-bottom: 30px; }
.plan ul { list-style: none; padding: 0; margin-bottom: 35px; flex-grow: 1; text-align: left; font-size: 15px; }
.plan ul li { margin-bottom: 15px; color: #718096; padding-left: 25px; position: relative; }
.plan ul li::before { content: '✔'; color: #38a169; position: absolute; left: 0; font-weight: bold; }
.plan ul li.-::before { content: '✖'; color: #e53e3e; }

.cta-button-outline {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
    padding: 15px 35px;
    font-weight: bold;
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 16px;
    align-self: center;
}

.cta-button-outline:hover {
    background: #007bff;
    color: #fff;
}

/* =================================
   【成功案例】页面样式
   ================================= */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.case-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.case-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.case-image { height: 220px; overflow: hidden; position: relative; }
.case-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.case-item:hover .case-image img { transform: scale(1.05); }

.case-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.case-category { display: inline-block; background: #e2e8f0; color: #4a5568; padding: 5px 12px; border-radius: 15px; font-size: 13px; font-weight: bold; margin-bottom: 15px; align-self: flex-start; }
.case-content h3 { font-size: 22px; margin-bottom: 15px; flex-grow: 1; }
.case-content p { color: #718096; margin-bottom: 25px; font-size: 15px; }
.case-link { font-weight: bold; align-self: flex-start; }

/* =================================
   【联系我们】页面样式
   ================================= */
.contact-wrapper {
    display: flex;
    gap: 60px;
    background: #fff;
    padding: 50px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.contact-info { flex-basis: 40%; padding-right: 20px; }
.contact-form { flex-basis: 60%; }
.contact-info h2, .contact-form h2 { text-align: left; margin-bottom: 25px; font-size: 30px; }
.contact-info p { font-size: 16px; color: #4a5568; margin-bottom: 30px; }
.info-item { margin-bottom: 20px; font-size: 16px; }
.info-item strong { display: block; margin-bottom: 5px; font-size: 17px; }
.info-item span, .info-item a { color: #718096; }
.info-item a:hover { color: #007bff; }

.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 10px; font-weight: 600; font-size: 15px; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; border: 1px solid #cbd5e0; border-radius: 8px; font-size: 16px; box-sizing: border-box; transition: all 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #007bff; box-shadow: 0 0 0 3px rgba(0,123,255,0.2); }
.contact-form .cta-button-premium { width: auto; padding: 15px 40px; font-size: 17px; margin-top: 10px; }

/* =================================
   【通用】CTA 结尾模块样式
   ================================= */
.cta-section {
    background: #2d3748;
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}
.cta-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #fff;
}
.cta-section p {
    font-size: 18px;
    color: #a0aec0;
    margin-bottom: 30px;
}

/* =================================
   【全新】页脚样式 (Footer)
   ================================= */
.main-footer {
    background: #1a202c;
    color: #a0aec0;
    padding: 60px 0 0 0;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #4a5568;
}
.footer-about {
    flex: 2;
    max-width: 350px;
}
.footer-links, .footer-contact {
    flex: 1;
}
.footer-logo {
    max-height: 50px;
    margin-bottom: 20px;
}
.footer-slogan {
    font-size: 15px;
    color: #a0aec0;
}
.main-footer h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links ul li a {
    color: #a0aec0;
    display: block;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}
.footer-links ul li a:hover {
    color: #fff;
    padding-left: 5px;
}
.footer-contact p {
    color: #a0aec0;
    font-size: 15px;
    margin-bottom: 15px;
}
.footer-contact a {
    color: #a0aec0;
}
.footer-contact a:hover {
    color: #fff;
}
.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}
.footer-bottom p {
    margin: 0;
    color: #718096;
}

/* =================================
   【通用】移动端适配样式
   ================================= */
@media (max-width: 992px) {
    .container { padding: 0 25px; }
    .hero-content h1 { font-size: 44px; }
    .services-grid-premium, .why-us-grid, .case-grid, .pricing-grid { grid-template-columns: 1fr; gap: 25px; }
    .section-title, .page-content h2 { font-size: 34px; }
    
    .about-section, .service-detail, .service-detail.reverse, .contact-wrapper { flex-direction: column; gap: 30px; padding: 30px; }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-about {
        max-width: 100%;
        margin-bottom: 30px;
    }
    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .main-header .container { flex-direction: column; padding: 10px 15px; }
    .site-branding { flex-direction: column; gap: 5px; margin-bottom: 15px; }
    .logo img { max-height: 50px; }
    .slogan { font-size: 15px; text-align: center; white-space: normal; } /* 允许Slogan换行 */

    .main-nav { width: 100%; }
    .main-nav ul { margin-top: 10px; justify-content: center; flex-wrap: wrap; }
    .main-nav ul li { margin: 5px 12px; }
    .main-nav ul li a { font-size: 15px; }

    .hero-banner-premium { height: auto; min-height: 400px; padding: 60px 20px; background-attachment: scroll; }
    .hero-content h1 { font-size: 36px; }
    .hero-content p { font-size: 18px; }
    .cta-button-premium { padding: 15px 35px; font-size: 16px; }

    .services-overview-premium { padding: 60px 20px; }
    .section-title, .page-content h2, .page-header h1 { font-size: 30px; }
    .section-intro, .page-header p { font-size: 16px; }
    .page-content { padding: 30px 0; }

    .about-text h2 { text-align: center; }
    
    .contact-form .cta-button-premium { width: 100%; }
}