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

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: #d42e7d;
}

a:hover {
    text-decoration: underline;
}

ul, ol {
    list-style: none;
}

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

/* 顶部区域 */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #d42e7d;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    color: #666;
    font-size: 16px;
}

.nav-menu a:hover {
    color: #d42e7d;
}

/* 移动端汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 100%;
    background-color: #d42e7d;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* 搜索区域 */
.search-bar {
    padding: 20px 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #d42e7d;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-button {
    padding: 0 25px;
    background-color: #d42e7d;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
}

/* 当前位置 */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
    background-color: #f5f5f5;
}

.breadcrumb a {
    color: #666;
}

/* 栏目内容区域 */
.category-content {
    margin: 20px 0;
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.category-title {
    font-size: 24px;
    color: #d42e7d;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* 5列列表布局 */
.word-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -7.5px;
}

.word-list li {
    width: 20%;
    padding: 0 7.5px;
    margin-bottom: 15px;
}

.word-item {
    display: block;
    padding: 15px 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: all 0.3s;
    text-align: center;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.word-item:hover {
    box-shadow: 0 2px 8px rgba(212, 46, 125, 0.1);
    border-color: #d42e7d;
    background-color: #fef7fa;
    text-decoration: none;
    color: #d42e7d;
}

.word-title {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    overflow-x: auto;
}

.page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.page-numbers li {
    margin: 0 5px;
}

.page-numbers a {
    display: block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    white-space: nowrap;
}

.page-numbers a:hover, .page-numbers a.active {
    background-color: #d42e7d;
    color: white;
    border-color: #d42e7d;
}

/* 底部区域 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0 15px;
    margin-top: 30px;
}

.footer-menu {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-menu li {
    margin: 0 15px 10px;
}

.footer-menu a {
    color: #ccc;
}

.footer-menu a:hover {
    color: #fff;
}

.footer-info {
    text-align: center;
    margin-bottom: 15px;
    color: #999;
    font-size: 14px;
}

.footer-record {
    text-align: center;
    color: #666;
    font-size: 12px;
    padding-top: 15px;
    border-top: 1px solid #444;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .word-list li {
        width: 25%;
    }
}

@media (max-width: 768px) {
    .word-list li {
        width: 33.333%;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 100;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 0 0 20px 0;
    }
    
    .nav-menu a {
        font-size: 18px;
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }
    
    .hamburger {
        display: flex;
        z-index: 101;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 99;
        display: none;
    }
    
    .overlay.active {
        display: block;
    }
}

@media (max-width: 576px) {
    .word-list li {
        width: 50%;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-input {
        border-right: 2px solid #d42e7d;
        border-radius: 4px 4px 0 0;
        margin-bottom: 10px;
    }
    
    .search-button {
        border-radius: 0 0 4px 4px;
        padding: 12px;
    }
    
    .footer-menu {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-menu li {
        margin: 0 0 15px 0;
    }
}

@media (max-width: 400px) {
    .word-list li {
        width: 100%;
    }
    
    .category-content {
        padding: 15px;
    }
    
    .word-item {
        height: 70px;
    }
    
    .word-title {
        font-size: 14px;
    }
}