/*
Theme Name: Desktop Theme
Theme URI: https://example.com/
Author: Developer
Author URI: https://example.com/
Description: A desktop-style WordPress theme with dock bar and window system
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: desktop, dock, windows, modern
Text Domain: desktop-theme

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

img {
    max-width: 100%;
    height: auto;
}

.poster-thumbnail {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 50px !important;
    object-fit: contain !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background: none !important;
    background-image: none !important;
    min-height: 100vh;
}

#desktop {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    background-repeat: repeat !important;
    background-position: top left !important;
}

#windows-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: #dadad2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    z-index: 9999;
    border-bottom: 2px solid #000;
}

#status-bar .left {
    display: flex;
    align-items: center;
    gap: 15px;
}

#status-bar .right {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #333;
    font-size: 12px;
}

#status-bar .right .icp-link,
#status-bar .right .icp-text {
    color: #333;
    font-size: 12px;
    text-decoration: none;
}

#status-bar .right .icp-link:hover {
    text-decoration: underline;
}

#status-bar .time {
    font-weight: 700;
}

#status-bar .status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    width: auto;
}

#status-bar .status-icon img {
    height: 20px;
    width: auto;
    max-width: 20px;
    object-fit: contain;
}

#status-bar .separator {
    width: 1px;
    height: 16px;
    background: #999;
}

#dock {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: #dadad2;
    border-radius: 20px;
    padding: 12px 20px;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    z-index: 9998;
    border: 2px solid #000;
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.dock-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}

.dock-item-icon {
    width: 60px;
    height: 60px;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dock-item-icon img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.dock-item.active {
    background: rgba(255,255,255,0.2);
}

.dock-item::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.2s ease;
}

.dock-item.active::before {
    background: transparent;
}

.window {
    position: absolute;
    background: #c0c0c0;
    border: 2px solid;
    border-top-color: #fff;
    border-left-color: #fff;
    border-right-color: #808080;
    border-bottom-color: #808080;
    min-width: 300px;
    min-height: 200px;
    z-index: 100;
    overflow: hidden;
    resize: both;
    box-shadow: 0 0 0 1px #404040;
}

.window.minimized {
    display: none;
}

.window.maximized {
    top: 28px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 100px !important;
    width: auto !important;
    height: auto !important;
}

.window-titlebar {
    background: linear-gradient(90deg, #000080, #1084d0);
    padding: 4px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.window-titlebar .title {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.window-controls {
    display: flex;
    gap: 2px;
}

.control-btn {
    width: 18px;
    height: 16px;
    background: #c0c0c0;
    border: 2px solid;
    border-top-color: #fff;
    border-left-color: #fff;
    border-right-color: #808080;
    border-bottom-color: #808080;
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.control-btn.has-icon {
    background: transparent;
    border: none;
    padding: 0;
}

.control-btn.has-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.control-btn:active {
    border-top-color: #808080;
    border-left-color: #808080;
    border-right-color: #fff;
    border-bottom-color: #fff;
}

.window-content {
    padding: 15px;
    height: calc(100% - 32px);
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    box-sizing: border-box;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

.content-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    box-sizing: border-box;
}

.content-item:hover {
    background: rgba(0,0,0,0.05);
}

.content-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    max-width: 100%;
}

.content-item.posts img {
    object-fit: contain;
}

.content-item span {
    font-size: 12px;
    color: #333;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.content-item.video img,
.content-item.audio img {
    filter: brightness(0.8);
}

.search-results .content-item.video::after {
    content: '\25B6';
    position: absolute;
    color: #fff;
    font-size: 20px;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #007aff;
    color: #fff;
}

.btn-primary:hover {
    background: #0066cc;
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.btn-danger {
    background: #ff5f56;
    color: #fff;
}

.btn-danger:hover {
    background: #e04a42;
}

.btn-group {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.media-viewer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media-viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.media-viewer video,
.media-viewer audio {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
}

/* 文章窗口样式 - Word文档风格 */
.article-window .window-content {
    background: #fff;
    padding: 0;
}

.article-viewer {
    width: 100%;
    height: 100%;
    background: #fff;
    overflow-y: auto;
    overflow-x: hidden;
}

.article-header {
    padding: 30px 40px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
}

.article-title {
    margin: 0 0 15px 0 !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    line-height: 1.4 !important;
    font-family: 'Microsoft YaHei', 'SimSun', sans-serif !important;
}

.article-meta {
    color: #666;
    font-size: 13px;
    margin: 0;
    padding: 8px 0;
    border-top: 1px solid #eee;
}

.article-content {
    padding: 30px 40px;
    max-width: 100%;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    font-family: 'Microsoft YaHei', 'SimSun', sans-serif;
}

.article-content p {
    margin: 0 0 16px 0;
    line-height: 1.8;
    text-align: justify;
    text-indent: 2em;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin: 24px 0 16px 0;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
}

.article-content h1 { font-size: 28px; }
.article-content h2 { font-size: 24px; }
.article-content h3 { font-size: 20px; }
.article-content h4 { font-size: 18px; }
.article-content h5 { font-size: 16px; }
.article-content h6 { font-size: 14px; }

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
    display: block;
}

.article-content ul,
.article-content ol {
    margin: 0 0 16px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.article-content blockquote {
    margin: 16px 0;
    padding: 12px 20px;
    background: #f5f5f5;
    border-left: 4px solid #0073aa;
    color: #555;
}

.article-content pre,
.article-content code {
    background: #f4f4f4;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.article-content pre {
    padding: 16px;
    overflow-x: auto;
    border-radius: 4px;
    margin: 16px 0;
}

.article-content code {
    padding: 2px 6px;
    border-radius: 3px;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.article-content table th,
.article-content table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.article-content table th {
    background: #f5f5f5;
    font-weight: 700;
}

.article-content a {
    color: #0073aa;
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 24px 0;
}

/* 海报窗口样式 */
.poster-window .window-content {
    background: #fff;
    padding: 20px;
    box-sizing: border-box;
}

.poster-category-viewer,
.poster-list-viewer {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

.poster-category-grid,
.poster-list-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px;
    box-sizing: border-box;
    width: 100%;
}

.poster-category-item {
    width: 170px;
    max-width: 100%;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-sizing: border-box;
}

.poster-category-item:hover {
    transform: scale(1.05);
}

.category-image-container {
    width: 100% !important;
    max-width: 150px;
    height: auto !important;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 8px;
    display: block !important;
    flex-shrink: 0;
    box-sizing: border-box;
}

.category-image {
    width: 100%;
    height: auto !important;
    object-fit: contain;
    border-radius: 4px;
    display: block;
    max-width: 100%;
}

.category-name {
    text-align: center;
    font-size: 14px;
    color: #333;
    padding: 4px;
}

.poster-item {
    width: 150px;
    max-width: 100%;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.poster-item:hover {
    transform: scale(1.05);
}

.poster-thumbnail-container {
    width: 100% !important;
    max-width: 150px;
    min-height: 50px !important;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 8px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.poster-thumbnail {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 50px !important;
    object-fit: contain !important;
    border-radius: 4px;
    display: block !important;
}

.poster-title {
    text-align: center;
    font-size: 14px;
    color: #333;
    padding: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 视频窗口样式 */
.video-list-window .window-content,
.video-category-window .window-content {
    background: #fff;
    padding: 20px;
    box-sizing: border-box;
}

.video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px;
    box-sizing: border-box;
    width: 100%;
}

.video-item {
    width: 300px;
    max-width: 100%;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.video-item:hover {
    transform: scale(1.02);
}

.video-item::before,
.video-item::after {
    display: none !important;
    content: none !important;
}

.video-thumbnail-container {
    width: 100%;
    max-width: 300px;
    position: relative;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 8px;
    box-sizing: border-box;
}

.video-thumbnail {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 4px;
    max-width: 100%;
}

.video-category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px;
    box-sizing: border-box;
    width: 100%;
}

.video-category-item {
    width: 300px;
    max-width: 100%;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.video-category-item:hover {
    transform: scale(1.02);
}

.video-category-container {
    width: 300px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 8px;
    box-sizing: border-box;
}

.video-category-thumbnail {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 4px;
}

.video-category-title {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    color: #333;
}

.no-categories,
.no-videos {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
    width: 100%;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(200,200,200,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.video-play-icon::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}

.video-title {
    text-align: center;
    font-size: 14px;
    color: #333;
    padding: 8px 4px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-detail-window .window-content {
    background: #000;
    padding: 0;
    height: calc(100% - 32px);
    display: flex;
    flex-direction: column;
}

.video-detail-viewer {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-embed-container {
    flex: 1;
    min-height: 0;
}

.video-embed-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
}

.video-thumbnail-full {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.video-thumbnail-full img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.video-description {
    padding: 20px;
    background: #fff;
    max-height: 200px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

/* 海报详情窗口样式 */
.poster-detail-window .window-content {
    background: #fff;
    padding: 0;
}

.poster-detail-viewer {
    width: 100%;
    height: 100%;
    display: flex;
}

.poster-detail-left {
    width: 55%;
    height: 100%;
    padding: 20px;
    border-right: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.poster-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.poster-detail-right {
    width: 45%;
    height: 100%;
    padding: 30px;
    overflow-y: auto;
}

.poster-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.poster-detail-divider {
    height: 1px;
    background: #e0e0e0;
    margin-bottom: 20px;
}

.poster-detail-description {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
}

/* 旧的样式 - 保留兼容 */
.article-viewer h1 {
    margin-bottom: 15px;
    color: #333;
    font-weight: 700;
}

.article-viewer .meta {
    color: #888;
    font-size: 12px;
    margin-bottom: 20px;
}

.article-viewer .content {
    line-height: 1.8;
    color: #444;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.dock-item-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 10000;
}

.dock-item-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.75);
}

.dock-item:hover .dock-item-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.search-window {
    background: #fff !important;
    border: 1px solid #dfe1e5 !important;
}

.search-window .window-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: calc(100% - 32px);
    background: #fff;
}

.browser-header {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f1f3f4;
    border-bottom: 1px solid #dadce0;
    gap: 8px;
}

.nav-buttons {
    display: flex;
    gap: 4px;
}

.nav-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #5f6368;
    transition: background 0.2s ease;
}

.nav-btn:hover:not(:disabled) {
    background: rgba(0,0,0,0.08);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.address-bar {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #dadce0;
    border-radius: 18px;
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.address-bar:focus {
    border-color: #4285f4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 0 0 3px rgba(66,133,244,0.2);
}

.search-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.logo-container {
    margin-bottom: 30px;
}

.search-title {
    font-size: 80px;
    font-weight: 300;
    background: linear-gradient(90deg, #4285f4, #ea4335, #fbbc05, #34a853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-logo {
    max-height: 92px;
    width: auto;
}

.search-box-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 584px;
    margin-bottom: 20px;
}

.search-box {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    font-size: 16px;
    background: #f1f3f4;
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-box:hover {
    box-shadow: 0 1px 6px rgba(32,33,36,0.28);
    border-color: rgba(223,225,229,0);
}

.search-box:focus {
    box-shadow: 0 1px 6px rgba(32,33,36,0.28);
    border-color: rgba(223,225,229,0);
}

.search-btn {
    height: 48px;
    padding: 0 24px;
    margin-left: 8px;
    border: none;
    border-radius: 24px;
    background: #f1f3f4;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.search-btn:hover {
    background: #e8eaed;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.search-btn:active {
    background: #dadce0;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.search-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #f1f3f4;
    border-radius: 16px;
    font-size: 14px;
    color: #3c4043;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.search-tag:hover {
    background: #e8eaed;
    color: #202124;
}

.search-results {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px;
    overflow-y: auto;
}

.results-header {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.results-list {
    flex: 1;
}

.category-section {
    margin-bottom: 24px;
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.category-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.search-result-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: center;
}

.search-result-item:hover {
    background: #f1f3f4;
}

.thumbnail-container {
    width: 110px;
    height: 110px;
    padding: 8px;
    margin-bottom: 8px;
}

.result-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.result-info {
    width: 100%;
}

.result-title {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin: 0;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-item:hover .result-title {
    color: #1a73e8;
    text-decoration: underline;
}

.no-results {
    text-align: center;
    color: #5f6368;
    font-size: 14px;
    padding: 40px;
}

.splash-window {
    resize: both;
}

.splash-window .window-content {
    padding: 15px;
    background: #fff;
    overflow: auto;
}

.splash-content-text {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.splash-message-text {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    line-height: 1.6;
    color: #000;
}

.splash-content-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.splash-content-video iframe {
    width: 100%;
    height: 350px;
}

/* 窗口详情样式 */
.custom-window-detail .window-content {
    background: #fff;
    padding: 0;
}

.custom-window-detail-viewer {
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.custom-window-content {
    padding: 30px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.custom-window-content p {
    margin: 0 0 16px 0;
    text-indent: 2em;
}

.custom-window-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px 0;
}

.custom-window-content h1,
.custom-window-content h2,
.custom-window-content h3,
.custom-window-content h4,
.custom-window-content h5,
.custom-window-content h6 {
    margin: 24px 0 16px 0;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
}

/* 图集分类窗口样式 */
.gallery-category .window-content {
    background: #fff;
    padding: 20px;
}

.gallery-category-viewer {
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.gallery-category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px;
    box-sizing: border-box;
    width: 100%;
}

.gallery-category-item {
    width: 150px;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.gallery-category-item:hover {
    transform: scale(1.05);
}

.gallery-category-thumbnail-container {
    width: 150px;
    height: 150px;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.gallery-category-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.gallery-category-name {
    text-align: center;
    font-size: 14px;
    color: #333;
    padding: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.no-gallery-categories {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
    width: 100%;
}

/* 图集列表窗口样式 */
.gallery-list .window-content {
    background: #fff;
    padding: 20px;
}

.gallery-list-viewer {
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.gallery-list-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px;
    box-sizing: border-box;
    width: 100%;
}

.gallery-item {
    width: 150px;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-thumbnail-container {
    width: 150px;
    min-height: 150px;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.gallery-thumbnail {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 4px;
}

.gallery-title {
    text-align: center;
    font-size: 14px;
    color: #333;
    padding: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.no-galleries {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
    width: 100%;
}

/* 图集详情窗口样式 */
.gallery-detail .window-content {
    background: #fff;
    padding: 0;
    overflow: hidden;
}

.gallery-detail-viewer {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-cover {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.gallery-prev-btn,
.gallery-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.gallery-prev-btn:hover,
.gallery-next-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-prev-btn {
    left: 15px;
}

.gallery-next-btn {
    right: 15px;
}

.gallery-info {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.gallery-info h2 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.gallery-description-short {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0 10px 0;
}

.gallery-read-more-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #555;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.gallery-read-more-btn:hover {
    background: #333;
}

.gallery-description-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.gallery-description-full {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gallery-close-overlay-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.gallery-close-overlay-btn:hover {
    background: #000;
}

.gallery-description-content {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    text-align: left;
    padding-top: 20px;
}

.gallery-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    overflow-x: auto;
    background: #f9f9f9;
}

.gallery-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
    transform: scale(1.1);
    border: 2px solid #4a90e2;
}

.launchpad-window {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.launchpad-content {
    padding: 30px;
    overflow-y: auto;
    height: 100%;
}

.launchpad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 50px;
    padding: 30px;
}

.launchpad-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.launchpad-item:hover {
    transform: scale(1.1);
}

.launchpad-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.launchpad-label {
    margin-top: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-align: center;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.launchpad-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #999;
    font-size: 16px;
}

.custom-window-auto-height {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100px;
}

.custom-window-auto-height .window-content {
    overflow-y: auto;
    flex: 1;
}

.custom-window-detail-viewer {
        padding: 20px;
    }
    
    /* 加载页样式 */
    #dt-loader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 999999;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: #ffffff;
        transition: opacity 0.5s ease, visibility 0.5s ease;
    }
    
    #dt-loader.hidden {
        opacity: 0;
        visibility: hidden;
    }
    
    #dt-loader .loader-icon {
        max-width: 300px;
        max-height: 300px;
        margin-bottom: 30px;
        object-fit: contain;
    }
    
    #dt-loader .loader-progress-container {
        width: 450px;
        height: 30px;
        background-color: #e0e0e0;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: inset 0 3px 6px rgba(0,0,0,0.1);
    }
    
    #dt-loader .loader-progress-bar {
        height: 100%;
        background-color: #000000;
        border-radius: 30px;
        width: 0%;
        transition: width 0.1s ease;
    }
    
    /* 右键菜单样式 - Win98 风格 */
    .context-menu {
        position: fixed;
        background: #c0c0c0;
        border: 2px solid;
        border-top-color: #fff;
        border-left-color: #fff;
        border-right-color: #808080;
        border-bottom-color: #808080;
        box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
        z-index: 99999;
        min-width: 180px;
        padding: 2px;
        display: none;
    }
    
    .context-menu-item {
        padding: 6px 24px;
        cursor: pointer;
        font-family: 'Microsoft Sans Serif', 'Segoe UI', sans-serif;
        font-size: 13px;
        color: #000;
        position: relative;
    }
    
    .context-menu-item:hover {
        background: #000080;
        color: #fff;
    }
    
    .context-menu-item.disabled {
        color: #808080;
        cursor: not-allowed;
    }
    
    .context-menu-item.disabled:hover {
        background: transparent;
        color: #808080;
    }
    
    .context-menu-separator {
        height: 1px;
        background: #808080;
        margin: 2px 4px;
        border-top: 1px solid #fff;
    }
    
    /* 黑胶唱片机样式 */
    .vinyl-player-viewer {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .vinyl-player-desktop {
        display: flex;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #8b4513 0%, #a0522d 50%, #8b4513 100%);
        padding: 20px;
        border-radius: 10px;
        box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
    }
    
    .vinyl-player-left {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-right: 20px;
    }
    
    .vinyl-player-right {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 350px;
    }
    
    .vinyl-record-player {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 25px;
    }
    
    .turntable-base {
        width: 400px;
        height: 400px;
        background: linear-gradient(145deg, #c0c0c0 0%, #a0a0a0 30%, #808080 70%, #606060 100%);
        border-radius: 30px;
        padding: 15px;
        position: relative;
        box-shadow: 
            0 15px 40px rgba(0,0,0,0.4),
            inset 0 2px 0 rgba(255,255,255,0.4),
            inset 0 -2px 0 rgba(0,0,0,0.2);
        border: 3px solid #999;
    }
    
    .turntable-inner {
        width: 100%;
        height: 100%;
        background: linear-gradient(145deg, #4a4a4a 0%, #2a2a2a 100%);
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
    }
    
    .turntable-platter {
        width: 320px;
        height: 320px;
        background: radial-gradient(circle, #2a2a2a 0%, #1a1a1a 50%, #0a0a0a 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 
            0 5px 20px rgba(0,0,0,0.6),
            inset 0 0 50px rgba(0,0,0,0.8);
        position: relative;
    }
    
    .vinyl-record {
        width: 300px;
        height: 300px;
        background: radial-gradient(circle at center, #333 0%, #1a1a1a 30%, #000 100%);
        border-radius: 50%;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 
            0 5px 15px rgba(0,0,0,0.5),
            inset 0 0 20px rgba(255,0,0,0.1);
    }
    
    .vinyl-record::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: repeating-radial-gradient(
            circle at center,
            transparent 0px,
            transparent 3px,
            rgba(255,255,255,0.03) 4px,
            transparent 5px
        );
        pointer-events: none;
    }
    
    .vinyl-record.spinning {
        animation: spin 1.8s linear infinite;
    }
    
    @keyframes spin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }
    
    .vinyl-label {
        width: 110px;
        height: 110px;
        background: radial-gradient(circle, #e74c3c 0%, #c0392b 50%, #900 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1;
        box-shadow: 
            0 2px 10px rgba(0,0,0,0.4),
            inset 0 0 20px rgba(255,255,255,0.2);
        border: 3px solid #a02820;
    }
    
    .vinyl-cover {
        width: 85px;
        height: 85px;
        border-radius: 50%;
        background-size: cover;
        background-position: center;
        background-color: #333;
        box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
    }
    
    .tonearm {
        position: absolute;
        top: 30px;
        right: 30px;
        width: 80px;
        height: 200px;
        cursor: pointer;
        z-index: 10;
        transition: transform 0.5s ease;
        transform: rotate(35deg);
        transform-origin: bottom center;
    }
    
    .tonearm.playing {
        transform: rotate(10deg);
    }
    
    .tonearm-base {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 40px;
        background: radial-gradient(circle, #e0e0e0 0%, #a0a0a0 70%, #707070 100%);
        border-radius: 50%;
        box-shadow: 
            0 4px 15px rgba(0,0,0,0.4),
            inset 0 2px 5px rgba(255,255,255,0.5);
    }
    
    .tonearm-arm {
        position: absolute;
        bottom: 35px;
        left: 50%;
        transform: translateX(-50%);
        width: 12px;
        height: 160px;
        background: linear-gradient(90deg, #d0d0d0 0%, #a0a0a0 50%, #808080 100%);
        border-radius: 6px;
        box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    }
    
    .tonearm-head {
        position: absolute;
        top: -8px;
        left: 50%;
        transform: translateX(-50%) rotate(-10deg);
        width: 18px;
        height: 30px;
        background: linear-gradient(145deg, #e0e0e0 0%, #a0a0a0 100%);
        border-radius: 4px 4px 2px 2px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    }
    
    .tonearm-head::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 10px;
        background: #222;
        border-radius: 1px;
    }
    
    .tonearm-counterweight {
        position: absolute;
        bottom: 45px;
        right: 0px;
        width: 28px;
        height: 28px;
        background: radial-gradient(circle, #e0e0e0 0%, #707070 100%);
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    
    .volume-control {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }
    
    .volume-slider {
        width: 50px;
        height: 200px;
        background: linear-gradient(145deg, #404040 0%, #202020 100%);
        border-radius: 8px;
        position: relative;
        box-shadow: 
            inset 0 0 10px rgba(0,0,0,0.5),
            0 2px 8px rgba(0,0,0,0.3);
        border: 2px solid #555;
    }
    
    .volume-track {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 10px;
        bottom: 10px;
        width: 8px;
        background: linear-gradient(180deg, #1a1a1a 0%, #333 100%);
        border-radius: 4px;
        box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
    }
    
    .volume-handle {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 30px;
        background: radial-gradient(circle, #e0e0e0 0%, #a0a0a0 70%, #707070 100%);
        border-radius: 50%;
        box-shadow: 
            0 3px 10px rgba(0,0,0,0.4),
            inset 0 2px 3px rgba(255,255,255,0.5);
        cursor: grab;
        border: 2px solid #888;
        top: 50px;
        z-index: 5;
    }
    
    .volume-handle:active {
        cursor: grabbing;
    }
    
    .volume-handle::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 10px;
        height: 2px;
        background: #666;
    }
    
    .volume-label {
        color: #ccc;
        font-size: 11px;
        font-weight: bold;
        text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    }
    
    .vinyl-rack {
        width: 100%;
        flex: 1;
        background: repeating-linear-gradient(
            90deg,
            #8B4513 0px,
            #A0522D 5px,
            #8B4513 10px,
            #A0522D 15px
        ),
        linear-gradient(145deg, #5d4037 0%, #3e2723 100%);
        border-radius: 15px;
        padding: 20px;
        overflow-y: auto;
        cursor: pointer;
        box-shadow: inset 0 0 20px rgba(0,0,0,0.5), 
                    inset 0 0 10px rgba(139, 69, 19, 0.3);
        border: 3px solid #5d4037;
    }
    
    .vinyl-rack-title {
        color: #d7ccc8;
        font-size: 16px;
        font-weight: bold;
        text-align: center;
        margin-bottom: 15px;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }
    
    .vinyl-rack-content {
        height: calc(100% - 50px);
        overflow-y: auto;
    }
    
    .vinyl-category-grid,
    .vinyl-list-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .vinyl-category-item {
        padding: 10px;
        cursor: pointer;
        transition: transform 0.2s, box-shadow 0.2s;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .vinyl-item {
        cursor: pointer;
        transition: transform 0.2s, box-shadow 0.2s;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    
    .vinyl-category-item:hover,
    .vinyl-item:hover {
        transform: translateY(-5px);
    }
    
    .vinyl-category-image {
        width: 70px;
        height: 70px;
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 8px;
    }
    
    .vinyl-thumbnail {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        overflow: hidden;
        margin-bottom: 8px;
        background: radial-gradient(circle, #333 0%, #000 100%);
        box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    }
    
    .vinyl-category-image img,
    .vinyl-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .vinyl-category-name,
    .vinyl-item-title {
        color: #d7ccc8;
        font-size: 14px;
        font-weight: bold;
        text-align: center;
        text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    }
    
    .back-to-categories-btn {
        display: block;
        width: 100%;
        padding: 10px 15px;
        background: linear-gradient(145deg, #5d4037 0%, #3e2723 100%);
        border: none;
        border-radius: 8px;
        color: #d7ccc8;
        font-size: 14px;
        font-weight: bold;
        cursor: pointer;
        margin-bottom: 15px;
        text-align: center;
        transition: background 0.2s, transform 0.2s;
        box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    }
    
    .back-to-categories-btn:hover {
        background: linear-gradient(145deg, #6d4c41 0%, #4e342e 100%);
        transform: translateY(-2px);
    }
    
    .no-vinyl-categories,
    .no-vinyls {
        color: #a1887f;
        text-align: center;
        padding: 40px;
        font-size: 16px;
    }

/* Personalization Settings */
.personalization-window {
    background: #c0c0c0;
}

.personalization-window .window-content {
    padding: 10px;
    min-height: 380px;
    overflow-y: auto;
}

.personalization-section {
    margin-bottom: 12px;
}

.section-title {
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
    padding: 3px;
    background: #e0e0e0;
    border: 1px solid #808080;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.color-picker {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 2px solid #808080;
    cursor: pointer;
    transition: all 0.15s ease;
}

.color-picker:hover {
    transform: scale(1.05);
    border-color: #000;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.image-picker {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 2px solid #808080;
    cursor: pointer;
    background-size: cover;
    background-position: center;
}

.image-picker:hover {
    transform: scale(1.05);
    border-color: #000;
}

.row-controls {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.control-item {
    flex: 1;
    text-align: center;
}

.control-label {
    font-size: 11px;
    font-weight: bold;
    color: #000;
    margin-bottom: 6px;
    display: block;
}

.row-section {
    display: flex;
    gap: 10px;
}

.half-section {
    flex: 1;
}

.slider-with-value {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.slider-with-value input[type="range"] {
    flex: 1;
}

.toggle-switch-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

.toggle-track {
    position: relative;
    width: 100%;
    height: 24px;
    background: #fff;
    border: 2px solid #808080;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-track::before {
    content: '关';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #000;
}

.toggle-track::after {
    content: '开';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #808080;
}

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(50% - 4px);
    height: calc(100% - 4px);
    background: #808080;
    border: 2px solid #666;
    transition: all 0.3s;
}

.toggle-track.on {
    background: #fff;
}

.toggle-track.on .toggle-thumb {
    left: calc(50%);
    background: #808080;
    border-color: #666;
}

.personalization-window input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 24px;
    background: #c0c0c0;
    border: 2px solid #808080;
    cursor: pointer;
    padding: 0;
}

.personalization-window input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #808080;
    cursor: pointer;
    margin-top: 2.5px;
}

.personalization-window input[type="range"]::-webkit-slider-runnable-track {
    height: 24px;
}

.personalization-window input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #808080;
    cursor: pointer;
}

.personalization-window input[type="range"]::-moz-range-track {
    height: 24px;
    background: #c0c0c0;
}

.slider-value {
    position: absolute;
    right: 8px;
    font-size: 11px;
    color: #fff;
    white-space: nowrap;
    pointer-events: none;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
}

.reset-section {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #808080;
}

.reset-btn-wrapper {
    width: 100%;
}

.reset-btn {
    width: 100%;
    padding: 6px 0;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    font-size: 11px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
}

.reset-btn:hover {
    background: #d0d0d0;
}

.reset-btn:active {
    border-color: #808080 #ffffff #ffffff #808080;
}