/* 现代化头部样式 */
.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #015AAC;
}

/* 顶部工具栏 */
.header-top {
    background: linear-gradient(135deg, #015AAC 0%, #4B8AC7 100%);
    color: #ffffff;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

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

.header-top-left {
    display: flex;
    gap: 1.5rem;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-contact a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.header-contact a:hover {
    opacity: 0.8;
}

.header-top-right {
    display: flex;
    align-items: center;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.header-link:hover {
    opacity: 0.8;
}

.header-separator {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0.5rem;
}

/* 主要导航区域 */
.header-main {
    padding: 1rem 0;
}

.header-main-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: center;
}

/* Logo区域 */
.header-logo {
    text-align: left;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #015AAC;
    margin: 0;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: #666;
    display: block;
    margin-top: 0.25rem;
}

/* 搜索区域 */
.header-search {
    display: flex;
    justify-content: center;
}

.search-form {
    width: 100%;
    max-width: 500px;
}

.search-input-group {
    display: flex;
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    outline: none;
    font-size: 1rem;
    background: #ffffff;
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #015AAC 0%, #4B8AC7 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background: linear-gradient(135deg, #014a8f 0%, #3d7ab0 100%);
    transform: translateY(-1px);
}

/* 用户操作区域 */
.header-actions {
    display: flex;
    justify-content: flex-end;
}

.header-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

.header-menu-item {
    position: relative;
}

.header-menu-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.header-menu-link:hover {
    background: rgba(1, 90, 172, 0.1);
    color: #015AAC;
    transform: translateY(-1px);
}

.menu-icon {
    font-size: 1.1rem;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: #015AAC;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: #ffffff;
    padding: 2rem 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    margin-bottom: 1rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.mobile-nav-link:hover {
    background: rgba(1, 90, 172, 0.1);
    color: #015AAC;
}

.mobile-menu-footer {
    position: absolute;
    bottom: 2rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    gap: 1rem;
}

.mobile-menu-link {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    background: linear-gradient(135deg, #015AAC 0%, #4B8AC7 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-menu-link:hover {
    background: linear-gradient(135deg, #014a8f 0%, #3d7ab0 100%);
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .header-main-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .header-logo {
        text-align: center;
    }
    
    .header-actions {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .search-form {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.2rem;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .search-button {
        padding: 0.5rem 1rem;
    }
}

/* 现代化页脚样式 */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    color: #ffffff !important;
    padding: 3rem 0 1.5rem !important;
    margin-top: 4rem !important;
    position: relative !important;
    overflow: hidden !important;
    float: none !important;
    width: 100% !important;
    text-align: left !important;
    font-size: inherit !important;
    line-height: inherit !important;
    /* 确保footer样式不被其他样式覆盖 */
    display: block !important;
    clear: both !important;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #015AAC, #4B8AC7, #015AAC);
    background-size: 200% 100%;
    animation: gradientMove 3s ease-in-out infinite;
}

.footer-section {
    margin-bottom: 2rem !important;
    /* 确保section样式正确 */
    display: block !important;
    float: none !important;
}

.footer__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    position: relative;
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #015AAC;
    border-radius: 1px;
}

.footer__text {
    color: #b0b8c1;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer__links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
}

.footer__links li {
    margin-bottom: 0.75rem;
}

.footer__link {
    color: #b0b8c1 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-size: 0.95rem !important;
    display: inline-block !important;
    position: relative !important;
    margin: 0 !important;
}

.footer__link:hover {
    color: #ffffff !important;
    transform: translateX(5px) !important;
}

.footer__link::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer__link:hover::before {
    opacity: 1;
    left: -20px;
}

.footer-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
    padding: 0.5rem;
    background: rgba(1, 90, 172, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(1, 90, 172, 0.2);
}

.stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #015AAC;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #b0b8c1;
    margin-top: 0.25rem;
}

.footer__contact {
    margin: 0;
    padding: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.contact-icon {
    font-size: 1rem;
    opacity: 0.8;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright p {
    margin: 0;
    color: #8a9ba8;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links .footer__link {
    font-size: 0.85rem;
    color: #8a9ba8;
}

.footer-links .footer__link:hover {
    color: #ffffff;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #015AAC 0%, #4B8AC7 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 90, 172, 0.3);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(1, 90, 172, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-stats {
        gap: 1rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .footer__title {
        font-size: 1.1rem;
    }
    
    .footer__text {
        font-size: 0.9rem;
    }
    
    .footer__link {
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

/* 动画 */
@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Footer网格布局支持 - 使用更具体的选择器 */
.footer .grid {
    display: grid !important;
    gap: var(--spacing-lg, 1.5rem) !important;
}

.footer .grid--3 {
    grid-template-columns: repeat(1, 1fr) !important;
}

@media (min-width: 768px) {
    .footer .grid--3 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

.footer .gap-5 {
    gap: 1.25rem !important;
}

/* Footer容器样式 - 使用更具体的选择器避免与其他页面的container冲突 */
.footer .container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
    text-align: left !important;
    /* 覆盖其他页面的container样式 */
    float: none !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    /* 覆盖sodatasheet.css中的container样式 */
    min-width: auto !important;
}

@media (min-width: 576px) {
    .footer .container {
        padding: 0 1.5rem !important;
    }
}

@media (min-width: 992px) {
    .footer .container {
        padding: 0 2rem !important;
    }
}
