/* DMRead 2026 theme - Guazi inspired
   New stylesheet only; legacy files are untouched. */
:root {
    --dm-bg-start: #f2dde8;
    --dm-bg-end: #fffefe;
    --dm-surface: #ffffff;
    --dm-surface-soft: #fcfbfc;
    --dm-card: #f8f9ff;
    --dm-text-main: #1b1d28;
    --dm-text-body: #4e4e5f;
    --dm-text-muted: #808096;
    --dm-border: #ececf1;
    --dm-border-strong: #dedee8;
    --dm-primary: #dd137b;
    --dm-primary-strong: #c10b67;
    --dm-primary-soft: rgba(221, 19, 123, 0.08);
    --dm-shadow-soft: 0 10px 30px rgba(20, 31, 40, 0.08);
    --dm-shadow-card: 0 12px 28px rgba(38, 32, 42, 0.08);
    --dm-radius-xl: 18px;
    --dm-radius-lg: 12px;
    --dm-radius-md: 8px;
    --dm-font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: var(--dm-font);
    color: var(--dm-text-main);
    background: linear-gradient(180deg, var(--dm-bg-start), var(--dm-bg-end) 520px) !important;
    letter-spacing: 0.1px;
}

#web_bg,
.box,
.box .fl_l {
    display: none !important;
}

body.index .fixed-authorsay,
body.index #fixed-author-show,
body.index #toggle-fixedsay-btn,
body.index [id*="fixed-author"],
body.index [class*="fixed-author"],
body.index [class*="authorsay"] {
    display: none !important;
}

a {
    color: #202534;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--dm-primary-strong);
    text-decoration: none;
}

.container {
    width: min(1284px, calc(100% - 28px));
    max-width: 1284px;
    margin: 0 auto;
    background: transparent !important;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.container > .row,
.container > .clearfix.row,
.container > .dm-card-row {
    background: var(--dm-surface);
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius-xl);
    box-shadow: var(--dm-shadow-soft);
}

/* Header */
.dm-header-shell {
    position: relative;
    z-index: 60;
    margin-top: 14px;
    border-radius: var(--dm-radius-xl);
    border: 1px solid var(--dm-border);
    background: linear-gradient(180deg, #fff, #fcfbfe);
    box-shadow: var(--dm-shadow-soft);
    overflow: hidden;
}

.dm-site-switch-wrap {
    padding: 12px 26px 10px;
    background: linear-gradient(90deg, #1a2439, #111a2d 62%, #0d1423);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dm-site-switch {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid rgba(154, 177, 225, 0.24);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(8, 14, 28, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.dm-site-switch-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    color: #d8e0f2;
    font-size: 22px;
    line-height: 1;
    background: transparent;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.dm-site-switch-item:last-child {
    border-right: 0;
}

.dm-site-switch-item:hover,
.dm-site-switch-item:focus {
    color: #f8fbff;
    background: rgba(255, 255, 255, 0.06);
}

.dm-site-switch-item.is-current {
    background: linear-gradient(180deg, rgba(248, 215, 144, 0.24), rgba(161, 124, 63, 0.2));
    color: #f7e3b4;
    font-weight: 700;
}

.dm-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 26px 16px;
}

.dm-brand-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.dm-brand-logo img,
.dm-brand-logo {
    display: block;
}

.dm-brand-logo img {
    width: 202px;
    max-width: 100%;
}

.dm-brand-meta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dm-pill {
    display: inline-flex;
    align-items: center;
    height: 34px;
    border-radius: 999px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--dm-border);
    color: #55536a;
    font-size: 13px;
}

.dm-pill.is-primary {
    border-color: rgba(221, 19, 123, 0.22);
    background: rgba(221, 19, 123, 0.07);
    color: var(--dm-primary-strong);
}

.dm-account-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 14px;
}

.dm-account-links a {
    color: #3c3b4b;
}

.dm-account-links .split {
    color: #b8b6c6;
}

.dm-main-nav {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 18px;
    padding: 0 26px 20px;
}

.dm-main-nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.dm-main-nav-links a {
    font-size: 18px;
    line-height: 1;
    padding: 10px 14px;
    border-radius: 999px;
    color: #2e2d3d;
    background: transparent;
}

.dm-main-nav-links a.is-active,
.dm-main-nav-links a:hover {
    color: var(--dm-primary-strong);
    background: var(--dm-primary-soft);
}

.dm-main-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--dm-border-strong);
    border-radius: 999px;
    background: #fff;
    padding: 0 12px 0 16px;
    height: 46px;
}

.dm-main-search input {
    flex: 1;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: 42px;
    outline: none;
    font-size: 14px;
    color: #55556b;
    background: transparent;
    padding: 0 !important;
}

.dm-main-search input:focus {
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.dm-main-search button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: var(--dm-primary-soft);
    color: var(--dm-primary-strong);
    font-size: 15px;
}

.anchor_layer .nav_wrap {
    background: transparent !important;
}

.anchor_layer .wrap_layer {
    display: none;
}

.anchor_layer .nav_wrap.navFix {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1284px, calc(100% - 28px));
    z-index: 100;
    border: 1px solid var(--dm-border);
    border-radius: 0 0 14px 14px;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(5px);
    box-shadow: var(--dm-shadow-soft);
}

/* Home */
.dm-home-page {
    margin-top: 16px;
}

.dm-home-hero {
    display: grid !important;
    grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
    align-items: stretch;
    gap: 20px;
    padding: 22px;
}

.dm-home-announcement,
.dm-home-carousel {
    background: var(--dm-surface);
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius-lg);
    box-shadow: var(--dm-shadow-soft);
    overflow: hidden;
    min-width: 0;
}

.dm-home-announcement {
    width: auto;
    max-width: none;
    padding: 12px;
}

.dm-home-carousel {
    width: 100%;
}

.dm-home-hero.no-carousel {
    grid-template-columns: 1fr;
}

.dm-home-hero.no-carousel .dm-home-carousel {
    display: none !important;
}

.dm-home-hero.no-carousel .dm-home-announcement,
.dm-home-hero.no-carousel .dm-home-announcement .menu,
.dm-home-hero.no-carousel .dm-home-announcement #htmlArea30,
.dm-home-hero.no-carousel .dm-home-announcement .category,
.dm-home-hero.no-carousel .dm-home-announcement .sub {
    width: 100% !important;
    max-width: 100% !important;
}

.dm-home-announcement .menu {
    border-radius: 10px;
    overflow: hidden;
}

.dm-home-announcement > *,
.dm-home-carousel > * {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

.dm-home-announcement .menu,
.dm-home-announcement #htmlArea30,
.dm-home-announcement .category,
.dm-home-announcement .sub {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.dm-home-announcement .category {
    background: #fff;
    border: 1px solid var(--dm-border);
    border-radius: 10px;
}

.dm-home-announcement .sub {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 8px !important;
    -webkit-overflow-scrolling: touch;
}

.dm-home-announcement .sub p {
    overflow: hidden;
    flex: 0 0 auto;
    margin: 0 !important;
    border: 1px solid #ececf2 !important;
    border-bottom: 1px solid #ececf2 !important;
    border-radius: 999px;
    background: #fff;
    padding: 0 10px;
}

.dm-home-announcement .sub p a {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dm-home-announcement .gonggao-lh {
    line-height: 32px !important;
    font-size: 14px !important;
    color: #4e4d5f !important;
}

.dm-home-carousel .nav {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 12px !important;
}

.dm-home-carousel .swiper-container {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    min-height: 280px;
    border-radius: 10px;
    overflow: hidden;
}

.dm-home-carousel .swiper-wrapper,
.dm-home-carousel .swiper-slide {
    height: 100% !important;
}

.dm-home-carousel .swiper-slide img {
    height: 100%;
    object-fit: cover;
    width: 100%;
    border-radius: 8px;
}

.dm-home-sections {
    display: grid;
    gap: 16px;
    margin-top: 16px;
    width: 100%;
}

.dm-home-card {
    background: #fff;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius-xl);
    box-shadow: var(--dm-shadow-card);
    padding: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.dm-home-card::after {
    content: "";
    display: block;
    clear: both;
}

.dm-home-card .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.dm-home-card img {
    max-width: 100%;
    height: auto;
}

.dm-home-card > .title,
.dm-home-card > .head-jptj,
.dm-home-card > #f4_nav,
.dm-home-card > #f6_bt {
    margin: 0 0 18px;
    padding: 0 0 14px 20px;
    border-bottom: 1px solid var(--dm-border);
    font-size: 28px;
    line-height: 1.2;
    color: #121321;
    font-weight: 700;
    position: relative;
    background: transparent;
    text-indent: 0;
}

.dm-home-card > .title::before,
.dm-home-card > .head-jptj::before,
.dm-home-card > #f4_nav::before,
.dm-home-card > #f6_bt::before {
    content: "";
    width: 9px;
    height: 22px;
    border-radius: 6px;
    background: var(--dm-primary);
    position: absolute;
    left: 0;
    top: 4px;
}

.dm-home-editor-row {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dm-home-editor-row > * {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    float: none !important;
    box-sizing: border-box;
}

.dm-home-editor-row .col-md-4,
.dm-home-editor-row .col-md-6,
.dm-home-editor-row .column {
    display: block !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.dm-home-editor-row [style*="width"] {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
}

.dm-home-updates table {
    border-top: 0 !important;
    width: 100% !important;
    table-layout: fixed;
}

.dm-home-updates thead tr {
    background: #faf8fc;
}

.dm-home-updates th {
    font-size: 14px;
    font-weight: 600;
    color: #5a5565;
}

.dm-home-updates td {
    color: #4e4c5a;
    font-size: 14px;
    line-height: 1.6;
}

.dm-home-updates tbody tr {
    transition: background-color 0.2s ease;
}

.dm-home-updates tbody tr:hover {
    background: #fcf7fb;
}

.dm-home-card .slidebox {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 105px;
    overflow: hidden !important;
    margin-top: 0 !important;
}

.dm-home-card .slidepic {
    width: 100% !important;
    position: relative;
    top: 0 !important;
}

.dm-home-card .slidebox > *,
.dm-home-card .slidepic > li,
.dm-home-card .slidepic > li > a {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
}

.dm-home-card .column[style*="width"],
.dm-home-card > [style*="width"] {
    width: auto !important;
    max-width: 100% !important;
}

.dm-home-card .slidepic li {
    height: auto !important;
}

.dm-home-card .slidepic li img {
    width: 100% !important;
    height: auto !important;
    display: block;
    border-radius: 10px;
}

.dm-home-card .f8_ljk {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 0;
    padding: 0;
}

.dm-home-card .f8_ljk li {
    list-style: none;
}

.dm-home-card .f8_ljk a {
    color: #4f4d5c;
    font-size: 15px;
}

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

.dm-home-category-grid a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 76px;
    border: 1px solid var(--dm-border);
    border-radius: 14px;
    padding: 0 22px;
    background: linear-gradient(90deg, #ffffff, #f9f8fb);
    font-size: 18px;
    color: #222531;
}

.dm-home-category-grid a small {
    color: #7d7a8f;
    font-size: 14px;
}

.dm-home-category-grid a:hover {
    border-color: rgba(221, 19, 123, 0.25);
    box-shadow: 0 10px 20px rgba(221, 19, 123, 0.1);
    transform: translateY(-1px);
}

.index-pindao {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    height: auto !important;
    top: 0 !important;
}

.index-pindao .index-pindao-item {
    position: static !important;
    width: 100% !important;
    min-width: 0;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius-lg);
    box-shadow: var(--dm-shadow-soft);
    overflow: hidden;
}

.index-pindao .header-pindao {
    font-size: 22px !important;
    color: #1a1d2a !important;
    border-bottom: 1px solid var(--dm-border) !important;
}

.index-pindao .item {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    border-bottom: 1px dashed #e8e8ef !important;
}

.index-pindao .item:last-child {
    border-bottom: 0 !important;
}

.index-pindao .title {
    font-size: 16px !important;
    font-weight: 600;
    color: #272837;
}

.index-pindao .desc {
    color: var(--dm-text-muted) !important;
}

.index-pindao .content-pindao,
.index-pindao .item-img-desc-div1,
.index-pindao .item-img-desc-div2,
.index-pindao .item > div {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    float: none !important;
}

.index-pindao .item .img,
.index-pindao .item img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

.dm-home-editor-row .item-jptj {
    width: calc(16.66% - 2px) !important;
    margin-top: 0 !important;
    padding: 8px !important;
}

.dm-home-editor-row .item-jptj .img {
    width: 100% !important;
    max-width: 148px;
    border-radius: 8px !important;
}

.dm-home-editor-row .item-jptj .title {
    text-align: center !important;
    margin-top: 8px;
    font-size: 14px !important;
    color: #3f4050;
}

.dm-home-contact-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dm-home-contact-item,
.dm-home-contact-item > * {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

.dm-home-contact-row > * {
    min-width: 0;
}

.dm-home-contact-item [style*="width"] {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
}

/* Generic pages in Views/Www + Views/User */
.page-body,
.page-content,
.container-sidebar .container-bd,
.sidebar-first-region,
.mod,
.comments,
.ranks-page .ranks .mod,
.pay-choose .choose-payway .left li,
.pay-choose .select-price-form .options,
.cover-breadcrumb {
    border-radius: var(--dm-radius-md);
    border: 1px solid var(--dm-border);
    background: #fff !important;
}

.container-sidebar,
.container-bd {
    background: transparent !important;
}

.container-sidebar .c-left,
.container-sidebar .c-right {
    margin-top: 14px;
}

.page-title {
    font-size: 26px;
    color: #181a27;
    font-weight: 700;
}

.page-title-split {
    color: var(--dm-primary);
}

.mod .hd,
.pattern-rank .hd,
.pattern-cover-boost .hd {
    border-bottom: 1px solid var(--dm-border);
    background: #fff !important;
}

.button-orange,
.badge-warning,
.label-warning,
.button-medium,
.button-input,
.btn-primary {
    background: linear-gradient(135deg, var(--dm-primary), #f14ba4) !important;
    border-color: var(--dm-primary) !important;
    color: #fff !important;
    border-radius: 999px !important;
}

.button-small,
.btn,
.button-link {
    border-radius: 999px;
}

.button-grey,
.btn-default {
    border-radius: 999px;
    border-color: #d7d7e1;
    background: #fff;
    color: #4f4d5d;
}

.text-border,
.text-border-edit,
input[type="text"],
input[type="password"],
input[type="number"],
textarea,
select {
    border: 1px solid #d9d9e3 !important;
    border-radius: 10px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.text-border:focus,
.text-border-edit:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: rgba(221, 19, 123, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(221, 19, 123, 0.12);
    outline: none;
}

.table,
.table-bordered,
.table-striped {
    border-color: #ececf2;
}

.table > thead > tr > th {
    border-bottom-color: #ececf2;
    color: #5c5a69;
    font-weight: 600;
}

.table > tbody > tr > td {
    border-top-color: #f0f0f5;
}

.pagination > li > a,
.pagination > li > span {
    color: #4f4f60;
    border-radius: 999px !important;
    margin: 0 2px;
    border-color: #e2e2eb;
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > li > a:hover,
.pagination > li > span:hover {
    color: #fff;
    background: var(--dm-primary);
    border-color: var(--dm-primary);
}

.sidebar-menus .sidebar-menu {
    border-radius: 10px;
}

.sidebar-menus .sidebar-menu.active,
.sidebar-menus .sidebar-menu:hover {
    background: var(--dm-primary-soft);
}

/* User center refinement */
.form-table .item-label {
    color: #5d576c;
    font-weight: 600;
}

.form-table td,
.form-table th {
    border-color: #eee9f0 !important;
    padding-top: 10px;
    padding-bottom: 10px;
}

.record-list .mod,
.my-pocket .mod,
.coin-exchange .mod,
.book-manage-controls {
    border-radius: 10px;
    border: 1px solid var(--dm-border);
    box-shadow: var(--dm-shadow-soft);
    background: #fff;
}

.record-list .title,
.my-pocket .title,
.coin-exchange .title {
    color: #1f2232;
    font-weight: 700;
}

.text-large,
.text-span2 {
    color: #2b2c3c;
}

/* View-level body class adaptation (Www/User major page types) */
body.cover .container-sidebar,
body.chapter .container-sidebar,
body.chapters .container-sidebar,
body.review .container-sidebar,
body.people .container-sidebar,
body.my .container-sidebar,
body.record-list .container-sidebar,
body.pay-choose .container-sidebar,
body.chapter-edit .container-sidebar,
body.book-manange .container-sidebar {
    margin-top: 16px;
}

body.cover .container-sidebar .container-bd,
body.chapter .container-sidebar .container-bd,
body.chapters .container-sidebar .container-bd,
body.review .container-sidebar .container-bd,
body.people .container-sidebar .container-bd,
body.my .container-sidebar .container-bd,
body.record-list .container-sidebar .container-bd,
body.pay-choose .container-sidebar .container-bd,
body.chapter-edit .container-sidebar .container-bd,
body.book-manange .container-sidebar .container-bd {
    padding: 16px;
}

body.cover .summary pre,
body.chapter .summary pre {
    background: #fff;
    border: 0;
    color: #4e4b5c;
}

body.chapter .chapter .mod-page,
body.chapter .chapter .first-page .hd,
body.chapter .chapter .mod-page .ft {
    border-radius: 10px;
    border: 1px solid var(--dm-border);
}

body.chapters .mod-page .hd,
body.chapters .mod-page .bd,
body.chapters .mod-page .ft {
    background: #fff;
}

body.review .review-item,
body.review .comments-level-2 {
    border-radius: 8px;
    border: 1px solid #ede8ef;
    background: #fff;
}

body.pay-choose .choose-payway .left li.active,
body.pay-choose .select-price-form .options .active {
    border-color: var(--dm-primary);
    box-shadow: 0 0 0 3px rgba(221, 19, 123, 0.1);
}

body.chapter-edit .bar-top,
body.chapter-edit .bar-body,
body.chapter-edit .bar-bottom {
    border-radius: 10px;
    border: 1px solid var(--dm-border);
    background: #fff;
}

body.people .mod-back,
body.my .mod-back {
    border-radius: 10px;
    border: 1px solid var(--dm-border);
    background: #fff;
}

/* Footer */
.bottom.row {
    margin-top: 18px;
    border-radius: var(--dm-radius-xl);
    border: 1px solid var(--dm-border);
    background: #fff !important;
    box-shadow: var(--dm-shadow-soft);
    height: auto !important;
    padding: 18px 20px 16px;
}

.bottom .bottom_f ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 0;
    padding: 0;
}

.bottom .bottom_1,
.bottom .bottom_3 {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

.bottom .bottom_03,
.bottom .bottom_02 {
    color: #585768 !important;
    line-height: 1.8 !important;
}

/* Standalone User pages (Layout = null) */
.mini-page.sign-form,
.mini-page.sign-form.signin-form {
    min-height: 100vh;
    background: linear-gradient(180deg, #f3dfeb, #fff);
}

.mini-page .top {
    height: auto;
    padding-top: 24px;
}

.mini-page .top .link {
    display: block;
    width: 202px;
    height: 52px;
    margin: 0 auto;
    background: url("/_res/pc_jw_files/images/nav_logo.png?v=20230328") no-repeat center center / contain;
}

.mini-page .container {
    margin-top: 20px;
    width: min(920px, calc(100% - 28px));
}

.mini-page .form.form-base {
    width: min(560px, calc(100% - 18px));
    margin: 0 auto;
    border-radius: 18px;
    border: 1px solid var(--dm-border);
    box-shadow: var(--dm-shadow-card);
    background: #fff;
    padding: 26px;
}

.mini-page .legend.legend-img {
    border: 0;
    margin-bottom: 16px;
}

.mini-page .item {
    margin-bottom: 14px;
}

.mini-page .item.buttons {
    margin-top: 18px;
}

.login-dialog {
    border-radius: 16px;
    border: 1px solid var(--dm-border);
    box-shadow: var(--dm-shadow-card);
}

.login-dialog .hd .title {
    font-size: 22px;
    color: #1b1d28;
}

/* Motion */
.dm-home-card,
.dm-home-announcement,
.dm-home-carousel,
.dm-home-category-grid a {
    animation: dm-fade-up 0.35s ease both;
}

@keyframes dm-fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1280px) {
    .dm-main-nav {
        grid-template-columns: 1fr 280px;
    }
}

@media (max-width: 1024px) {
    .dm-main-nav {
        grid-template-columns: 1fr;
    }

    .dm-main-search {
        max-width: 420px;
    }

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

    .dm-home-announcement {
        width: 100%;
        max-width: none;
        margin-bottom: 14px;
    }

    .index-pindao {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dm-home-editor-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        width: calc(100% - 16px);
    }

    .dm-header-shell {
        margin-top: 8px;
    }

    .dm-site-switch-wrap {
        padding: 10px 12px 8px;
    }

    .dm-site-switch {
        width: 100%;
    }

    .dm-site-switch-item {
        flex: 1 1 0;
        min-height: 34px;
        padding: 0 10px;
        font-size: 14px;
        text-align: center;
    }

    .dm-brand-row {
        padding: 12px 12px 8px;
        flex-direction: column;
        align-items: flex-start;
    }

    .dm-brand-logo img {
        width: 165px;
    }

    .dm-account-links {
        gap: 8px;
        font-size: 13px;
    }

    .dm-main-nav {
        padding: 0 12px 12px;
        gap: 10px;
    }

    .dm-main-nav-links {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .dm-main-nav-links a {
        font-size: 15px;
        padding: 9px 11px;
    }

    .dm-home-hero,
    .dm-home-card {
        padding: 12px;
    }

    .dm-home-card .title,
    .dm-home-card .head-jptj,
    .dm-home-card #f4_nav,
    .dm-home-card #f6_bt {
        font-size: 22px;
    }

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

    .index-pindao {
        grid-template-columns: 1fr;
    }

    .dm-home-editor-row .item-jptj {
        width: 33.33% !important;
    }

    .dm-home-contact-row {
        grid-template-columns: 1fr;
    }

    .bottom.row {
        padding: 12px;
    }
}
