 /* --- 全局初始化 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f4f4f4;
    color: #333;
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.5;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

a:hover {
    color: #ff4a4a;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- 2. 头部 (Header) 自适应 --- */
header {
    background: #fff;
    border-bottom: 2px solid #ff4a4a;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #ff4a4a;
    letter-spacing: -1px;
    white-space: nowrap;
}
.logo-img{width:120px}
.nav-main {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-main a {
    font-size: 16px;
    font-weight: bold;
    padding: 4px 0;
}

.search-bar {
    display: flex;
    background: #f0f0f0;
    border-radius: 30px;
    padding: 5px 15px;
    min-width: 200px;
    flex: 1;
    max-width: 300px;
}

.search-bar input {
    border: none;
    background: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    padding: 5px 0;
}

.search-btn {
    border: none;
    background: none;
    cursor: pointer;
    color: #666;
    font-weight: bold;
    font-size: 14px;
    padding: 0 5px;
}

/* --- 3. 通用区块样式 --- */
.section {
    background: #fff;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
    border-left: 5px solid #ff4a4a;
    padding-left: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.block-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.more {
    color: #999;
    font-size: 13px;
}
 /* 底部 */
footer {
    background: #333;
    color: #bbb;
    padding: 40px 0 20px;
    margin-top: 40px;
    border-top: 5px solid #222;
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links {
    min-width: 140px;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 16px;
}

.footer-links a {
    color: #bbb;
    display: inline-block;
    margin-bottom: 8px;
    font-size: 13px;
}

.footer-links a:hover {
    color: #ff4a4a;
}

.footer-copy {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 13px;
}
  /* ========= 1. 当前位置（面包屑导航）样式 ========= */
.breadcrumb {
    padding: 12px 0;
    font-size: 14px;
    color: #666;
    background: transparent;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #ff4a4a;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb .current {
    color: #ff4a4a;
    font-weight: 500;
}

/* ========= 2. 分页组件样式 ========= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0 20px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.pagination a:hover {
    background-color: #ff4a4a;
    border-color: #ff4a4a;
    color: #fff;
}

/* 当前页码高亮 */
.pagination span {
    background-color: #ff4a4a;
    border-color: #ff4a4a;
    color: #fff;
    cursor: default;
}


/* 响应式：小屏幕缩小间距 */
@media (max-width: 576px) {
    .pagination a,
    .pagination span {
min-width: 32px;
height: 32px;
font-size: 13px;
padding: 0 6px;
    }
    .pagination {
gap: 5px;
    }
}