/* 全局样式 - 优化版 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 全局动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

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

/* 头部样式 */
header {
    background: linear-gradient(135deg, #42a5f5, #1976d2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 10px 0;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

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

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

.company-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.company-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.logo-text h1 {
    font-size: 1.9rem;
    color: #ffffff;
    margin-bottom: 6px;
    font-weight: 700;
    position: relative;
    letter-spacing: 0.5px;
}

/* Logo下划线已删除 */
/*
.logo h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
}
*/

.english-name {
    font-size: 0.9rem;
    color: #e0e0e0;
    font-style: italic;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 12px;
    border-radius: 4px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.2);
}

nav ul li a:hover::after {
    width: 80%;
}

nav ul li a:hover {
    color: #ffffff;
}

/* 主内容区样式 */
main {
    padding: 40px 0;
}

.services-section {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #0056b3, #1976d2, #42a5f5, #64b5f6);
}

.services-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

/* 服务标题下划线已删除 */
/*
.services-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #0056b3;
    border-radius: 2px;
}
*/

.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* 业务类别样式 */
.service-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.category {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px;
    transition: all 0.4s ease;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid #f8f9fa;
}

.category:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0056b3, #1976d2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: #ffffff;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
    transition: all 0.3s ease;
}

.category:hover .category-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.4);
}

.category h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.category p {
    color: #7f8c8d;
    line-height: 1.7;
}

/* 服务优势样式 */
.service-advantages {
    margin-bottom: 50px;
}

.service-advantages h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 35px;
    text-align: center;
    font-weight: 700;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

/* 优势标题下划线已删除 */
/*
.service-advantages h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #0056b3;
    border-radius: 1.5px;
}
*/

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

.advantage {
    display: flex;
    align-items: flex-start;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #42a5f5;
}

.advantage:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-left: 4px solid #1976d2;
}

.advantage i {
    color: #0056b3;
    margin-right: 15px;
    font-size: 1.3rem;
    margin-top: 3px;
    transition: all 0.3s ease;
}

.advantage:hover i {
    transform: scale(1.2);
}

/* 技术能力样式 */
.technical-capabilities h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 35px;
    text-align: center;
    font-weight: 700;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

/* 技术能力标题下划线已删除 */
/*
.technical-capabilities h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #0056b3;
    border-radius: 1.5px;
}
*/

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

.tech-item {
    background-color: #ffffff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-left: 4px solid #42a5f5;
}

.tech-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-left: 4px solid #1976d2;
}

.tech-name {
    font-weight: 600;
    color: #2c3e50;
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.tech-details {
    color: #7f8c8d;
    font-size: 0.95rem;
}

/* 案例背景样式 */
.case-background {
    background: linear-gradient(135deg, #e3f2fd, #f5f5f5);
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #1976d2;
}

.case-background h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.case-background p {
    color: #546e7a;
    line-height: 1.9;
    font-size: 1.05rem;
}

/* 实施效果样式 */
.implementation-results {
    margin-top: 50px;
    background: linear-gradient(135deg, #0056b3, #1976d2);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 12px 35px rgba(0, 86, 179, 0.25);
}

.implementation-results h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 35px;
    text-align: center;
    font-weight: 700;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
}

.result-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.result-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-8px);
}

.result-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.result-label {
    font-size: 0.95rem;
    color: #e3f2fd;
    line-height: 1.4;
}

/* 底部区域 - 全新优化样式 */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ecf0f1;
    padding: 40px 0 30px;
    position: relative;
    border-top: 4px solid #3498db;
}

/* 顶部装饰条 */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #00bcd4, #26c6da, #4dd0e1, #80deea);
}

/* 主要内容区域 */
.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* 响应式布局 - 桌面端两列 */
@media (min-width: 768px) {
    .footer-main {
        grid-template-columns: 1.8fr 1fr;
        gap: 60px;
    }
}

/* 左侧区域 */
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 公司信息 */
.company-info {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.footer-company-logo {
    flex-shrink: 0;
}

.footer-company-logo img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.footer-company-logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
}

.footer-company-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.company-name {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.company-english {
    color: #3498db;
    font-size: 0.95rem;
    font-style: italic;
    margin: 0;
    line-height: 1.4;
}

.company-description {
    color: #bdc3c7;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 500px;
}

/* 法律信息区域 - 垂直一列排列 */
.legal-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-info p {
    color: #bdc3c7;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

/* ICP备案信息 */
.icp-info a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ecf0f1;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(52, 152, 219, 0.1);
    transition: all 0.3s ease;
    width: fit-content;
}

.icp-info a:hover {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    transform: translateX(3px);
}

.icp-info i {
    color: #3498db;
    font-size: 0.95rem;
    width: 16px;
    text-align: center;
}

/* 公安备案信息 */
.police-info a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ecf0f1;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(46, 204, 113, 0.1);
    transition: all 0.3s ease;
    width: fit-content;
}

.police-info a:hover {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    transform: translateX(3px);
}

.police-info i {
    color: #2ecc71;
    font-size: 0.95rem;
    width: 16px;
    text-align: center;
}

/* 右侧区域 */
.footer-right {
    display: flex;
    justify-content: flex-end;
}

/* 联系我们板块 */
.contact-section {
    min-width: 280px;
}

.section-title {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 28px 0;
    position: relative;
    padding-bottom: 0;
}

/* 标题下划线 - 已删除 */
/*
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}
*/

/* 联系列表 */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 联系项 */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 10px 0;
}

/* 联系图标 */
.contact-icon {
    color: #42a5f5;
    font-size: 1.2rem;
    min-width: 24px;
    text-align: center;
    margin-top: 3px;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    color: #64b5f6;
    transform: scale(1.15);
}

/* 联系文本 */
.contact-text {
    color: #bdc3c7;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

/* 联系链接 */
.contact-link {
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.contact-link:hover {
    color: #2ecc71;
    text-decoration: underline;
}



/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        padding: 15px;
    }

    .logo {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }

    .company-logo {
        width: 50px;
        height: 50px;
        border-radius: 6px;
    }

    .logo-text h1 {
        font-size: 1.4rem;
        text-align: left;
    }

    .english-name {
        text-align: left;
        font-size: 0.8rem;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    .services-section h2 {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .service-categories,
    .advantages-list,
    .tech-stack {
        grid-template-columns: 1fr;
    }
    
    .icp-info {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .company-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-company-logo img {
        width: 55px;
        height: 55px;
        border-radius: 8px;
    }
    
    .case-background {
        padding: 25px;
    }
    
    .case-background h3 {
        font-size: 1.3rem;
    }
    
    .case-background p {
        font-size: 1rem;
    }
    
    .implementation-results {
        padding: 30px 20px;
    }
    
    .implementation-results h3 {
        font-size: 1.5rem;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .result-item {
        padding: 20px 15px;
    }
    
    .result-number {
        font-size: 1.8rem;
    }
    
    .result-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .logo {
        gap: 12px;
    }
    
    .company-logo {
        width: 45px;
        height: 45px;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .english-name {
        font-size: 0.75rem;
    }
    
    .footer-company-logo img {
        width: 50px;
        height: 50px;
    }
    
    .services-section {
        padding: 20px 0;
    }
    
    .category {
        padding: 20px;
    }
    
    .services-section h2 {
        font-size: 1.6rem;
    }

    .service-advantages h3,
    .technical-capabilities h3 {
        font-size: 1.5rem;
    }
}

/* 页面加载器样式 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #165DFF 0%, #36CFC9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loader-text {
    font-size: 1.125rem;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}