  /* 全局样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
        }
        
        body {
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
        }
        
        a {
            text-decoration: none;
            color: #2c5aa0;
        }
        input, button, textarea, select {
            outline: 0;
            -webkit-appearance: none;
            transition: all .3s;
            -webkit-transition: all .3s;
            box-sizing: border-box;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        /* 头部样式 */
        header {
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            color: white;
            padding: 15px 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .logo {
            display: flex;
            align-items: center;
        }
        
        .logo img {
            width: 200px;
           
        }
        
        .logo-icon {
            font-size: 28px;
            color: #4CAF50;
        }
        
        .search-box {
            display: flex;
            width: 400px;
        }
        
        .search-box input {
            flex: 1;
            padding: 10px 15px;
            border: none;
            border-radius: 4px 0 0 4px;
            font-size: 14px;
        }
        
        .search-box button {
            background: #4CAF50;
            color: white;
            border: none;
            padding: 0 20px;
            border-radius: 0 4px 4px 0;
            cursor: pointer;
        }
        
        .user-actions {
            display: flex;
            gap: 15px;
        }
        
        .btn {
            padding: 8px 20px;
            border-radius: 4px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .btn-login {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.5);
            color: white;
        }
        
        .btn-register {
            background: #4CAF50;
            border: 1px solid #4CAF50;
            color: white;
        }
        
        .btn:hover {
            opacity: 0.9;
            transform: translateY(-2px);
        }
        
        /* 主导航 */
        .main-nav {
            display: flex;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
            padding: 0 10px;
        }
        
        .main-nav a {
            display: block;
            padding: 12px 20px;
            color: white;
            font-size: 15px;
            transition: background 0.3s;
        }
        
        .main-nav a:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        
        /* 轮播图和公告区域 */
        .banner-section {
            display: flex;
            margin: 20px 0 0 0;
            gap: 20px;
        }
        
        .banner-left {
            flex: 3;
        }
        
        .banner-right {
            flex: 1;
        }
        
        /* 轮播图样式 */
        .carousel {
            position: relative;
            height: 350px;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .carousel-inner {
            position: relative;
            width: 100%;
            height: 100%;
        }
        
        .carousel-item {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 0.8s ease;
            background-size: cover;
            background-position: center;
        }
        
        .carousel-item.active {
            opacity: 1;
        }
        
        .carousel-caption {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.6);
            color: white;
            padding: 15px 20px;
        }
        
        .carousel-caption h3 {
            font-size: 18px;
            margin-bottom: 5px;
        }
        
        .carousel-caption p {
            font-size: 14px;
            margin-bottom: 0;
        }
        
        .carousel-controls {
            position: absolute;
            bottom: 15px;
            right: 15px;
            display: flex;
            gap: 10px;
        }
        
        .carousel-control {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .carousel-control.active {
            background: white;
            transform: scale(1.2);
        }
        
        /* 公告和统计样式 */
        .announcement-box {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
            margin-bottom: 20px;
            overflow: hidden;
        }
        
        .announcement-header {
            padding: 15px 20px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .announcement-title {
            font-size: 18px;
            font-weight: bold;
            color: #1e3c72;
        }
        
        .announcement-body {
            padding: 15px 20px;
        }
        
        .announcement-list {
            list-style: none;
        }
        
        .announcement-item {
            padding: 10px 0;
            border-bottom: 1px dashed #eee;
        }
        
        .announcement-item:last-child {
            border-bottom: none;
        }
        
        .announcement-item a {
            display: block;
            font-size: 14px;
            color: #333;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .announcement-item a:hover {
            color: #1e3c72;
        }
        
        .announcement-date {
            font-size: 12px;
            color: #888;
            margin-top: 3px;
        }
        
      /* 登录/注册弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #1e3c72;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: #1e3c72;
}

.form-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-checkbox input {
    margin-right: 8px;
}

.form-submit {
    width: 100%;
    padding: 12px;
    background: #1e3c72;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.form-submit:hover {
    background: #2a5298;
}

.form-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.form-switch a {
    color: #1e3c72;
    font-weight: 500;
    cursor: pointer;
}

.form-switch a:hover {
    text-decoration: underline;
}

.form-error {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.form-error.active {
    display: block;
}


 /* 三格导航区域 */
        .three-col-nav {
            display: grid;
            grid-template-columns: 2fr 3fr 1.5fr;
            gap: 20px;
            margin: 20px 0;
            /* 移除max-height限制，让内容决定高度 */
        }
        
        /* 统一三格容器高度 */
        .three-col-nav > div {
            display: flex;
            flex-direction: column;
            height: 480px; /* 固定高度确保对齐 */
        }
        
        /* 求助资源列表样式 */
        .help-container {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
            overflow: hidden;
        }
        
        .help-header {
            background: #f0f5ff;
            padding: 12px 15px;
            font-weight: bold;
            color: #1e3c72;
            border-bottom: 1px solid #e0e7f0;
            flex-shrink: 0; /* 防止标题区域被压缩 */
        }
        
        .help-list {
            list-style: none;
            flex: 1;
            overflow-y: auto;
            padding: 0 15px;
        }
        
        .help-item {
            padding: 10px 0;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            align-items: center;
        }
        
        .help-item:last-child {
            border-bottom: none;
        }
        
        .help-icon {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: #f0f5ff;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 10px;
            color: #1e3c72;
            flex-shrink: 0;
        }
        
        .help-info {
            flex: 1;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .help-title {
            font-size: 14px;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
            flex: 1;
            margin-right: 10px;
        }
        
        .help-time {
            font-size: 12px;
            color: #888;
            white-space: nowrap;
        }
        
        /* Tab菜单样式 */
        .tab-container {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
            overflow: hidden;
        }
        
        .tab-header {
            display: flex;
            background: #f0f5ff;
            border-bottom: 1px solid #e0e7f0;
            flex-shrink: 0; /* 防止标题区域被压缩 */
        }
        
        .tab-btn {
            flex: 1;
            padding: 12px 15px;
            text-align: center;
            background: transparent;
            border: none;
            cursor: pointer;
            font-size: 14px;
            color: #666;
            transition: all 0.3s;
        }
        
        .tab-btn.active {
            background: white;
            color: #1e3c72;
            font-weight: bold;
            border-bottom: 2px solid #1e3c72;
        }
        
        .tab-content {
            padding: 15px;
            flex: 1;
            overflow-y: auto;
        }
        
        .tab-pane {
            display: none;
        }
        
        .tab-pane.active {
            display: block;
        }
        
        .topic-list {
            list-style: none;
        }
        
        .topic-item {
            padding: 10px 0;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            align-items: center;
        }
        
        .topic-item:last-child {
            border-bottom: none;
        }
        
        .topic-number {
            width: 24px;
            height: 24px;
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
            margin-right: 10px;
            flex-shrink: 0;
            box-shadow: 0 2px 4px rgba(30, 60, 114, 0.3);
        }
        
        .topic-item:nth-child(1) .topic-number {
            background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
        }
        
        .topic-item:nth-child(2) .topic-number {
            background: linear-gradient(135deg, #4CAF50 0%, #66bb6a 100%);
        }
        
        .topic-item:nth-child(3) .topic-number {
            background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
        }
        
        .topic-content {
            flex: 1;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .topic-title {
            font-size: 14px;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
            flex: 1;
            margin-right: 10px;
        }
        
        .topic-time {
            font-size: 12px;
            color: #888;
            white-space: nowrap;
        }
        
        /* 会员积分排行样式 */
        .ranking-container {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
            overflow: hidden;
        }
        
        .ranking-header {
            background: #f0f5ff;
            padding: 12px 15px;
            font-weight: bold;
            color: #1e3c72;
            border-bottom: 1px solid #e0e7f0;
            flex-shrink: 0; /* 防止标题区域被压缩 */
        }
        
        .ranking-list {
            list-style: none;
            flex: 1;
            overflow-y: auto;
            padding: 0 15px;
        }
        
        .ranking-item {
            display: flex;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .ranking-item:last-child {
            border-bottom: none;
        }
        
        .ranking-avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: #f0f5ff;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 10px;
            color: #1e3c72;
            flex-shrink: 0;
        }
        
        .ranking-info {
            flex: 1;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .ranking-name {
            font-size: 14px;
            font-weight: bold;
            margin-right: 10px;
        }
        
        .ranking-points {
            font-size: 12px;
            color: #888;
            white-space: nowrap;
        }
        
        .ranking-number {
            font-weight: bold;
            color: #1e3c72;
            margin-left: 10px;
        }
        
        
        /* 主要内容区 */
        .main-content {
            display: flex;
                margin: 0 0 20px 0;
            gap: 20px;
        }
        
        .content-left {
            flex: 3;
        }
        
        .content-right {
            flex: 1;
        }
        
        /* 内容卡片 */
        .card {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
            margin-bottom: 20px;
            overflow: hidden;
        }
        
        .card-header {
            padding: 15px 20px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .card-title {
            font-size: 18px;
            font-weight: bold;
            color: #1e3c72;
        }
        
        .card-more {
            color: #666;
            font-size: 14px;
        }
        
        .card-body {
            padding: 20px;
        }
        
        /* 热门资源图文列表 - 更新为3列 */
        .resource-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }
        
        .resource-card {
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
            transition: all 0.3s;
            background: white;
        }
        
        .resource-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .resource-img {
            height: 160px;
            background-size: cover;
            background-position: center;
        }
        
        .resource-content {
            padding: 15px;
        }
        
        .resource-title {
            font-size: 16px;
            font-weight: 500;
            margin-bottom: 8px;
            line-height: 1.4;
        }
        
        .resource-desc {
            font-size: 13px;
            color: #666;
            margin-bottom: 10px;
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .resource-meta {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            color: #888;
        }
        
        /* 热门工具下载榜样式 */
        .tool-list {
            list-style: none;
        }
        
        .tool-item {
            display: flex;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
            transition: all 0.3s;
        }
        
        .tool-item:hover {
            background-color: #f9f9f9;
        }
        
        .tool-rank {
            width: 24px;
            height: 24px;
            border-radius: 4px;
            background: #f0f5ff;
            color: #1e3c72;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
            margin-right: 12px;
        }
        
        .tool-rank.top3 {
            background: #1e3c72;
            color: white;
        }
        
        .tool-info {
            flex: 1;
        }
        
        .tool-name {
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 4px;
        }
        
        .tool-downloads {
            font-size: 12px;
            color: #888;
        }
        
        /* 文章列表 */
        .article-list {
            list-style: none;
        }
        
        .article-item {
            padding: 15px 0;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
        }
        
        .article-item:last-child {
            border-bottom: none;
        }
        
        .article-badge {
            background: #4CAF50;
            color: white;
            padding: 2px 8px;
            border-radius: 3px;
            font-size: 12px;
            margin-right: 10px;
            height: 20px;
        }
        
        .article-content {
            flex: 1;
        }
        
        .article-title {
            font-size: 16px;
            margin-bottom: 8px;
            font-weight: 500;
        }
        
        .article-meta {
            display: flex;
            color: #888;
            font-size: 13px;
        }
        
        .article-meta span {
            margin-right: 15px;
        }
        
        /* 侧边栏 */
        .sidebar-section {
            margin-bottom: 20px;
        }
        
        .sidebar-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #1e3c72;
            color: #1e3c72;
        }
        
        .tag-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .tag {
            background: #f0f5ff;
            color: #1e3c72;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 13px;
            transition: all 0.3s;
        }
        
        .tag:hover {
            background: #1e3c72;
            color: white;
        }
        
        .user-list {
            list-style: none;
        }
        
        .user-item {
            display: flex;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #ddd;
            margin-right: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #777;
            font-weight: bold;
        }
        
        .user-info {
            flex: 1;
        }
        
        .user-name {
            font-weight: 500;
            margin-bottom: 3px;
        }
        
        .user-desc {
            font-size: 12px;
            color: #888;
        }
        
        /* 页脚 */
        footer {
            background: #2a2f35;
            color: #aaa;
            padding: 40px 0 20px;
            margin-top: 40px;
        }
        
        .footer-content {
            display: flex;
            justify-content: space-between;
            margin-bottom: 30px;
        }
        
        .footer-section {
            flex: 1;
        }
        
        .footer-title {
            color: white;
            font-size: 18px;
            margin-bottom: 20px;
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 10px;
        }
        
        .footer-links a {
            color: #aaa;
            transition: color 0.3s;
        }
        
        .footer-links a:hover {
            color: white;
        }
        
        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid #444;
            font-size: 14px;
        }
           /* 分类区域样式 -一排两个版块 */
        .forum-category {
            margin-bottom: 25px;
        }
        
        .category-header {
            background: #f0f5ff;
            border: 1px solid #d0ddf0;
            border-radius: 4px 4px 0 0;
            padding: 12px 15px;
            display: flex;
            align-items: center;
        }
        
        .category-icon {
            width: 32px;
            height: 32px;
            background: #1e3c72;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
            color: white;
        }
        
        .category-title {
            font-size: 18px;
            font-weight: bold;
            color: #1e3c72;
        }
        
        .category-desc {
            margin-left: 15px;
            font-size: 14px;
            color: #666;
        }
        
        .forum-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0;
            background: white;
            border: 1px solid #e0e7f0;
            border-top: none;
            border-radius: 0 0 4px 4px;
            overflow: hidden;
        }
        
        .forum-item {
            display: flex;
            padding: 15px;
            border-right: 1px solid #f0f0f0;
            border-bottom: 1px solid #f0f0f0;
            transition: background 0.3s;
        }
        
        .forum-item:nth-child(2n) {
            border-right: none;
        }
        
        .forum-item:nth-last-child(-n+2) {
            border-bottom: none;
        }
        
        .forum-item:hover {
            background: #f9fbfe;
        }
        
        .forum-icon {
            width: 50px;
            height: 50px;
            background: #f0f5ff;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            color: #1e3c72;
            font-size: 20px;
        }
        
        .forum-content {
            flex: 1;
        }
        
        .forum-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 5px;
        }
        
        .forum-title a {
            color: #1e3c72;
        }
        
        .forum-title a:hover {
            color: #2a5298;
            text-decoration: underline;
        }
        
        .forum-desc {
            font-size: 14px;
            color: #666;
            margin-bottom: 8px;
        }
        
        .forum-meta {
            display: flex;
            font-size: 12px;
            color: #888;
        }
        
        .forum-meta span {
            margin-right: 15px;
        }
        
        .forum-stats {
            width: 120px;
            text-align: right;
            font-size: 13px;
            color: #666;
        }
        
        .forum-count {
            margin-bottom: 5px;
        }
        
        .forum-latest {
            font-size: 12px;
            color: #888;
        }
        
        .forum-latest a {
            color: #333;
        }
        
        .forum-latest a:hover {
            color: #1e3c72;
        }
        
        /* 热门标签 */
        .hot-tags {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
            margin-bottom: 20px;
            padding: 20px;
        }
        
        .hot-tags-title {
            font-size: 18px;
            font-weight: bold;
            color: #1e3c72;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #f0f5ff;
        }
        
        .tag-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .tag {
            background: #f0f5ff;
            color: #1e3c72;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 13px;
            transition: all 0.3s;
        }
        
        .tag:hover {
            background: #1e3c72;
            color: white;
        }
        
         /* 页面标题和面包屑 */
        .page-header {
            margin: 20px 0;
        }
        
        .page-title {
            font-size: 24px;
            font-weight: bold;
            color: #1e3c72;
            margin-bottom: 10px;
        }
        
        .breadcrumb {
            display: flex;
            list-style: none;
            font-size: 14px;
            color: #666;
        }
        
        .breadcrumb li:not(:last-child)::after {
            content: ">";
            margin: 0 8px;
        }
        
        .post-container {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
            margin-bottom: 30px;
            overflow: hidden;
        }
        
        .post-header {
            background: #f0f5ff;
            border-bottom: 1px solid #d0ddf0;
            padding: 15px 20px;
            font-size: 16px;
            font-weight: bold;
            color: #1e3c72;
        }
        
        .post-form {
            padding: 20px;
        }
        
        .form-row {
            display: flex;
            margin-bottom: 20px;
            align-items: flex-start;
        }
        
        .form-label {
            width: 100px;
            padding-top: 10px;
            font-weight: bold;
            color: #333;
            text-align: right;
            margin-right: 15px;
        }
        
        .form-controls {
            flex: 1;
        }
        
        .form-control {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            transition: border-color 0.3s;
        }
        
        .form-control:focus {
            border-color: #1e3c72;
        }
        
        textarea.form-control {
            min-height: 300px;
            resize: vertical;
            font-family: Consolas, Monaco, monospace;
            line-height: 1.5;
        }
        
        .form-hint {
            font-size: 13px;
            color: #888;
            margin-top: 5px;
        }
        
        /* 分类选择 */
        .category-selector {
            display: flex;
            gap: 10px;
            margin-bottom: 10px;
        }
        
        .category-option {
            background: #f0f5ff;
            color: #1e3c72;
            padding: 8px 15px;
            border-radius: 4px;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.3s;
            border: 1px solid transparent;
        }
        
        .category-option.selected {
            background: #1e3c72;
            color: white;
            border-color: #1e3c72;
        }
        
        .category-option:hover {
            background: #1e3c72;
            color: white;
        }
        
        /* 标签选择 */
        .tag-selector {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
        }
        
        .tag-option {
            background: #f0f5ff;
            color: #1e3c72;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.3s;
            border: 1px solid transparent;
        }
        
        .tag-option.selected {
            background: #1e3c72;
            color: white;
            border-color: #1e3c72;
        }
        
        .tag-option:hover {
            background: #1e3c72;
            color: white;
        }
        
        /* 编辑器工具栏 */
        .editor-toolbar {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-bottom: 10px;
            padding: 8px;
            background: #f9f9f9;
            border: 1px solid #ddd;
            border-radius: 4px 4px 0 0;
        }
        
        .toolbar-btn {
            padding: 6px 10px;
            background: white;
            border: 1px solid #ddd;
            border-radius: 3px;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.3s;
        }
        
        .toolbar-btn:hover {
            background: #f0f5ff;
            border-color: #1e3c72;
        }
        
        /* 附件上传 */
        .attachment-area {
            margin-top: 15px;
        }
        
        .attachment-btn {
            display: inline-block;
            background: #f0f5ff;
            color: #1e3c72;
            padding: 8px 15px;
            border-radius: 4px;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.3s;
            border: 1px solid #d0ddf0;
        }
        
        .attachment-btn:hover {
            background: #1e3c72;
            color: white;
        }
        
        .attachment-list {
            margin-top: 10px;
        }
        
        .attachment-item {
            display: flex;
            align-items: center;
            padding: 8px;
            background: #f9f9f9;
            border-radius: 4px;
            margin-bottom: 5px;
        }
        
        .attachment-item i {
            color: #1e3c72;
            margin-right: 10px;
        }
        
        .attachment-name {
            flex: 1;
        }
        
        .attachment-size {
            color: #888;
            margin-right: 10px;
        }
        
        .attachment-remove {
            color: #ff4d4f;
            cursor: pointer;
        }
        
        /* 发布选项 */
        .publish-options {
            background: #f9f9f9;
            padding: 15px;
            border-radius: 4px;
            margin-top: 20px;
        }
        
        .option-row {
            display: flex;
            margin-bottom: 10px;
            align-items: center;
        }
        
        .option-label {
            width: 120px;
            font-weight: bold;
            color: #333;
        }
        
        .option-controls {
            flex: 1;
        }
        
        /* 表单操作 */
        .form-actions {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #eee;
        }
        
        .btn-submit {
            background: #4CAF50;
            color: white;
            border: none;
            padding: 12px 30px;
            font-size: 16px;
            border-radius: 4px;
            cursor: pointer;
        }
        
        .btn-preview {
            background: #f0f0f0;
            color: #666;
            border: none;
            padding: 12px 30px;
            font-size: 16px;
            border-radius: 4px;
            cursor: pointer;
        }
        
        .btn-cancel {
            background: #f0f0f0;
            color: #666;
            border: none;
            padding: 12px 30px;
            font-size: 16px;
            border-radius: 4px;
            cursor: pointer;
        }
        
        .btn-submit:hover, .btn-preview:hover, .btn-cancel:hover {
            opacity: 0.9;
            transform: translateY(-2px);
        }
        /* 文章内容区域 */
        .article-container {
            display: flex;
            gap: 20px;
            margin-bottom: 30px;
            align-items: flex-start;
        }
        
        .article-main {
            flex: 1;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
            overflow: hidden;
        }
        
        .article-sidebar {
            width: 300px;
            position: sticky;
            top: 120px;
            align-self: flex-start;
        }
        
        .article-header {
            padding: 20px;
            border-bottom: 1px solid #eee;
        }
        
        .article-title {
            font-size: 24px;
            font-weight: bold;
            color: #1e3c72;
            margin-bottom: 10px;
            line-height: 1.4;
        }
        
        .article-meta {
            display: flex;
            align-items: center;
            gap: 15px;
            color: #666;
            font-size: 14px;
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .article-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
        }
        
        .article-tag {
            background: #f0f5ff;
            color: #1e3c72;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 12px;
        }
        
        .article-content {
            padding: 20px;
        }
        
        .article-content h2 {
            font-size: 20px;
            color: #1e3c72;
            margin: 20px 0 10px;
            padding-bottom: 8px;
            border-bottom: 1px solid #eee;
        }
        
        .article-content h3 {
            font-size: 18px;
            color: #1e3c72;
            margin: 15px 0 8px;
        }
        
        .article-content p {
            margin-bottom: 15px;
            line-height: 1.7;
        }
        
        .article-content ul, .article-content ol {
            margin: 10px 0 15px 20px;
        }
        
        .article-content li {
            margin-bottom: 5px;
        }
        
        .article-content blockquote {
            background: #f9f9f9;
            border-left: 4px solid #1e3c72;
            padding: 10px 15px;
            margin: 15px 0;
            font-style: italic;
        }
        
        .article-content pre {
            background: #f5f5f5;
            border-radius: 4px;
            padding: 15px;
            margin: 15px 0;
            overflow-x: auto;
            font-family: Consolas, Monaco, monospace;
            font-size: 14px;
            line-height: 1.5;
        }
        
        .article-content code {
            background: #f5f5f5;
            padding: 2px 6px;
            border-radius: 3px;
            font-family: Consolas, Monaco, monospace;
            font-size: 14px;
        }
        
        .article-content img {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 15px auto;
            border-radius: 4px;
        }
        
        .article-content table {
            width: 100%;
            border-collapse: collapse;
            margin: 15px 0;
        }
        
        .article-content th, .article-content td {
            border: 1px solid #ddd;
            padding: 8px 12px;
            text-align: left;
        }
        
        .article-content th {
            background: #f0f5ff;
            color: #1e3c72;
        }
        
        .download-section {
            background: #f9f9f9;
            padding: 20px;
            border-radius: 8px;
            margin: 20px 0;
        }
        
        .download-title {
            font-size: 18px;
            font-weight: bold;
            color: #1e3c72;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .download-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 15px;
            background: white;
            border-radius: 6px;
            margin-bottom: 10px;
            border: 1px solid #eee;
        }
        
        .download-info {
            flex: 1;
        }
        
        .download-name {
            font-weight: 500;
            margin-bottom: 4px;
        }
        
        .download-meta {
            font-size: 12px;
            color: #888;
        }
        
        .download-btn {
            background: #4CAF50;
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
        }
        
        .download-btn:hover {
            background: #3d8b40;
        }
        
        .download-btn.disabled {
            background: #ccc;
            cursor: not-allowed;
        }
        
        .article-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            border-top: 1px solid #eee;
            background: #f9f9f9;
        }
        
        .article-actions {
            display: flex;
            gap: 15px;
        }
        
        .action-btn {
            display: flex;
            align-items: center;
            gap: 5px;
            background: white;
            border: 1px solid #ddd;
            padding: 6px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
        }
        
        .action-btn:hover {
            background: #f0f5ff;
            border-color: #1e3c72;
        }
        
        .action-btn.active {
            background: #1e3c72;
            color: white;
            border-color: #1e3c72;
        }
        
        /* 侧边栏 */
        .sidebar-card {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
            margin-bottom: 20px;
            overflow: hidden;
        }
        
        .sidebar-header {
            background: #f0f5ff;
            padding: 12px 15px;
            font-weight: bold;
            color: #1e3c72;
            border-bottom: 1px solid #d0ddf0;
        }
        
        .sidebar-content {
            padding: 15px;
        }
        
        .author-info {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 15px;
        }
        
        .author-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            overflow: hidden;
        }
        
        .author-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .author-details {
            flex: 1;
        }
        
        .author-name {
            font-weight: bold;
            margin-bottom: 4px;
        }
        
        .author-stats {
            font-size: 12px;
            color: #666;
        }
        
        .author-actions {
            display: flex;
            gap: 8px;
            margin-top: 10px;
        }
        
        .author-btn {
            flex: 1;
            text-align: center;
            background: #f0f5ff;
            color: #1e3c72;
            padding: 6px 0;
            border-radius: 4px;
            font-size: 12px;
            transition: all 0.3s;
        }
        
        .author-btn:hover {
            background: #1e3c72;
            color: white;
        }
        
        .related-list {
            list-style: none;
        }
        
        .related-item {
            padding: 10px 0;
            border-bottom: 1px solid #eee;
        }
        
        .related-item:last-child {
            border-bottom: none;
        }
        
        .related-title {
            font-weight: 500;
            margin-bottom: 5px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .related-meta {
            font-size: 12px;
            color: #888;
        }
        
        /* 评论区域 */
        .comments-section {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
            margin-bottom: 30px;
            overflow: hidden;
        }
        
        .comments-header {
            padding: 15px 20px;
            border-bottom: 1px solid #eee;
            font-weight: bold;
            color: #1e3c72;
            font-size: 18px;
        }
        
        .comment-form {
            padding: 20px;
            border-bottom: 1px solid #eee;
        }
        
        .comment-input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            resize: vertical;
            min-height: 100px;
            margin-bottom: 10px;
            font-family: inherit;
        }
        
        .comment-submit {
            display: flex;
            justify-content: flex-end;
        }
        
        .comment-list {
            padding: 0 20px;
        }
        
        .comment-item {
            padding: 15px 0;
            border-bottom: 1px solid #eee;
        }
        
        .comment-item:last-child {
            border-bottom: none;
        }
        
        .comment-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }
        
        .comment-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            overflow: hidden;
        }
        
        .comment-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .comment-user {
            flex: 1;
        }
        
        .comment-name {
            font-weight: bold;
            margin-bottom: 2px;
        }
        
        .comment-time {
            font-size: 12px;
            color: #888;
        }
        
        .comment-content {
            line-height: 1.6;
        }
        
        .comment-actions {
            display: flex;
            gap: 15px;
            margin-top: 10px;
        }
        
        .comment-action {
            font-size: 13px;
            color: #666;
            cursor: pointer;
            transition: color 0.3s;
        }
        
        .comment-action:hover {
            color: #1e3c72;
        }
        /* 响应式设计 */
        @media (max-width: 1200px) {
            .resource-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
       
        
        @media (max-width: 992px) {
            .main-content, .banner-section {
                flex-direction: column;
            }
            
            .search-box {
                width: 300px;
            }
            
            .resource-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            .three-col-nav {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .three-col-nav > div {
                height: auto; /* 在移动端恢复自适应高度 */
                min-height: 300px;
            }
            
            .forum-grid {
                grid-template-columns: 1fr;
            }
            
            .forum-item {
                border-right: none;
            }
            
            .forum-item:nth-child(2n) {
                border-right: none;
            }
            
            .forum-item:nth-last-child(2) {
                border-bottom: 1px solid #f0f0f0;
            }
            
              .article-container {
                flex-direction: column;
            }
            
            .article-sidebar {
                width: 100%;
                position: static;
            }
        }
        
        @media (max-width: 768px) {
            .header-top {
                flex-direction: column;
                gap: 15px;
            }
            
            .search-box {
                width: 100%;
                order: 3;
            }
            
            .main-nav {
                flex-wrap: wrap;
            }
            
            .footer-content {
                flex-direction: column;
                gap: 30px;
            }
            
            .resource-grid {
                grid-template-columns: 1fr;
            }
            
            .form-row {
                flex-direction: column;
            }
            
            .form-label {
                width: 100%;
                text-align: left;
                margin-bottom: 8px;
            }
            .forum-stats {
                display: none;
            }
            
            .article-meta {
                flex-wrap: wrap;
            }
            
            .article-footer {
                flex-direction: column;
                gap: 15px;
                align-items: flex-start;
            }
        }