/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

a {
    text-decoration: none;
}

body {
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

.container {

    margin: 0 auto;
    width: 80%;
}

/* ===== 头部样式 ===== */
header {
    background-color: rgb(230,50,0);
    color: white;
    padding: 15px 0;
    margin-bottom: 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer{
    background-color: rgb(230,50,0);
    text-align: center;
    color: white;
    padding: 10px;
}
.logo {
    font-size: 24px;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    font-weight: 500;
}

nav ul li a:hover {
    color: #d1d1d1;
}

/* ===== 主内容区 ===== */
.main {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-block;
    background-color: #4a6b8a;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 10px 20px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #3a5169;
}

.btn-danger {
    background-color: #b04632;
}

.btn-danger:hover {
    background-color: #8a3728;
}

.btn-primary {
    background-color: #4a8ac8;
}

.btn-primary:hover {
    background-color: #3a6b9a;
}

.btn-success {
    background-color: #3a9a6b;
}

.btn-success:hover {
    background-color: #2d7a54;
}

/* ===== 表单样式 ===== */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 10px;
    background-color: #f0f0f0;
    border: none;
    font-size: 16px;
    transition: background-color 0.3s;
}

.form-control:focus {
    outline: none;
    background-color: #e0e0e0;
}

.form-control2 {
    width: 100%;
    padding: 10px;
    background-color: #f0f0f0;
    border: none;
    font-size: 16px;
    height: 100px;
}

.form-control2:focus {
    outline: none;
    background-color: white;
}

textarea.form-control {
    min-height: 170px;
}

/* ===== 提示信息 ===== */
.alert {
    padding: 12px;
    margin-bottom: 15px;
}

.alert-danger {
    background-color: #f5d7d7;
    color: #721c24;
}

.alert-success {
    background-color: #d7f5e0;
    color: #155724;
}

/* ===== 文章网格 ===== */
.article-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 auto;
}

.article-grid-item {
    width: 10%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: white;
    transition: all 0.3s;
    padding: 10px;
    box-sizing: border-box;
    margin: 0;
    cursor: pointer;
}

.article-grid-item:hover {
    background-color: #f0f0f0;
}

.article-grid-item a,
.article-grid-item searchtype {
    color: #3a5169;
    font-size: 13px;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 分类列表 ===== */
.category-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.category-item {
    width: 10%;
    text-align: center;
    height: 50px;
    line-height: 40px;
    margin: 0;
    background-color: rgb(50,50,50);
}

.category-item a {
    display: inline-block;
    padding: 6px 12px;
    color: white;
    width: 100%;
    font-size: 13px;
    height: 100%;
    background-color: rgb(50,50,50);
    transition: background-color 0.3s;
}

.category-item a:hover {
    background-color: rgb(230,50,0);
}

/* ===== 文章卡片 ===== */
.article_card {
    height: 100px;
    font-size: 13px;
    background-color: #f8f8f8;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 10px;
    text-align: center;
    transition: all 0.3s;
}

.article_card:hover {
    color: red;
    background-color: rgb(250,240,0);
    font-weight: bold;
}

/* ===== 特殊按钮 ===== */
.zc_button {
    height: 50px;
    font-size: 13px;
    background-color: #f8f8f8;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 10px;
    text-align: center;
    transition: all 0.3s;
}

.zc_button_290 {
    height: 290px;
    font-size: 13px;
    background-color: #f8f8f8;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 10px;
    transition: all 0.3s;
}

.zc_button:hover,
.zc_button_290:hover {
    color: red;
    background-color: rgb(250,240,0);
    font-weight: bold;
}

.zc_button_bt {
    height: 50px;
    margin: 0;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(50,50,50);
}

/* ===== 图片Logo ===== */
.img_logo {
    width: 150px;
    height: 150px;
    cursor: pointer;
    background-image: url("https://cc-mschool-1251394244.cos.ap-shanghai.myqcloud.com/2023/09/20250424155126f21e74b1-0c76-3b6d-0c8e-f1fde7f7080d756.png");
    background-size: cover;
    margin: 20px auto;
    display: block;
    transition: background-image 0.3s;
}

.img_logo:hover {
    background-image: url("https://cc-mschool-1251394244.cos.ap-shanghai.myqcloud.com/2023/09/20250424155147f573a615-7277-6110-1382-86a67daf181e539.png");
}

/* ===== 浮动侧边栏 ===== */
.float-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background-color: white;
}

.float-sidebar-btn {
    width: 50px;
    height: 50px;
    background-color: rgb(50,50,50);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    transition: all 0.3s;
}

.float-sidebar-btn:hover {
    background-color: rgb(230,50,0);
    transform: scale(1.1);
}

/* ===== 分类区域 ===== */
.fufenleiquyu {
    height: 1100px;
    background-color: #f8f8f8;
    padding: 0;
}

.zixun_quyu {
    height: 1265px;
    background-color: #f8f8f8;
    padding: 0;
}

/* ===== 表格样式 ===== */
table {
    border-collapse: collapse !important;
    border: 1px solid #ddd !important;
    width: 100%;
    margin: 10px 0;
}

table td, 
table th {
    border: 1px solid #ddd !important;
    padding: 8px !important;
    text-align: left;
}

table th {
    background-color: #f5f5f5 !important;
    font-weight: bold;
}

/* ===== 卡片样式 ===== */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    gap: 15px;
    padding: 15px;
}

.card {
    background-color: white;
    border-radius: 0;
    padding: 15px;
    transition: all 0.3s ease;
    height: 100px;
    display: flex;
    flex-direction: column;
}

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

.card-title {
    font-size: 14px;
    color: #333;
    flex-grow: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.card-meta {
    font-size: 12px;
    color: #666;
    margin-top: auto;
    text-align: center;
}

/* ===== 分页样式 ===== */
.pagination {
    margin: 20px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.pagination a, 
.pagination span {
    margin: 0 5px 5px 0;
    display: inline-block;
}

/* ===== 内联表单 ===== */
.form-inline {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-inline .form-group {
    margin-right: 10px;
    margin-bottom: 0;
}

/* ===== 业务信息 ===== */
.business-info {
    width: 100%;
    height: 50px;
    background-color: rgb(230,50,0);
    line-height: 50px;
    text-align: center;
    color: white;
    font-size: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 10px;
}

/* ===== 行样式 ===== */
.zc_row_all,
.zixun_row_all {
    height: 50px;
    margin: 0;
}

.zc_row_all_bt1,
.zixun_row_all_bt1 {
    width: 100%;
    height: 50px;
    background-color: rgb(255,190,0);
    font-size: 20px;
    font-weight: bold;
    color: black;
    text-align: center;
    line-height: 50px;
}

.zc_row_all_bt2 {
    height: 50px;
    background-color: yellow;
    margin: 0;
    float: left;
    width: 10%;
}

.zc_row_bt_5 {
    height: 50px;
    background-color: yellow;
    margin: 0;
    float: left;
    width: 25%;
}

/* ===== 文章详情页 ===== */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 15px;
}

.article-title {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 15px;
    color: black;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    color: #666;
    font-size: 13px;
}

.article-meta span {
    margin-right: 15px;
    white-space: nowrap;
}

.article-content {
    font-size: 20px;
    line-height: 1.7;
    color: #333;
}

.article-content p {
    margin-bottom: 15px;
}

.article-actions {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    /* 头部 */
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .zixun_quyu {
    height: 3480px;
    background-color: #f8f8f8;
    padding: 0;
}
.container {

    margin: 0 auto;
    width: 100%;
}
    
    nav ul {
        margin-top: 15px;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    /* 分类 */
    .category-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .category-item {
        width: 20%;
        margin: 0;
        box-sizing: border-box;
    }
    
    .category-item a {
        padding: 8px 4px;
        font-size: 12px;
    }
    
    /* 文章网格 */
    .article-grid-item {
        width: 50%;
        height: 40px;
        font-size: 12px;
    }
    
    /* 分类标题 */
    .zc_row_all_bt1,
    .zixun_row_all_bt1 {
        width: 100%;
        height: auto;
        padding: 0;
        background: #ffcc00;
        color: #000;
        font-size: 18px;
    }
    
    /* 分类区块 */
    .zc_row_all,
    .zixun_row_all {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 0;
    }
    
    /* 栏目块 */
    .zc_row_all_bt2 {
        width: 50%;
        margin-bottom: 8px;
        background: #f8f8f8;
        height: 196px;
    }
    
    .zc_row_bt_5 {
        width: 100%;
        margin-bottom: 8px;
        background: #f8f8f8;
        height: 850px;
    }
    
    /* 栏目标题 */
    .zc_button_bt {
        height: 36px;
        line-height: 36px;
        font-size: 14px;
        color: #fff;
        padding: 0 5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* 子项 */
    .zc_button,
    .zc_button_290 {
        height: auto;
        min-height: 32px;
        line-height: 32px;
        font-size: 12px;
        padding: 0 8px;
        border-bottom: 1px solid #666;
    }
    
    .zc_button:last-child,
    .zc_button_290:last-child {
        border-bottom: none;
    }
    
    /* 搜索框 */
    #searchInput {
        width: 100%;
        font-size: 14px;
    }
    
    /* 卡片 */
    .card {
        padding: 12px;
        height: auto;
    }
    
    .card-title {
        font-size: 14px;
        text-align: center;
    }
    
    img {
        width: 150%;
    }
    
    /* 浮动侧边栏 */
    .float-sidebar {
        display: none;
    }
    
    /* 业务信息 */
    .business-info {
        height: auto;
        min-height: 50px;
        line-height: 1.4;
        font-size: 10px;
        white-space: normal;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* 平板设备 */
@media (min-width: 769px) and (max-width: 1024px) {
    .zc_row_all_bt2 {
        width: 30% !important;
    }
}