/* 鍩虹鏍峰紡 - 涓撲笟瀛楀吀缃戠珯椋庢牸 */
body {
    background: #f8f8f8;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

body.app-layout {
    padding-left: var(--header-width);
    padding-top: var(--header-height);
}

em {
    font-style: normal;
    color: #2c5aa0;
    font-weight: 600;
}
h3 {
    font-size: 18px;
    margin-bottom: 0;
}
a em {
    color: #2c5aa0;
}

a {
    color: var(--primary, #2c5aa0);
    text-decoration: none;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
    color: var(--primary, #1b5f6d);
    text-decoration: none;
    text-underline-offset: 2px;
}

a:focus-visible {
    outline: 2px solid rgba(68, 163, 155, 0.35);
    outline-offset: 2px;
    border-radius: 4px;
}

.dict-container {
    padding: 20px;
    background: #fff;
}

/* 澶撮儴鏍囬 */
.dict-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 0;
    border-bottom: 3px solid #2c3e50;
}

.dict-header h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-weight: normal;
    letter-spacing: 2px;
}

.dict-header p {
    color: #666;
    font-size: 1.1em;
    margin: 0;
}

/* 鎼滅储鍖哄煙 */
.search-box {
    background: #f5f5f5;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid #ddd;
}

.search-box input {
    padding: 12px 15px;
    border: 2px solid #2c3e50;
    width: 400px;
    font-size: 16px;
    margin-right: 10px;
}

.search-box button {
    padding: 12px 25px;
    background: #2c3e50;
    color: white;
    border: 2px solid #2c3e50;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.search-box button:hover {
    background: #1a2530;
}

/* 鍔熻兘瀵艰埅 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.feature-card {
    background: #fff;
    border: 2px solid #e8e8e8;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #2c3e50;
    transform: translateY(-2px);
}

.feature-title {
    font-size: 1.3em;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: bold;
}

.feature-desc {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.feature-card a {
    display: inline-block;
    padding: 8px 20px;
    background: #2c3e50;
    color: white;
    text-decoration: none;
    font-size: 0.9em;
    border: 1px solid #2c3e50;
}

.feature-card a:hover {
    background: #1a2530;
}

.xr-home .feature-grid {
    gap: 12px;
    margin-bottom: 16px;
}

.xr-home .feature-card {
    padding: 12px 14px 10px;
    text-align: left;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 6px;
    align-items: start;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.xr-home .feature-title {
    font-size: 16px;
    margin-bottom: 0;
    grid-column: 1;
    grid-row: 1;
}

.xr-home .feature-desc {
    font-size: 12px;
    margin-bottom: 0;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    grid-column: 1;
    grid-row: 2;
}

.xr-home .feature-card a {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: stretch;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 10px;
}

#yd-word-pron {
    color: rgba(51, 51, 51, 0.72);
    font-family: "lucida sans unicode", arial, sans-serif;
    font-size: 14px;
    margin-top: 10px;
}

#yd-word-pron .en-US,
#yd-word-pron .en-UK {
    display: inline-block;
    margin-right: 10px;
}

#yd-word-pron .playicon {
    display: inline-block;
    margin-left: 6px;
    width: 16px;
    height: 16px;
    vertical-align: -2px;
    cursor: pointer;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    background-image: url(../images/volume.png);
}

#yd-word-pron .playicon:hover {
    background-image: url(../images/volume-hov.png);
}

.yd-mcon {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 18px 18px 16px;
}

.yd-mcon .englishi-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 18px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px dashed #e8e8e8;
}

.yd-mcon #yd-word {
    margin: 0;
    font-size: 34px;
    line-height: 1.1;
    color: #2c3e50;
    letter-spacing: 0.6px;
}

.yd-mcon #yd-word-pron {
    margin-top: 0;
    color: rgba(44, 62, 80, 0.75);
}

.yd-mcon #yd-word-pron .en-US,
.yd-mcon #yd-word-pron .en-UK {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 999px;
    padding: 6px 10px;
    margin-right: 10px;
}

.yd-mcon #yd-word-pron .playicon {
    margin-left: 8px;
}

.yd-mcon .detail {
    margin-top: 14px;
}

.yd-mcon .attr-table {
    margin: 0;
}

.yd-mcon #yd-word-meaning {
    margin-top: 14px;
    background: #fbfcfd;
    border: 1px solid #e8e8e8;
    /* border-left: 4px solid var(--primary, #2c3e50); */
    border-radius: 14px;
    padding: 14px 16px;
}

.yd-mcon #yd-word-meaning ul,
.yd-mcon #yd-word-meaning ol {
    padding-left: 22px;
    margin: 10px 0;
}

.yd-mcon #yd-word-meaning li {
    margin: 6px 0;
    line-height: 1.75;
}

.yd-mcon #yd-word-meaning p {
    margin: 8px 0;
}

.yd-mcon hr {
    border: 0;
    height: 1px;
    margin: 16px 0;
    background: linear-gradient(90deg, rgba(44, 62, 80, 0), rgba(44, 62, 80, 0.22), rgba(44, 62, 80, 0));
}

.yd-mcon .yd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 8px;
    margin: 6px 0 0;
}

.yd-mcon .yd-tags a,
.yd-mcon .yd-tags span {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border: 1px solid #e8e8e8;
    background: #fafafa;
    color: #2c3e50;
    border-radius: 999px;
    font-size: 13px;
    line-height: 28px;
    text-decoration: none;
    white-space: nowrap;
}

.yd-mcon .yd-tags a:hover {
    background: #f0f0f0;
    border-color: #2c3e50;
}

.yd-mcon .yd-tags > span:nth-child(6n + 1),
.yd-mcon .yd-tags > a:nth-child(6n + 1) {
    background: rgba(52, 152, 219, 0.12);
    border-color: rgba(52, 152, 219, 0.28);
    color: #1f5f86;
}

.yd-mcon .yd-tags > span:nth-child(6n + 2),
.yd-mcon .yd-tags > a:nth-child(6n + 2) {
    background: rgba(46, 204, 113, 0.12);
    border-color: rgba(46, 204, 113, 0.28);
    color: #1f6f3e;
}

.yd-mcon .yd-tags > span:nth-child(6n + 3),
.yd-mcon .yd-tags > a:nth-child(6n + 3) {
    background: rgba(241, 196, 15, 0.16);
    border-color: rgba(241, 196, 15, 0.34);
    color: #7a5a06;
}

.yd-mcon .yd-tags > span:nth-child(6n + 4),
.yd-mcon .yd-tags > a:nth-child(6n + 4) {
    background: rgba(155, 89, 182, 0.12);
    border-color: rgba(155, 89, 182, 0.28);
    color: #5e2f74;
}

.yd-mcon .yd-tags > span:nth-child(6n + 5),
.yd-mcon .yd-tags > a:nth-child(6n + 5) {
    background: rgba(231, 76, 60, 0.12);
    border-color: rgba(231, 76, 60, 0.28);
    color: #8a2c22;
}

.yd-mcon .yd-tags > span:nth-child(6n + 6),
.yd-mcon .yd-tags > a:nth-child(6n + 6) {
    background: rgba(26, 188, 156, 0.12);
    border-color: rgba(26, 188, 156, 0.28);
    color: #135a4c;
}

.yd-mcon .yd-tags > a:nth-child(6n + 1):hover,
.yd-mcon .yd-tags > a:nth-child(6n + 2):hover,
.yd-mcon .yd-tags > a:nth-child(6n + 3):hover,
.yd-mcon .yd-tags > a:nth-child(6n + 4):hover,
.yd-mcon .yd-tags > a:nth-child(6n + 5):hover,
.yd-mcon .yd-tags > a:nth-child(6n + 6):hover {
    filter: brightness(0.98);
    border-color: rgba(44, 62, 80, 0.35);
}

.yd-mcon dl {
    position: relative;
    padding-bottom: 26px;
}

.yd-mcon dl > p,
.yd-mcon dl > dd > p:last-child,
.yd-mcon dl > dd:last-child > p:last-child,
.yd-mcon dl dd:last-child p:last-child {
    position: absolute !important;
    right: 12px !important;
    bottom: 8px !important;
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.4;
    text-align: right;
    color: rgba(44, 62, 80, 0.6);
}

/* 鍐呭鍖哄潡 */
.main-content {
    font-family: 'ui-sans-serif','SimSun', '瀹嬩綋', serif;
    display: grid;
    grid-template-columns: 3fr 0.95fr;
    gap: 20px;
    margin-bottom: 40px;
}

.content-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.content-section {
    border: 1px solid #e8e8e8;
    background: #fff;
}

.section-header {
    background: #f5f5f5;
    padding: 11px 20px;
    border-bottom: 1px solid #e8e8e8;
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.2em;
}

.section-content {
    padding: 20px;
}

.tools-container .content-section {
    border-radius: 14px;
    overflow: hidden;
    border-color: #e9eef5;
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.06);
}

.tools-container .section-header {
    padding: 12px 18px;
    font-size: 16px;
}

.tools-container .section-content {
    padding: 18px;
    background: #fff;
}

.tools-container .tools-hint {
    margin: 0 0 12px 0;
    color: #667085;
    font-size: 14px;
}

.tools-container .tools-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tools-container .tools-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    background: #fff;
    resize: vertical;
}

.tools-container .tools-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 20%, transparent);
}

.tools-container .tools-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tools-container .tools-button {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.tools-container .tools-button:hover {
    background: color-mix(in oklab, var(--primary) 85%, black);
    border-color: color-mix(in oklab, var(--primary) 85%, black);
}

.tools-container .tools-button--ghost {
    background: #fff;
    color: var(--primary);
}

.tools-container .tools-button--ghost:hover {
    background: color-mix(in oklab, var(--primary) 10%, white);
}
.result-tip {
    margin-top: 12px;
    padding: 10px 12px;
    background: #e8f4f3;
    border: 1px solid #d2f8f4;
    border-radius: 6px;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.6;
}
.section-content .sidebar-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
.word-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.word-grid.word-grid--result {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

@media (min-width: 960px) {
    .word-grid.word-grid--result {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.word-grid.word-grid--result .word-item {
    text-align: left;
    padding: 14px 16px;
    background: #fff;
    border-color: #eee;
    border-radius: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.word-grid.word-grid--result .word-item:hover {
    border-color: color-mix(in oklab, var(--primary) 50%, #2c3e50);
    background: #fff;
}

.word-grid.word-grid--result .word-item a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex: 0 0 auto;
}

.word-grid.word-grid--result .word-pinyin {
    flex: 0 0 auto;
    max-width: 45%;
    font-size: 12px;
    line-height: 1.4;
    padding: 2px 8px;
    border-radius: 999px;
    background: color-mix(in oklab, #2c5aa0 12%, white);
    color: color-mix(in oklab, #2c5aa0 80%, #2c5aa0);
}

.word-grid.word-grid--result .word-text {
    flex: 1 1 auto;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.word-grid.word-grid--result .daily-desc {
    margin-top: 8px;
    color: #374151;
    font-size: 13px;
    line-height: 1.7;
    text-align: left;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.word-grid.word-grid--result .daily-desc.daily-desc--source {
    margin-top: 6px;
    color: #6b7280;
    -webkit-line-clamp: 2;
}

.word-item {
    padding: 12px;
    border: 1px solid #eee;
    background: #fafafa;
    text-align: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.word-item:hover {
    background: #f0f0f0;
    border-color: #2c3e50;
}

.word-item a {
    color: #2c3e50;
    text-decoration: none;
    display: block;
}

.word-item.word-more {
    background: #fff;
    border-style: dashed;
}

.word-item.word-more:hover {
    background: #f5f5f5;
    border-color: #2c3e50;
}

.word-more-link {
    padding: 9px 0px;
    font-weight: bold;
    letter-spacing: 1px;
}

.word-pinyin {
    font-size: 0.85em;
    color: #2c5aa0;
    font-family: Arial, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.word-text {
    font-size: 14px;
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.more-link {
    display: block;
    text-align: right;
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.more-link:hover {
    color: #1a2530;
}

/* 渚ц竟鏍?*/
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.daily-feature {
    border: 1px solid #e8e8e8;
    background: #fff;
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f5f5f5;
    padding: 12px 14px;
    border-bottom: 1px solid #e8e8e8;
}

.sidebar-title {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.05em;
    letter-spacing: 1px;
}

.sidebar-more {
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.9em;
    padding: 2px 8px;
    border: 1px solid #d8d8d8;
    background: #fff;
}

.sidebar-more:hover {
    border-color: #2c3e50;
}

.sidebar-body {
    padding: 10px 12px;
}

.sidebar-daily-title {
    display: block;
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 4px 2px 8px;
    border-bottom: 1px dashed #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-daily-title:hover {
    color: #1a2530;
}

.sidebar-daily-desc {
    margin-top: 8px;
    color: #666;
    font-size: 13px;
    line-height: 1.75;
}

.sidebar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.sidebar-grid.sidebar-grid--2{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
.sidebar-grid.sidebar-grid--3{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
.sidebar-grid.sidebar-grid--4{ grid-template-columns:repeat(4, minmax(0, 1fr)); }
.sidebar-grid.sidebar-grid--5{ grid-template-columns:repeat(5, minmax(0, 1fr)); }
.sidebar-grid.sidebar-grid--6{ grid-template-columns:repeat(6, minmax(0, 1fr)); }

.sidebar-grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 6px;
    border: 1px solid #eee;
    background: #fff;
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-grid-item:hover {
    border-color: #2c3e50;
    background: #f7f7f7;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: sidebarItem;
}

.sidebar-list li {
    border-bottom: 1px dashed #eee;
}

.sidebar-list li:last-child {
    border-bottom: 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 6px;
}

.sidebar-item::before {
    counter-increment: sidebarItem;
    content: counter(sidebarItem, decimal-leading-zero);
    display: inline-block;
    width: 28px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #999;
    background: #fafafa;
    border: 1px solid #eee;
    line-height: 20px;
    height: 20px;
}

.sidebar-item:hover {
    background: #f7f7f7;
    box-shadow: inset 0 0 0 1px #2c3e50;
    text-decoration: none;
}

.sidebar-item:hover::before {
    border-color: #2c3e50;
}

.sidebar-item-pinyin {
    flex: 0 0 auto;
    max-width: 85px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #c0392b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-item-text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tags {
    margin: 14px 0 0 0;
}

.tags ul.line {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tags ul.line::-webkit-scrollbar {
    display: none;
}

.tags ul.line > li {
    flex: 0 0 auto;
}

.tags ul.line > li > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid #e6eef0;
    background: #f7fbfc;
    color: #2c3e50;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tags ul.line > li > a > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #2c5aa0;
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.tags ul.line > li > a:hover {
    border-color: #2c3e50;
    background: #fff;
    text-decoration: none;
}

.doTTS {
    cursor: pointer;
}

.pinyin-horn {
    cursor: pointer;
}

.pinyin-item-text + .pinyin-horn {
    margin-left: 2px;
}

.js-pinyin-tts + .pinyin-tts-icons {
    margin-left: 2px;
}

.pinyin-tts-icons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
}

/* Header 鏍峰紡 */
.dict-header-container {
    background: #fff;
    border-bottom: 3px solid #2c3e50;
    margin-bottom: 30px;
}

.dict-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.dict-logo-link {
    text-decoration: none;
    color: #2c3e50;
}

.dict-logo-text {
    font-size: 2em;
    font-weight: bold;
    display: block;
    letter-spacing: 2px;
}

.dict-logo-subtitle {
    font-size: 0.9em;
    color: #666;
    display: block;
    margin-top: 5px;
}

.dict-search-form {
    display: flex;
    align-items: center;
}

.dict-search-input {
    padding: 12px 15px;
    border: 2px solid #2c3e50;
    width: 300px;
    font-size: 16px;
    margin-right: 10px;
    font-family: 'ui-sans-serif','SimSun', '瀹嬩綋', serif;
}

.dict-search-button {
    padding: 12px 25px;
    background: #2c3e50;
    color: white;
    border: 2px solid #2c3e50;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    font-family: 'ui-sans-serif','SimSun', '瀹嬩綋', serif;
}

.dict-search-button:hover {
    background: #1a2530;
}

.dict-user-actions {
    display: flex;
    gap: 20px;
}

.dict-user-link,
.dict-help-link {
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.9em;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.dict-user-link:hover,
.dict-help-link:hover {
    background: #f5f5f5;
}

.dict-navigation {
    background: #e8f4f3;
    padding: 0 20px;
}

.dict-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.dict-nav-item {
    margin: 0;
}

.dict-nav-link {
    display: block;
    padding: 15px 25px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.dict-nav-link:hover,
.dict-nav-active .dict-nav-link {
    background: #2c5aa0;
    color: white;
    border-bottom-color: #155e67;
}

/* Footer 鏍峰紡 */
.dict-footer {
    background: #2c3e50;
    color: white;
    padding: 40px 20px 20px;
    margin-top: 50px;
}

.dict-footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.dict-footer-section {
    text-align: center;
}

.dict-footer-title {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #ecf0f1;
    font-weight: bold;
}

.dict-alphabet-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
}

.dict-alphabet-link {
    display: block;
    padding: 8px;
    background: #34495e;
    color: #ecf0f1;
    text-decoration: none;
    text-align: center;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.dict-alphabet-link:hover {
    color: #fff;
    background: #2c5aa0;
}

.dict-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dict-footer-link {
    color: #bdc3c7;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.dict-footer-link:hover {
    color: white;
}

.dict-footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #34495e;
}

.dict-footer-description {
    color: #bdc3c7;
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.dict-footer-copyright {
    color: #95a5a6;
    font-size: 0.85em;
}

.dict-footer-copyright a {
    color: #ecf0f1;
    text-decoration: none;
}

.dict-footer-copyright a:hover {
    text-decoration: none;
}

.dict-gotop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #2c5aa0;
    color: white;
    text-decoration: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.dict-gotop:hover {
    opacity: 1;
}

.sidr{
    display:none;
    position:fixed;
    top:0;
    height:100%;
    width:320px;
    overflow-x:hidden;
    overflow-y:auto;
    z-index:9999;
    background:#fff;
    box-shadow:0 0 20px rgba(0,0,0,.18);
}
.sidr.right{
    right:-320px;
    left:auto;
}
.sidr.left{
    left:-320px;
    right:auto;
}

.center{ text-align:center; }
.gray{ color:#777; }
.dark{ color:#333; }
.light{ color:#666; }
.blue{ color:#2c5aa0; text-decoration:none; }
.blue:hover{ text-decoration:none; }
.gclear{ clear:both; }
.clearfix::after{ content:""; display:block; clear:both; }

.dict-container .mtitle.path,
.main .mtitle.path{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:6px;
    margin:0 0 12px 0;
    color:#666;
    font-size:14px;
}
.dict-container .mtitle.path a,
.main .mtitle.path a{
    color:#2c3e50;
    text-decoration:none;
}
.dict-container .mtitle.path a:hover,
.main .mtitle.path a:hover{
    text-decoration:none;
}
.dict-container .mtitle.path i,
.main .mtitle.path i{
    display:inline-block;
    width:6px;
    height:6px;
    border-right:1px solid #aaa;
    border-bottom:1px solid #aaa;
    transform:rotate(-45deg);
    margin:0 2px;
}

.dict-container .mcon{ margin-top:12px;font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; }
.dict-container .mcon:first-child{ margin-top:0; }

.dict-title-row{
    display:flex;
    align-items:flex-start;
    gap:18px;
}

.dict-title-row h1{ margin:0; }

.hanzi-mizige{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:104px;
    height:104px;
    padding:0;
    font-size:68px;
    line-height:1;
    font-weight:800;
    font-family: KaiTi, "妤蜂綋", STKaiti, "Kaiti SC", serif;
    letter-spacing:2px;
    color:#2c3e50;
    background-color:#fff;
    border:1px solid #e1e1e1;
    border-radius:14px;
    box-shadow:0 10px 22px rgba(0, 0, 0, 0.08);
    background-image:
        linear-gradient(45deg, transparent 49.2%, rgba(44, 62, 80, 0.12) 49.6%, rgba(44, 62, 80, 0.12) 50.4%, transparent 50.8%),
        linear-gradient(-45deg, transparent 49.2%, rgba(44, 62, 80, 0.12) 49.6%, rgba(44, 62, 80, 0.12) 50.4%, transparent 50.8%),
        linear-gradient(to right, transparent 49.2%, rgba(44, 62, 80, 0.12) 49.6%, rgba(44, 62, 80, 0.12) 50.4%, transparent 50.8%),
        linear-gradient(to bottom, transparent 49.2%, rgba(44, 62, 80, 0.12) 49.6%, rgba(44, 62, 80, 0.12) 50.4%, transparent 50.8%);
}

.hanzi-mizige .hanzi-text{
    display:block;
}

.hanzi-mizige-group{
    display:inline-flex;
    flex-wrap:wrap;
    gap:0;
    align-items:center;
    justify-content:center;
}

.hanzi-mizige-group .hanzi-mizige{
    border-radius:0;
    box-shadow:none;
}

.hanzi-mizige-group .hanzi-mizige + .hanzi-mizige{
    margin-left:-1px;
}

.hanzi-mizige-group .hanzi-mizige:first-child{
    border-top-left-radius:14px;
    border-bottom-left-radius:14px;
}

.hanzi-mizige-group .hanzi-mizige:last-child{
    border-top-right-radius:14px;
    border-bottom-right-radius:14px;
}

.hanzi-mizige .svg-thumb{
    width:100px;
    height:100px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.hanzi-mizige .svg-thumb svg{
    display:block;
    width:100%;
    height:100%;
}

.dict-title-row .zui{
    display:flex;
    flex:1;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:10px 8px;
    margin:6px 0 0 auto;
}

.dict-title-row .zui a,
.dict-title-row .zui span{
    display:inline-flex;
    align-items:center;
    height:28px;
    padding:0 12px;
    border:1px solid #e8e8e8;
    background:#fafafa;
    color:#2c3e50;
    border-radius:999px;
    font-size:13px;
    line-height:28px;
    text-decoration:none;
    white-space:nowrap;
}

.dict-title-row .zui a:hover{
    background:#f0f0f0;
    border-color:#2c3e50;
}

.dict-container .detail,
.main .detail{
    font-size:14px;
    line-height:1.75;
}
.dict-container .detail .attr_name,
.main .detail .attr_name{
    display:inline-block;
    min-width:56px;
    margin-right:8px;
    color:#2c3e50;
    font-weight:700;
}
.dict-container .detail .mr,
.main .detail .mr{
    margin-right:14px;
}

/* 灞炴€ц〃鏍兼牱寮?- 浼橀泤绠€绾︾増 */
.attr-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin: 20px 0;
    table-layout: auto;
}

.attr-table col.attr-col-th {
    width: 1%;
}

.attr-table col.attr-col-td {
    width: auto;
}

.attr-table tr {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.attr-table tr:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.attr-table th {
    background: #f8f9fa;
    color: #2c3e50;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border-right: 1px solid #e8e8e8;
    white-space: nowrap;
}

.attr-table td {
    padding: 16px 20px;
    font-size: 15px;
    color: #333;
    background: #fff;
    word-break: break-word;
}

.attr-table tr > th,
.attr-table tr > td {
    border-radius: 0;
}

.attr-table tr > th:first-child {
    border-radius: 12px 0 0 12px;
}

.attr-table tr > td:last-child {
    border-radius: 0 12px 12px 0;
}

.attr-table a {
    color: var(--primary, #3498db);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.attr-table a:hover {
    color: var(--primary, #2980b9);
    text-decoration: none;
    background: rgba(52, 152, 219, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    margin: -2px -6px;
}
.mcon img,.explain-2 img,.explain-3 img {
    width: 16px;
}
ul.btn{
    list-style:none;
    margin:0;
    padding:0;
    display:grid;
    height:auto;
    min-width:0;
    min-height:0;
    border:0;
    background:transparent;
    gap:10px;
}
ul.btn li{ margin:0; padding:0; }
ul.btn li a{
    display:block;
    padding:10px 0px;
    border:1px solid #eee;
    background:#fafafa;
    color:#2c3e50;
    text-decoration:none;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    text-align: center;
    margin: 10px auto;
}
ul.btn li a:hover{
    background:#f0f0f0;
    border-color:#2c3e50;
}
ul.btn li a span{
    display:inline-block;
    min-width:72px;
    margin-right:8px;
    color:#c0392b;
    font-family:Arial, sans-serif;
    font-size:12px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    vertical-align:baseline;
}
ul.btn li a .word-pinyin{
    font-size:12px;
    margin-bottom:4px;
}
ul.btn li a .word-text{
    font-size:14px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
ul.btn.w3{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
ul.btn.w4{ grid-template-columns:repeat(4, minmax(0, 1fr)); }
ul.btn.w2{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
ul.btn.w5{ grid-template-columns:repeat(5, minmax(0, 1fr)); }
ul.btn.w6{ grid-template-columns:repeat(6, minmax(0, 1fr)); }
ul.btn.w10{ grid-template-columns:repeat(10, minmax(0, 1fr)); }
ul.btn.w13{ grid-template-columns:repeat(13, minmax(0, 1fr)); }
ul.btn.w12{ grid-template-columns:repeat(6, minmax(0, 1fr)); }

table.table-datas{
    width:100%;
    border-collapse:collapse;
    background:#fff;
}
table.table-datas th{
    background:#f5f5f5;
    color:#2c3e50;
    font-weight:700;
    text-align:left;
    padding:10px 12px;
    border:1px solid #e8e8e8;
}
table.table-datas td{
    padding:10px 12px;
    border:1px solid #eee;
    vertical-align:top;
}
table.table-datas tr:hover td{ background:#fafafa; }

table.table-datas--nowrap{
    table-layout: fixed;
}

table.table-datas--nowrap td{
    vertical-align: middle;
}

table.table-datas--nowrap td:first-child{
    white-space: nowrap;
    width: 20%;
}

table.table-datas--nowrap .td-ellipsis{
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yyui_tab{ width:auto; }
.yyui_tab > ul{
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}
.yyui_tab_title,
.yyui_tab_title_this{
    display:flex;
    align-items:center;
    gap:6px;
    padding:8px 12px;
    border:1px solid #e8e8e8;
    background:#f7f7f7;
    color:#2c3e50;
    cursor:pointer;
    user-select:none;
}
.yyui_tab_title_this{
    background:#f0f7ff;
    color:#000000;
}
.yyui_tab_content{ display:none; padding-top:12px; }
.yyui_tab_content_this{ display:block; padding-top:12px; }
.yyui_badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:18px;
    padding:0 6px;
    border-radius:999px;
    background:#e74c3c;
    color:#fff;
    font-size:12px;
    line-height:18px;
}

.tab_wrap .tab_p.tab_head{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:10px 0;
}

.tab_wrap .tab_p.tab_head .tab-hd-item,
.tab_wrap .tab_p.tab_head > span{
    display:inline-flex !important;
    align-items:center;
    border:1px solid #e8e8e8;
    background:#f7f7f7;
    color:#2c3e50;
    border-radius:999px;
    padding:6px 12px !important;
    line-height:1;
    font-size:13px;
    cursor:pointer;
    user-select:none;
    transition:background-color .15s ease, border-color .15s ease, color .15s ease;
}

.tab_wrap .tab_p.tab_head .tab-hd-item:hover,
.tab_wrap .tab_p.tab_head > span:hover{
    border-color: color-mix(in oklab, var(--primary) 50%, #2c3e50);
    background: color-mix(in oklab, var(--primary) 10%, white);
}

.tab_wrap .tab_p.tab_head .tab-hd-item.actives,
.tab_wrap .tab_p.tab_head .tab-hd-item[aria-selected="true"],
.tab_wrap .tab_p.tab_head > span.actives,
.tab_wrap .tab_p.tab_head > span[aria-selected="true"]{
    border-color: color-mix(in oklab, var(--primary) 70%, #2c3e50);
    background: color-mix(in oklab, var(--primary) 18%, white);
    color:#000000;
    font-weight:600;
}

.fontbox{
    width: 100px;
    display:inline-block;
    padding:8px 10px;
    border:1px solid #eee;
    background:#fafafa;
    color:#2c3e50;
    text-decoration:none;
    margin:0 10px 10px 0;
    vertical-align:top;
    text-align: center;
}
.fontbox:hover{ border-color:#2c3e50; background:#f0f0f0; text-decoration:none; }
.fontbox span{ color:#c0392b; font-family:Arial, sans-serif; font-size:12px; }
.fontbox .word-pinyin{
    font-size:12px;
    color:#2c5aa0;
}
.fontbox .word-text{
    font-size:14px;
    color:#2c3e50;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.fontbox.disabled{ opacity:.6; pointer-events:none; }

.main{
    /* max-width:1200px; */
    margin:0 auto;
    padding:20px;
    background:#fff;
}

.main .content {
    font-family: auto;
    min-width:0;
    border:1px solid #e8e8e8;
    background:#fff;
    margin-bottom:20px;
}
h2 {
    font-size: 20px;
}
.main .content .box:last-child{ margin-bottom:0; }
.main .content .box .mtitle{
    background:#f5f5f5;
    padding:15px 20px;
    border-bottom:1px solid #e8e8e8;
    font-weight:700;
    color:#2c3e50;
}
.main .content .box .mcon{ padding:20px; }
.main .sidebar{
    display:flex;
    flex-direction:column;
    gap:20px;
    min-width:0;
}
.main-content .sidebar{
    display:flex;
    flex-direction:column;
    gap:20px;
    min-width:0;
}
.main .sidebar .box{
    border:1px solid #e8e8e8;
    background:#fff;
}
.main-content .sidebar .box{
    border:1px solid #e8e8e8;
    background:#fff;
}
.main .sidebar .sdc{ padding:12px 14px; }
.main-content .sidebar .sdc{ margin:12px 14px; }
.main .sidebar h3{
    margin:0 0 10px 0;
    font-weight:700;
    color:#2c3e50;
    font-size:1.05em;
    letter-spacing:1px;
}

.main.zdduyin-box{
    display:grid;
    grid-template-columns: 3fr 0.95fr;
    gap:20px;
    align-items:start;
}
.main.zdduyin-box > .content{ grid-column:1 / 2; }
.main.zdduyin-box > .sidebar,
.main.zdduyin-box > .sidebar-column{ grid-column:2 / 3; }
.main-content > .sidebar,
.main-content > .sidebar-column{ grid-column:2 / 3; }

.main.yinyu-tag-box{
    display:grid;
    grid-template-columns: 3fr 0.95fr;
    gap:20px;
    align-items:start;
}
.main.yinyu-tag-box > .content{ grid-column:1 / 2; }
.main.yinyu-tag-box > .sidebar,
.main.yinyu-tag-box > .sidebar-column{ grid-column:2 / 3; }

.main.cdcizu-box{
    display:grid;
    grid-template-columns: 3fr 0.95fr;
    gap:20px;
    align-items:start;
}
.main.cdcizu-box > .content{ grid-column:1 / 2; }
.main.cdcizu-box > .sidebar,
.main.cdcizu-box > .sidebar-column{ grid-column:2 / 3; }

.fink{
    width:1200px;
    max-width:calc(100% - 32px);
    margin:18px auto 24px;
}
.fink .mcon{
    padding:16px 18px 18px;
    border:1px solid #e8e8e8;
    background:#fff;
    border-radius:14px;
}
.fink_title h3{
    margin:0;
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    font-weight:800;
    color:#2c3e50;
    letter-spacing:1px;
}
.fink_title_text{
    font-size:18px;
}
.fink_title .cc{
    font-size:13px;
    font-weight:600;
    color:#6b7280;
}
.fink_divider{
    height:1px;
    margin:10px 0 14px;
    background:linear-gradient(to right, rgba(44,90,160,.35), rgba(44,90,160,0));
}
.fink_nr{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}
.fink_link{
    display:inline-flex;
    align-items:center;
    padding:8px 12px;
    border:1px solid #e6eef0;
    border-radius:999px;
    background:#f7fbfb;
    color:#2c3e50;
    font-size:14px;
    line-height:1;
    transition:background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.fink_link:hover{
    background:#2c5aa0;
    border-color:#2c5aa0;
    color:#fff;
    transform:translateY(-1px);
}

