html {
    background: #171718;
}

body.page-reader-desktop {
    margin: 0;
    max-width: none;
    min-width: 1280px;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #fff;
    background: #171718;
}

body.page-reader-desktop a {
    color: inherit;
    text-decoration: none;
}

.srd-shell button {
    border: 0;
    background: none;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.srd-shell {
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(23, 23, 24, 0.98) 0%, rgba(31, 29, 30, 0.98) 100%);
    color: #fff;
}

.srd-wrap {
    width: min(100% - 48px, 1240px);
    margin: 0 auto;
}

.srd-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 18, 20, 0.94);
    backdrop-filter: blur(14px);
}

.srd-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
}

.srd-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.srd-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.srd-brand img {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    object-fit: cover;
}

.srd-brand span {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.srd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
}

.srd-breadcrumb a:hover {
    color: #fff;
}

.srd-breadcrumb span:last-child {
    color: #fff;
}

.srd-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.srd-sync-status {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.68);
}

.srd-btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff9966 0%, #ff7d46 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.srd-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 80px;
    align-items: start;
    gap: 32px;
    padding: 40px 0;
}

.srd-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.srd-chapter-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
}

.srd-chapter-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.srd-btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
}

.srd-chapter-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.srd-tag-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 153, 102, 0.18);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.srd-tag-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.srd-article {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

.srd-canvas {
    max-width: 620px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: #000;
}

.srd-panel {
    position: relative;
    overflow: hidden;
}

.srd-panel img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #000;
}

.srd-bottom-bar {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 16px;
}

.srd-record-tips {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
}

.srd-record-tips svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.srd-shell .srd-btn-prev,
.srd-shell .srd-btn-catalog {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.srd-shell .srd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.srd-shell .srd-side-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 64px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}

.srd-shell .srd-side-btn svg {
    width: 16px;
    height: 16px;
}

.srd-shell .srd-side-btn-primary {
    background: linear-gradient(135deg, #ff9966 0%, #ff7d46 100%);
    color: #fff;
    font-weight: 600;
}

.srd-shell .is-disabled {
    opacity: 0.42;
    pointer-events: none;
}

.srd-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 32px 24px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.72);
}

.srd-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 18, 20, 0.94);
}

.srd-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 32px 0;
}

.srd-footer-info {
    min-width: 0;
}

.srd-footer-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.srd-footer-info p {
    margin: 8px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.srd-footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.srd-footer-links a:hover {
    color: #fff;
}

.srd-btn-download.is-animated,
.srd-guide-cta {
    animation: srdPulse 1.9s ease-in-out infinite;
}

.srd-shell.is-guide-mode {
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

.srd-shell.is-guide-mode .srd-main {
    grid-template-columns: minmax(0, 1fr);
    min-height: calc(100vh - 77px);
    padding: 28px 0 32px;
}

.srd-shell.is-guide-mode .srd-content {
    height: 100%;
    gap: 24px;
}

.srd-shell.is-guide-mode .srd-article {
    max-width: none;
    flex: 1;
}

.srd-guide-stage {
    display: grid;
    grid-template-columns: minmax(0, 620px) minmax(320px, 380px);
    gap: 28px;
    align-items: stretch;
    min-height: calc(100vh - 240px);
}

.srd-guide-preview {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    border-radius: 32px;
    background:
        radial-gradient(circle at top left, rgba(255, 153, 102, 0.22), transparent 28%),
        #040405;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.34);
}

.srd-guide-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: blur(16px) saturate(0.9);
    transform: scale(1.08);
    opacity: 0.92;
}

.srd-guide-preview-overlay,
.srd-guide-preview-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.srd-guide-preview-overlay {
    background:
        linear-gradient(180deg, rgba(9, 9, 11, 0.06) 0%, rgba(9, 9, 11, 0.24) 38%, rgba(9, 9, 11, 0.86) 100%);
    backdrop-filter: blur(10px);
}

.srd-guide-preview-glow {
    background:
        radial-gradient(circle at 22% 20%, rgba(255, 153, 102, 0.18), transparent 30%),
        radial-gradient(circle at 80% 72%, rgba(255, 125, 70, 0.16), transparent 28%);
}

.srd-guide-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 32px 30px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%),
        rgba(15, 15, 17, 0.96);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

.srd-guide-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 153, 102, 0.14);
    color: #ffb089;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.srd-guide-eyebrow {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.62);
}

.srd-guide-panel h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.2;
    color: #fff;
}

.srd-guide-desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.78);
}

.srd-guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.srd-guide-meta-item {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 600;
}

.srd-guide-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff9966 0%, #ff7d46 100%);
    box-shadow: 0 18px 34px rgba(255, 125, 70, 0.28);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.srd-guide-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.srd-guide-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 600;
}

@keyframes srdPulse {
    0%,
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 16px 30px rgba(255, 125, 70, 0.2);
    }
    50% {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 22px 40px rgba(255, 125, 70, 0.34);
    }
}
