:root {
    --bookstore-ink: #172421;
    --bookstore-jade: #2f5d50;
    --bookstore-red: #b8323c;
    --bookstore-gold: #d8ae64;
    --bookstore-paper: #f6f1e8;
}

.legacy-focus-slider {
    display: none !important;
}

.top-nav .home-channel-links {
    display: flex;
}

.top-nav .home-channel-links a {
    width: auto;
    padding: 0 15px;
    color: #666;
    border-right: 1px solid #e5e5e5;
}

.top-nav .home-channel-links a:first-child {
    border-left: 1px solid #e5e5e5;
}

.top-nav .home-channel-links a:hover,
.top-nav .home-channel-links a.act {
    color: var(--bookstore-red);
    background: #fff;
}

.home-hero-grid {
    display: flex;
    height: 410px;
    align-items: stretch;
}

.home-hero-grid > .home-category-panel {
    position: relative;
    top: 0 !important;
    height: 410px !important;
    min-height: 410px;
    flex: 0 0 221px;
    overflow: hidden !important;
    box-sizing: border-box;
}

.home-hero-grid > .focus-box {
    width: 548px;
    height: 410px;
    flex: 0 0 548px;
    box-sizing: border-box;
}

.home-hero-grid > .notice-wrap {
    width: 216px;
    height: 410px;
    margin-left: 5px;
    flex: 0 0 216px;
}

.home-feature {
    position: relative;
    height: 250px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 80% 12%, rgba(216, 174, 100, .24), transparent 32%),
        linear-gradient(120deg, #13211e 0%, #26483f 58%, #172421 100%);
}

.home-feature__viewport {
    height: 205px;
}

.home-feature__slide {
    position: absolute;
    inset: 0 0 45px;
    display: none;
    overflow: hidden;
    opacity: 0;
}

.home-feature__slide.is-active {
    display: flex;
    opacity: 1;
    animation: home-feature-in .45s ease both;
}

.home-feature__backdrop {
    position: absolute;
    inset: -28px;
    width: calc(100% + 56px);
    height: calc(100% + 56px);
    object-fit: cover;
    opacity: .13;
    filter: blur(16px) saturate(.8);
    transform: scale(1.08);
}

.home-feature__content {
    position: relative;
    z-index: 2;
    width: 64%;
    padding: 21px 20px 14px 30px;
}

.home-feature__eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #efd7a8;
    font-size: 12px;
    letter-spacing: .14em;
}

.home-feature__content h2 {
    max-width: 310px;
    margin: 0 0 6px;
    overflow: hidden;
    color: #fff;
    font-family: "Songti SC", "STSong", serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-feature__content h2 a,
.home-feature__content h2 a:hover {
    color: inherit;
}

.home-feature__meta {
    margin-bottom: 7px;
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
}

.home-feature__meta span + span::before {
    margin: 0 8px;
    color: rgba(255, 255, 255, .35);
    content: "·";
}

.home-feature__intro {
    display: -webkit-box;
    max-width: 315px;
    height: 42px;
    margin: 0 0 9px;
    overflow: hidden;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    line-height: 21px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-feature__read {
    display: inline-block;
    padding: 7px 18px;
    color: #fff;
    font-size: 13px;
    letter-spacing: .08em;
    background: var(--bookstore-red);
    border-radius: 2px;
    transition: background .2s ease, transform .2s ease;
}

.home-feature__read:hover {
    color: #fff;
    background: #ca3b45;
    transform: translateY(-1px);
}

.home-feature__cover {
    position: absolute;
    z-index: 2;
    right: 39px;
    bottom: 13px;
    width: 105px;
    height: 154px;
    border: 5px solid rgba(255, 255, 255, .84);
    box-shadow: 0 18px 34px rgba(0, 0, 0, .38);
    transform: rotate(2deg);
}

.home-feature__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-feature__nav {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    height: 45px;
    background: rgba(10, 18, 16, .82);
    backdrop-filter: blur(10px);
}

.home-feature__tab {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: transparent;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, .1);
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}

.home-feature__tab:last-child {
    border-right: 0;
}

.home-feature__tab:hover,
.home-feature__tab:focus-visible {
    color: #fff;
    outline: none;
    background: rgba(255, 255, 255, .08);
}

.home-feature__tab.is-active {
    color: #fff;
    background: var(--bookstore-red);
}

.editor-showcase {
    position: relative;
    display: flex;
    height: 198px !important;
    padding: 0 !important;
    overflow: hidden;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 18% 45%, rgba(216, 174, 100, .16), transparent 38%),
        linear-gradient(105deg, #f8f3e9 0%, #fff 58%, #f7f7f5 100%);
    outline: none;
}

.editor-showcase::after {
    position: absolute;
    right: -36px;
    bottom: -64px;
    width: 145px;
    height: 145px;
    border: 1px solid rgba(47, 93, 80, .1);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.editor-showcase__stage {
    position: relative;
    width: 255px;
    height: 198px;
    flex: 0 0 255px;
    perspective: 760px;
}

.editor-showcase__deck {
    position: absolute;
    top: 44px;
    right: 0;
    left: 0;
    height: 140px;
}

.editor-showcase__cover {
    position: absolute;
    top: 9px;
    left: 50%;
    z-index: 1;
    width: 70px;
    height: 102px;
    margin-left: -35px;
    overflow: hidden;
    opacity: .34;
    background: #e8e0d2;
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: 2px;
    box-shadow: 0 8px 18px rgba(23, 36, 33, .13);
    transform: translateX(0) scale(.66);
    transform-origin: 50% 88%;
    transition: transform .48s cubic-bezier(.2, .75, .2, 1), opacity .35s ease, box-shadow .35s ease;
}

.editor-showcase__cover[data-showcase-offset="-3"] {
    z-index: 1;
    opacity: .42;
    transform: translateX(-100px) rotateY(22deg) scale(.66);
}

.editor-showcase__cover[data-showcase-offset="-2"] {
    z-index: 2;
    opacity: .64;
    transform: translateX(-76px) rotateY(18deg) scale(.76);
}

.editor-showcase__cover[data-showcase-offset="-1"] {
    z-index: 4;
    opacity: .9;
    transform: translateX(-45px) rotateY(12deg) scale(.9);
}

.editor-showcase__cover[data-showcase-offset="1"] {
    z-index: 4;
    opacity: .9;
    transform: translateX(45px) rotateY(-12deg) scale(.9);
}

.editor-showcase__cover[data-showcase-offset="2"] {
    z-index: 2;
    opacity: .64;
    transform: translateX(76px) rotateY(-18deg) scale(.76);
}

.editor-showcase__cover[data-showcase-offset="3"] {
    z-index: 1;
    opacity: .42;
    transform: translateX(100px) rotateY(-22deg) scale(.66);
}

.editor-showcase__cover.is-active {
    z-index: 6;
    opacity: 1;
    box-shadow: 0 14px 24px rgba(23, 36, 33, .28);
    transform: translateX(0) scale(1.08);
}

.editor-showcase__cover a,
.editor-showcase__cover img {
    display: block;
    width: 100%;
    height: 100%;
}

.editor-showcase__cover img {
    object-fit: cover;
}

.editor-showcase__controls {
    position: absolute;
    right: 15px;
    bottom: 13px;
    left: 15px;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.editor-showcase__arrow {
    width: 22px;
    height: 22px;
    padding: 0;
    color: var(--bookstore-jade);
    font-family: Georgia, serif;
    font-size: 20px;
    line-height: 20px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(47, 93, 80, .18);
    border-radius: 50%;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.editor-showcase__arrow:hover,
.editor-showcase__arrow:focus-visible {
    color: #fff;
    background: var(--bookstore-red);
    border-color: var(--bookstore-red);
    outline: none;
    transform: translateY(-1px);
}

.editor-showcase__dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.editor-showcase__dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    background: #d1d2ce;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.editor-showcase__dots button.is-active {
    background: var(--bookstore-red);
    transform: scale(1.45);
}

.editor-showcase__copy {
    position: relative;
    z-index: 2;
    min-width: 0;
    height: 198px;
    flex: 1;
    padding: 28px 24px 22px 15px;
    box-sizing: border-box;
}

.editor-showcase__panel {
    display: none;
}

.editor-showcase__panel.is-active {
    display: block;
    animation: showcase-copy-in .35s ease both;
}

.editor-showcase__panel[hidden] {
    display: none !important;
}

.editor-showcase__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--bookstore-red);
    font-size: 11px;
    letter-spacing: .12em;
}

.editor-showcase__panel h3 {
    margin: 0 0 9px;
    overflow: hidden;
    font-family: "Songti SC", "STSong", serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-showcase__panel h3 a {
    color: var(--bookstore-ink);
}

.editor-showcase__panel p {
    display: -webkit-box;
    height: 40px;
    margin: 0 0 14px;
    overflow: hidden;
    color: #6c716e;
    font-size: 12px;
    line-height: 20px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.editor-showcase__read {
    display: inline-block;
    padding: 6px 17px;
    color: #fff;
    font-size: 12px;
    letter-spacing: .08em;
    background: var(--bookstore-red);
    border-radius: 15px;
    transition: background .2s ease, transform .2s ease;
}

.editor-showcase__read:hover {
    color: #fff;
    background: #ca3b45;
    transform: translateY(-1px);
}

.dynamic-book-showcase {
    position: relative;
    overflow: hidden;
}

.dynamic-book-showcase .slide-box {
    position: relative;
    height: 145px;
    perspective: 680px;
}

.dynamic-book-showcase .book-cover-deck {
    position: relative !important;
    display: block !important;
    width: 100%;
    height: 145px;
    margin: 0;
    padding: 0 !important;
}

.dynamic-book-showcase .book-cover-deck > li {
    position: absolute !important;
    top: 14px !important;
    left: 50% !important;
    z-index: 1 !important;
    width: 72px !important;
    height: 102px !important;
    margin-left: -36px;
    overflow: hidden;
    list-style: none;
    opacity: .42 !important;
    border-radius: 2px;
    box-shadow: 0 8px 18px rgba(23, 36, 33, .16);
    transform: translateX(0) scale(.85);
    transform-origin: 50% 85%;
    transition: transform .42s cubic-bezier(.22, .75, .25, 1), opacity .35s ease, box-shadow .35s ease;
}

.dynamic-book-showcase .book-cover-deck > li.is-previous {
    transform: translateX(-50px) rotateY(13deg) scale(.82);
}

.dynamic-book-showcase .book-cover-deck > li.is-next {
    transform: translateX(50px) rotateY(-13deg) scale(.82);
}

.dynamic-book-showcase .book-cover-deck > li.is-active {
    z-index: 4 !important;
    opacity: 1 !important;
    box-shadow: 0 13px 25px rgba(23, 36, 33, .28);
    transform: translateX(0) scale(1.08);
}

.dynamic-book-showcase .book-cover-deck img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.dynamic-book-showcase .info-text {
    min-height: 205px;
}

.dynamic-book-showcase .info-text dd[hidden] {
    display: none !important;
}

.dynamic-book-showcase .info-text dd.is-active {
    display: block;
    animation: showcase-copy-in .35s ease both;
}

.dynamic-book-showcase .info-text h3 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dynamic-book-showcase .info-text .intro {
    display: -webkit-box;
    max-height: 66px;
    overflow: hidden;
    line-height: 22px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.showcase-controls {
    position: absolute;
    right: 12px;
    bottom: 8px;
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.showcase-controls__arrow,
.showcase-controls__dot {
    padding: 0;
    color: #7b827e;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.showcase-controls__arrow {
    width: 24px;
    height: 24px;
    font-size: 22px;
    line-height: 22px;
}

.showcase-controls__dot {
    width: 6px;
    height: 6px;
    overflow: hidden;
    text-indent: -999px;
    background: #c9ccc9;
    border-radius: 50%;
    transition: width .2s ease, background .2s ease;
}

.showcase-controls__dot.is-active {
    width: 18px;
    background: var(--bookstore-red);
    border-radius: 4px;
}

.showcase-controls__arrow:hover,
.showcase-controls__arrow:focus-visible {
    color: var(--bookstore-red);
    outline: none;
}

.god-wrap .god-list {
    height: 632px;
    overflow: hidden;
}

.god-wrap .god-list ul {
    display: flex;
    height: 100%;
    flex-direction: column;
    gap: 10px;
}

.god-wrap .god-list li {
    position: relative !important;
    display: block !important;
    box-sizing: border-box;
    height: 197px !important;
    padding: 16px 14px;
    overflow: hidden;
    background: linear-gradient(145deg, #fbf8f2, #f2ece2);
    border: 1px solid #ebe2d5;
}

.god-wrap .god-info {
    padding: 0 !important;
}

.god-wrap .god-info .photo {
    float: left;
    width: 50px;
    height: 50px;
    margin: 0 12px 9px 0;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(23, 36, 33, .16);
}

.god-wrap .god-info .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.god-wrap .god-info > h3 {
    padding-top: 5px;
    font-family: "Songti SC", "STSong", serif;
    font-size: 17px;
}

.god-wrap .god-info .type {
    color: var(--bookstore-red);
    font-size: 12px;
}

.god-wrap .god-info h4 {
    clear: both;
    margin: 7px 0 4px;
    color: #8c7350;
    font-size: 12px;
    font-weight: 400;
}

.god-wrap .god-info .works {
    height: 22px;
    overflow: hidden;
    white-space: nowrap;
}

.god-wrap .god-info .works a:nth-child(n+4) {
    display: none;
}

.god-wrap .god-info .works a + a::before {
    margin: 0 5px;
    color: #b8aa95;
    content: "·";
}

.god-wrap .god-info .intro {
    display: -webkit-box;
    max-height: 42px;
    margin-top: 7px;
    overflow: hidden;
    color: #777;
    line-height: 21px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@keyframes home-feature-in {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes showcase-copy-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .home-feature__slide.is-active,
    .dynamic-book-showcase .info-text dd.is-active {
        animation: none;
    }

    .dynamic-book-showcase .book-cover-deck > li {
        transition: none;
    }
}
