.box {
    border: 1px solid #c4a882;
    background-color: #faf8f3
}

.cont {
    height: auto;
    overflow: auto;
    margin-top: 15px !important;
}

.cont-lf {
    float: left;
    width: 74%;
    border-top: 6px solid #a5855a
}

.lf-1 {
    padding-bottom: 15px
}

.lf-2 {
    margin-top: 15px
}

.cont-rg {
    float: right;
    width: 25%;
    padding-bottom: 15px
}

.cont-lf .tit {
    height: 42px;
    line-height: 42px;
    text-align: center;
    color: #a5855a
}

.cont-lf .tit h1 {
    font-size: 18px;
    display: inline
}

.cont-lf .tit img {
    width: 36px;
    height: 25px;
    position: relative;
    top: 5px
}

.item-tit {
    display: block;
    background: #f3ece6;
    height: 32px;
    line-height: 32px;
    padding-left: 12px;
    color: #a5855a;
    font-weight: 700;
    text-align: left;
    font-size: 15px;
    border-left: #a5855a solid 3px;
    border-bottom: #f1f1f1 solid 1px;
    margin: 30px 32px 4px 32px
}

.item-tit a {
    color: #a5855a
}

.base-list li strong {
    letter-spacing: 1px;
    background-image: url(../images/bt1.gif);
    height: 26px;
    width: 65px;
    line-height: 26px;
    color: #a5855a;
    font-size: 14px;
    text-align: center;
    display: inline-block;
    font-weight: normal;
    margin: 0;
    margin-left: 3px;
    padding: 0
}

.base-none {
    left: 400px
}

.box-p {
    margin: 0 32px
}
.item-en span {
    border-bottom: 0;
    padding-left: 0rem
}

.item-z-xdb-none,
.item-z-xzd-none,
.item-z-jbb-none {
    border-bottom: 0
}

.box-more {
    margin: 0 15px;
    position: relative;
    padding-top: 15px;
    padding-bottom: 16px
}

.box-more h3 {
     color: #a5855a;
    padding-bottom: .56rem;
    padding-top: .21rem;
    font-size: 14px
}

.box-more h3 a {
     color: #a5855a;
    text-decoration: none;
    padding-left: .43rem
}

.box-more h3:before {
    content: '';
    width: 1.06rem;
    height: 1.06rem;
    background-image: url(../images/zh.png);
    background-size: 100% 100%;
    float: left;
    position: relative;
    top: .18rem
}

.box-more ul,
.box-more1,
.box-more ul,
.box-more2 {
    height: auto;
    overflow: auto
}

.box-more ul li {
    color: #444;
    float: left;
    width: 25%;
    position: relative;
    line-height: 40px;
    height: 40px;
    text-align: left;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis
}

.box-more ul li a,
.box-more1 li a {
    color: #444
}

.box-more1 li {
    background: url(../images/d.png) 0 12px no-repeat;
    padding-left: 20px;
    position: relative
}

.box-more1 li,
.box-more2 h3 {
    font-size: 14px;
    line-height: 40px;
    height: 40px;
    margin: 0 20px;
    border-bottom: #f1f1f1 solid 1px;
    list-style: none
}

.box-more2 h3 {
    display: block;
     color: #a5855a;
    margin: 0 15px
}

.box-more2 ul {
    height: auto;
    overflow: auto;
    margin: 0 20px;
    padding-top: 15px
}

.box-more2 ul li {
    float: left;
    width: 33.33333%;
    margin-bottom: 10px;
    color: #444;
    list-style: none;
    line-height: 30px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    height: 30px;
}

.box-more2 ul li a {
    border-radius: 2px;
    border-image: none;
    margin: 3px 6px 6px 0;
    overflow: hidden;
    box-shadow: 1px 1px 1px #DDD;
    padding: 5px 4px;
    color: #874d27;
}

.rg-1 {
    padding-bottom: 20px
}

.rg-tit {
    position: relative;
    height: 38px;
    line-height: 38x;
    background-color: #fffbf4 ;
    border-bottom: 1px solid #f2d2b5
}

.rg-tit h2,
.rg-tit h3 {
    font-size: 15px;
    color: #804627;
    padding-left: 20px;
    line-height: 40px;
    overflow: hidden
}

.rg-tit h3 i,
.rg-tit h2 i {
    font-style: normal
}

.rg-tit .flag_l_t2,
.rg-tit .flag_r_t2 {
    position: absolute;
    top: 2px;
    width: 22px;
    height: 22px;
    overflow: hidden;
    background: url(../images/tbg.png) no-repeat
}

.rg-tit .flag_r_t2 {
    right: 2px;
    background-position: -22px 0
}

.flag_l_t2 {
    left: 2px
}
/* 单词列表容器 */
.word-list-container {
    background: #faf8f3;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

/* 单词列表 - 重新设计为一行4个的固定布局，紧凑间距 */
.word-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: none; /* 初始状态显示所有内容 */
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* 限制显示前5行（20个项目）的状态 */
.word-list.limited {
    max-height: calc(5 * (var(--item-height, 80px) + 12px) - 12px);
}

/* 单词项样式 - 简化版 */
.word-item {
    background: #ffffffb0;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    position: relative;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.word-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}
.word-title {
    text-align: center;
    font-size: 18px;
    background-image: url(../images/danci_bj.png);
    background-size: cover;
    height: 33px;
}
/* 隐藏单词分类标签 */
.word-categories {
    display: none;
}

.word-category-tag {
    display: none;
}

.word-category-tag:hover {
    background: linear-gradient(135deg, #e8dcc6, #f3ece6);
    transform: scale(1.05);
}

.word-category-tag.active {
    background: linear-gradient(135deg, #a5855a, #875b1a);
    color: #fff;
    border-color: #a5855a;
    box-shadow: 0 2px 4px rgba(165, 133, 90, 0.3);
}

/* 单词音标 - 优化显示 */
.word-phonetic {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 12px;
    font-size: 15px;
    font-family: 'Times New Roman', serif;
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: 6px;
    border-left: 3px solid #a5855a;
    font-weight: 500;
}

/* 单词释义预览 - 隐藏 */
.word-meaning-preview {
    display: none;
}

/* 操作按钮 - 紧凑布局 */
.word-actions {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-top: auto;
    justify-content: flex-start;
}

.word-action-btn {
    padding: 4px 6px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    text-align: center;
    min-width: 30px;
    white-space: nowrap;
}

.word-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.word-action-btn:hover::before {
    left: 100%;
}

.word-action-btn.primary {
    background: linear-gradient(135deg, #a5855a, #875b1a);
    color: #fff;
    border-color: #a5855a;
    box-shadow: 0 2px 4px rgba(165, 133, 90, 0.2);
}

.word-action-btn.primary:hover {
    background: linear-gradient(135deg, #875b1a, #6d4615);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(165, 133, 90, 0.3);
}

.word-action-btn.secondary {
    background: linear-gradient(135deg, #f3ece6, #f8f2ea);
    color: #875b1a;
    border-color: #e8dcc6;
}

.word-action-btn.secondary:hover {
    background: linear-gradient(135deg, #e8dcc6, #f3ece6);
    color: #6d4615;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(165, 133, 90, 0.2);
}

/* 单词难度指示器 - 隐藏 */
.word-difficulty {
    display: none;
}

.word-difficulty.easy {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.word-difficulty.medium {
    background: linear-gradient(135deg, #FF9800, #f57c00);
}

.word-difficulty.hard {
    background: linear-gradient(135deg, #F44336, #d32f2f);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .word-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .word-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .word-item {
        min-height: 160px;
        padding: 14px;
    }
}

@media (max-width: 600px) {
    .word-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .word-list.limited {
        max-height: calc(5 * (var(--item-height, 160px) + 12px) - 12px);
    }
    
    .word-item {
        padding: 16px;
        min-height: 140px;
    }
    
    .word-title {
        font-size: 18px;
    }
    
    .word-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .word-action-btn {
        width: 100%;
    }
}

/* 查看更多按钮容器 */
.load-more-container {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e8dcc6;
}

/* 查看更多按钮 - 重新设计 */
.load-more-btn {
    background: linear-gradient(135deg, #a5855a, #875b1a);
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(165, 133, 90, 0.25);
    position: relative;
    overflow: hidden;
    min-width: 160px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 查看更多按钮图标 */
.load-more-btn::after {
    content: '↓';
    font-size: 16px;
    transition: transform 0.3s ease;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.load-more-btn:hover::before {
    left: 100%;
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #875b1a, #6b4515);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(165, 133, 90, 0.35);
}

.load-more-btn:hover::after {
    transform: translateY(2px);
}

.load-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(165, 133, 90, 0.3);
}

.load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.load-more-btn:disabled::before {
    display: none;
}

/* 空状态 */
.word-list-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    background: #fafbfc;
    border-radius: 12px;
    border: 2px dashed #e1e5e9;
}

.word-list-empty-icon {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
    opacity: 0.7;
}

.word-list-empty-text {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 500;
    color: #555;
}

.word-list-empty-subtext {
    font-size: 14px;
    color: #999;
    line-height: 1.5;
}

/* 搜索结果统计 */
.word-list-stats {
    background: linear-gradient(135deg, #f3ece6, #f8f2ea);
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
}

.word-list-stats-text {
    color: #875b1a;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.word-list-stats-count {
    color: #a5855a;
    font-weight: bold;
    font-size: 16px;
}