/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* 头部样式 */
#header {
    background-color: #1a66b3;
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

/* 导航栏文字样式调整 */
.main-nav ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 14px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
}

.logo a {
    color: white;
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav ul li {
    margin-left: 15px;
    white-space: nowrap;
}

.main-nav ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.main-nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transition: all 0.3s ease;
}

.mobile-menu-btn span:nth-child(1) {
    top: 0px;
}

.mobile-menu-btn span:nth-child(2) {
    top: 8px;
}

.mobile-menu-btn span:nth-child(3) {
    top: 16px;
}

/* 搜索框样式 */
.search-container {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.search-container .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

#site-search {
    flex: 1;
    max-width: 600px;
    padding: 10px 15px;
    border: 2px solid #1a66b3;
    border-radius: 20px;
    font-size: 16px;
    outline: none;
}

#search-btn {
    background-color: #1a66b3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#search-btn:hover {
    background-color: #155a9c;
}

.search-suggestions {
    margin-top: 10px;
    width: 100%;
}

.search-suggestions span {
    margin-right: 10px;
    color: #666;
}

.search-suggestions a {
    margin: 0 5px;
    color: #1a66b3;
    text-decoration: none;
}

.search-suggestions a:hover {
    text-decoration: underline;
}

/* 主内容区样式 */
.content-wrapper {
    display: flex;
    margin-top: 20px;
    gap: 20px;
}

.left-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* 左侧边栏样式 */
.sidebar-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.sidebar-section h3 {
    color: #1a66b3;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section ul li {
    margin-bottom: 10px;
}

.sidebar-section ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.sidebar-section ul li a:hover {
    color: #1a66b3;
    padding-left: 5px;
}

.contact-info p {
    margin-bottom: 8px;
}

/* 英雄区域样式 */
.hero-section {
    background: linear-gradient(135deg, #1a66b3, #2a83d4);
    color: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
}

.hero-section h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.hero-section p {
    font-size: 18px;
    opacity: 0.9;
}

/* 快速访问卡片样式 */
.quick-access {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: #1a66b3;
    margin-bottom: 10px;
}

.card h3 a {
    color: #1a66b3;
    text-decoration: none;
}

.card p {
    color: #666;
}

/* 资讯部分样式 */
.news-section {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.news-section h3 {
    color: #1a66b3;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.news-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-item h4 {
    color: #333;
    margin-bottom: 8px;
}

.news-item p {
    color: #666;
}

/* 右侧浮动按钮样式 */
.right-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

.float-btn-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-btn {
    background-color: #1a66b3;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.float-btn:hover {
    background-color: #155a9c;
    transform: scale(1.1);
}

.float-btn .text {
    position: absolute;
    right: 100%;
    margin-right: 10px;
    white-space: nowrap;
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.float-btn:hover .text {
    opacity: 1;
    visibility: visible;
}

/* 页脚样式 */
#footer {
    background-color: #1a66b3;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* 知识页面样式 */
.knowledge-content {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.knowledge-content h2 {
    color: #1a66b3;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.knowledge-content h3 {
    color: #2a83d4;
    margin: 20px 0 15px;
}

.knowledge-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.knowledge-content ul,
.knowledge-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.knowledge-content li {
    margin-bottom: 8px;
}

/* FAQ页面样式 */
.faq-section {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h4 {
    color: #1a66b3;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item h4::after {
    content: '+';
    font-size: 20px;
    transition: transform 0.3s;
}

.faq-item.active h4::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding-top: 10px;
}

/* 规格型号表格样式 */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.spec-table th,
.spec-table td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: left;
}

.spec-table th {
    background-color: #1a66b3;
    color: white;
}

.spec-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.spec-table tr:hover {
    background-color: #f0f0f0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .left-sidebar {
        width: 100%;
    }
    
    .float-btn-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .right-sidebar {
        position: fixed;
        right: 0;
        bottom: 20px;
        left: 0;
        top: auto;
        transform: none;
        display: flex;
        justify-content: center;
    }
    
    /* 中等屏幕导航栏适配 */
    .main-nav ul li {
        margin-left: 10px;
    }
    
    .main-nav ul li a {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #1a66b3;
        transition: left 0.3s;
        z-index: 999;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .main-nav ul li {
        margin: 10px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .quick-access {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        padding: 30px 20px;
    }
    
    .hero-section h2 {
        font-size: 24px;
    }
    
    .search-container .container {
        flex-direction: column;
    }
    
    #site-search {
        width: 100%;
        margin-bottom: 10px;
    }
    
    #search-btn {
        margin-left: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .float-btn {
        width: 40px;
        height: 40px;
    }
    
    .float-btn .text {
        display: none;
    }
}

@media (max-width: 480px) {
    #header .container {
        flex-direction: column;
    }
    
    .logo h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .hero-section h2 {
        font-size: 20px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    .card {
        padding: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}