:root {
    --dict-green: #086144;
    --dict-green-dark: #064d36;
    --dict-green-light: #eaf5f0;
    --dict-green-soft: #f4faf7;

    --dict-text: #26332e;
    --dict-muted: #718079;
    --dict-border: #e5ebe8;

    --dict-bg: #f7f9f8;
}

.stroke-index-hero {
    position: relative;

    display: flex;
    align-items: center;

    padding: 32px 34px;

    margin-bottom: 18px;

    border: 1px solid var(--dict-border);
    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f7fbf9 100%
        );

    overflow: hidden;
}


.stroke-index-hero::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: -70px;
    top: -70px;

    border-radius: 50%;

    background: rgba(8, 97, 68, .055);

    pointer-events: none;
}


.stroke-hero-icon {
    width: 64px;
    height: 64px;

    flex: 0 0 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 22px;

    border-radius: 14px;

    color: #ffffff;
    background: var(--dict-green);

    font-size: 25px;

    box-shadow:
        0 8px 20px rgba(8, 97, 68, .16);
}


.stroke-hero-content {
    position: relative;
    z-index: 2;
}


.stroke-hero-kicker {
    margin-bottom: 4px;

    color: var(--dict-green);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}


.stroke-index-hero h1 {
    margin: 0 0 7px;

    color: var(--dict-text);

    font-size: 29px;
    font-weight: 700;
    line-height: 1.35;
}


.stroke-index-hero p {
    margin: 0;

    color: var(--dict-muted);

    font-size: 15px;
    line-height: 1.8;
}




.stroke-source-card {
    display: flex;
    align-items: center;

    margin-bottom: 20px;
    padding: 19px 21px;

    border: 1px solid #dcebe5;
    border-radius: 12px;

    background: var(--dict-green-soft);
}


.stroke-source-icon {
    width: 43px;
    height: 43px;

    flex: 0 0 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 14px;

    border-radius: 10px;

    color: var(--dict-green);
    background: #ffffff;

    font-size: 18px;
}


.stroke-source-content {
    flex: 1;
    min-width: 0;
}


.stroke-source-title {
    margin-bottom: 3px;

    color: var(--dict-text);

    font-size: 15px;
    font-weight: 700;
}


.stroke-source-text {
    color: var(--dict-muted);

    font-size: 13px;
    line-height: 1.75;
}


.stroke-source-badge {
    display: inline-flex;
    align-items: center;

    margin-left: 20px;
    padding: 6px 11px;

    flex: 0 0 auto;

    border-radius: 20px;

    color: var(--dict-green);
    background: #ffffff;

    font-size: 12px;
    font-weight: 600;
}


.stroke-source-badge i {
    margin-right: 5px;
}




.stroke-selector-card,
.stroke-list-card,
.stroke-stat-card,
.stroke-info-card,
.stroke-seo-content {
    margin-bottom: 20px;

    border: 1px solid var(--dict-border);
    border-radius: 14px;

    background: #ffffff;
}


.section-heading {
    display: flex;
    align-items: center;

    padding: 22px 23px 18px;

    border-bottom: 1px solid var(--dict-border);
}


.section-heading-icon {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 13px;

    border-radius: 10px;

    color: var(--dict-green);
    background: var(--dict-green-light);

    font-size: 16px;
}


.section-heading h2 {
    margin: 0 0 3px;

    color: var(--dict-text);

    font-size: 18px;
    font-weight: 700;
}


.section-heading p {
    margin: 0;

    color: var(--dict-muted);

    font-size: 13px;
}




.stroke-selector {
    display: grid;

    grid-template-columns: repeat(9, 1fr);

    gap: 10px;

    padding: 22px;
}


.stroke-selector-item {
    position: relative;

    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e1e8e5;
    border-radius: 10px;

    background: #ffffff;

    color: var(--dict-text);

    text-decoration: none;

    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}


.stroke-selector-number {
    font-size: 21px;
    font-weight: 700;

    line-height: 1;
}


.stroke-selector-label {
    margin-left: 3px;

    color: var(--dict-muted);

    font-size: 12px;
}


.stroke-selector-item:hover,
.stroke-selector-item.active {
    border-color: var(--dict-green);

    color: #ffffff;
    background: var(--dict-green);

    text-decoration: none;

    transform: translateY(-2px);

    box-shadow:
        0 5px 14px rgba(8, 97, 68, .15);
}


.stroke-selector-item:hover .stroke-selector-label,
.stroke-selector-item.active .stroke-selector-label {
    color: rgba(255,255,255,.82);
}


.stroke-selector-tip {
    display: flex;
    align-items: center;

    margin: 0 22px 21px;
    padding: 11px 13px;

    border-radius: 8px;

    color: var(--dict-muted);
    background: #f7f9f8;

    font-size: 12px;
    line-height: 1.6;
}


.stroke-selector-tip i {
    margin-right: 7px;

    color: var(--dict-green);
}




.stroke-list {
    padding: 4px 22px 24px;
}


.stroke-group {
    padding: 22px 0;

    border-bottom: 1px solid var(--dict-border);
}


.stroke-group:last-child {
    border-bottom: 0;
}


.stroke-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 15px;
}


.stroke-group-title {
    display: flex;
    align-items: center;
}


.stroke-big-number {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 11px;

    border-radius: 10px;

    color: var(--dict-green);
    background: var(--dict-green-light);

    font-size: 20px;
    font-weight: 700;
}


.stroke-group-title-text h3 {
    margin: 0 0 2px;

    color: var(--dict-text);

    font-size: 17px;
    font-weight: 700;
}


.stroke-group-title-text span {
    color: var(--dict-muted);

    font-size: 12px;
}


.stroke-group-more {
    display: inline-flex;
    align-items: center;

    color: var(--dict-green);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}


.stroke-group-more i {
    margin-left: 6px;

    font-size: 10px;
}


.stroke-group-more:hover {
    color: var(--dict-green);

    text-decoration: none;
}




.character-list {
    display: grid;

    grid-template-columns: repeat(8, minmax(0, 1fr));

    gap: 8px;
}


.character-item {
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    min-height: 72px;

    padding: 7px 5px;

    border: 1px solid #e5ebe8;
    border-radius: 9px;

    background: #ffffff;

    text-decoration: none;

    transition:
        border-color .18s ease,
        background .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}


.character-item-char {
    color: var(--dict-text);

    font-family:
        "Noto Sans TC",
        "Microsoft JhengHei",
        sans-serif;

    font-size: 27px;
    font-weight: 500;

    line-height: 1.25;
}


.character-item-pinyin {
    margin-top: 2px;

    color: var(--dict-muted);

    font-family: Arial, sans-serif;

    font-size: 11px;
    line-height: 1.2;
}


.character-item:hover {
    border-color: var(--dict-green);

    background: var(--dict-green);

    text-decoration: none;

    transform: translateY(-2px);

    box-shadow:
        0 5px 13px rgba(8, 97, 68, .14);
}


.character-item:hover .character-item-char {
    color: #ffffff;
}


.character-item:hover .character-item-pinyin {
    color: rgba(255,255,255,.78);
}




.stroke-stat-list {
    padding: 10px 22px 20px;
}


.stroke-stat-row {
    display: flex;
    align-items: center;

    min-height: 45px;

    border-bottom: 1px solid #edf1ef;

    text-decoration: none;

    transition: background .15s ease;
}


.stroke-stat-row:last-child {
    border-bottom: 0;
}


.stroke-stat-row:hover {
    background: #f8fbfa;

    text-decoration: none;
}


.stroke-stat-name {
    width: 60px;

    display: flex;
    align-items: baseline;

    flex: 0 0 60px;
}


.stroke-stat-name strong {
    width: 27px;

    color: var(--dict-text);

    font-size: 15px;

    text-align: right;
}


.stroke-stat-name span {
    margin-left: 3px;

    color: var(--dict-muted);

    font-size: 11px;
}


.stroke-stat-progress {
    flex: 1;

    min-width: 0;

    margin: 0 16px;
}


.stroke-stat-track {
    width: 100%;
    height: 7px;

    overflow: hidden;

    border-radius: 10px;

    background: #edf2ef;
}


.stroke-stat-bar {
    height: 100%;

    min-width: 2px;

    border-radius: 10px;

    background: var(--dict-green);

    transition: width .5s ease;
}


.stroke-stat-count {
    width: 80px;

    flex: 0 0 80px;

    text-align: right;
}


.stroke-stat-count strong {
    color: var(--dict-text);

    font-size: 14px;
}


.stroke-stat-count span {
    margin-left: 2px;

    color: var(--dict-muted);

    font-size: 11px;
}


.stroke-stat-percent {
    width: 58px;

    flex: 0 0 58px;

    color: var(--dict-muted);

    font-size: 11px;

    text-align: right;
}


.stroke-stat-note {
    display: flex;
    align-items: center;

    margin: 0 22px 22px;
    padding: 10px 12px;

    border-radius: 8px;

    color: var(--dict-muted);
    background: #f7f9f8;

    font-size: 12px;
}


.stroke-stat-note i {
    margin-right: 7px;

    color: var(--dict-green);
}




.stroke-info-card {
    padding: 22px 24px;
}


.stroke-info-header {
    display: flex;
    align-items: center;

    margin-bottom: 15px;
}


.stroke-info-header i {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 10px;

    border-radius: 9px;

    color: var(--dict-green);
    background: var(--dict-green-light);
}


.stroke-info-header h2 {
    margin: 0;

    color: var(--dict-text);

    font-size: 18px;
    font-weight: 700;
}


.stroke-info-content p {
    margin: 0 0 11px;

    color: #5f6d67;

    font-size: 14px;
    line-height: 1.9;
}


.stroke-info-content p:last-child {
    margin-bottom: 0;
}




.stroke-seo-content {
    padding: 24px;
}


.stroke-seo-content h2 {
    margin: 0 0 13px;

    color: var(--dict-text);

    font-size: 19px;
    font-weight: 700;
}


.stroke-seo-content p {
    margin: 0 0 11px;

    color: #63716b;

    font-size: 14px;
    line-height: 1.9;
}


.stroke-seo-content p:last-child {
    margin-bottom: 0;
}



@media (max-width: 991.98px) {

    .stroke-selector {
        grid-template-columns: repeat(8, 1fr);
    }

    .character-list {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

}



@media (max-width: 767.98px) {

    .stroke-index-hero {
        padding: 23px 20px;
    }


    .stroke-hero-icon {
        width: 52px;
        height: 52px;

        flex-basis: 52px;

        margin-right: 15px;

        font-size: 20px;
    }


    .stroke-index-hero h1 {
        font-size: 24px;
    }


    .stroke-index-hero p {
        font-size: 13px;
    }


    .stroke-source-card {
        align-items: flex-start;

        padding: 16px;
    }


    .stroke-source-badge {
        display: none;
    }


    .stroke-selector {
        grid-template-columns: repeat(6, 1fr);

        gap: 7px;

        padding: 17px;
    }


    .stroke-selector-item {
        min-height: 52px;
    }


    .stroke-selector-number {
        font-size: 18px;
    }


    .stroke-selector-tip {
        margin: 0 17px 17px;
    }


    .section-heading {
        padding: 18px 17px 16px;
    }


    .stroke-list {
        padding: 2px 17px 18px;
    }


    .stroke-group {
        padding: 18px 0;
    }


    .stroke-group-header {
        align-items: flex-start;
    }


    .stroke-group-more {
        margin-top: 8px;

        font-size: 12px;
    }


    .character-list {
        grid-template-columns: repeat(5, minmax(0, 1fr));

        gap: 6px;
    }


    .character-item {
        min-height: 66px;
    }


    .character-item-char {
        font-size: 24px;
    }


    .stroke-stat-list {
        padding: 7px 17px 16px;
    }


    .stroke-stat-progress {
        margin-left: 9px;
        margin-right: 9px;
    }


    .stroke-stat-count {
        width: 62px;
        flex-basis: 62px;
    }


    .stroke-stat-percent {
        display: none;
    }


    .stroke-info-card,
    .stroke-seo-content {
        padding: 19px;
    }

}



@media (max-width: 400px) {

    .stroke-selector {
        grid-template-columns: repeat(5, 1fr);
    }


    .character-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }


    .stroke-group-more {
        display: none;
    }


    .stroke-stat-name {
        width: 45px;
        flex-basis: 45px;
    }


    .stroke-stat-progress {
        margin-left: 7px;
        margin-right: 7px;
    }


    .stroke-stat-count {
        width: 52px;
        flex-basis: 52px;
    }

}