        /* 阅读器模式入口样式 */
        .reader-mode-entry {
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px;
            cursor: pointer;
            border: 1px solid var(--border-secondary);
            transition: all 0.2s;
            background: var(--bg-secondary);
            border-radius: 12px;
            height: auto !important;
        }

        .reader-mode-entry:hover {
            background: var(--card-bg);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

        /* 阅读器模式全屏覆盖层 */
        #reader-mode-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: #fff;
            z-index: 10000;
            display: none;
            flex-direction: column;
            overflow: hidden;
            font-family: 'Georgia', 'Times New Roman', serif;
            transition: opacity 0.3s ease, background 0.3s, color 0.3s;
            opacity: 0;
        }

        #reader-mode-overlay.active {
            opacity: 1;
        }

        /* 阅读器顶部栏 */
        .reader-header {
            height: 50px;
            padding: 0 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            background: inherit;
            flex-shrink: 0;
            z-index: 10;
        }

        .reader-title {
            font-size: 14px;
            font-weight: 600;
            opacity: 0.8;
            max-width: 60%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            text-align: center;
            margin: 0 auto;
            position: absolute;
            left: 0;
            right: 0;
            pointer-events: none;
        }

        .reader-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
            color: inherit;
        }

        .reader-btn:hover {
            background: rgba(0, 0, 0, 0.05);
        }

        /* 阅读器内容区域 */
        #reader-content-container {
            flex: 1;
            overflow-y: auto;
            padding: 40px 20px 100px 20px;
            scroll-behavior: smooth;
        }

        .reader-article {
            max-width: 700px;
            margin: 0 auto;
            font-size: 18px;
            line-height: 1.8;
        }

        .reader-article h1 {
            font-size: 2em;
            margin-bottom: 0.5em;
            line-height: 1.3;
        }

        .reader-article img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            margin: 20px 0;
            display: block;
            margin-left: auto;
            margin-right: auto;
        }

        /* 修复阅读器模式下的文本颜色继承问题 */
        #reader-article-content h1,
        #reader-article-content h2,
        #reader-article-content h3,
        #reader-article-content h4,
        #reader-article-content h5,
        #reader-article-content h6,
        #reader-article-content p,
        #reader-article-content li,
        #reader-article-content label,
        #reader-article-content span,
        #reader-article-content div {
            color: inherit !important;
        }

        /* 阅读设置面板 - Apple Style */
        #reader-settings-panel {
            position: absolute;
            top: 60px;
            right: 20px;
            width: 320px;
            background: var(--bg-secondary);
            border-radius: 14px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
            padding: 16px;
            display: none;
            z-index: 20;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            transform-origin: top right;
            transition: opacity 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
            opacity: 0;
            transform: scale(0.95) translateY(-10px);
            max-height: calc(100vh - 80px);
            overflow-y: auto;
            scrollbar-width: none;
            /* Firefox */
            -ms-overflow-style: none;
            /* IE and Edge */
        }

        #reader-settings-panel::-webkit-scrollbar {
            display: none;
        }

        #reader-settings-panel.active {
            opacity: 1;
            transform: scale(1) translateY(0);
        }

        html.dark-mode #reader-settings-panel {
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
        }

        .apple-header {
            text-align: center;
            font-weight: 600;
            font-size: 15px;
            margin-bottom: 15px;
            color: var(--text-primary);
            position: relative;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .apple-back-btn,
        .apple-done-btn {
            position: absolute;
            top: 0;
            background: none;
            border: none;
            font-size: 15px;
            cursor: pointer;
            padding: 0;
        }

        .apple-back-btn {
            left: 0;
            color: var(--text-primary);
        }

        .apple-done-btn {
            right: 0;
            color: var(--primary-color);
            font-weight: 600;
        }

        .apple-control-row {
            background: var(--modal-bg);
            border-radius: 10px;
            padding: 4px;
            margin-bottom: 16px;
            display: flex;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        }

        .font-size-control-apple {
            flex: 1;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
        }

        .font-size-btn-apple {
            background: none;
            border: none;
            cursor: pointer;
            font-family: serif;
            color: var(--text-primary);
        }

        .font-size-btn-apple.small-a {
            font-size: 16px;
        }

        .font-size-btn-apple.big-a {
            font-size: 28px;
        }

        .apple-theme-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 12px;
            margin-bottom: 20px;
        }

        .apple-theme-card {
            aspect-ratio: 1;
            border-radius: 50%;
            /* Apple uses circles in main view for simple colors, but user asked for squares like image */
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border: 2px solid transparent;
            position: relative;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            transition: transform 0.1s;
        }

        .apple-theme-card:active {
            transform: scale(0.96);
        }

        .apple-theme-card.active {
            border-color: var(--primary-color);
        }

        .apple-theme-card .preview {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 4px;
            font-family: "Times New Roman", serif;
        }

        .apple-theme-card .name {
            font-size: 12px;
            opacity: 0.7;
        }

        /* Theme Colors */
        .apple-theme-card.white {
            background: #fff;
            color: #000;
        }

        .apple-theme-card.paper {
            background: #fbf0d9;
            color: #5f4b32;
        }

        .apple-theme-card.dark {
            background: #333;
            color: #eee;
        }

        .apple-theme-card.black {
            background: #000;
            color: #aaa;
        }

        .apple-btn {
            width: 100%;
            background: var(--modal-bg);
            border: none;
            padding: 12px;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 500;
            color: var(--text-primary);
            cursor: pointer;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        /* List Group for Custom View */
        .apple-section-title {
            font-size: 12px;
            color: var(--text-secondary);
            margin: 20px 0 8px 12px;
            text-transform: uppercase;
        }

        .apple-list-group {
            background: var(--modal-bg);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        }

        .apple-list-item {
            padding: 12px 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            border-bottom: 1px solid var(--border-secondary);
            font-size: 15px;
        }

        .apple-list-item:last-child {
            border-bottom: none;
        }

        .apple-list-item:hover {
            background: rgba(0, 0, 0, 0.02);
        }

        .apple-list-item-col {
            padding: 12px 16px;
            border-bottom: 1px solid var(--border-secondary);
        }

        .apple-list-item-col:last-child {
            border-bottom: none;
        }

        .row-label {
            font-size: 15px;
            margin-bottom: 8px;
            font-weight: 500;
        }

        .apple-segment {
            background: rgba(118, 118, 128, 0.12);
            padding: 2px;
            border-radius: 8px;
            display: flex;
            gap: 0;
            position: relative;
            /* For glider positioning */
        }

        /* The sliding background indicator */
        .segment-glider {
            position: absolute;
            top: 2px;
            left: 2px;
            height: calc(100% - 4px);
            background: #fff;
            border-radius: 6px;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
            transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
            z-index: 1;
            pointer-events: none;
            /* Let clicks pass through to buttons */
            width: 0;
            /* Set dynamically */
        }

        html.dark-mode .segment-glider {
            background: #636366;
        }

        .apple-segment .font-btn {
            border: none;
            background: none;
            border-radius: 6px;
            font-size: 13px;
            padding: 6px 0;
            color: var(--text-primary);
            box-shadow: none;
            flex: 1;
            position: relative;
            z-index: 2;
            /* Above glider */
            transition: color 0.2s;
        }

        .apple-segment .font-btn.active {
            background: transparent;
            /* Remove static background */
            box-shadow: none;
            color: #000;
            font-weight: 600;
        }

        html.dark-mode .apple-segment .font-btn.active {
            background: transparent;
            color: #fff;
        }

        .check-mark {
            color: var(--primary-color);
            font-weight: bold;
        }

        /* 翻页模式样式 */
        .reader-paged-mode {
            height: calc(100vh - 50px);
            width: 100vw;
            overflow-x: auto;
            overflow-y: hidden;
            column-width: calc(100vw - 80px);
            column-gap: 80px;
            column-fill: auto;
            padding: 40px;
            box-sizing: border-box;
        }

        .reader-paged-mode .reader-article {
            height: 100%;
            max-width: none !important;
            width: 100%;
            margin: 0;
        }

        .reader-paged-mode img {
            max-height: 100%;
            width: auto;
            max-width: 100%;
            object-fit: contain;
        }

        .reader-custom-input-group {
            margin-top: 10px;
            display: none;
        }

        .reader-range-input {
            width: 100%;
            accent-color: var(--primary-color);
        }

        .reader-text-input {
            width: 100%;
            padding: 8px;
            border: 1px solid var(--border-secondary);
            border-radius: 6px;
            background: var(--input-bg);
            color: var(--text-primary);
            box-sizing: border-box;
        }

        /* Apple Switch Toggle */
        .apple-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 30px;
        }

        .apple-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--border-primary);
            transition: .4s;
            border-radius: 34px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 26px;
            width: 26px;
            left: 2px;
            bottom: 2px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        input:checked+.slider {
            background-color: #34c759;
        }

        input:checked+.slider:before {
            transform: translateX(20px);
        }

        /* Apple Style Slider */
        .apple-slider-container {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 0;
        }

        .apple-slider-icon {
            width: 24px;
            text-align: center;
            font-size: 14px;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .apple-slider-wrapper {
            flex: 1;
            position: relative;
            height: 4px;
            background: var(--border-primary);
            border-radius: 2px;
        }

        .apple-slider-input {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 100%;
            background: transparent;
            position: absolute;
            top: 0;
            left: 0;
            margin: 0;
            cursor: pointer;
            z-index: 2;
        }

        .apple-slider-input::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            background: #fff;
            border-radius: 50%;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            margin-top: -8px;
            /* Center thumb */
            position: relative;
            z-index: 3;
        }

        .apple-slider-fill {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            background: var(--text-primary);
            border-radius: 2px;
            width: 0%;
            /* Dynamic */
            z-index: 1;
        }

        .apple-slider-value {
            width: 40px;
            text-align: right;
            font-size: 14px;
            color: var(--text-secondary);
            font-variant-numeric: tabular-nums;
        }

        .disabled-section {
            opacity: 0.5;
            pointer-events: none;
            transition: opacity 0.3s;
        }

        /* 隐藏滚动条 */
        .reader-paged-mode::-webkit-scrollbar {
            display: none;
        }

        @keyframes highlight-fade {
            0% {
                background-color: var(--primary-bg-light);
            }

            100% {
                background-color: transparent;
            }
        }

        .highlight-comment {
            animation: highlight-fade 2s ease-out;
        }
