/* ============================================================
   午夜书廊 · MIDNIGHT BOOK GALLERY
   An original dark, responsive UI designed for the novel CMS.
   File 1/2 — design tokens, chrome (header / footer), home page.
   ============================================================ */

:root {
    /* palette */
    --ink-0: #07090d;
    --ink-1: #0b0e13;
    --ink-2: #10141b;
    --ink-3: #161b24;
    --ink-4: #1d2430;
    --line: #1c222c;
    --line-2: #2a3341;
    --paper: #efe8db;
    --paper-2: #c8c2b6;
    --muted: #8d8a80;
    --muted-2: #6f6c64;
    --gold: #d8a75b;
    --gold-2: #f1cd8b;
    --gold-deep: #a97c33;
    --danger: #e5677a;
    --ok: #7fd1a4;
    --blue: #8aa9e8;

    /* metrics */
    --maxw: 1320px;
    --gap: 22px;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --shadow: 0 24px 60px rgba(0, 0, 0, .45);
    --shadow-sm: 0 10px 26px rgba(0, 0, 0, .3);
    --ring: 0 0 0 1px rgba(216, 167, 91, .35), 0 14px 34px rgba(216, 167, 91, .10);
    --grad-gold: linear-gradient(135deg, #f4d29a 0%, #d8a75b 48%, #bd8a41 100%);

    /* type */
    --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --font-serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", "SimSun", Georgia, "Times New Roman", serif;

    color-scheme: dark;
}

/* ---------- base ---------- */
* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--ink-0);
    background-image:
        radial-gradient(1200px 560px at 50% -260px, rgba(40, 56, 78, .48) 0%, rgba(7, 9, 13, 0) 64%),
        radial-gradient(820px 420px at 92% 2%, rgba(216, 167, 91, .06) 0%, rgba(7, 9, 13, 0) 68%),
        radial-gradient(680px 400px at 4% 10%, rgba(138, 169, 232, .05) 0%, rgba(7, 9, 13, 0) 70%);
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--paper-2);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.75;
    letter-spacing: .15px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body,
#content {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--paper);
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: .5px;
}

a {
    color: var(--paper-2);
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease, background .2s ease, opacity .2s ease;
}

a:hover {
    color: var(--gold-2);
}

p {
    margin: 0;
}

img {
    max-width: 100%;
    border-radius: 8px;
}

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

::selection {
    background: rgba(216, 167, 91, .28);
    color: #fff;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--ink-0);
}

::-webkit-scrollbar-thumb {
    background: #262f3c;
    border-radius: 8px;
    border: 2px solid var(--ink-0);
}

::-webkit-scrollbar-thumb:hover {
    background: #35404f;
}

/* ---------- utilities ---------- */
.boxCenter,
.sectionBox {
    width: var(--maxw);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* brand logo (white silhouette) */
.thh-logo img,
.uh-logo img,
.ft-logo img,
.headerSecondary .logo img,
.footer .logo img,
.logo img {
    filter: brightness(0) invert(1);
    opacity: .92;
    transition: opacity .2s ease;
}

.thh-logo:hover img,
.uh-logo:hover img,
.ft-logo:hover img {
    opacity: 1;
}

/* dark-friendly icons & illustrations */
.personal_list a i,
.bookrack_table .checkbox a,
.bookrack_table .select_allbtn {
    filter: invert(1) brightness(1.5);
}

.bookrack_table_kong .kong_img,
.recharge_table_kong .kong_img,
.comment_kong .kong_img,
.kong_img,
.kong_bg,
img[src*="search_kong"],
img[src*="data-none"],
img[src*="personal_bookrack_kong"],
img[src*="personal_recharge_kong"] {
    filter: invert(1) brightness(.95) contrast(.9);
    opacity: .78;
}

/* ---------- header ---------- */
.thh {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 9, 13, .82);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.thh-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 74px;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.thh-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.thh-logo img {
    display: block;
    height: 38px;
    width: auto;
    border-radius: 0;
}

.thh-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    cursor: pointer;
}

.thh-burger span {
    display: block;
    height: 1.5px;
    border-radius: 2px;
    background: var(--paper-2);
    transition: transform .2s ease, opacity .2s ease;
}

.thh-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 6px;
}

.thh-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 13px;
    border-radius: 10px;
    color: var(--paper-2);
    font-size: 14.5px;
    letter-spacing: .6px;
    white-space: nowrap;
}

.thh-nav a:hover {
    color: var(--paper);
    background: rgba(255,255,255,0.04);
}

.thh-nav a.current {
    color: var(--gold-2);
}

.thh-nav a.current::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-gold);
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(216, 167, 91, .65);
}

.thh-search {
    display: flex;
    align-items: center;
    flex: 1 1 240px;
    max-width: 320px;
    min-width: 140px;
    height: 42px;
    margin-left: auto;
    padding: 0 0 0 15px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.thh-search:focus-within {
    background: rgba(255,255,255,0.07);
    border-color: rgba(216, 167, 91, .45);
    box-shadow: 0 0 0 3px rgba(216, 167, 91, .10);
}

.thh-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--paper);
    font-size: 14px;
}

.thh-input::placeholder {
    color: var(--muted-2);
}

.thh-search-btn {
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 3px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: var(--grad-gold);
    color: #201704;
    cursor: pointer;
}

.thh-search-btn:hover {
    filter: brightness(1.06);
}

.thh-search-btn svg {
    width: 17px;
    height: 17px;
}

.thh-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.thh-lang {
    display: flex;
    align-items: center;
}

.thh-lang .langswitch-toggle {
    padding: 7px 11px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    box-shadow: none;
    font-size: 13px;
    color: var(--paper-2);
}

.thh-lang .langswitch-toggle:hover {
    border-color: var(--line-2);
    color: var(--paper);
}

.thh-lang .langswitch-menu {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.thh-lang .langswitch-option {
    color: var(--paper-2);
    border-radius: 8px;
}

.thh-lang .langswitch-option:hover {
    background: rgba(255,255,255,0.05);
}

.thh-lang .langswitch-option.active {
    color: var(--gold-2);
    background: rgba(216, 167, 91, .10);
}

.thh-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 13px;
    border: 1px solid rgba(216, 167, 91, .28);
    border-radius: 10px;
    background: rgba(216, 167, 91, .07);
    color: var(--gold-2);
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
}

.thh-author:hover {
    background: rgba(216, 167, 91, .14);
    border-color: rgba(216, 167, 91, .45);
    color: var(--gold-2);
}

.thh-author svg {
    width: 15px;
    height: 15px;
}

.thh-app {
    position: relative;
    display: flex;
    align-items: center;
}

.thh-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    color: var(--paper-2);
    font-size: 13.5px;
    cursor: pointer;
}

.thh-app-btn:hover {
    color: var(--paper);
    border-color: var(--line-2);
    background: rgba(255,255,255,0.05);
}

.thh-app-btn svg {
    width: 15px;
    height: 15px;
}

.thh .dlCon {
    position: absolute;
    top: 48px;
    right: 0;
    width: 190px;
    padding: 16px;
    text-align: center;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 40;
}

.thh .dlCon span {
    display: block;
    margin-bottom: 10px;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.6;
}

.thh .dlCon img {
    width: 130px;
    height: 130px;
    border-radius: 8px;
    background: #fff;
    padding: 6px;
}

.thh .dlCon em {
    position: absolute;
    top: -6px;
    right: 22px;
    width: 12px;
    height: 12px;
    background: var(--ink-2);
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
    transform: rotate(45deg);
}

.thh-user {
    position: relative;
    display: flex;
    align-items: center;
}

.thh .login {
    display: flex;
    align-items: center;
    gap: 8px;
}

.thh-login {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 12px;
    color: var(--paper-2);
    font-size: 13.5px;
    border-radius: 10px;
}

.thh-login:hover {
    color: var(--paper);
    background: rgba(255,255,255,0.05);
}

.thh-register {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    background: var(--grad-gold);
    color: #201704;
    font-size: 13.5px;
    font-weight: 600;
}

.thh-register:hover {
    filter: brightness(1.06);
    color: #201704;
}

.thh .isLogged {
    align-items: center;
}

.thh .isLogged a {
    color: var(--paper);
    font-size: 13.5px;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thh .isLogged img {
    width: 34px;
    height: 34px;
    margin-left: 10px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    object-fit: cover;
}

.thh .suspend {
    position: absolute;
    top: 46px;
    right: 0;
    min-width: 168px;
    padding: 10px;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 40;
}

.thh .suspend a,
.thh .suspend span {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--paper-2);
    font-size: 13.5px;
    line-height: 1.4;
}

.thh .suspend a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--gold-2);
}

.thh .suspend span {
    color: var(--gold-2);
    font-size: 12.5px;
    opacity: .9;
}

.thh .suspend span em {
    color: var(--gold);
    font-style: normal;
    font-weight: 600;
}

.thh .suspend .exit {
    border-top: 1px dashed var(--line);
    margin-top: 6px;
    padding-top: 10px;
    color: var(--muted);
}

/* ---------- home ---------- */
.wrap {
    padding-bottom: 10px;
}

.wrap .tonglan {
    display: grid;
    grid-template-columns: 288px minmax(0, 1fr) 288px;
    gap: var(--gap);
    width: var(--maxw);
    max-width: 100%;
    margin: 26px auto 0;
    align-items: stretch;
}

.wrap .tonglan:not(:has(.right)) {
    grid-template-columns: 288px minmax(0, 1fr);
}

/* editorial picks */
.hotWrap {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 18px 8px;
    min-width: 0;
}

.hotWrap h1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 12px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--line);
}

.hotWrap h1 strong {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 600;
    color: var(--paper);
    letter-spacing: 1.5px;
}

.hotWrap h1 strong::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--grad-gold);
    vertical-align: middle;
    box-shadow: 0 0 10px rgba(216, 167, 91, .7);
}

.hotWrap h1 a {
    flex: 0 0 auto;
    font-size: 11.5px;
    letter-spacing: 1px;
    color: var(--muted-2);
}

.hotWrap h1 a:hover {
    color: var(--gold-2);
}

.hotWrap h1 a i {
    display: none;
}

.hotWrap .bookLink {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.06);
    border-radius: var(--radius-xs);
}

.hotWrap .bookLink:last-child {
    border-bottom: 0;
}

.hotWrap .bookLink:hover {
    background: rgba(255,255,255,0.03);
}

.hotWrap .bookImg {
    width: 58px;
    height: 80px;
    flex: 0 0 58px;
    border-radius: 7px;
    overflow: hidden;
    background: var(--ink-3);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .45);
}

.hotWrap .bookImg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
}

.hotWrap .bookIntro {
    min-width: 0;
}

.hotWrap .bookIntro em {
    display: block;
    font-style: normal;
    font-size: 11.5px;
    letter-spacing: .5px;
    color: var(--muted-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hotWrap .bookIntro h2 {
    margin: 3px 0 5px;
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--paper);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hotWrap .bookIntro h2:hover {
    color: var(--gold-2);
}

.hotWrap .bookIntro span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.65;
    color: var(--muted);
}

/* hero slider */
.slidemain {
    min-width: 0;
    display: flex;
}

.slidemain .focus-box,
.slidemain .slideBox {
    width: 100%;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    min-height: 320px;
}

.slidemain .slide-track {
    display: flex;
    height: 100%;
}

.slidemain .slide-item {
    flex: 0 0 100%;
    display: block;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.slidemain .slide-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 9, 13, 0) 42%, rgba(7, 9, 13, .72) 100%);
}

.slidemain .slide-prev,
.slidemain .slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(7, 9, 13, .55);
    border: 1px solid rgba(255,255,255,0.12);
    z-index: 5;
    opacity: 0;
    transition: opacity .2s ease, background .2s ease;
    cursor: pointer;
}

.slidemain .focus-box:hover .slide-prev,
.slidemain .focus-box:hover .slide-next {
    opacity: 1;
}

.slidemain .slide-prev {
    left: 14px;
}

.slidemain .slide-next {
    right: 14px;
}

.slidemain .slide-prev::before,
.slidemain .slide-next::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-top: 1.5px solid #fff;
    border-right: 1.5px solid #fff;
}

.slidemain .slide-prev::before {
    transform: translate(-30%, -50%) rotate(-135deg);
}

.slidemain .slide-next::before {
    transform: translate(-70%, -50%) rotate(45deg);
}

.slidemain .slidepage {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 6;
    padding: 0;
    margin: 0;
    list-style: none;
}

.slidemain .slidepage li {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.32);
    cursor: pointer;
    transition: all .2s ease;
}

.slidemain .slidepage li.swiper-active-switch {
    width: 20px;
    border-radius: 4px;
    background: var(--grad-gold);
}

/* notice column */
.tonglan .right {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 18px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.tonglan .right h1 {
    margin: 0 0 12px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--paper);
}

.tonglan .right h1::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--grad-gold);
    vertical-align: middle;
    box-shadow: 0 0 10px rgba(216, 167, 91, .7);
}

.tonglan .right a {
    position: relative;
    display: block;
    padding: 9px 0 9px 16px;
    border-bottom: 1px dashed rgba(255,255,255,0.06);
    font-size: 13px;
    line-height: 1.6;
    color: var(--paper-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tonglan .right a:last-child {
    border-bottom: 0;
}

.tonglan .right a::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 16px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold-deep);
    transition: background .2s ease;
}

.tonglan .right a:hover {
    color: var(--gold-2);
}

.tonglan .right a:hover::before {
    background: var(--gold-2);
}

.tonglan .right a i {
    display: none;
}

/* main sections */
.wrap .sectionBox {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--gap);
    margin: 26px auto 0;
    align-items: start;
}

.wrap .sectionBox .sectionBox-left {
    width: auto;
    min-width: 0;
}

.wrap .sectionBox .sectionBox-right {
    width: auto;
    min-width: 0;
}

.wrap .sectionBox .sectionBox-left .bookBox,
.wrap .sectionBox .sectionBox-right .newbooklist {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px 24px;
    margin-bottom: var(--gap);
}

.wrap .sectionBox .sectionBox-left .bookBox .title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 18px;
    padding: 0;
    border-bottom: 0;
}

.wrap .sectionBox .sectionBox-left .bookBox .title strong {
    position: relative;
    padding-left: 0;
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--paper);
}

.wrap .sectionBox .sectionBox-left .bookBox .title strong::before {
    content: none;
}

.wrap .sectionBox .sectionBox-left .bookBox .title strong::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(216, 167, 91, .75), rgba(216, 167, 91, 0));
}

.wrap .sectionBox .sectionBox-left .bookBox .title i {
    display: none;
}

.wrap .sectionBox .sectionBox-left .bookBox .title .change,
.wrap .sectionBox .sectionBox-left .bookBox .title a {
    font-size: 12px;
    color: var(--muted-2);
    letter-spacing: .5px;
}

.wrap .sectionBox .sectionBox-left .bookBox .title .change:hover,
.wrap .sectionBox .sectionBox-left .bookBox .title a:hover {
    color: var(--gold-2);
}

.wrap .sectionBox .sectionBox-left .bookBox .booklist {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.wrap .sectionBox .sectionBox-left .bookBox .booklist a {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    min-width: 0;
}

.wrap .sectionBox .sectionBox-left .bookBox .booklist a:hover {
    border-color: rgba(216, 167, 91, .28);
    background: rgba(216, 167, 91, .05);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .35);
}

.wrap .sectionBox .sectionBox-left .bookBox .booklist a .bookimg {
    width: 64px;
    height: 88px;
    flex: 0 0 64px;
    border-radius: 7px;
    overflow: hidden;
    background: var(--ink-3);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .45);
}

.wrap .sectionBox .sectionBox-left .bookBox .booklist a .bookimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
}

.wrap .sectionBox .sectionBox-left .bookBox .booklist a .bookinfo {
    min-width: 0;
}

.wrap .sectionBox .sectionBox-left .bookBox .booklist a .bookinfo h2 {
    margin: 0 0 4px;
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--paper);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wrap .sectionBox .sectionBox-left .bookBox .booklist a .bookinfo h2:hover {
    color: var(--gold-2);
}

.wrap .sectionBox .sectionBox-left .bookBox .booklist a .bookinfo .desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.65;
    color: var(--muted);
}

.wrap .sectionBox .sectionBox-left .bookBox .booklist a .bookinfo .author {
    margin-top: 5px;
    font-size: 11.5px;
    color: var(--muted-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* new book selection: compact list */
.wrap .sectionBox .sectionBox-left .newbookselect .booklist {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wrap .sectionBox .sectionBox-left .newbookselect .booklist a {
    display: flex;
}

.wrap .sectionBox .sectionBox-left .newbookselect .booklist a .bookname {
    display: block;
    font-family: var(--font-serif);
    font-size: 14.5px;
    color: var(--paper);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wrap .sectionBox .sectionBox-left .newbookselect .booklist a .pseudonym {
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
    color: var(--muted-2);
}

/* right rail lists */
.wrap .sectionBox .sectionBox-right .newbooklist {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    background-image: none;
    padding: 20px 20px 22px;
}

.wrap .sectionBox .sectionBox-right .newbooklist .title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 12px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--line);
}

.wrap .sectionBox .sectionBox-right .newbooklist .title strong {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--paper);
}

.wrap .sectionBox .sectionBox-right .newbooklist .title strong::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--grad-gold);
    vertical-align: middle;
}

.wrap .sectionBox .sectionBox-right .newbooklist .title a {
    font-size: 11.5px;
    color: var(--muted-2);
}

.wrap .sectionBox .sectionBox-right .newbooklist .title a:hover {
    color: var(--gold-2);
}

.wrap .sectionBox .sectionBox-right .newbooklist .bookbillboard {
    counter-reset: wangxiaoer;
}

.wrap .sectionBox .sectionBox-right .newbooklist .bookbillboard a {
    display: block;
    position: relative;
    width: 100%;
    padding: 7px 0 7px 30px;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
    font-size: 13px;
    line-height: 1.6;
    color: var(--paper-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wrap .sectionBox .sectionBox-right .newbooklist .bookbillboard a:last-child {
    border-bottom: 0;
}

.wrap .sectionBox .sectionBox-right .newbooklist .bookbillboard a:hover {
    color: var(--gold-2);
}

.wrap .sectionBox .sectionBox-right .newbooklist .bookbillboard a::before {
    content: counter(wangxiaoer);
    counter-increment: wangxiaoer;
    position: absolute;
    left: 0;
    top: 8px;
    width: 19px;
    height: 19px;
    line-height: 19px;
    text-align: center;
    border-radius: 6px;
    font-size: 11px;
    font-family: var(--font-sans);
    color: var(--muted);
    background: rgba(255,255,255,0.05);
}

.wrap .sectionBox .sectionBox-right .newbooklist .bookbillboard a:nth-child(-n+3) {
    font-size: 14px;
    padding: 8px 0 8px 32px;
}

.wrap .sectionBox .sectionBox-right .newbooklist .bookbillboard a:nth-child(-n+3)::before {
    content: counter(wangxiaoer);
    width: 22px;
    height: 22px;
    line-height: 22px;
    border-radius: 7px;
    background: var(--grad-gold);
    color: #201704;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(216, 167, 91, .22);
}

/* wide banners */
.wrap .banner,
.wrap .boxCenter.banner {
    display: block;
    margin: 24px auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}

.wrap .banner img {
    display: block;
    width: 100%;
    border-radius: 0;
}

/* latest updates table (home) */
.wrap .updateList,
.wrap .ct_left .updateList {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.wrap .updateList:hover {
    background: rgba(255,255,255,0.02);
}

.wrap .updateList .name,
.wrap .ct_left .updateList .name {
    color: var(--paper);
}

.wrap .ct_left .title {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
}

/* ---------- footer ---------- */
.ft {
    margin-top: 56px;
    background: linear-gradient(180deg, var(--ink-1), var(--ink-0));
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.ft-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 46px 20px 30px;
}

.ft-top {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
}

.ft-logo {
    display: inline-flex;
    align-items: center;
}

.ft-logo img {
    height: 34px;
    width: auto;
    border-radius: 0;
}

.ft-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 26px;
    font-size: 13.5px;
}

.ft-nav a {
    color: var(--paper-2);
    letter-spacing: .5px;
}

.ft-nav a:hover {
    color: var(--gold-2);
}

.ft-app {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.ft-app img {
    width: 62px;
    height: 62px;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
    margin: 0;
}

.ft-app strong {
    display: block;
    font-size: 13px;
    color: var(--paper);
    font-weight: 500;
    line-height: 1.5;
}

.ft-app span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.ft-service {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed rgba(255,255,255,0.06);
    font-size: 12.5px;
    color: var(--muted-2);
    line-height: 1.95;
}

.ft-service a {
    color: var(--gold);
    margin-left: 6px;
}

.ft-service a:hover {
    color: var(--gold-2);
}

.ft-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
    font-size: 12px;
    color: var(--muted-2);
}

.ft-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: center;
}

.ft-legal a,
.ft-legal span {
    color: var(--muted-2);
}

.ft-legal a:hover {
    color: var(--gold-2);
}

.ft-friend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: center;
    max-width: 640px;
}

.ft-friend .ft-friend-label {
    color: var(--muted-2);
    opacity: .8;
}

.ft-friend a {
    color: var(--muted-2);
}

.ft-friend a:hover {
    color: var(--gold-2);
}

/* ---------- ucenter header (uh) ---------- */
.uh {
    background: rgba(7, 9, 13, .84);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 900;
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
}

.uh-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.uh-logo img {
    height: 32px;
    width: auto;
    border-radius: 0;
}

.uh-title {
    padding-left: 16px;
    border-left: 1px solid var(--line-2);
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--paper);
    line-height: 1.2;
}

.uh-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.uh-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    color: var(--paper-2);
    font-size: 13px;
}

.uh-back:hover {
    border-color: rgba(216, 167, 91, .45);
    color: var(--gold-2);
}

.uh .langswitch-toggle {
    padding: 7px 11px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    box-shadow: none;
    font-size: 13px;
    color: var(--paper-2);
}

/* ---------- buttons & inputs ---------- */
.btn-gold,
.u-form .u-btn,
.u-btn,
.submit-btn,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: var(--grad-gold);
    color: #201704;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: filter .2s ease, transform .2s ease;
}

.btn-gold:hover,
.u-form .u-btn:hover {
    filter: brightness(1.06);
    color: #201704;
}

.btn-ghost,
.u-btn.gray {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 18px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: transparent;
    color: var(--paper-2);
    font-size: 14px;
    cursor: pointer;
}

.btn-ghost:hover,
.u-btn.gray:hover {
    border-color: rgba(216, 167, 91, .4);
    color: var(--gold-2);
}

input[type="text"],
input[type="search"],
input[type="number"],
input[type="password"],
input[type="tel"],
input[type="email"],
textarea,
select {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line-2);
    color: var(--paper);
    border-radius: 10px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(216, 167, 91, .5);
    box-shadow: 0 0 0 3px rgba(216, 167, 91, .10);
    background: rgba(255,255,255,0.05);
}

input::placeholder,
textarea::placeholder {
    color: var(--muted-2);
}

/* ---------- mobile bottom nav + to top ---------- */
.mnav {
    display: none;
}

.to-top {
    position: fixed;
    right: 22px;
    bottom: 28px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(216, 167, 91, .3);
    background: rgba(11, 14, 19, .9);
    color: var(--gold-2);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.to-top:hover {
    border-color: rgba(216, 167, 91, .6);
}

/* ---------- responsive: chrome & home ---------- */
@media (max-width: 1320px) {
    .boxCenter,
    .sectionBox,
    .thh-inner,
    .uh-inner,
    .ft-inner,
    .wrap .tonglan {
        width: 100%;
        max-width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }

    .ft-inner {
        padding-top: 40px;
    }
}

@media (max-width: 1180px) {
    .wrap .tonglan {
        grid-template-columns: 268px minmax(0, 1fr);
    }

    .wrap .tonglan .right {
        grid-column: 1 / -1;
    }

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

    .wrap .sectionBox .sectionBox-right {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--gap);
    }

    .wrap .sectionBox .sectionBox-right .newbooklist {
        margin-bottom: 0;
    }
}

@media (max-width: 900px) {
    .thh-nav {
        display: none;
        position: absolute;
        left: 12px;
        right: 12px;
        top: calc(100% + 6px);
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px;
        background: rgba(11, 14, 19, .98);
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: var(--shadow);
    }

    .thh-nav.is-open {
        display: flex;
    }

    .thh-nav a {
        height: 44px;
        padding: 0 14px;
        font-size: 15px;
    }

    .thh-nav a.current::after {
        display: none;
    }

    .thh-burger {
        display: flex;
    }

    .thh-inner {
        gap: 12px;
    }

    .thh-author span,
    .thh-app-btn span {
        display: none;
    }

    .thh-author,
    .thh-app-btn {
        width: 38px;
        padding: 0;
        justify-content: center;
    }

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

    .wrap .tonglan .right {
        grid-column: auto;
    }

    .wrap .sectionBox .sectionBox-left .bookBox .booklist,
    .wrap .sectionBox .sectionBox-left .newbookselect .booklist,
    .wrap .sectionBox .sectionBox-left .boutique .booklist {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wrap .sectionBox .sectionBox-right {
        grid-template-columns: minmax(0, 1fr);
    }

    .ft-top {
        gap: 20px;
    }

    .ft-app {
        margin-left: 0;
    }

    .ft-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 14px;
        padding-bottom: 62px; /* room for bottom nav */
    }

    .thh-inner {
        height: 60px;
        padding: 0 14px;
        gap: 10px;
    }

    .thh-logo img {
        height: 30px;
    }

    .thh-search {
        flex: 1 1 auto;
        max-width: none;
        min-width: 0;
        height: 38px;
        padding-left: 12px;
    }

    .thh-search-btn {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
    }

    .thh-lang {
        display: none;
    }

    .thh-login {
        display: none;
    }

    .thh-register {
        height: 34px;
        padding: 0 12px;
    }

    .wrap .tonglan {
        margin-top: 16px;
        gap: 14px;
    }

    .wrap .sectionBox {
        margin-top: 16px;
        gap: 14px;
    }

    .wrap .sectionBox .sectionBox-left .bookBox,
    .wrap .sectionBox .sectionBox-right .newbooklist,
    .hotWrap,
    .tonglan .right {
        padding: 16px 14px;
        border-radius: 12px;
    }

    .wrap .sectionBox .sectionBox-left .bookBox .title strong {
        font-size: 18px;
    }

    .wrap .sectionBox .sectionBox-left .bookBox .booklist,
    .wrap .sectionBox .sectionBox-left .newbookselect .booklist,
    .wrap .sectionBox .sectionBox-left .boutique .booklist {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .wrap .sectionBox .sectionBox-left .bookBox .booklist a {
        padding: 10px;
    }

    .slidemain .focus-box,
    .slidemain .slideBox,
    .slidemain .slide-item {
        min-height: 190px;
    }

    .slidemain .slide-item {
        background-size: cover;
    }

    .ft-inner {
        padding: 28px 16px 24px;
    }

    .ft-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .ft-nav {
        gap: 8px 18px;
    }

    /* bottom tab bar */
    .mnav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
        background: rgba(9, 12, 17, .96);
        border-top: 1px solid var(--line);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .mnav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 5px 0;
        border-radius: 10px;
        color: var(--muted);
        font-size: 11px;
        letter-spacing: .5px;
    }

    .mnav a svg {
        width: 21px;
        height: 21px;
    }

    .mnav a.current,
    .mnav a:hover {
        color: var(--gold-2);
    }

    .mnav a.current svg {
        filter: drop-shadow(0 0 8px rgba(216, 167, 91, .55));
    }

    .to-top {
        right: 14px;
        bottom: 76px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 420px) {
    .thh-logo img {
        height: 26px;
    }

    .thh-register {
        display: none;
    }

    .wrap .sectionBox .sectionBox-left .bookBox .booklist a .bookimg {
        width: 58px;
        height: 80px;
        flex: 0 0 58px;
    }
}

@media print {
    body {
        background: #fff;
        color: #000;
    }

    .thh,
    .uh,
    .ft,
    .mnav,
    .to-top {
        display: none !important;
    }
}
