@font-face { font-family:'標楷體2'; src:url('./font/concised-dict.woff') format('truetype'); font-display:swap; }
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    color: #333;
    background: #E9E0D6;
    font-family:"標楷體2","Times New Roman", Times, "標楷體", "BiauKai", "DFKai-sb", "TWKai", "Microsoft JhengHei", sans-serif;
    font-size: 15px;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color:#086144;
}


.breadcrumb
{
    background:#fff;
}

.top-bar {
    background: #3D3D3D;
    border-bottom: 1px solid #9d8c75;
    font-size: 13px;
    color:#fff;
}

.top-bar-inner {
    max-width: 1180px;
    margin: auto;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-left {
    color: #fff;
}



.top-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 22px;
}


.top-right .top-link {
    display: inline-flex;
    align-items: center;
    color: inherit;
    font-size: 13px;
    line-height: 1.6;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}


.top-right .top-link:hover,
.top-right .top-link:focus {
    color: #35a117;
    text-decoration: underline;
}


.top-right .top-user-link {
    font-weight: 600;
}




.font-size-switch a {
    margin-left: 8px;
}




.site-header {
    background: #796A56;
    border-bottom: 1px solid #9d8c75;
}

.header-inner {
    max-width: 1180px;
    margin: auto;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}



.logo-title {
    color: #fff;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 700;
}





.main-nav {
    display: flex;
    align-items: center;
}

.main-nav a {
    position: relative;

    padding: 32px 15px;

    color: #fff;
    font-size: 15px;
    transition: .2s;
}

.main-nav a:hover {
    color: #F8D425 ;
}

.main-nav a.active {
    color: #F8D425 ;
}

.main-nav a.active:after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 0;
    height: 3px;
    background: #F8D425 ;
}




.mobile-menu-btn {
    display: none;

    width: 42px;
    height: 42px;

    border: 1px solid #ddd;
    border-radius: 5px;

    background: #fff;
    color: #555;

    font-size: 18px;
}




.hero {
    background:#45785c;

    border-bottom: 1px solid #e2e7e9;
}

.hero-inner {
    max-width: 1000px;
    margin: auto;

    padding: 52px 20px 42px;

    text-align: center;
}

.hero-title {
    margin-bottom: 8px;

    color: #fff;

    font-size: 32px;
    font-weight: 700;
}

.hero-desc {
    margin-bottom: 28px;

    color: #fff;
    font-size: 15px;
}




.dictionary-search {
    max-width: 760px;
    margin: auto;
}

.search-box {
    display: flex;

    height: 58px;

    overflow: hidden;

    border: 2px solid #086144;
    border-radius: 7px;

    background: #086144;

    box-shadow:0px 2px 8px #05241a;
}

.search-input {
    flex: 1;

    min-width: 0;

    border: 0;
    outline: none;

    padding: 0 20px;

    color: #333;

    font-size: 17px;
}

.search-input::placeholder {
    color: #aaa;
}

.search-button {
    width: 110px;

    border: 0;

    background: #086144;
    color: #fff;

    font-size: 16px;

    cursor: pointer;

    transition: .2s;
}

.search-button:hover {
    background: #054e36;
}

.search-button i {
    margin-right: 6px;
}



.keyboard-wrapper {
    max-width: 760px;
    margin: 18px auto 0;

    text-align: left;
}

.keyboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 8px;
}

.keyboard-title {
    color: #666;
    font-size: 14px;
}

.keyboard-toggle {
    padding: 0;

    border: 0;
    background: transparent;

    color: #fff;

    font-size: 14px;

    cursor: pointer;
}

.keyboard-toggle:hover {
    color: #fff;
}

.keyboard {
    display: none;

    padding: 15px;

    border: 1px solid #dce3e6;
    border-radius: 7px;

    background: #fff;

    box-shadow: 0 3px 12px rgba(0, 0, 0, .04);
}

.keyboard.show {
    display: block;
}

.keyboard-tabs {
    display: flex;
    font-weight:700;
    margin-bottom: 13px;

    border-bottom: 1px solid #e5e5e5;
}

.keyboard-tab {
    padding: 7px 18px;

    border: 0;

    background: transparent;

    color: #777;

    cursor: pointer;
}

.keyboard-tab.active {
    color: #3e7186;
    border-bottom: 2px solid #4f8095;
}



.keyboard-panel {
    width: 100%;
    max-width: 760px;
    margin: 15px auto 0;
    padding: 12px;
    box-sizing: border-box;
    display:none;
}
.keyboard-panel.active 
{
            display: block;
}
.keyboard-row {
    display: grid;
    grid-template-columns: repeat(11, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    margin-bottom: 6px;
}

.keyboard-row:last-child {
    margin-bottom: 0;
}

.key,
.key-empty {
    min-width: 0;
    height: 42px;
}

.key {
    border: 1px solid #d5d5d5;
    background: #fff;
    border-radius: 4px;
    color: #333;
    font-size: 18px;
    line-height: 40px;
    text-align: center;
    padding: 0;
    cursor: pointer;
    user-select: none;
    transition: all .15s ease;
}

.key:hover {
    background: #f1f5f9;
    border-color: #aaa;
}

.key:active {
    background: #e5e7eb;
    transform: translateY(1px);
}

.key-empty {
    display: block;
}

/* 注音聲母 */
.key-c1 {
    font-weight: 500;
}

/* 注音韻母 */
.key-c3 {
    font-weight: 500;
}

/* 聲調 */
.keyboard-function-row {
    grid-template-columns:
        repeat(6, 1fr)
        1fr
        1fr;
}

.key-tone {
    font-size: 20px;
}

.key-space {
    font-size: 15px;
}

.key-backspace {
    font-size: 21px;
}

.tips
{
  font-size: 12px;
  margin-top: 10px;
  color: #fff;
  text-indent:0.5em;
  text-align: left;
}

.btips
{
    color:#000;
}
.btips:hover{
    color:#000;
}
.index-section {
    background: #fff;

    border-bottom: 1px solid #e5e8ea;
}

.index-container {
    max-width: 1180px;
    margin: auto;

    padding: 35px 20px;
}

.section-heading {
    margin-bottom: 25px;

    text-align: center;
}

.section-heading h2 {
    margin: 0;

    color: #086144;

    font-size: 23px;
    font-weight: 700;
}

.section-heading p {
    margin: 7px 0 0;

    color: #999;
    font-size: 13px;
}


.index-grid {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 15px;
}

.index-card {
    min-height: 130px;

    padding: 24px 15px;

    border: 1px solid #e2e6e8;
    border-radius: 7px;

    background: #fff;

    text-align: center;

    transition: .2s;
}

.index-card:hover {
    border-color: #45785c;
    background:#45785c;
    color:#fff;
    transform: translateY(-2px);

    box-shadow: 0 5px 18px rgba(0, 0, 0, .06);
}

.index-icon {
    width: 45px;
    height: 45px;

    margin: 0 auto 12px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #cfd7d9;
    color: #086144;

    font-size: 19px;
}

.index-card h3 {
    margin: 0 0 5px;
    color: #000;
    font-size: 16px;
    font-weight: 600;
}

.index-card p {
    margin: 0;
    color: #000;
    font-size: 12px;
}

.index-card:hover h3
{
    color:#fff;
}

.index-card:hover p 
{
    color:#fff;
}

.index-card:hover .index-icon
{
    background:#fff;
}
.quick-section {
    background: #fff;
}

.quick-container {
    max-width: 1180px;
    margin: auto;

    padding: 35px 20px;
}

.quick-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 15px;
}

.quick-item {
    padding: 20px;

    border: 1px solid #e1e5e7;
    border-radius: 6px;

    color: #000;

    background: #fff;

    transition: .2s;
}

.quick-item:hover {
    background: #45785c;
    border-color: #45785c;
    color:#fff;
}

.quick-item i {
    margin-right: 10px;
    color: #086144;
}
.quick-item:hover i
{
    color:#fff;
}



.site-footer {
    background: #3D3D3D;

    color: #ffffff;
}

.footer-container {
    max-width: 1180px;
    margin: auto;

    padding: 35px 20px 25px;
}

.footer-main {
    display: grid;

    grid-template-columns: 1.2fr 1fr;

    gap: 50px;
}

.footer-title {
    margin-bottom: 13px;

    color: #fff;

    font-size: 18px;
    font-weight: 700;
}

.footer-text {
    color: #fff;

    line-height: 1.9;

    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;

    gap: 10px 20px;
}

.footer-links a {
    color: #fff;

    font-size: 13px;
}

.footer-links a:hover {
    color: #F8D425;
}

.copyright {
    margin-top: 28px;
    padding-top: 18px;

    border-top: 1px solid rgba(255,255,255,.12);

    text-align: center;

    color: #fff;

    font-size: 12px;
}

.copyright a:hover{
    color:#F8D425;
}



.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;

    background: #086144;
    color: #fff;

    cursor: pointer;

    box-shadow: 0 3px 12px rgba(0,0,0,.15);

    z-index: 99;
}

.back-top:hover {
    background: #3d6879;
}




.page-layout {
    display: flex;
    align-items: flex-start;
    margin-top: 8px;
    margin-bottom: 45px;
}

.page-main {
    width: calc(100% - 310px);
    margin-right: 25px;
    min-width: 0;
}

.page-sidebar {
    width: 285px;
    flex: 0 0 285px;
}



.content-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}

.content-heading {
    padding: 20px 24px 17px;
    border-bottom: 1px solid #eee;
}

.content-heading h1 {
    margin: 0;
    font-size: 25px;
    line-height: 1.4;
    color: #222;
    font-weight: 700;
}

.content-heading h1 i {
    color: #086144;
    margin-right: 8px;
    font-size: 22px;
}

.content-heading p {
    margin: 7px 0 0;
    color: #888;
    font-size: 14px;
}



.letter-nav {
    padding: 16px 24px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.letter-nav-title {
    color: #777;
    font-size: 13px;
    margin-bottom: 10px;
}

.letter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.letter-item {
    width: 35px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    color: #555;
    transition: all .15s ease;
}

.letter-item:hover,
.letter-item.active {
    background: #086144;
    color: #fff;
    border-color: #086144;
}



.pinyin-content {
    padding: 20px 24px 28px;
}

.pinyin-section {
    margin-bottom: 30px;
    scroll-margin-top: 20px;
}

.pinyin-section:last-child {
    margin-bottom: 0;
}

.pinyin-section-title {
    display: flex;
    align-items: center;
    font-size: 19px;
    font-weight: 700;
    color: #222;
    padding-bottom: 11px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.pinyin-section-title .letter {
    width: 34px;
    height: 34px;
    border-radius: 4px;
    background: #086144;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 17px;
}

.pinyin-section-title .count {
    margin-left: auto;
    font-size: 12px;
    color: #aaa;
    font-weight: 400;
}

.pinyin-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
}

.pinyin-item {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background: #fff;
    color: #444;
    transition: background .15s ease, color .15s ease;
}

.pinyin-item:hover {
    background: #f4f9fd;
    color: #086144;
}

.pinyin-text {
    font-size: 15px;
    font-weight: 500;
}

.pinyin-tone {
    color: #aaa;
    font-size: 12px;
    margin-left: 5px;
}



.seo-content {
    padding: 22px 24px;
    color: #666;
    font-size: 14px;
    line-height: 1.9;
}

.seo-content h2 {
    font-size: 19px;
    color: #333;
    margin: 0 0 12px;
}

.seo-content p {
    margin: 0 0 10px;
}

.seo-content p:last-child {
    margin-bottom: 0;
}



.sidebar-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    margin-bottom: 18px;
    overflow: hidden;
}

.sidebar-title {
    height: 50px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    font-size: 17px;
    font-weight: 700;
    color: #333;
}

.sidebar-title i {
    color: #086144;
    margin-right: 8px;
    font-size: 15px;
}

.sidebar-list {
    padding: 7px 0;
    margin: 0;
    list-style: none;
}

.sidebar-list li {
    margin: 0;
    padding: 0;
}

.sidebar-list li a {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: #555;
    font-size: 14px;
    border-bottom: 1px solid #f3f3f3;
}

.sidebar-list li:last-child a {
    border-bottom: 0;
}

.sidebar-list li a:hover {
    background: #f7fafc;
    color: #086144;
}

.sidebar-list li a i {
    width: 22px;
    color: #086144;
    font-size: 12px;
}

.sidebar-list li a .arrow {
    margin-left: auto;
    color: #ccc;
    font-size: 11px;
}



.stroke-grid {
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.stroke-grid2{
     grid-template-columns: repeat(5, 1fr);
}
.stroke-grid3{
    grid-template-columns: repeat(6, 1fr);
}
.stroke-grid a {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    border-radius: 3px;
    color: #000 !important;
    font-size: 18px;
    background: #fff;
}

.stroke-grid a:hover {
    color: #fff !important;
    border-color: #086144;
    background: #086144;
}
        
#page-main
{
    margin-top:1em;
}

.wap-a
{
    width: 100%;
    padding: 10px 20px !important;
}


.dictionary-layout {
    display: flex;
    align-items: flex-start;
    gap: 22px;
}

.dictionary-main {
    flex: 1;
    min-width: 0;
}

.dictionary-sidebar {
    width: 270px;
    flex: 0 0 270px;
}


.content-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.content-card-body {
    padding: 25px;
}



.page-title {
    margin: 0;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.4;
    color: #222;
}

.page-title i {
    color: #086144;
    margin-right: 8px;
}

.page-intro {
    margin-top: 10px;
    color: #777;
    font-size: 14px;
}


.radical-search {
    margin-top: 22px;
    display: flex;
    max-width: 560px;
}

.radical-search-input {
    flex: 1;
    height: 42px;
    border: 1px solid #ddd;
    border-right: 0;
    border-radius: 4px 0 0 4px;
    padding: 0 14px;
    outline: none;
    font-size: 14px;
}

.radical-search-input:focus {
    border-color: #063d2a;
    box-shadow: none;
}

.radical-search-btn {
    width: 82px;
    border: 0;
    border-radius: 0 4px 4px 0;
    background: #086144;
    color: #fff;
    cursor: pointer;
}

.radical-search-btn:hover {
    background: #063d2a;
}


.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.section-title h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 600;
    color: #333;
}

.section-title h2 i {
    color: #086144;
    margin-right: 7px;
}

.section-title small {
    color: #999;
    font-size: 13px;
}


.stroke-index {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.stroke-index a {
    min-width: 48px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #e5e5e5;
    background: #fafafa;
    border-radius: 3px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #555;
    font-size: 14px;
    transition: all .15s ease;
}

.stroke-index a:hover,
.stroke-index a.active {
    color: #fff;
    background: #086144;
    border-color: #086144;
}



.radical-section {
    margin-top: 32px;
    scroll-margin-top: 80px;
}

.radical-section:first-of-type {
    margin-top: 0;
}

.radical-heading {
    height: 42px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    background: #f8f8f8;
    border-left: 3px solid #086144;
    border-bottom: 1px solid #eee;
}

.radical-heading h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

.radical-heading span {
    margin-left: 8px;
    color: #999;
    font-size: 13px;
    font-weight: normal;
}



.radical-list {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    border-left: 1px solid #eee;
    border-top: 1px solid #eee;
}

.radical-item {
    min-height: 76px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: background .15s ease;
    position: relative;
}

.radical-item:hover {
    background: #086144;
    color:#fff;
}

.radical-char {
    display: block;
    font-family: '標楷體2';
    font-size: 29px;
    line-height: 1.2;
    color: #333;
}

.radical-name {
    display: inline-block;
    margin-top: 3px;   
    font-size: 12px;
    line-height: 1.2;
    
}

.radical-item:hover .radical-char {
    color: #fff;

}


.pinyin-detail-header {
    padding: 27px 28px 24px;

    border-bottom: 1px solid #edf0f3;
}

.pinyin-detail-title {
    display: flex;

    align-items: baseline;

    flex-wrap: wrap;

    gap: 12px;
}

.pinyin-label {
    padding: 4px 9px;

    border-radius: 4px;

    background: #086144;

    color: #fff;

    font-size: 12px;
}

.pinyin-detail-title h1 {
    margin: 0;

    color: #000;

    

    font-size: 32px;

    font-weight: 600;

    line-height: 1.2;
}

.pinyin-detail-description {
    margin-top: 12px;

    color: #333;

    font-size: 14px;

    line-height: 1.8;
}




.tone-navigation {
    padding: 21px 28px 24px;

    border-bottom: 1px solid #edf0f3;

    background: #fcfcfd;
}

.tone-navigation-title {
    margin-bottom: 14px;

    color: #000;

    font-size: 16px;

    font-weight: 600;
}

.tone-navigation-title i {
    margin-right: 6px;

    color: #086144;
}

.tone-navigation-list {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;
}

.tone-navigation-item {
    display: inline-flex;

    align-items: center;

    min-width: 105px;

    min-height: 44px;

    padding: 0 12px;

    border: 1px solid #000;

    border-radius: 5px;

    background: #fff;

    color: #000;

    text-decoration: none;

    transition:
        background .2s,
        border-color .2s,
        color .2s,
        transform .2s;
}

.tone-navigation-item:hover {
    border-color: #086144;

    background: #086144;

    color: #fff;

    text-decoration: none;

    transform: translateY(-1px);
}

.tone-pinyin {
    font-size: 18px;

    font-weight: 500;
}

.tone-count {
    margin-left: 8px;

    color: #000;

    font-size: 11px;
}

.tone-navigation-item > i {
    margin-left: auto;

    color: #000;

    font-size: 11px;
}

.tone-navigation-item:hover .tone-count ,.tone-navigation-item:hover > i
{
    color:#fff;
}

.pinyin-character-content {
    padding: 0;
}

.tone-section {
    padding: 27px 28px 30px;

    border-bottom: 1px solid #edf0f3;
}

.tone-section:last-child {
    border-bottom: 0;
}



.tone-section-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin: 0 0 14px;
    padding: 0 0 11px;
    border-bottom: 2px solid #086144;
}

.tone-section-title {
    display: flex;

    align-items: center;
}

.tone-number {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 40px;
    height: 40px;

    margin-right: 11px;

    border-radius: 5px;

    background: #086144;

    color: #fff;

    font-size: 17px;

    font-weight: 600;
}

.tone-section-title h2 {
    margin: 0;

    color: #333941;

    font-size: 20px;

    line-height: 1.2;

    font-weight: 600;
}

.tone-zhuyin {
    display: block;

    margin-top: 4px;

    color: #949ba3;

    font-size: 12px;
}

.tone-section-count {
    flex: 0 0 auto;
    padding: 4px 10px;
    color: #086144;
    background: #edf6f1;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
}

.tone-section-count strong {
    color: #086144;

    font-weight: 600;
}




.character-list {
    display: grid;

    grid-template-columns:
        repeat(8, minmax(0, 1fr));

    gap: 9px;
}

.character-link {
    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    min-height: 76px;

    padding: 8px 5px;

    border: 1px solid #e8ebef;

    border-radius: 5px;

    background: #fff;

    color: #333;

    text-decoration: none;

    transition:
        border-color .2s,
        background .2s,
        color .2s,
        transform .2s,
        box-shadow .2s;
}

.character-link:hover {
    border-color: #c4d2e5;

    background: #f7f9fc;

    color: #4e709f;

    text-decoration: none;

    transform: translateY(-2px);

    box-shadow:
        0 4px 10px rgba(52, 75, 108, .06);
}

.character {
    

    color: inherit;

    font-size: 31px;

    line-height: 1.15;
}

.character-pinyin {
    margin-top: 5px;
    color: #a0a6ad;
    line-height: 1;
}




.tone-empty {
    padding: 28px 15px;

    border-radius: 5px;

    background: #d3dae0;

    color: #000;

    font-size: 13px;

    text-align: center;
}



.character-item {
    position: relative;

    min-height: 94px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border: 1px solid #666;
    border-radius: 8px;

    background: #fff;

    text-decoration: none;
    overflow:hidden;
    transition:
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}


.character-item .character {
    color: #000;    
    font-size: 34px;
    line-height: 1.2;
    transition: color .18s ease;
}


.character-pinyin {
    margin-top: 5px;

    color: #666;
    overflow:hidden;
    font-size: 13px;
    width:100%;
    text-overflow:ellipsis;
    display:block;
    text-align:center;
    white-space:nowrap;
    transition: color .18s ease;
}



.character-item:hover {
    border-color: #086144;

    background: #086144;

    text-decoration: none;

    transform: translateY(-2px);

    box-shadow: 0 5px 14px rgba(8, 97, 68, .16);
}


.character-item:hover .character {
    color: #fff;
}


.character-item:hover .character-pinyin {
    color: rgba(255, 255, 255, .8);
}

.note-delete-message {
    margin: 12px 0;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
}

.note-delete-message.is-success {
    color: #086144;
    background: #edf7f1;
    border: 1px solid #c8e6d5;
}

.note-delete-message.is-error {
    color: #a12622;
    background: #fff0ef;
    border: 1px solid #f1ceca;
}

.js-note-delete-form button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}


/* 收藏筆記區域 */


.note-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #086144;
    border-radius: 5px;
    background: #086144;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    transition: background-color 0.2s ease,
                border-color 0.2s ease,
                opacity 0.2s ease;
}

.note-add-btn:hover {
    background: #064d36;
    border-color: #064d36;
}

.note-add-btn:focus-visible {
    outline: 2px solid #086144;
    outline-offset: 3px;
}

.note-add-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.note-add-btn.is-success {
    background: #fff;
    color: #086144;
    border-color: #086144;
}

.note-action-tip {
    margin: 7px 0 0;
    color: #777;
    font-size: 12px;
    line-height: 1.6;
}

/* 操作提示 */
.note-action-message {
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
}

.note-action-message.is-success {
    color: #086144;
    background: #edf7f1;
}

.note-action-message.is-error {
    color: #a12622;
    background: #fff0ef;
}

.note-action-message a {
    color: #086144;
    font-weight: 600;
    text-decoration: underline;
    margin-left: 5px;
}

@media (max-width: 576px) {
    .note-add-btn {
        padding: 9px 16px;
        font-size: 14px;
    }
}


@media (max-width:1366px)
{
    .top-bar-inner
    {
        width:98%;
        max-width:98%;
    }
}

@media (max-width: 991px) {

.main-nav 
{
        display: none;
}

.nav-main
{
    display: flex;
    position: absolute;
    top: 96px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #796A56;
    border-top: 1px solid #796A56;
    border-bottom: 1px solid #796A56;
    flex-direction: column ;         
}

    .main-nav a.active:after
    {
        height:2px;
    }
    .header-inner {
        padding: 0 20px;
    }

    

    .mobile-menu-btn {
        display: block;
    }

    .index-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

     .keyboard-panel {
        max-width: 680px;
        padding: 10px;
    }

    .keyboard-row {
        gap: 5px;
        margin-bottom: 5px;
    }

    .key,
    .key-empty {
        height: 40px;
    }

    .key {
        font-size: 17px;
        line-height: 38px;
    }

    .key-space {
        font-size: 14px;
    }

    .page-main {
        width: calc(100% - 260px);
        margin-right: 20px;
    }

    .page-sidebar {
        width: 240px;
        flex-basis: 240px;
    }

    .pinyin-list {
        grid-template-columns: repeat(4, 1fr);
    }

    .stroke-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    

}


@media (max-width: 767px) {

    .tips{
        text-indent:0px;
    }
    .top-bar-inner {
        padding: 0 15px;
        flex-wrap:wrap;
    }

    .top-left ,.top-right
    {
        width:50%;
    }
   

    

    .header-inner {
        min-height: 72px;
    }

    .logo-title {
        font-size: 20px;
    }

    .logo-symbol {
        width: 40px;
        height: 40px;

        font-size: 20px;
    }

    .hero-inner {
        padding: 38px 15px 32px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .search-box {
        height: 52px;
    }

    .search-button {
        width: 85px;
    }

    .search-input {
        padding: 0 13px;
        font-size: 15px;
    }

   
    .index-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .news-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .news-date {
        width: 90px;
    }
    .keyboard-panel {
        width: 100%;
        padding: 8px 4px;
        margin-top: 10px;
    }

    .keyboard-row {
        gap: 3px;
        margin-bottom: 3px;
    }

    .key,
    .key-empty {
        height: 38px;
    }

    .key {
        font-size: 16px;
        line-height: 36px;
        border-radius: 3px;
    }

    .key-space {
        font-size: 13px;
    }

    .key-tone {
        font-size: 18px;
    }

    .key-backspace {
        font-size: 19px;
    }

    .page-layout {
        display: block;
        margin-top: 5px;
    }

    .page-main {
        width: 100%;
        margin-right: 0;
    }

    .page-sidebar {
        width: 100%;
        margin-top: 18px;
    }

    .content-heading {
        padding: 17px 15px 14px;
    }

    .content-heading h1 {
        font-size: 21px;
    }

    .content-heading p {
        font-size: 13px;
    }

    .letter-nav {
        padding: 13px 15px;
    }

    .letter-list {
        gap: 5px;
    }

    .letter-item {
        width: 31px;
        height: 30px;
        font-size: 13px;
    }

    .pinyin-content {
        padding: 17px 15px 22px;
    }

    .pinyin-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .pinyin-item {
        min-height: 44px;
        padding: 8px 10px;
    }

    .pinyin-section-title {
        font-size: 17px;
    }

    .pinyin-section-title .letter {
        width: 31px;
        height: 31px;
        font-size: 15px;
    }

    .sidebar-title {
        height: 47px;
        font-size: 16px;
    }

    .sidebar-list li a {
        min-height: 40px;
        padding: 7px 14px;
    }

    .stroke-grid {
        grid-template-columns: repeat(5, 1fr);
        padding: 10px;
    }

    .stroke-grid a {
        height: 34px;
        font-size: 16px;
    }

    .seo-content {
        padding: 18px 15px;
    }

.character-item {
        min-height: 82px;
    }


    .character-item .character {
        font-size: 30px;
    }

}

@media (max-width: 576px) {
    .top-bar-inner {
        flex-wrap: wrap;
        gap: 6px 6px;
        padding:4px 6px;
       
        
    }

    .top-left {
        flex: 1 1 100%;
        font-size: 12px;
    }

    .top-right {
        flex: 1 1 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 8px 18px;
    }

    .top-right .top-link {
        font-size: 12px;
    }

    .nav-main
    {
        top:116px;
    }
    .hero-inner
    {
        padding-left:10px;
        padding-right:10px;
    }
}

@media (max-width: 420px) {
     .character-item .character {
        font-size: 28px;
    }

    .index-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .index-card {
        min-height: 115px;
        padding: 18px 8px;
    }

    .index-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 8px;
    }

    .index-card h3 {
        font-size: 14px;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }

    .top-right {
        font-size: 12px;
        gap: 10px;
    }

     .keyboard-panel {
        padding-left: 2px;
        padding-right: 2px;
    }

    .keyboard-row {
        gap: 2px;
        margin-bottom: 2px;
    }

    .key,
    .key-empty {
        height: 35px;
    }

    .key {
        font-size: 12px;
        line-height: 33px;
    }

    .key-space {
        font-size: 11px;
    }

    .key-tone {
        font-size: 16px;
    }

    .pinyin-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .letter-item {
        width: 29px;
    }
    
}