/* 基础重置与全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', 'Arial', sans-serif;
}

/* 动态海洋科技风背景 */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a192f, #112940, #0f3460);
    overflow: hidden;
    z-index: -1;
}
.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    border-radius: 45%;
    background: rgba(30, 136, 229, 0.1);
    animation: wave 20s linear infinite;
}
.wave:nth-child(1) {
    top: -150%;
    left: -50%;
    animation-duration: 15s;
}
.wave:nth-child(2) {
    top: -140%;
    left: -50%;
    animation-duration: 25s;
    animation-delay: 2s;
}
.wave:nth-child(3) {
    top: -130%;
    left: -50%;
    animation-duration: 20s;
    animation-delay: 5s;
}
.glow-point {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(100, 181, 246, 0.8);
    border-radius: 50%;
    animation: glow 3s infinite alternate;
}
@keyframes wave {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(100, 181, 246, 0.5); }
    100% { box-shadow: 0 0 15px rgba(100, 181, 246, 0.9); }
}

/* 头部导航 */
header {
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 25, 47, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(66, 165, 245, 0.3);
}
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.logo-text {
    color: #e3f2fd;
    font-size: 24px;
    font-weight: 700;
}
.nav-menu {
    display: flex;
    gap: 30px;
}
.nav-item {
    color: #bbdefb;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}
.nav-item:hover {
    color: #e3f2fd;
    background: rgba(66, 165, 245, 0.2);
}
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #42a5f5;
    transition: width 0.3s ease;
}
.nav-item:hover::after {
    width: 100%;
}
.nav-item.active {
    color: #e3f2fd;
    background: rgba(66, 165, 245, 0.2);
}
.nav-item.active::after {
    width: 100%;
}
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: #e3f2fd;
    background: none;
    border: none;
    cursor: pointer;
}

/* 页面主体样式 */
.category-main {
    width: 90%;
    margin: 40px auto;
    padding-bottom: 80px;
}

/* 页面标题区 */
.category-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 20px 0;
}
.category-title {
    color: #e3f2fd;
    font-size: 32px;
    margin-bottom: 15px;
    text-shadow: 0 0 8px rgba(30, 136, 229, 0.4);
}
.category-subtitle {
    color: #bbdefb;
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 标签筛选区 */
.tag-filter {
    background: rgba(10, 25, 47, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
    border: 1px solid rgba(66, 165, 245, 0.3);
    box-shadow: 0 4px 20px rgba(30, 136, 229, 0.1);
}
.filter-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.filter-group:last-child {
    margin-bottom: 0;
}
.filter-label {
    color: #e3f2fd;
    font-size: 16px;
    font-weight: 500;
    margin-right: 15px;
    min-width: 80px;
}
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}
.tag {
    padding: 8px 16px;
    background: rgba(66, 165, 245, 0.1);
    color: #bbdefb;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.tag:hover {
    background: rgba(66, 165, 245, 0.2);
    color: #e3f2fd;
}
.tag.active {
    background: #2196f3;
    color: #fff;
    border-color: #2196f3;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.3);
}

/* 分类模块区样式 */
.category-modules {
    width: 100%;
    margin: 50px 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 知识模块样式 */
.knowledge-module {
    background: rgba(10, 25, 47, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(66, 165, 245, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
}
.knowledge-module:hover {
    box-shadow: 0 10px 30px rgba(30, 136, 229, 0.2);
    border-color: rgba(66, 165, 245, 0.5);
}

.module-header {
    background: linear-gradient(90deg, rgba(66, 165, 245, 0.2), rgba(66, 165, 245, 0.05));
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(66, 165, 245, 0.2);
}
.module-icon {
    font-size: 28px;
    color: #42a5f5;
    width: 50px;
    height: 50px;
    background: rgba(66, 165, 245, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.module-title {
    color: #e3f2fd;
    font-size: 24px;
    font-weight: 600;
}

.module-content {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

/* 知识卡片样式 */
.knowledge-card {
    background: rgba(10, 25, 47, 0.4);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(66, 165, 245, 0.2);
    display: flex;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.knowledge-card:hover {
    transform: translateY(-5px);
    background: rgba(10, 25, 47, 0.5);
    border-color: #42a5f5;
    box-shadow: 0 5px 15px rgba(30, 136, 229, 0.15);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(66, 165, 245, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.card-icon i {
    font-size: 20px;
    color: #42a5f5;
}

.card-info {
    flex: 1;
}
.card-title {
    color: #e3f2fd;
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 1.4;
}
.card-desc {
    color: #bbdefb;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.meta-item {
    font-size: 12px;
    color: #90caf9;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(66, 165, 245, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}
.meta-item i {
    font-size: 10px;
}

/* 查看更多按钮 */
.view-more {
    grid-column: 1 / -1;
    text-align: center;
    color: #42a5f5;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    align-self: center;
}
.view-more:hover {
    color: #e3f2fd;
    background: rgba(66, 165, 245, 0.15);
}
.view-more i {
    margin-left: 6px;
    transition: transform 0.3s ease;
}
.view-more:hover i {
    transform: translateX(3px);
}

/* 多格式知识支持区样式 */
.format-support {
    margin-top: 60px;
}
.support-title {
    color: #e3f2fd;
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}
.support-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #2196f3;
    border-radius: 3px;
}
.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}
.format-item {
    text-align: center;
    padding: 25px;
    background: rgba(10, 25, 47, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(66, 165, 245, 0.2);
    transition: all 0.3s ease;
}
.format-item:hover {
    transform: translateY(-5px);
    border-color: #42a5f5;
    background: rgba(10, 25, 47, 0.6);
}
.format-icon {
    width: 60px;
    height: 60px;
    background: rgba(66, 165, 245, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}
.format-icon i {
    font-size: 28px;
    color: #42a5f5;
}
.format-name {
    color: #e3f2fd;
    font-size: 18px;
    margin-bottom: 8px;
}
.format-count {
    color: #90caf9;
    font-size: 14px;
}

/* 底部样式 */
footer {
    width: 100%;
    padding: 40px 5%;
    background: rgba(10, 25, 47, 0.8);
    border-top: 1px solid rgba(66, 165, 245, 0.3);
    margin-top: 80px;
}
.footer-content {
    color: #bbdefb;
    text-align: center;
    font-size: 14px;
    line-height: 1.8;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .module-content {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100px;
        right: 5%;
        background: rgba(10, 25, 47, 0.9);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        padding: 20px;
        border: 1px solid rgba(66, 165, 245, 0.3);
        z-index: 999;
    }
    .nav-menu.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .category-header {
        margin-bottom: 30px;
    }
    .category-title {
        font-size: 28px;
    }
    .tag-filter {
        padding: 20px;
    }
    .filter-group {
        margin-bottom: 12px;
    }
    .filter-label {
        min-width: 60px;
        font-size: 14px;
    }
    .tag {
        padding: 6px 12px;
        font-size: 13px;
    }
    .module-header {
        padding: 15px 20px;
    }
    .module-title {
        font-size: 20px;
    }
    .module-content {
        padding: 20px;
        grid-template-columns: 1fr;
    }
    .knowledge-card {
        flex-direction: column;
        gap: 12px;
    }
    .card-icon {
        align-self: flex-start;
    }
    .format-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}
@media (max-width: 480px) {
    .category-subtitle {
        font-size: 16px;
    }
    .module-icon {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
    .card-title {
        font-size: 16px;
    }
    .format-item {
        padding: 15px;
    }
    .format-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    .format-name {
        font-size: 16px;
    }
}