/* 公共样式 - 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #F4F1EB;
}

/* 顶部导航样式 */
.site-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
    background-color: #F4F1EB;
}

.topmain {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 80px;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

/* Logo 区域 */
.topmain-left {
    flex-shrink: 0;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* 导航菜单区域 */
.topmain-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    margin-bottom: 0px;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #464545;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: block;
    line-height: 1.2;
    font-size: 20px;
}

.nav-link:hover {
    color: #F19090;
    /* background: rgba(0, 123, 255, 0.1); */
    font-weight: bolder;
}

.nav-item.active .nav-link {
    color: #F19090;
    /* background: rgba(0, 123, 255, 0.1); */
    font-weight: bolder;
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #007bff;
}

.dropdown-item:last-child {
    border-bottom: none;
}

/* 图标区域 */
.topmain-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.icon-group {
    display: flex;
    gap: 15px;
}

.icon-item {
    position: relative;
}

.icon-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.icon-link:hover {
    color: #F19090;
    background: rgba(0, 123, 255, 0.1);
}

.icon-link i {
    font-size: 22px;
}

/* PC端隐藏图标文字 */
.icon-text {
    margin-left: 0;
    font-size: 0;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1002;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.mobile-logo {
    height: 40px;
    width: auto;
}

.close-menu {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.mobile-nav-list {
    list-style: none;
    padding: 20px 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.mobile-nav-item.active .mobile-nav-link {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.submenu-toggle {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.mobile-nav-item.submenu-open .submenu-toggle {
    transform: rotate(90deg);
}

.mobile-submenu {
    list-style: none;
    background: #f8f9fa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav-item.submenu-open .mobile-submenu {
    max-height: 500px;
}

.mobile-submenu-item {
    border-bottom: 1px solid #e9ecef;
}

.mobile-submenu-link {
    display: block;
    padding: 12px 20px 12px 40px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
}

.mobile-submenu-link:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

.mobile-icon-group {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    gap: 10px;
    border-top: 1px solid #eee;
}

.mobile-icon-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    flex: 1;
    min-width: 120px;
    transition: all 0.3s ease;
}

.mobile-icon-item:hover {
    color: #007bff;
    border-color: #007bff;
}

.mobile-icon-item i {
    margin-right: 8px;
}

/* 底部样式 */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 50px 0 20px;
    margin-top: auto;
}

.footer-main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #3498db;
    margin-bottom: 20px;
    font-size: 18px;
}

/* 公司信息 */
.footer-info .footer-logo {
    height: 40px;
    margin-bottom: 15px;
}

.company-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #3498db;
}

.company-desc {
    line-height: 1.6;
    color: #bdc3c7;
}

/* 联系信息 */
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.contact-item i {
    margin-right: 10px;
    color: #3498db;
    width: 20px;
}

/* 快速链接 */
.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #3498db;
}

/* 社交媒体 */
.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #34495e;
    border-radius: 50%;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #3498db;
    transform: translateY(-2px);
}

/* 底部版权 */
.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
}

.copyright {
    margin-bottom: 10px;
    color: #bdc3c7;
}

.icp-number a {
    color: #bdc3c7;
    text-decoration: none;
}

.icp-number a:hover {
    color: #3498db;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .topmain {
        padding: 0 15px;
        height: 70px;
    }

    .topmain-right {
        display: none;
    }
    
    .nav-list {
        gap: 20px;
    }
    
    .icon-text {
        display: none;
    }
    
    .icon-link {
        padding: 8px;
    }
    
    .footer-content {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .topmain-center,
    .topmain-right {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .topmain {
        padding: 0 10px;
        height: 60px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .site-footer {
        padding: 30px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 100%;
    }
    
    .mobile-icon-item {
        min-width: calc(50% - 10px);
    }
    
    .footer-main {
        padding: 0 15px;
    }
}

/* 大屏幕适配 */
@media (min-width: 1440px) {
    .topmain {
        padding: 0 40px;
    }
    
    .footer-main {
        padding: 0 40px;
    }
}

/* 滚动时顶部固定样式 */
.site-header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    animation: slideDown 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* 确保移动端触摸友好 */
@media (hover: none) and (pointer: coarse) {
    .nav-link,
    .icon-link,
    .mobile-nav-link {
        padding: 12px 15px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
    }
}