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

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

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

.lf-1 {
    padding-bottom: 15px;
    min-height: 455px;
}

.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 h3 {
    margin: 10px 32px 4px;
}

.item-tit h2 {
    margin: 30px 32px 4px;
}

.item-tit h3,
.item-tit h2 {
    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;
}

.item-tit h3 i,
.item-tit h2 i {
    font-style: normal;
    color: red;
}

.box-top-base {
    position: relative;
    border-radius: 8px;
    padding: 10px 30px;
}

.box-top-base strong {
    font-weight: normal;
    color: #333;
}

.base-1 {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 0;
    margin: 0;
}

.base-img {
    width: 74px;
    height: 74px;
}

/* 汉字显示区域 */
/* .base-1 > div:first-child {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
} */

/* 信息网格容器 */
.base-info-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    grid-template-rows: repeat(2, auto);
    gap: 16px 20px;
    align-content: start;
    margin-top: 6px;
}

/* 信息项样式 */
.base-info-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.4;
}

.base-info-item span:first-child {
    color: #666;
    /* margin-right: 8px; */
    /* min-width: 40px; */
}

.base-info-item strong {
    color: #333;
    font-weight: 500;
}

.base-info-item strong a {
    color: #915926;
    text-decoration: none;
    border-bottom: 1px solid #915926;
    transition: all 0.3s ease;
}

.base-info-item strong a:hover {
    color: #b8732f;
    border-bottom-color: #b8732f;
}

/* 发音按钮样式 */
.base-info-item .play-sound {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    margin-right: 8px;
}

.base-info-item .play-sound:hover {
    opacity: 1;
}

/* 移除旧的绝对定位样式 */
.base-py,
.base-ft {
    position: static;
}

.base-py,
.base-zy {
    position: static;
}

.base-zy,
.base-bs {
    position: static;
}

.base-none {
    position: static;
}

span.base-jiegou.base-rg {
    position: static;
}

.base-dy {
    width: 1.0rem;
    height: 1.0rem;
    position: relative;
    top: 0.15rem;
    left: 0.25rem;
    cursor: pointer
}

.base-py label {
    padding: 0 2px;
    color: #999;
    position: relative;
    left: 1px;
    font-size: 0.5rem
}

.base-zy img {
    width: 20px;
    height: 20px;
    float: left;
    padding-right: 10px;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .box-top-base {
        padding: 15px;
        margin: 10px 0;
    }

    .base-1 {
        flex-direction: column;
        gap: 15px;
    }

    .base-1>div:first-child {
        width: 100px;
        height: 100px;
        align-self: center;
    }

    .base-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .base-info-item {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .base-1>div:first-child {
        width: 80px;
        height: 80px;
    }

    .base-info-item span:first-child {
        min-width: 35px;
        font-size: 12px;
    }

    .base-info-item {
        font-size: 12px;
    }
}

/* 优化汉字显示区域 */
#hanzi-writer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 优化链接样式 */
.tag-link {
    transition: all 0.3s ease;
    padding: 2px 4px;
    border-radius: 3px;
}

.tag-link:hover {
    background-color: rgba(145, 89, 38, 0.1);
}

.no-bishun {
    color: #979797 !important;
    background-color: #eee;
    padding: 1px 3px;
    border-radius: 5px;
}

.box-p {
    margin: 0 10px 0 0;
}

.base-1 span a {
    color: #915926;
    border-bottom: #915926 solid 1px;
}

.box-p-xdb {
    padding-bottom: 0;
}

.box-p-none {
    padding-top: 0.35rem;
}

.item-z-xdb,
.item-z-jbb {
    border-bottom: #f8eacf solid 1px;
    position: relative;
    display: block;
    padding: 0 0 0 32px;
}

.z-xdb-tit {
    position: absolute;
    left: 0.8rem;
    top: 10px;
    display: block;
    line-height: 1.25rem;
    border-radius: 0.21rem;
    padding: 0 0.2rem;
    background-color: #915926;
    color: #fff;
}

.cixing {
    float: left;
    border-radius: 0.21rem;
    padding: 0px 4px;
    font-size: 16px;
    background-color: #9a7037;
    color: #fff;
    width: 16px;
    margin-left: -12px;
    margin-top: 9px;
    margin-right: 6px;
}

.item-z-xdb label {
    position: absolute;
    left: 0;
    font-family: arial;
    top: 10px;
    font-size: 15px;
}

.item-z-xdb span,
.item-z-jbb span {
    display: block;
    padding: 10px 5px 10px 5px;
    border-bottom: #f8eacf solid 1px;
    position: relative;
    color: #444;
    line-height: 22px
}

.item-z-xdb span {
    padding-left: 1.8rem;
}

.item-z-xdb span.item-z-xdb-no,
.item-z-jbb span.item-z-xdb-no,
.item-z-xzd span.item-z-xzd-no {
    border-bottom: 0;
}

.z-xzd-tit {
    display: block;
    line-height: 1.35rem;
    padding: 0 0.3rem;
    border-radius: 0.21rem;
    float: left;
    background-color: #915926;
    color: #fff;
    margin: 0.3rem 0;
}

.item-z-xzd {
    border-bottom: #f8eacf solid 1px;
    position: relative;
    display: block;
    padding: 10px 5px 10px 20px;
    margin-bottom: 10px;
}

.item-z-xzd label,
.item-z-jbb label {
    position: absolute;
    left: 0;
    font-family: arial;
    top: 10px;
    font-size: 1.0rem;
}

.item-z-xzd span,
.item-z-jbb span {
    clear: both;
    display: block;
    padding: 10px 5px 10px 20px;
    border-bottom: #f8eacf solid 1px;
    position: relative;
    color: #444
}

.zi-basic {
    font-weight: bold;
    position: relative;
    border-top: #ddd solid 1px;
    border-bottom: #f8eacf solid 1px;
    padding: 16px 15px;
    height: auto;
    overflow: auto;
}

.zi-heading.main {
    justify-content: flex-start;
    margin: 10px 0px 10px 12px;
    border-bottom: 1px solid #f8eacf;
}
.zi-heading {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.zi-heading .zi-title, .zi-heading h5 {
    font-size: 24px;
    margin-bottom: 0;
    color: #915926;
}

.zi-heading h3>span:not(.zi-special), .zi-heading h5>span:not(.zi-special) {
    margin-left: 10px;
}

.zi-heading .zi-title-alias {
    font-size: 1rem;
}

.zi-heading h3, .zi-heading h5 {
    display: inline-flex;
    align-items: center;
}

.zi-title, .zi-title>* {
    position: relative;
}


.zi-title::after {
    content: "怎么读：";
    font-size: 14px;
    margin-left: 16px;
}
.voice {
    display: flex;
    align-items: center;
    border: 1px solid #915926;
    border-radius: 8px;
    padding: 1px 6px;
    /* height: 24px; */
    cursor: pointer;
    transition: all .2s linear;
}
.voice em {
    padding: 0 6px 0 2px;
    font-style: normal;
    font-size: 14px;
    font-family: Tahoma, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
}
.zi-title-alias {
    font-size: 15px;
    color: #444;
    margin-left: 12px;
}

.zi-basic-none {
    border-top: 0;
}

.zi-basic strong,
.zi-basic label,
.zi-basic span {
    float: left;
    font-size: 15px;
    color: #444;
}

.zi-basic strong {
    color: #915926;
    font-size: 20px;
    line-height: 22px;
}

.zi-basic label {
    padding-left: 1.2rem;
}

.zi-basic label.ci_dy {
    top: 0;
}

.item-en {
    margin: 0.5rem 0.8rem;
    border-top: 0;
}

.item-en strong {
    left: 0rem;
}

.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: 0.56rem;
    padding-top: 0.21rem;
    font-size: 14px;
}

.box-more h3 a {
     color: #a5855a;
    text-decoration: none;
    padding-left: 0.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: 2px;
    margin-right: 6px;
}

.box-more ul,
.box-more1,
.box-more ul,
.box-more2 {
    height: auto;
    overflow: auto
}
.box-more2 img {
    width: 320px;
    margin: 10px 10px 0px 10px;
}

.box-more2 .summary {
    padding: 10px 14px;
    color: #444;
    line-height: 26px;
    text-indent: 10px;
}
.box-more ul li {
    color: #444;
    float: left;
    width: 21%;
    position: relative;
    line-height: 40px;
    height: 40px;
    padding-left: 20px;
    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,
.box-more2 ul 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 h4 {
    font-size: 14px;
    line-height: 40px;
    height: 40px;
    overflow: hidden;
    margin: 0 14px;
    border-bottom: #f1f1f1 solid 1px;
    list-style: none
}

.box-more2 h4 {
    display: block;
    font-size: 13px;
    color: #965c2e
}

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

.box-more2 ul li {
    float: left;
    width: 20%;
    color: #444;
    list-style: none;
    line-height: 30px;
}

.rg-1,
.rg-2 {
    padding-bottom: 20px;
}

.rg-2 {
    margin-top: 15px;
}

.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;
}

.ly {
    display: block;
    text-align: right;
    padding: 15px 0;
    color: #999;
    font-size: 13px;
}

/*脚注*/



.rr {
    width: 229px !important;
    height: 23px !important;
    padding-top: 0px !important;
    margin-top: 25px !important;
}

.delete-btn {
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
    color: #ccc;
    font-style: normal;
    font-size: 17px;
}

.rg-tit h2 a,
.rg-tit h3 a {
    font-size: 15px;
    color: #804627;
}

.nav a.sel {
    background: url(../images/sjx.png) 11px 50px no-repeat;
    background-size: 10px 8px;
}

.tag-link {
    color: #915926;
    border-bottom: #915926 solid 1px;
}

/* 拼音发音按钮样式 */
.play-sound-btn {
    display: inline-block;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.play-sound-btn:hover {
    background-color: #f0f0f0;
    color: #333;
    transform: scale(1.1);
}

.play-sound-btn:active {
    transform: scale(0.95);
    background-color: #e0e0e0;
}

/* 拼音项样式优化 */
.pinyin-item {
    display: inline-flex;
    align-items: center;
    /* margin-right: 8px; */
    padding: 2px 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.pinyin-item:hover {
    background-color: #f8f8f8;
}

/* 播放状态指示 */
.play-sound-btn.playing {
    color: #007bff;
    animation: pulse 1s infinite;
}

.box-p .explain {
    font-size: 14px;
    border-bottom: 1px solid #f8eacf;
    margin: 0 0 0 18px;
    padding: 8px 0;
    position: relative;
    line-height: 180%;
}

.zi-basic-explain .explain {
    margin: 0 0 0 20px;
}

.box-p .explaintop {
    font-size: 14px;
    border-bottom: 1px solid #f8eacf;
    margin: 0 0 0 40px;
    padding: 8px 0;
    position: relative;
    line-height: 180%;
}

.box-p .explain .no {
    position: absolute;
    left: -26px;
    top: 14px;
    color: red;
    line-height: 1rem;
    font-size: 16px;
}

.box-p .explaintop .no {
    position: absolute;
    left: -26px;
    top: 14px;
    color: red;
    line-height: 1rem;
    font-size: 16px;
}

.box-p .explain .nos {
    position: absolute;
    left: -26px;
    top: 14px;
    color: red;
    line-height: 1rem;
    font-size: 16px;
}

.item-z-xdb .extra {
    font-size: 14px;
    position: relative;
    padding-left: 30px;
    margin-bottom: 0;
    margin-left: -12px;
    border-left: 1px solid var(--border-secondary-color);
    /* padding-top: 32px; */
    line-height: 1.5;
}

.item-z-xdb .extra.quotes>label {
    background-color: #8a0303;
}
.item-z-xdb .extra.en>label {
    background-color: #67a535;
}
.item-z-xdb .extra.eg>label {
    background-color: #666;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.item-z-xdb .extra>label {
    position: absolute;
    left: 30px;
    top: 12px;
    height: 1.25rem;
    line-height: 1.25rem;
    padding: 0 .25rem;
    margin-top: .125rem;
    margin-right: 6px;
    flex-shrink: 0;
    align-self: flex-start;
    background-color: antiquewhite !important;
    border-radius: 2px;
    color: #6e6e6e;
}

.item-z-xdb .extra .author::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 2em;
    height: 1px;
    margin-right: 5px;
    background: #999;
}
.zi-title-img{
    position: relative;
}

/* Tab选项卡样式 */
        .content-tabs-container {
            margin: 0 30px;
        }

        .content-tabs-nav {
            display: flex;
            width: 100%;
            border-bottom: 2px solid #d0ad9a;
            margin-bottom: 15px;
            gap: 2px;
        }

        .tab-btn {
            flex: 1;
            padding: 8px 16px;
            border: 1px solid #d0ad9a;
            border-bottom: none;
            background: #f5f5f51c;
            color: #666;
            cursor: pointer;
            font-size: 14px;
            border-radius: 4px 4px 0 0;
            transition: all 0.3s ease;
            text-align: center;
        }

        .tab-btn:hover {
            background: #f3f3f3;
            color: #333;
        }

        .tab-btn.active {
            background: #fffcf5;
            color: #a5855a;
            font-weight: bold;
            border-bottom: 2px solid #fffcf5;
            margin-bottom: -2px;
        }

        .content-tabs-content {
            min-height: 200px;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        /* box-p样式优化 */


        .box-p:last-child {
            margin-bottom: 0;
        }

        /* 拼音样式 */
        .py {
            color: #a5855a;
            font-weight: bold;
            font-style: normal;
        }
        

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}