@charset "utf-8";

.front-page-skeleton {
    --fps-surface: #fff;
    --fps-canvas: #f5f7f6;
    --fps-shape: #e8eeeb;
    --fps-shine: rgba(255, 255, 255, .75);
    position: fixed;
    z-index: 1100;
    top: var(--front-skeleton-top, 108px);
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden auto;
    box-sizing: border-box;
    background: var(--fps-canvas);
    opacity: 1;
    transition: opacity .18s ease;
}

html.front-page-skeleton-leaving .front-page-skeleton {
    opacity: 0;
    pointer-events: none;
}

.front-page-skeleton__content {
    width: 1020px;
    margin: 0 auto;
    padding: 16px 0 56px;
    box-sizing: border-box;
}

.fps-shape {
    display: block;
    min-width: 0;
    border-radius: 4px;
    background: linear-gradient(100deg, var(--fps-shape) 20%, var(--fps-shine) 38%, var(--fps-shape) 56%);
    background-size: 220% 100%;
    animation: frontSkeletonShimmer 1.35s ease-in-out infinite;
}

@keyframes frontSkeletonShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -120% 0; }
}

.fps-panel {
    min-width: 0;
    padding: 20px;
    border: 1px solid #edf1ef;
    border-radius: 6px;
    box-sizing: border-box;
    background: var(--fps-surface);
}

.fps-title, .fps-section-title, .fps-heading, .fps-breadcrumb, .fps-tabs,
.fps-label, .fps-news-title, .fps-news-date, .fps-reader-meta,
.fps-setting-value, .fps-action-link, .fps-reader-crumb { height: 14px; }
.fps-title { width: 148px; height: 20px; margin-bottom: 20px; }
.fps-section-title { width: 116px; height: 18px; margin-bottom: 18px; }
.fps-heading { width: min(360px, 62%); height: 26px; margin-bottom: 22px; }
.fps-breadcrumb { width: 260px; margin: 0 0 14px; }
.fps-tabs { width: 230px; height: 34px; margin-bottom: 20px; }
.fps-line { height: 12px; margin-bottom: 13px; }
.fps-line-1 { width: 92%; }
.fps-line-2 { width: 74%; }
.fps-line-3 { width: 84%; }
.fps-lines.is-compact .fps-line { height: 10px; margin-bottom: 10px; }

.fps-home-hero, .fps-home-section, .fps-detail-columns, .fps-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 720px) 280px;
    gap: 20px;
    margin-bottom: 20px;
}

.fps-home-banner {
    display: grid;
    grid-template-columns: 306px minmax(0, 1fr);
    gap: 22px;
    min-height: 310px;
    padding: 18px;
    border-radius: 6px;
    box-sizing: border-box;
    background: var(--fps-surface);
}

.fps-hero-image { width: 100%; height: 274px; }
.fps-home-feature { padding-top: 16px; }
.fps-rank-panel { min-height: 250px; }
.fps-wide-panel { min-height: 230px; }
.fps-book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.fps-book-card { display: flex; min-width: 0; gap: 14px; }
.fps-cover { width: 76px; height: 104px; flex: 0 0 76px; border-radius: 3px; }
.fps-book-copy { min-width: 0; flex: 1; padding-top: 8px; }
.fps-catalog-panel .fps-book-grid, .fps-ranking-panel .fps-book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 46px; }
.fps-catalog-panel .fps-cover, .fps-ranking-panel .fps-cover { width: 96px; height: 128px; flex-basis: 96px; }

.fps-filter-panel { margin-bottom: 16px; padding-top: 12px; padding-bottom: 12px; }
.fps-filter-row { display: flex; align-items: center; gap: 14px; min-height: 42px; border-bottom: 1px solid #f0f3f1; }
.fps-filter-row:last-child { border-bottom: 0; }
.fps-filter-label { width: 48px; height: 12px; margin-right: 8px; }
.fps-chip { width: 58px; height: 24px; border-radius: 12px; }
.fps-pagination { width: 220px; height: 32px; margin: 28px auto 0; }
.fps-panel-heading { display: flex; align-items: center; justify-content: space-between; min-height: 42px; margin-bottom: 20px; }
.fps-panel-heading .fps-title, .fps-panel-heading .fps-section-title { margin-bottom: 0; }
.fps-tab { width: 62px; height: 28px; margin-left: 8px; }

.fps-detail-hero, .fps-index-hero { display: flex; gap: 28px; min-height: 267px; }
.fps-detail-cover { width: 200px; height: 267px; flex: 0 0 200px; border-radius: 5px; }
.fps-detail-copy { min-width: 0; flex: 1; padding-top: 12px; }
.fps-actions, .fps-form-actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.fps-button { width: 112px; height: 38px; border-radius: 4px; }
.fps-button.is-muted { width: 94px; }
.fps-button.is-small { width: 92px; height: 32px; }
.fps-detail-panel { margin-bottom: 20px; }
.fps-detail-columns { grid-template-columns: minmax(0, 720px) 280px; align-items: start; }
.fps-detail-columns .fps-panel { margin-bottom: 20px; }
.fps-author-panel { min-height: 150px; }
.fps-related-panel { min-height: 300px; }
.fps-chapter-panel { min-height: 180px; }
.fps-comment-panel { min-height: 340px; }
.fps-comment-row, .fps-message-row { display: flex; gap: 14px; min-width: 0; padding: 16px 0; border-bottom: 1px solid #edf1ef; }
.fps-comment-row .fps-lines, .fps-message-row .fps-lines { min-width: 0; flex: 1; }
.fps-small-avatar { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; }
.fps-avatar { width: 68px; height: 68px; flex: 0 0 68px; border-radius: 50%; }
.fps-summary-panel .fps-detail-cover { width: 96px; height: 128px; margin: 0 auto 20px; }
.fps-comment-focus { padding: 20px; border-radius: 6px; background: #f8faf9; }
.fps-textarea { width: 100%; height: 128px; margin-top: 20px; }

.fps-directory-head { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 18px; padding-top: 20px; border-top: 1px solid #edf1ef; }
.fps-directory-head .fps-title { margin: 0; }
.fps-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.fps-directory-item { height: 16px; margin: 13px 0; }

.fps-reader-shell { position: relative; display: grid; grid-template-columns: 54px minmax(0, 840px) 54px; justify-content: center; gap: 12px; }
.fps-reader-tools, .fps-reader-nav { display: flex; flex-direction: column; gap: 8px; }
.fps-tool { width: 54px; height: 54px; }
.fps-reader-paper { min-height: 760px; padding: 42px 64px 70px; border-radius: 4px; box-sizing: border-box; background: var(--fps-surface); }
.fps-reader-crumb { width: 220px; margin-bottom: 34px; }
.fps-reader-title { width: min(420px, 70%); height: 30px; margin: 0 auto 18px; }
.fps-reader-meta { width: min(320px, 54%); margin: 0 auto 32px; }
.fps-reader-rule { height: 1px; margin-bottom: 34px; background: #edf1ef; }
.fps-reader-line { height: 16px; margin-bottom: 22px; }
.fps-reader-line-1 { width: 100%; }
.fps-reader-line-2 { width: 96%; }
.fps-reader-line-3 { width: 88%; }
.fps-reader-line-4 { width: 72%; }

.fps-news-list, .fps-news-detail { min-height: 520px; }
.fps-news-row { display: flex; justify-content: space-between; gap: 30px; padding: 18px 0; border-bottom: 1px solid #edf1ef; }
.fps-news-title { width: min(620px, 72%); }
.fps-news-date { width: 92px; }
.fps-article-head { padding: 18px 0 26px; text-align: center; border-bottom: 1px solid #edf1ef; }
.fps-article-head .fps-heading, .fps-article-head .fps-reader-meta { margin-right: auto; margin-left: auto; }
.fps-article-body { padding: 34px 28px; }

.fps-pay-panel { padding: 0; overflow: hidden; }
.fps-pay-head { padding: 18px 24px 8px; border-bottom: 1px solid #edf1ef; }
.fps-pay-section { padding: 24px; border-bottom: 1px solid #edf1ef; }
.fps-pay-methods, .fps-pay-options { display: grid; gap: 14px; }
.fps-pay-methods { grid-template-columns: repeat(2, 180px); }
.fps-pay-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fps-pay-method { height: 58px; }
.fps-pay-option { height: 72px; }

.fps-user-shell { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; min-height: 560px; padding: 18px; border-radius: 6px; background: var(--fps-surface); }
.fps-sidebar { padding: 20px 16px; border-right: 1px solid #edf1ef; }
.fps-sidebar .fps-avatar { margin: 0 auto 24px; }
.fps-shell-main { min-width: 0; padding: 18px 22px 30px; }
.fps-table-head { height: 42px; margin-top: 8px; border-radius: 4px 4px 0 0; }
.fps-table-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: center; gap: 20px; min-height: 52px; border-bottom: 1px solid #edf1ef; }
.fps-cell { height: 11px; }
.fps-cell-1 { width: 90%; }
.fps-cell-2 { width: 68%; }
.fps-cell-3 { width: 78%; }
.fps-form { max-width: 680px; }
.fps-field { margin-bottom: 20px; }
.fps-label { width: 92px; margin-bottom: 9px; }
.fps-input { width: 100%; height: 42px; }
.fps-input.fps-textarea { height: 180px; }
.fps-profile-row { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.fps-profile-row .fps-lines { width: 260px; }
.fps-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.fps-metric-grid.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fps-metric { min-height: 92px; }
.fps-chart-panel { margin-bottom: 24px; }
.fps-chart { height: 180px; }
.fps-setting-row { display: grid; grid-template-columns: 100px minmax(0, 1fr) 60px; align-items: center; gap: 20px; min-height: 66px; border-bottom: 1px solid #edf1ef; }
.fps-setting-row .fps-label { width: 62px; margin: 0; }
.fps-setting-value { width: 55%; }
.fps-action-link { width: 44px; }
.fps-modal-panel { width: min(560px, 100%); margin: 24px auto; box-shadow: 0 12px 40px rgba(20, 44, 34, .08); }
.fps-referral-hero { min-height: 180px; margin-bottom: 18px; }
.fps-referral-detail { min-height: 170px; }

.fps-auth-shell { grid-template-columns: minmax(0, 620px) 320px; align-items: stretch; margin-top: 42px; }
.fps-auth-form, .fps-auth-side { min-height: 390px; padding: 42px 54px; }
.fps-auth-side { padding-top: 90px; }
.fps-author-register-panel { width: min(680px, calc(100% - 32px)); min-height: 720px; margin: 28px auto; padding: 38px 48px; }

html.site-dark .front-page-skeleton,
body.site-dark .front-page-skeleton {
    --fps-surface: #151c23;
    --fps-canvas: #10161c;
    --fps-shape: #24303a;
    --fps-shine: rgba(111, 137, 157, .24);
}

html.site-dark .fps-panel, body.site-dark .fps-panel,
html.site-dark .fps-user-shell, body.site-dark .fps-user-shell { border-color: #27333d; }

@media (max-width: 1034px) {
    .front-page-skeleton__content { width: auto; margin-right: 12px; margin-left: 12px; }
    .fps-home-hero, .fps-home-section, .fps-detail-columns { grid-template-columns: minmax(0, 1fr) 250px; }
}

@media (max-width: 768px) {
    .front-page-skeleton__content { padding-top: 2px; }
    .fps-panel { padding: 14px; }
    .fps-home-hero, .fps-home-section, .fps-detail-columns, .fps-auth-shell { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .fps-home-banner { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); min-height: 220px; gap: 14px; padding: 12px; }
    .fps-hero-image { height: 196px; }
    .fps-rank-panel { min-height: 190px; }
    .fps-book-grid, .fps-catalog-panel .fps-book-grid, .fps-ranking-panel .fps-book-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .fps-catalog-panel .fps-book-card:nth-child(n+6), .fps-ranking-panel .fps-book-card:nth-child(n+6) { display: none; }
    .fps-filter-row { overflow: hidden; gap: 8px; }
    .fps-filter-row .fps-chip { min-width: 48px; }
    .fps-detail-hero, .fps-index-hero { gap: 16px; min-height: 190px; }
    .fps-detail-cover { width: 128px; height: 176px; flex-basis: 128px; }
    .fps-directory-grid { grid-template-columns: minmax(0, 1fr); }
    .fps-directory-item:nth-child(n+10) { display: none; }
    .fps-reader-shell { grid-template-columns: minmax(0, 1fr); }
    .fps-reader-tools, .fps-reader-nav { display: none; }
    .fps-reader-paper { min-height: 720px; padding: 28px 22px 50px; }
    .fps-pay-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fps-pay-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fps-user-shell { grid-template-columns: 58px minmax(0, 1fr); gap: 8px; padding: 10px; }
    .fps-sidebar { padding: 14px 7px; }
    .fps-sidebar .fps-avatar { width: 42px; height: 42px; }
    .fps-sidebar .fps-lines .fps-line { width: 100%; height: 30px; margin-bottom: 10px; }
    .fps-shell-main { padding: 12px 8px 24px; }
    .fps-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fps-form { max-width: none; }
    .fps-auth-form, .fps-auth-side { min-height: 0; padding: 26px 20px; }
    .fps-auth-side { padding-top: 30px; }
    .fps-author-register-panel { margin-top: 12px; padding: 26px 20px; }
}

@media (max-width: 430px) {
    .fps-home-banner { grid-template-columns: minmax(0, 1fr); }
    .fps-home-feature { display: none; }
    .fps-detail-cover { width: 104px; height: 146px; flex-basis: 104px; }
    .fps-actions .fps-button:nth-child(n+3) { display: none; }
    .fps-pay-options, .fps-metric-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .fps-shape { animation: frontSkeletonPulse 1.4s ease-in-out infinite; }
    @keyframes frontSkeletonPulse { 50% { opacity: .58; } }
}
