:root {
    --dm-blue: #428bca;
    --dm-blue-dark: #3071a9;
    --dm-text: #333;
    --dm-muted: #888;
    --dm-border: #ddd;
    --dm-soft-border: #e8e8e8;
    --dm-surface: #fff;
    --dm-soft: #f7f7f7;
    --dm-page: #f3f5f7;
    --dm-radius: 4px;
    --dm-shadow: 0 1px 2px rgba(0, 0, 0, .045);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--dm-page);
    color: var(--dm-text);
    font: 14px/1.75 "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--dm-blue);
    text-decoration: none;
}

a:hover {
    color: var(--dm-blue-dark);
}

button,
input,
select {
    font-size: 14px;
}

:focus-visible {
    outline: 3px solid rgba(66, 139, 202, .28);
    outline-offset: 2px;
}

.dm-container {
    width: min(1140px, calc(100% - 32px));
    margin-inline: auto;
}

.dm-screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dm-skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9999;
    padding: 9px 14px;
    border-radius: var(--dm-radius);
    background: #111;
    color: #fff;
    transform: translateY(-150%);
}

.dm-skip-link:focus {
    color: #fff;
    transform: translateY(0);
}

.dm-masthead {
    margin-bottom: 24px;
    background: var(--dm-surface);
    border-bottom: 1px solid var(--dm-border);
}

.dm-brand-row {
    min-height: 124px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.dm-brand {
    min-width: 0;
    margin: 0;
    font: inherit;
}

.dm-brand > a {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    color: var(--dm-text);
}

.dm-logo {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: contain;
}

.dm-brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dm-brand-title {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.dm-brand-description {
    max-width: 720px;
    margin-top: 8px;
    color: var(--dm-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
}

.dm-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dm-user-button,
.dm-menu-toggle {
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    background: #fff;
    color: #666;
    cursor: pointer;
}

.dm-user-button {
    min-height: 38px;
    padding: 7px 12px;
}

.dm-menu-toggle {
    display: none;
    width: 42px;
    height: 38px;
    padding: 9px 10px;
}

.dm-menu-toggle > span:not(.dm-screen-reader-text) {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: #666;
    transition: transform .18s ease, opacity .18s ease;
}

.dm-menu-toggle.is-open > span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.dm-menu-toggle.is-open > span:nth-child(2) {
    opacity: 0;
}

.dm-menu-toggle.is-open > span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.dm-nav-shell {
    border-top: 1px solid var(--dm-border);
    background: #fafafa;
}

.dm-nav-row {
    min-height: 46px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 18px;
}

.dm-navigation {
    min-width: 0;
}

.dm-navigation ul {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    min-height: 46px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dm-navigation li {
    display: flex;
    align-items: stretch;
}

.dm-navigation a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 16px;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    color: #555;
}

.dm-navigation a:hover,
.dm-navigation .is-active a {
    background: #fff;
    border-color: var(--dm-border);
    color: var(--dm-blue-dark);
}

.dm-search {
    align-self: center;
    display: flex;
    flex: 0 0 236px;
    height: 32px;
}

.dm-search input {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    padding: 5px 10px;
    border: 1px solid var(--dm-border);
    border-right: 0;
    border-radius: var(--dm-radius) 0 0 var(--dm-radius);
    background: #fff;
}

.dm-search button {
    flex: 0 0 auto;
    padding: 0 12px;
    border: 1px solid var(--dm-blue);
    border-radius: 0 var(--dm-radius) var(--dm-radius) 0;
    background: var(--dm-blue);
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.dm-main {
    min-height: 58vh;
}

.dm-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 24px;
    align-items: start;
}

.dm-content,
.dm-sidebar {
    min-width: 0;
}

.dm-panel {
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    background: var(--dm-surface);
    box-shadow: var(--dm-shadow);
}

.dm-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    margin: 0;
    padding: 10px 15px;
    border-bottom: 1px solid var(--dm-border);
    background: var(--dm-soft);
    color: #555;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.dm-panel-heading small {
    color: var(--dm-muted);
    font-size: 12px;
    font-weight: 400;
}

.dm-panel-body {
    padding: 18px;
}

.dm-breadcrumb {
    margin-bottom: 18px;
    color: var(--dm-muted);
    font-size: 13px;
}

.dm-breadcrumb a {
    color: #666;
}

.dm-breadcrumb .dm-separator {
    margin: 0 7px;
    color: #bbb;
}

.dm-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--dm-border);
}

.dm-feature {
    position: relative;
    min-height: 176px;
    overflow: hidden;
    background: #47515b;
}

.dm-feature img {
    width: 100%;
    height: 176px;
    object-fit: cover;
    transition: transform .25s ease;
}

.dm-feature:hover img {
    transform: scale(1.025);
}

.dm-feature-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 38px 16px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .78));
    color: #fff;
}

.dm-feature-title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dm-post-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dm-post-item {
    display: grid;
    grid-template-columns: 184px minmax(0, 1fr);
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--dm-soft-border);
}

.dm-post-item:first-child {
    padding-top: 0;
}

.dm-post-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.dm-post-item.is-no-cover {
    grid-template-columns: 1fr;
}

.dm-post-cover {
    display: block;
    width: 184px;
    height: 122px;
    overflow: hidden;
    border: 1px solid #eee;
    border-radius: var(--dm-radius);
    background: #eee;
}

.dm-post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .18s ease;
}

.dm-post-cover:hover img {
    opacity: .88;
}

.dm-post-title {
    margin: -2px 0 7px;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.45;
}

.dm-post-title a {
    color: #333;
}

.dm-post-title a:hover {
    color: var(--dm-blue-dark);
}

.dm-post-excerpt {
    display: -webkit-box;
    margin: 0 0 10px;
    overflow: hidden;
    color: #666;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dm-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: #999;
    font-size: 12px;
}

.dm-post-meta a {
    color: #888;
}

.dm-post-meta span + span::before {
    content: "·";
    margin-right: 12px;
    color: #ccc;
}

.dm-sidebar .dm-panel-body {
    padding: 15px;
}

.dm-site-profile {
    text-align: center;
}

.dm-profile-logo {
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
    border-radius: 50%;
    object-fit: cover;
}

.dm-site-profile strong {
    display: block;
    margin-bottom: 4px;
    font-size: 17px;
    font-weight: 500;
}

.dm-site-profile p {
    margin: 0;
    color: var(--dm-muted);
    font-size: 13px;
}

.dm-subscribe {
    display: flex;
    margin-top: 15px;
}

.dm-subscribe input {
    min-width: 0;
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius) 0 0 var(--dm-radius);
}

.dm-subscribe button {
    padding: 0 13px;
    border: 1px solid var(--dm-blue);
    border-radius: 0 var(--dm-radius) var(--dm-radius) 0;
    background: var(--dm-blue);
    color: #fff;
    cursor: pointer;
}

.dm-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 15px -15px -15px;
    border-top: 1px solid var(--dm-soft-border);
}

.dm-stat {
    padding: 11px 8px;
    color: #666;
    text-align: center;
}

.dm-stat:nth-child(odd) {
    border-right: 1px solid var(--dm-soft-border);
}

.dm-stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--dm-soft-border);
}

.dm-stat strong {
    display: block;
    color: #333;
    font-size: 18px;
    font-weight: 500;
}

.dm-simple-list,
.dm-ranked-list,
.dm-category-list,
.dm-link-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dm-simple-list li,
.dm-ranked-list li,
.dm-category-list li {
    position: relative;
    padding: 9px 0;
    border-bottom: 1px solid var(--dm-soft-border);
}

.dm-simple-list li:last-child,
.dm-ranked-list li:last-child,
.dm-category-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.dm-simple-list li:first-child,
.dm-ranked-list li:first-child,
.dm-category-list li:first-child {
    padding-top: 0;
}

.dm-ranked-list li {
    padding-left: 31px;
}

.dm-rank {
    position: absolute;
    top: 9px;
    left: 0;
    width: 21px;
    height: 21px;
    border-radius: 3px;
    background: #b8bec4;
    color: #fff;
    font-size: 11px;
    line-height: 21px;
    text-align: center;
}

.dm-ranked-list li:first-child .dm-rank {
    top: 0;
}

.dm-ranked-list li:nth-child(-n + 3) .dm-rank {
    background: var(--dm-blue);
}

.dm-category-list a,
.dm-simple-list a,
.dm-ranked-list a {
    color: #555;
}

.dm-category-list a:hover,
.dm-simple-list a:hover,
.dm-ranked-list a:hover {
    color: var(--dm-blue-dark);
}

.dm-category-list span {
    float: right;
    color: #aaa;
}

.dm-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin: 20px 0 0;
}

.dm-pagination a,
.dm-pagination span {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    background: #fff;
    color: #666;
    line-height: 32px;
    text-align: center;
}

.dm-pagination .is-current {
    border-color: var(--dm-blue);
    background: var(--dm-blue);
    color: #fff;
}

.dm-empty {
    padding: 64px 22px;
    color: var(--dm-muted);
    text-align: center;
}

.dm-empty h2 {
    margin: 0 0 7px;
    color: #555;
    font-size: 19px;
}

.dm-page-header {
    padding: 20px;
    border-bottom: 1px solid var(--dm-soft-border);
}

.dm-page-header h1 {
    margin: 0 0 8px;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.4;
}

.dm-page-header p {
    margin: 0;
    color: var(--dm-muted);
}

.dm-article {
    overflow: visible;
}

.dm-article-header {
    padding: 25px 28px 18px;
    border-bottom: 1px solid var(--dm-soft-border);
}

.dm-article-title {
    margin: 0 0 12px;
    font-size: clamp(25px, 3vw, 32px);
    font-weight: 500;
    line-height: 1.42;
    letter-spacing: -.02em;
}

.dm-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 15px;
    color: #999;
    font-size: 12px;
}

.dm-article-body {
    padding: 25px 28px 30px;
    font-size: 16px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.dm-article-body > :first-child {
    margin-top: 0;
}

.dm-article-body > :last-child {
    margin-bottom: 0;
}

.dm-article-body h2,
.dm-article-body h3,
.dm-article-body h4 {
    margin: 1.8em 0 .75em;
    color: #2f3438;
    line-height: 1.45;
}

.dm-article-body h2 {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--dm-soft-border);
    font-size: 24px;
}

.dm-article-body h3 {
    font-size: 20px;
}

.dm-article-body p,
.dm-article-body ul,
.dm-article-body ol,
.dm-article-body blockquote,
.dm-article-body pre,
.dm-article-body table {
    margin: 0 0 1.2em;
}

.dm-article-body img {
    display: block;
    max-width: 100% !important;
    height: auto !important;
    margin: 1.4em auto;
    border-radius: 3px;
}

.dm-article-body blockquote {
    padding: 12px 16px;
    border-left: 4px solid var(--dm-blue);
    background: var(--dm-soft);
    color: #666;
}

.dm-article-body pre {
    max-width: 100%;
    padding: 15px;
    overflow: auto;
    border: 1px solid #e4e4e4;
    border-radius: var(--dm-radius);
    background: #f6f8fa;
    font-size: 13px;
    line-height: 1.65;
}

.dm-article-body table {
    width: 100%;
    border-collapse: collapse;
}

.dm-article-body th,
.dm-article-body td {
    padding: 9px 10px;
    border: 1px solid var(--dm-border);
}

.dm-article-footer {
    padding: 13px 28px;
    border-top: 1px solid var(--dm-soft-border);
    background: var(--dm-soft);
    color: var(--dm-muted);
    font-size: 12px;
}

.dm-copyright {
    padding: 15px 18px;
    border-left: 3px solid var(--dm-blue);
    background: #f8fafc;
    color: #666;
    overflow-wrap: anywhere;
}

.dm-post-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.dm-post-navigation a,
.dm-post-navigation span {
    min-height: 78px;
    padding: 14px 16px;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    background: #fff;
    color: #555;
}

.dm-post-navigation small {
    display: block;
    margin-bottom: 4px;
    color: #999;
}

.dm-post-navigation .dm-next {
    text-align: right;
}

.dm-two-widgets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.dm-friend-links {
    margin-top: 24px;
}

.dm-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.dm-link-list img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: -3px;
}

.dm-tool-wrap {
    width: min(900px, calc(100% - 32px));
    margin-inline: auto;
}

.dm-tool-card {
    padding: 28px;
}

.dm-tool-title {
    margin: 0 0 24px;
    font-size: 26px;
    font-weight: 500;
    text-align: center;
}

.dm-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dm-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.dm-field label {
    color: #555;
    font-weight: 600;
}

.dm-field input,
.dm-field select {
    width: 100%;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    background: #fff;
}

.dm-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 20px;
    padding: 9px 20px;
    border: 1px solid var(--dm-blue);
    border-radius: var(--dm-radius);
    background: var(--dm-blue);
    color: #fff;
    cursor: pointer;
}

.dm-primary-button:hover {
    background: var(--dm-blue-dark);
}

.dm-primary-button.is-wide {
    width: 100%;
}

.dm-tool-note {
    margin: 18px 0 0;
    color: #a94442;
    font-size: 13px;
    text-align: center;
}

.dm-qr-result {
    min-height: 0;
    margin: 24px auto 0;
    text-align: center;
}

.dm-qr-result img {
    width: 200px;
    height: 200px;
}

.dm-results {
    display: none;
    margin-top: 28px;
}

.dm-results.active {
    display: block;
}

.dm-broker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.dm-broker-card {
    padding: 16px;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    background: #fff;
}

.dm-broker-header,
.dm-fee-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.dm-broker-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--dm-soft-border);
}

.dm-broker-name {
    font-weight: 600;
}

.dm-total-fee {
    color: var(--dm-blue-dark);
    font-weight: 600;
}

.dm-fee-item {
    padding: 4px 0;
    color: #666;
}

.dm-login-form {
    width: 320px;
    max-width: calc(100vw - 48px);
    margin: 0 auto;
    padding: 24px;
}

.dm-login-form h2 {
    margin: 0 0 18px;
    font-size: 22px;
    text-align: center;
}

.dm-captcha-row,
.dm-code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 10px;
}

.dm-captcha-row img {
    width: 128px;
    height: 38px;
    border: 1px solid var(--dm-border);
    cursor: pointer;
}

.dm-code-row button {
    margin: 0;
}

.dm-vip-copy {
    padding: 22px 28px;
}

.dm-footer {
    margin-top: 70px;
    padding: 32px 0;
    border-top: 1px solid var(--dm-border);
    background: #fff;
    color: #888;
    font-size: 13px;
    text-align: center;
}

.dm-footer p {
    margin: 4px 0;
}

.dm-footer-divider {
    margin: 0 5px;
    color: #bbb;
}

.dm-back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 30;
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    background: rgba(255, 255, 255, .94);
    color: #666;
    cursor: pointer;
    box-shadow: var(--dm-shadow);
}

.dm-back-top.is-visible {
    display: block;
}

@media (max-width: 900px) {
    .dm-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .dm-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .dm-sidebar .dm-panel {
        margin-bottom: 0;
    }
}

@media (max-width: 760px) {
    .dm-container {
        width: min(100% - 24px, 1140px);
    }

    .dm-brand-row {
        min-height: 92px;
    }

    .dm-logo {
        width: 54px;
        height: 54px;
    }

    .dm-brand-title {
        font-size: 22px;
    }

    .dm-brand-description {
        display: none;
    }

    .dm-user-text {
        display: none;
    }

    .dm-menu-toggle {
        display: block;
    }

    .dm-nav-row {
        display: block;
    }

    .dm-navigation {
        display: none;
        padding: 8px 0;
    }

    .dm-navigation.is-open {
        display: block;
    }

    .dm-navigation ul {
        display: block;
        min-height: 0;
    }

    .dm-navigation li,
    .dm-navigation a {
        display: block;
    }

    .dm-navigation a {
        min-height: 0;
        padding: 9px 12px;
        border: 0;
    }

    .dm-navigation a:hover,
    .dm-navigation .is-active a {
        border: 0;
        background: #eee;
    }

    .dm-search {
        width: 100%;
        padding-bottom: 10px;
    }

    .dm-feature-grid,
    .dm-two-widgets,
    .dm-post-navigation,
    .dm-form-grid,
    .dm-broker-grid {
        grid-template-columns: 1fr;
    }

    .dm-sidebar {
        grid-template-columns: 1fr;
    }

    .dm-post-navigation .dm-next {
        text-align: left;
    }

    .dm-article-header,
    .dm-article-body,
    .dm-tool-card {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 560px) {
    .dm-masthead {
        margin-bottom: 16px;
    }

    .dm-post-item {
        grid-template-columns: 116px minmax(0, 1fr);
        gap: 12px;
        padding: 16px 0;
    }

    .dm-post-cover {
        width: 116px;
        height: 82px;
    }

    .dm-post-title {
        margin-bottom: 5px;
        font-size: 16px;
    }

    .dm-post-excerpt {
        display: none;
    }

    .dm-post-meta span:nth-child(n + 2) {
        display: none;
    }

    .dm-panel-body {
        padding: 15px;
    }

    .dm-page-header,
    .dm-article-header,
    .dm-article-body,
    .dm-article-footer,
    .dm-tool-card {
        padding-left: 16px;
        padding-right: 16px;
    }

    .dm-article-body {
        font-size: 15px;
    }

    .dm-captcha-row,
    .dm-code-row {
        grid-template-columns: minmax(0, 1fr) 112px;
    }

    .dm-captcha-row img {
        width: 112px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* DMENG 2.0 fidelity layer: Bootstrap 3 era panels, archive rows and widgets. */
:root {
    --dm-blue: #428bca;
    --dm-blue-dark: #2a6496;
    --dm-text: #333;
    --dm-muted: #999;
    --dm-border: #ddd;
    --dm-soft-border: #eee;
    --dm-surface: #fff;
    --dm-soft: #f5f5f5;
    --dm-page: #fff;
    --dm-radius: 4px;
    --dm-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}

body {
    background: #fff;
    font: 14px/24px "Microsoft YaHei", "Hiragino Sans GB", "Microsoft JhengHei", sans-serif;
}

.dm-container {
    width: 1170px;
    max-width: calc(100% - 30px);
}

.dm-masthead {
    margin-bottom: 25px;
    border: 0;
    background: #fcfcfc;
}

.dm-header-content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 30px;
    min-height: 94px;
}

.dm-header-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 15px 0;
}

.dm-brand > a {
    gap: 14px;
}

.dm-logo {
    width: 64px;
    height: 64px;
    border-radius: 4px;
}

.dm-brand-title {
    color: #444;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0;
}

.dm-brand-description {
    margin-top: 7px;
    color: #555;
    font-size: 14px;
    line-height: 22px;
}

.dm-header-profile {
    align-self: center;
    padding: 15px 0;
    color: #666;
    font-size: 13px;
}

.dm-profile-line,
.dm-profile-tabs {
    height: 32px;
    line-height: 32px;
}

.dm-profile-line {
    border-bottom: 1px solid #eee;
}

.dm-profile-tabs a,
.dm-user-button {
    margin: 0 10px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #666;
    line-height: 32px;
}

.dm-user-button:hover,
.dm-profile-tabs a:hover {
    color: var(--dm-blue-dark);
}

.dm-nav-shell {
    border-top: 1px solid #e7e7e7;
    border-bottom: 1px solid #e7e7e7;
    background: #f8f8f8;
}

.dm-nav-row {
    justify-content: flex-start;
    gap: 0;
    min-height: 42px;
}

.dm-navbar-header,
.dm-mobile-brand {
    display: none;
}

.dm-navigation ul {
    min-height: 42px;
}

.dm-navigation a {
    min-height: 42px;
    padding: 10px 15px 8px;
    border: 0;
    color: #777;
    line-height: 22px;
}

.dm-navigation a:hover,
.dm-navigation .is-active a {
    border: 0;
    background: rgba(231, 231, 231, .5);
    color: #555;
}

.dm-search {
    align-self: flex-start;
    flex: 0 0 205px;
    height: 34px;
    margin: 4px 0 4px 15px;
}

.dm-search input {
    height: 34px;
    padding: 6px 12px;
    border-color: #ccc;
    border-radius: 4px 0 0 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}

.dm-search button {
    width: 40px;
    padding: 0;
    border-color: #ccc;
    border-radius: 0 4px 4px 0;
    background: #fff;
    color: #333;
}

.dm-search button:hover {
    border-color: #adadad;
    background: #ebebeb;
}

.dm-search-icon {
    position: relative;
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 2px solid #666;
    border-radius: 50%;
    vertical-align: -1px;
}

.dm-search-icon::after {
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 6px;
    height: 2px;
    background: #666;
    content: "";
    transform: rotate(45deg);
    transform-origin: left center;
}

.dm-main {
    min-height: 52vh;
}

.dm-layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 30px;
}

.dm-panel {
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--dm-border);
    border-radius: 4px;
    background: #fff;
    box-shadow: var(--dm-shadow);
}

.dm-panel-heading {
    min-height: 40px;
    padding: 9px 15px;
    background: #f5f5f5;
    color: #333;
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
}

.dm-panel-body {
    padding: 15px;
}

.dm-panel-footer {
    padding: 10px 15px;
    border-top: 1px solid var(--dm-border);
    background: #f5f5f5;
}

.dm-archive-heading {
    margin: 10px 0 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.1;
}

.dm-archive-heading small {
    color: #999;
    font-size: 65%;
    font-weight: 400;
}

.dm-post-list > li {
    margin: 0;
    padding: 0;
}

.dm-archive-entry {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.dm-post-list > li:last-child .dm-archive-entry {
    margin-bottom: 0;
    border-bottom: 0;
}

.dm-entry-header {
    margin: 10px 0;
    padding-bottom: 9px;
    border-bottom: 1px dashed #eee;
}

.dm-post-title {
    margin: 10px 0 15px;
    font-size: 18px;
    font-weight: 400;
    line-height: 34px;
}

.dm-post-title a {
    color: #428bca;
}

.dm-post-meta {
    gap: 5px 14px;
    color: #999;
    font-size: 12px;
}

.dm-post-meta a {
    color: #999;
}

.dm-post-meta span + span::before {
    content: none;
}

.dm-entry-content {
    min-height: 24px;
    overflow: hidden;
    font-size: 14px;
    line-height: 24px;
}

.dm-post-cover {
    float: left;
    width: 220px;
    height: 146px;
    margin: 0 20px 0 0;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}

.dm-post-cover:hover {
    border-color: #ddd;
}

.dm-post-excerpt {
    display: block;
    margin: 0;
    overflow: visible;
    color: #333;
    line-height: 24px;
    -webkit-line-clamp: initial;
}

.dm-archive-entry.has-thumbnail .dm-entry-content {
    min-height: 146px;
}

.dm-sidebar .dm-panel > .dm-panel-body {
    padding: 0;
}

.dm-sidebar .dm-subscribe-widget > .dm-panel-body {
    padding: 15px;
}

.dm-widget-copy {
    margin: 0;
    color: #666;
    font-size: 13px;
}

.dm-subscribe {
    margin-top: 10px;
}

.dm-subscribe input {
    height: 34px;
    padding: 6px 12px;
    border-color: #ccc;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}

.dm-subscribe button {
    border-color: #ccc;
    background: #fff;
    color: #333;
}

.dm-subscribe button:hover {
    background: #ebebeb;
}

.dm-simple-list li,
.dm-ranked-list li,
.dm-category-list li {
    min-height: 42px;
    padding: 9px 15px;
    border-top: 1px solid #ddd;
    border-bottom: 0;
    line-height: 23px;
}

.dm-simple-list li:first-child,
.dm-ranked-list li:first-child,
.dm-category-list li:first-child {
    padding-top: 9px;
    border-top: 0;
}

.dm-simple-list li:last-child,
.dm-ranked-list li:last-child,
.dm-category-list li:last-child {
    padding-bottom: 9px;
}

.dm-simple-list li:hover,
.dm-ranked-list li:hover,
.dm-category-list li:hover {
    background: #f5f5f5;
}

.dm-ranked-list li {
    padding-left: 46px;
}

.dm-rank,
.dm-ranked-list li:first-child .dm-rank {
    top: 10px;
    left: 15px;
    border-radius: 3px;
}

.dm-category-list a,
.dm-simple-list a,
.dm-ranked-list a {
    color: #555;
}

.dm-breadcrumb {
    margin: 0 0 20px;
    padding: 8px 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #f5f5f5;
    color: #777;
}

.dm-page-header {
    margin: 10px 15px 0;
    padding: 0 0 9px;
    border-bottom: 1px solid #eee;
}

.dm-page-header h1 {
    margin: 10px 0 5px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.1;
}

.dm-article-header {
    margin: 10px 15px 0;
    padding: 0 0 9px;
    border-bottom: 1px solid #eee;
}

.dm-article-title {
    margin: 10px 0 15px;
    font-size: 20px;
    font-weight: 400;
    line-height: 34px;
    letter-spacing: 0;
}

.dm-article-body {
    padding: 15px;
    font-size: 14px;
    line-height: 24px;
}

.dm-article-body h2 {
    padding-bottom: 5px;
    border-color: #dadada;
    font-size: 21px;
}

.dm-article-body h3 {
    font-size: 20px;
}

.dm-article-footer {
    height: 34px;
    padding: 5px 10px;
    line-height: 23px;
}

.dm-copyright {
    border: 1px solid #ccc;
    border-right: 0;
    border-left: 0;
    background: #f5f5f5;
}

.dm-post-navigation a,
.dm-post-navigation span {
    min-height: 0;
    padding: 8px 12px;
    border-color: #ccc;
    background: #fff;
}

.dm-pagination {
    margin: 20px 0;
    gap: 0;
}

.dm-pagination a,
.dm-pagination span {
    height: 34px;
    min-width: 34px;
    margin-left: -1px;
    border-radius: 0;
    color: #428bca;
    line-height: 32px;
}

.dm-pagination a:first-child,
.dm-pagination span:first-child {
    border-radius: 4px 0 0 4px;
}

.dm-pagination a:last-child,
.dm-pagination span:last-child {
    border-radius: 0 4px 4px 0;
}

.dm-pagination .is-current {
    border-color: #ddd;
    background: #f5f5f5;
    color: #777;
}

.dm-friend-links {
    margin-top: 20px;
}

.dm-footer {
    margin-top: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 13px;
    text-align: left;
}

.dm-footer .dm-panel {
    margin-bottom: 20px;
}

.dm-footer .dm-panel-body {
    padding-bottom: 0;
}

.dm-footer-widget,
.dm-footer-links {
    margin-bottom: 15px;
}

.dm-footer-widget h2 {
    margin: 0;
    padding: 10px 0;
    border: 0;
    font-size: 15px;
    font-weight: 400;
}

.dm-footer-widget .dm-link-list li {
    display: inline-block;
    padding: 0 15px;
    border-bottom: 1px solid #ddd;
    line-height: 36px;
}

.dm-footer-links span {
    padding: 0 5px;
    color: #ccc;
}

.dm-footer-copyright a {
    margin-right: 5px;
}

.dm-float-tools {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.dm-float-tools button,
.dm-back-top,
.dm-back-top.is-visible {
    position: static;
    display: block;
    width: 40px;
    height: 34px;
    margin-top: -1px;
    border: 1px solid #ccc;
    border-radius: 0;
    background: #fff;
    color: #555;
    font-size: 16px;
    box-shadow: none;
    cursor: pointer;
}

.dm-float-tools button:first-child {
    margin-top: 0;
    border-radius: 4px 0 0 0;
}

.dm-float-tools button:last-child {
    border-radius: 0 0 0 4px;
}

.dm-float-tools button:hover {
    background: #ebebeb;
}

.dm-tool-wrap {
    width: 970px;
    max-width: calc(100% - 30px);
}

.dm-tool-card {
    padding: 15px;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .dm-container {
        width: 970px;
    }

    .dm-post-cover {
        width: 160px;
        height: 120px;
    }

    .dm-archive-entry.has-thumbnail .dm-entry-content {
        min-height: 120px;
    }
}

@media (max-width: 991px) {
    .dm-container {
        width: 750px;
    }

    .dm-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .dm-sidebar {
        display: block;
    }

    .dm-sidebar .dm-panel {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .dm-container {
        width: auto;
        max-width: none;
        margin-right: 15px;
        margin-left: 15px;
    }

    .dm-header-content {
        display: block;
        min-height: 0;
    }

    .dm-header-brand {
        padding: 15px 0;
    }

    .dm-header-profile {
        padding: 10px 0 15px;
        border-top: 1px solid #e7e7e7;
    }

    .dm-nav-row {
        display: block;
    }

    .dm-navbar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 50px;
    }

    .dm-mobile-brand {
        display: block;
        max-width: calc(100% - 60px);
        overflow: hidden;
        color: #777;
        font-size: 18px;
        line-height: 20px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dm-menu-toggle {
        display: block;
        width: 44px;
        height: 34px;
        padding: 7px 9px;
        border-color: #ddd;
        background: #fff;
    }

    .dm-navigation {
        display: none;
        padding: 0 0 8px;
        border-top: 1px solid #e7e7e7;
    }

    .dm-navigation.is-open {
        display: block;
    }

    .dm-navigation ul {
        display: block;
    }

    .dm-navigation li,
    .dm-navigation a {
        display: block;
    }

    .dm-navigation a {
        padding: 10px 15px;
    }

    .dm-search {
        display: none;
        width: auto;
        margin: 0 15px 12px;
        padding: 0;
    }

    .dm-navigation.is-open + .dm-search {
        display: flex;
    }

    .dm-post-cover {
        display: none;
    }

    .dm-archive-entry.has-thumbnail .dm-entry-content {
        min-height: 24px;
    }

    .dm-post-title {
        white-space: normal;
    }

    .dm-float-tools {
        display: none;
    }

    .dm-tool-wrap {
        width: auto;
        max-width: none;
        margin-right: 15px;
        margin-left: 15px;
    }
}
