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.page-reader-desktop-guide {
    height: 100vh;
    overflow: hidden;
}

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-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);
    height: calc(100vh - 77px);
    padding: 20px 0 0;
    overflow: hidden;
}

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

.srd-shell.is-guide-mode .srd-article {
    max-width: 860px;
    flex: 1;
    min-height: 0;
}

.srd-guide-stage {
    display: flex;
    justify-content: center;
    height: 100%;
    min-height: 0;
}

.srd-guide-preview {
    position: relative;
    width: 100%;
    max-width: 620px;
    height: 100%;
    margin: 0 auto;
    background:
        radial-gradient(circle at bottom center, rgba(255, 125, 70, 0.18), transparent 34%),
        #000;
    overflow: hidden;
}

.srd-guide-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(7, 7, 9, 0.08) 0%, rgba(7, 7, 9, 0.18) 28%, rgba(7, 7, 9, 0.3) 56%, rgba(7, 7, 9, 0.44) 100%);
}

.srd-guide-preview::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(circle at 50% 78%, rgba(255, 125, 70, 0.1), transparent 36%),
        linear-gradient(180deg, rgba(9, 9, 11, 0) 0%, rgba(9, 9, 11, 0.06) 22%, rgba(9, 9, 11, 0.18) 46%, rgba(9, 9, 11, 0.44) 72%, rgba(9, 9, 11, 0.74) 100%);
}

.srd-guide-canvas {
    position: relative;
    max-width: 620px;
    margin: 0 auto;
    background: #000;
    filter: brightness(0.88) saturate(0.94) contrast(0.97);
    transform: none;
    transform-origin: top center;
    opacity: 1;
}

.srd-guide-panel-image {
    position: relative;
}

.srd-guide-panel-image img {
    width: 100%;
    max-width: none;
    margin: 0;
}

.srd-guide-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 22px 20px;
    width: min(396px, calc(100% - 72px));
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%),
        rgba(12, 12, 15, 0.88);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 2;
}

.srd-guide-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(255, 153, 102, 0.1);
    color: rgba(255, 176, 137, 0.88);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.srd-guide-eyebrow {
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.56);
}

.srd-guide-panel h2 {
    margin: 2px 0 0;
    font-size: 30px;
    line-height: 1.16;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    text-wrap: balance;
}

.srd-guide-desc {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.68;
    color: rgba(255, 255, 255, 0.68);
    max-width: 30ch;
}

.srd-guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.srd-guide-meta-item {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 500;
}

.srd-guide-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 4px);
    margin: 2px auto 0;
    box-sizing: border-box;
    min-height: 52px;
    padding: 0 20px;
    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: 15px;
    font-weight: 700;
}

.srd-guide-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.srd-guide-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.038);
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 500;
}

@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);
    }
}
