* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f8fafc;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
}

/* 顶部logo和公司名称 */
.header {
    display: flex;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid #eaeaea;
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: contain;
    background-color: #f0f4ff;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    border: 1px solid #e0e7ff;
}

.company-name {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 1px;
}

.company-name span {
    color: #3b82f6;
}

/* 导航栏 */
.navbar {
    margin: 30px 0 40px;
    position: relative;
}

.nav-tabs {
    display: flex;
    list-style: none;
    gap: 5px;
    background-color: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-item {
    position: relative;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 20px;
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 17px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.nav-link i {
    margin-right: 10px;
    font-size: 20px;
    color: #3b82f6;
}

.nav-link:hover {
    background-color: #f1f5f9;
    color: #3b82f6;
    transform: translateY(-2px);
}

/* 下拉菜单 */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 15px 0;
}

.nav-item:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown-item {
    padding: 15px 25px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    cursor: default;
}

.dropdown-item:hover {
    background-color: #f8fafc;
    border-left-color: #3b82f6;
    padding-left: 30px;
}

.dropdown-item h4 {
    color: #3b82f6;
    font-size: 16px;
    margin-bottom: 5px;
}

.dropdown-item .desc {
    display: block;
    font-size: 14px;
    color: #64748b;
    font-weight: normal;
}

/* 主要内容区域 */
.main-content {
    background-color: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 50px;
}

.welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-title {
    font-size: 32px;
    color: #1e293b;
    margin-bottom: 15px;
}

.welcome-text {
    color: #64748b;
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 18px;
}

.services-overview {
    margin-top: 30px;
    padding: 20px;
    background-color: #f0f9ff;
    border-radius: 10px;
    border-left: 4px solid #3b82f6;
}

.services-overview h3 {
    color: #1e293b;
    margin-bottom: 10px;
}

.services-overview p {
    color: #64748b;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-card {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: #c7d2fe;
}

.service-icon {
    font-size: 36px;
    color: #3b82f6;
    margin-bottom: 15px;
}

.service-title {
    font-size: 20px;
    color: #1e293b;
    margin-bottom: 10px;
}

.service-desc {
    color: #64748b;
}

/* 底部备案信息 */
.footer {
    background-color: #1e293b;
    color: #cbd5e1;
    padding: 30px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.company-info {
    flex: 1;
    min-width: 300px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.footer-logo span {
    color: #60a5fa;
}

.record-info {
    margin-top: 15px;
}

.icp-record, .police-record {
    margin-bottom: 10px;
}

.police-record {
    display: flex;
    align-items: center;
}

.ga-logo {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 2px;
    object-fit: contain;
}

.record-link {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 14px;
}

.record-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.copyright {
    margin-top: 15px;
    font-size: 14px;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #60a5fa;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav-tabs {
        flex-wrap: wrap;
    }
    
    .nav-item {
        flex: 1 0 calc(50% - 10px);
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header {
        padding: 20px 0;
    }
    
    .company-name {
        font-size: 22px;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .nav-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .nav-item {
        flex: 1 0 100%;
    }
    
    .main-content {
        padding: 25px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .police-record {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .company-name {
        font-size: 19px;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    .welcome-title {
        font-size: 26px;
    }
    
    .welcome-text {
        font-size: 16px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* 下拉菜单激活状态 */
.dropdown-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

/* 公安备案图标备用样式 */
.ga-fallback-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 2px;
    background-color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #1e293b;
}