:root,
[data-theme="red"] {
    --theme-primary: #ff6b6b;
    --theme-primary-light: #ff8e53;
    --theme-primary-gradient: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    --theme-primary-hover: #ff5252;
    --theme-secondary-gradient: linear-gradient(135deg, #ff8e53 0%, #ffa940 100%);
    --theme-tertiary-gradient: linear-gradient(135deg, #ffa940 0%, #ffc53d 100%);
    --theme-background: #f5f5f5;
    --theme-surface: #ffffff;
    --theme-card: #fff8f0;
    --theme-card-gradient: linear-gradient(135deg, #fff8f0 0%, #fff0f0 100%);
    --theme-text: #333333;
    --theme-text-secondary: #666666;
    --theme-border: #f0f0f0;
}

[data-theme="blue"] {
    --theme-primary: #4a90e2;
    --theme-primary-light: #5fa3f0;
    --theme-primary-gradient: linear-gradient(135deg, #4a90e2 0%, #5fa3f0 100%);
    --theme-primary-hover: #3a7bc8;
    --theme-secondary-gradient: linear-gradient(135deg, #5fa3f0 0%, #7eb8f7 100%);
    --theme-tertiary-gradient: linear-gradient(135deg, #7eb8f7 0%, #9dcdff 100%);
    --theme-background: #f0f4f8;
    --theme-surface: #ffffff;
    --theme-card: #f0f8ff;
    --theme-card-gradient: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
    --theme-text: #2c3e50;
    --theme-text-secondary: #5a6c7d;
    --theme-border: #e1e8ed;
}

[data-theme="green"] {
    --theme-primary: #27ae60;
    --theme-primary-light: #2ecc71;
    --theme-primary-gradient: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    --theme-primary-hover: #229954;
    --theme-secondary-gradient: linear-gradient(135deg, #2ecc71 0%, #58d68d 100%);
    --theme-tertiary-gradient: linear-gradient(135deg, #58d68d 0%, #82e0aa 100%);
    --theme-background: #f0f7f4;
    --theme-surface: #ffffff;
    --theme-card: #f0faf4;
    --theme-card-gradient: linear-gradient(135deg, #f0faf4 0%, #e6f5eb 100%);
    --theme-text: #1e3a2f;
    --theme-text-secondary: #4a6356;
    --theme-border: #d4e6dc;
}

[data-theme="dark"] {
    --theme-primary: #6366f1;
    --theme-primary-light: #8b5cf6;
    --theme-primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --theme-primary-hover: #4f46e5;
    --theme-secondary-gradient: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    --theme-tertiary-gradient: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
    --theme-background: #0f0f1a;
    --theme-surface: #1a1a2e;
    --theme-card: #252538;
    --theme-card-gradient: linear-gradient(135deg, #252538 0%, #1e1e32 100%);
    --theme-text: #f0f0f5;
    --theme-text-secondary: #a0a0b0;
    --theme-border: #3a3a4a;
    --theme-text-muted: #808090;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--theme-background) !important;
    color: var(--theme-text);
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[v-cloak] {
    display: none !important;
}

/* Top Navigation */
.top-nav {
    background: transparent !important;
    padding: 12px 16px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.top-nav .top-nav-box {
    width: 1048px !important;
    max-width: calc(100% - 32px) !important;
    margin: 0 auto !important;
    padding: 6px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: var(--theme-surface) !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
    transition: background-color 0.3s ease !important;
}

.top-nav .top-nav-logo {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
}

.top-nav .top-nav-logo .logo-img,
.top-nav .top-nav-logo .logo-placeholder {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
}

.top-nav .top-nav-logo .logo-placeholder {
    background: var(--theme-primary-gradient) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-weight: bold !important;
    font-size: 14px !important;
}

.top-nav .top-nav-logo .logo-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 0px !important;
}

.top-nav .top-nav-logo .logo-title-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.top-nav .top-nav-logo .logo-name {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--theme-text) !important;
}

.top-nav .top-nav-logo .logo-version {
    font-size: 10px !important;
    color: var(--theme-primary) !important;
    background: rgba(74, 144, 226, 0.1) !important;
    padding: 1px 6px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
}

.top-nav .top-nav-logo .logo-subtitle {
    font-size: 11px !important;
    color: var(--theme-text-secondary) !important;
    white-space: normal;
    line-height: 1.4;
}

.top-nav .top-nav-menu {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.top-nav .nav-menu-item {
    padding: 6px 14px !important;
    font-size: 13px !important;
    color: var(--theme-text-secondary) !important;
    cursor: pointer !important;
    border-radius: 16px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.top-nav .nav-menu-item:hover,
.top-nav .nav-menu-item.active {
    color: var(--theme-primary) !important;
    background: rgba(74, 144, 226, 0.1) !important;
}

.top-nav .top-nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.top-nav .theme-switcher {
    position: relative;
    z-index: 1001;
}

.top-nav .theme-switcher-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--theme-surface);
    color: var(--theme-text-secondary);
    border: 1px solid var(--theme-border);
    font-size: 14px;
}

.top-nav .theme-switcher-btn:hover {
    background: var(--theme-background);
    color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.top-nav .theme-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--theme-surface);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 140px;
    z-index: 9999;
    border: 1px solid var(--theme-border);
    transition: background-color 0.3s ease;
}

.top-nav .theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--theme-text);
}

.top-nav .theme-option:hover {
    background: var(--theme-background);
}

.top-nav .theme-option.active {
    background: var(--theme-primary-gradient);
    color: #fff;
}

.top-nav .mobile-menu-btn {
    display: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--theme-background);
    align-items: center;
    justify-content: center;
    color: var(--theme-text);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.top-nav .mobile-menu-btn:hover {
    background: var(--theme-card);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.mobile-menu {
    position: fixed;
    top: 60px;
    right: 16px;
    background: var(--theme-surface);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 160px;
    z-index: 10001;
    border: 1px solid var(--theme-border);
}

.mobile-menu-item {
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-item a {
    color: var(--theme-text);
    text-decoration: none;
    font-size: 14px;
}

.mobile-menu-item:hover {
    background: var(--theme-background);
}

.mobile-menu-item.active {
    background: var(--theme-primary-gradient);
}

.mobile-menu-item.active a {
    color: #fff;
}

.top-nav .theme-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.top-nav .theme-name {
    font-size: 13px;
    white-space: nowrap;
}

/* Home Container */
.home-container {
    width: 1080px;
    margin: 0 auto;
    padding: 16px 16px 24px;
}

.home-main {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

/* Search Section */
.search-section {
    flex: 1;
    background: var(--theme-surface);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.search-header {
    margin-bottom: 16px;
}

.search-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-title .highlight {
    background: var(--theme-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: 1px;
}

.search-subtitle {
    font-size: 13px;
    color: var(--theme-text-secondary);
    line-height: 1.6;
}

.search-box-wrapper {
    position: relative;
    margin-bottom: 8px;
}

.search-input-box {
    display: flex;
    align-items: center;
    background: var(--theme-background);
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
}

.search-input-box:focus-within {
    border-color: var(--theme-primary);
    background: var(--theme-surface);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.search-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-text-secondary);
    font-size: 18px;
}

.search-input-box input {
    flex: 1;
    height: 44px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--theme-text);
    outline: none;
}

.search-input-box input::placeholder {
    color: var(--theme-text-secondary);
}



.search-btn {
    height: 38px;
    padding: 0 20px;
    margin: 3px;
    background: var(--theme-primary-gradient);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.35);
}

/* Hot Keywords */
.hot-keywords {
    margin-top: 8px;
    margin-bottom: 2px;
}

.hot-keywords-label {
    font-size: 12px;
    color: var(--theme-text-secondary);
    margin-bottom: 8px;
}

.hot-keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hot-keyword {
    padding: 5px 12px;
    background: var(--theme-background);
    border-radius: 16px;
    font-size: 12px;
    color: var(--theme-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.hot-keyword:hover {
    background: rgba(74, 144, 226, 0.1);
    color: var(--theme-primary);
    border-color: rgba(74, 144, 226, 0.3);
}

/* TMDB Info */
.tmdb-info {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    background: var(--theme-background);
    border-radius: 6px;
    max-width: 100%;
    box-sizing: border-box;
}

.tmdb-poster {
    flex-shrink: 0;
    width: 60px;
    height: 90px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--theme-border);
}

.tmdb-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmdb-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.tmdb-title {
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tmdb-title-cn {
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-text);
}

.tmdb-title-en {
    font-size: 11px;
    color: var(--theme-text-secondary);
    margin-left: 4px;
}

.tmdb-year {
    font-size: 11px;
    color: var(--theme-primary);
    margin-bottom: 4px;
}

.tmdb-overview {
    font-size: 11px;
    color: var(--theme-text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Info Section */
.info-section {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-card {
    background: var(--theme-surface);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.info-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.info-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-text);
}

.info-card-more {
    font-size: 11px;
    color: var(--theme-text-secondary);
    cursor: pointer;
}

.tutorial-card {
    background: var(--theme-background);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.tutorial-card:hover {
    transform: translateX(4px);
}

.tutorial-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--theme-primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.tutorial-content {
    flex: 1;
    min-width: 0;
}

.tutorial-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-text);
    display: block;
    margin-bottom: 4px;
}

.tutorial-desc {
    font-size: 12px;
    color: var(--theme-text-secondary);
    display: block;
}

.tutorial-arrow {
    color: var(--theme-text-secondary);
    font-size: 14px;
    flex-shrink: 0;
}

/* Resource Missing */
.resource-missing {
    background: var(--theme-background);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.resource-missing-icon {
    width: 120px;
    height: 20px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto 0;
    color: var(--theme-primary);
    position: relative;
}

.resource-missing-icon svg {
    width: 80px;
    height: 24px;
    color: var(--theme-primary);
}

.resource-missing-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: 4px;
}

.resource-missing-desc {
    font-size: 11px;
    color: var(--theme-text-secondary);
    margin-bottom: 12px;
}

.resource-missing-btns {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.resource-btn {
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.resource-btn-primary {
    background: var(--theme-primary-gradient);
    color: #fff;
}

.resource-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
}

/* Search Results */
.search-result-section {
    margin-top: 16px;
    display: none;
}

.search-result-section.show {
    display: block;
}

.search-result-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    gap: 10px;
}

.search-result-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    color: var(--theme-text);
}

.search-result-title-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-result-title-icon {
    color: var(--theme-primary);
}

.search-result-count {
    font-size: 12px;
    color: var(--theme-text-secondary);
}

.search-result-close {
    cursor: pointer;
    color: var(--theme-text-secondary);
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.search-result-close:hover {
    background: var(--theme-background);
    color: var(--theme-text);
}

.search-result-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.pan-type-tabs {
    display: flex;
    gap: 4px;
    background: var(--theme-surface);
    padding: 3px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pan-type-tab {
    padding: 3px 10px;
    font-size: 12px;
    color: var(--theme-text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    user-select: none;
}

.pan-type-tab:hover {
    color: var(--theme-primary);
}

.pan-type-tab.active {
    background: var(--theme-primary);
    color: #fff;
    font-weight: 600;
}

.pan-type-label {
    color: var(--theme-text-secondary);
    font-size: 12px;
    margin-right: 8px;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
}

.search-result-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--theme-surface);
    border-radius: 12px;
    border: 1px solid var(--theme-border);
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    border-color: var(--theme-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.search-result-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    flex-shrink: 0;
    background: var(--theme-background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.search-result-icon i.pan-baidu {
    color: #2664df;
}

.search-result-icon i.pan-quark {
    color: #19c25c;
}

.search-result-icon i.pan-uc {
    color: #2196f3;
}

.search-result-icon i.pan-xunlei {
    color: #ff6b35;
}

.search-result-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-result-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--theme-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-original-title {
    font-size: 12px;
    font-weight: 400;
    color: var(--theme-text-secondary);
}

.search-result-desc {
    font-size: 13px;
    color: var(--theme-text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.search-result-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 9px;
    border-radius: 14px;
    font-size: 11px;
    white-space: nowrap;
}

.search-result-tag.type {
    background: var(--theme-primary);
    color: #fff;
}

.search-result-tag.source {
    background: var(--theme-background);
    color: var(--theme-text-secondary);
    border: 1px solid var(--theme-border);
}



.search-result-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.search-result-btn {
    padding: 5px 16px;
    border-radius: 18px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 70px;
}

.search-result-btn.get {
    background: var(--theme-primary-gradient);
    color: #fff;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.search-result-loading,
.search-result-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--theme-text-secondary);
    font-size: 14px;
}

.search-result-empty .empty-icon {
    font-size: 48px;
    color: var(--theme-primary);
    margin-bottom: 16px;
}

.search-result-empty h3 {
    color: var(--theme-text);
    font-size: 18px;
    margin-bottom: 8px;
}

.search-result-empty p {
    margin-bottom: 16px;
    color: var(--theme-text-secondary);
}

.empty-suggestions {
    margin-bottom: 16px;
}

.suggestions-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--theme-text);
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.suggestion-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--theme-primary);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.suggestion-btn:hover {
    opacity: 0.9;
}

.empty-tip {
    font-size: 12px;
    color: var(--theme-text-tertiary);
}

.search-result-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.search-result-loading i {
    animation: spin 1s linear infinite;
    font-size: 32px;
    color: var(--theme-primary);
}

.search-result-loading .loading-text {
    position: relative;
}

.search-result-loading .loading-text::after {
    content: '';
    animation: loadingDots 1.5s steps(4, end) infinite;
}

@keyframes loadingDots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.search-result-loading .loading-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-result-loading .loading-pulse {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--theme-primary-gradient);
    opacity: 0.3;
    animation: pulse 1.5s ease-in-out infinite;
    position: absolute;
}

.search-result-loading .loading-pulse:nth-child(2) {
    animation-delay: 0.5s;
}

.search-result-loading .loading-pulse:nth-child(3) {
    animation-delay: 1s;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.2; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

.search-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--theme-background);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.search-progress-fill {
    height: 100%;
    background: var(--theme-primary-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.search-progress-message {
    font-size: 12px;
    color: var(--theme-text-secondary);
    margin-top: 4px;
}

/* Ranking Section */
.ranking-section {
    margin-top: 16px;
}

.ranking-header {
    margin-bottom: 12px;
}

.ranking-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 4px;
}

.ranking-title-icon {
    color: var(--theme-primary);
}

.ranking-subtitle {
    font-size: 12px;
    color: var(--theme-text-secondary);
}

.tab-list {
    display: flex;
    gap: 4px;
    background: var(--theme-surface);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 8px;
    transition: background-color 0.3s ease;
}

.tab-item {
    padding: 4px 12px;
    font-size: 12px;
    color: var(--theme-text-secondary);
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
}

.tab-item.active {
    background: var(--theme-primary-gradient);
    color: #fff;
}

.tab-item:hover:not(.active) {
    background: var(--theme-background);
    color: var(--theme-text);
}

.tab-refresh {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #999;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.tab-refresh:hover {
    background: var(--theme-background);
    color: var(--theme-text);
}

.ranking-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ranking-card {
    background: var(--theme-surface);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.ranking-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--theme-border);
}

.ranking-card-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ranking-card-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.ranking-icon-hot {
    background: rgba(255, 107, 107, 0.1);
    color: var(--theme-primary);
}

.ranking-icon-new {
    background: rgba(255, 142, 83, 0.1);
    color: var(--theme-primary-light);
}

.ranking-icon-good {
    background: rgba(255, 169, 64, 0.1);
    color: #ffa940;
}

.ranking-card-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-text);
}

.ranking-card-date {
    font-size: 11px;
    color: var(--theme-text-secondary);
    margin-left: 8px;
}

.ranking-card-more {
    font-size: 11px;
    color: var(--theme-text-secondary);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ranking-card-more:hover {
    color: var(--theme-primary);
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.ranking-item:hover {
    background: var(--theme-background);
}

.ranking-rank {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--theme-text-secondary);
    background: var(--theme-background);
    flex-shrink: 0;
}

.ranking-rank.top1 {
    background: var(--theme-primary-gradient);
    color: #fff;
}

.ranking-rank.top2 {
    background: var(--theme-secondary-gradient);
    color: #fff;
}

.ranking-rank.top3 {
    background: var(--theme-tertiary-gradient);
    color: #fff;
}

.ranking-cover {
    width: 40px;
    height: 54px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--theme-border);
    flex-shrink: 0;
}

.ranking-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-cover-placeholder {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--theme-border);
    color: var(--theme-text-secondary);
    font-size: 18px;
}

.tmdb-poster-placeholder {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--theme-border);
    color: var(--theme-text-secondary);
    font-size: 24px;
}

.ranking-info {
    flex: 1;
    min-width: 0;
}

.ranking-item-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--theme-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 2px;
}

.ranking-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--theme-text-secondary);
}

.ranking-meta span {
    white-space: nowrap;
}

.ranking-score {
    margin-left: auto;
    font-size: 11px;
    color: var(--theme-text-secondary);
    flex-shrink: 0;
}

.ranking-item:hover .ranking-item-title {
    color: var(--theme-primary);
}

/* Footer */
.footer {
    background: var(--theme-surface);
    border-top: 1px solid var(--theme-border);
    color: var(--theme-text-secondary);
    padding: 32px 0;
    margin-top: 32px;
}

.footer-content {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
    text-align: center;
}

.footer-content p {
    font-size: 12px;
    margin-bottom: 6px;
    line-height: 1.5;
}

.footer-content p:last-child {
    margin-bottom: 0;
    opacity: 0.6;
}

.footer-content a {
    color: var(--theme-primary);
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* Resource Dialog */
.resource-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.resource-dialog {
    background: var(--theme-surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 480px;
}

.resource-dialog-header {
    padding: 16px 20px;
    margin: 0;
    border-bottom: 1px solid var(--theme-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resource-dialog-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--theme-text);
    margin: 0;
}

.resource-dialog-header span {
    font-size: 20px;
    cursor: pointer;
    color: var(--theme-text-secondary);
}

.resource-dialog-content {
    padding: 0;
}

.normal-content {
    text-align: center;
    padding: 24px;
}

.loading-content {
    text-align: center;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.error-content {
    text-align: center;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-icon {
    font-size: 48px;
    color: #e74c3c;
    margin-bottom: 16px;
}

.error-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--theme-text);
    margin-bottom: 8px;
}

.error-message {
    font-size: 14px;
    color: #e74c3c;
    margin-bottom: 8px;
}

.error-tip {
    font-size: 13px;
    color: var(--theme-text-secondary);
    margin-bottom: 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--theme-border);
    border-top-color: var(--theme-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-content p {
    font-size: 14px;
    color: var(--theme-text-secondary);
    margin: 0;
}

.success-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--theme-text);
    margin-bottom: 8px;
}

.resource-subtitle {
    font-size: 13px;
    color: var(--theme-text-secondary);
    margin-bottom: 16px;
    padding: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.url-box {
    background: var(--theme-background);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    text-align: left;
}

.url-label {
    font-size: 12px;
    color: var(--theme-text-secondary);
    margin-bottom: 4px;
}

.url-text {
    font-size: 13px;
    color: var(--theme-primary);
    word-break: break-all;
    line-height: 1.5;
}

.tip-text {
    font-size: 11px;
    color: var(--theme-text-secondary);
    margin-bottom: 20px;
}

.qr-section {
    text-align: center;
    padding: 20px 0;
}

.qr-code-box {
    display: inline-block;
    padding: 12px;
    background: var(--theme-surface);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

.qr-code-img {
    width: 180px;
    height: 180px;
    border-radius: 8px;
}

.qr-tip {
    font-size: 14px;
    color: var(--theme-text);
    font-weight: 600;
    margin-bottom: 6px;
}

.qr-subtip {
    font-size: 12px;
    color: var(--theme-text-secondary);
}

.mobile-link-section {
    padding: 10px 0;
}

.url-link {
    font-size: 13px;
    color: var(--theme-primary);
    word-break: break-all;
    line-height: 1.5;
    text-decoration: underline;
}

.url-link:hover {
    text-decoration: none;
}

.dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.dialog-actions .btn-primary {
    padding: 10px 24px;
    background: var(--theme-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dialog-actions .btn-primary:hover {
    background: var(--theme-primary);
    filter: brightness(1.1);
}

/* Tutorial Dialog */
.tutorial-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.tutorial-dialog {
    background: var(--theme-surface);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.tutorial-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--theme-border);
}

.tutorial-dialog-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--theme-text);
}

.tutorial-dialog-header span {
    cursor: pointer;
    color: var(--theme-text-secondary);
    font-size: 18px;
    line-height: 1;
}

.tutorial-dialog-content {
    padding: 24px;
}

.tutorial-image-box {
    text-align: center;
    margin-bottom: 16px;
}

.tutorial-image {
    max-width: 100%;
    max-height: 180px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: zoom-in;
    transition: all 0.3s ease;
    object-fit: contain;
}

.tutorial-image.zoomed {
    max-height: none;
    height: auto;
    cursor: zoom-out;
}

.image-zoom-hint {
    font-size: 11px;
    color: var(--theme-text-secondary);
    margin-top: 6px;
}

.tutorial-steps h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--theme-text);
    margin: 0 0 16px 0;
}

.tutorial-step {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--theme-border);
}

.tutorial-step:last-child {
    border-bottom: none;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--theme-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-text);
    display: block;
    margin-bottom: 4px;
}

.step-desc {
    font-size: 13px;
    color: var(--theme-text-secondary);
    display: block;
}

.step-links {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.step-links a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--theme-background);
    border-radius: 6px;
    font-size: 12px;
    color: var(--theme-text);
    text-decoration: none;
    transition: background 0.2s ease;
}

.step-links a:hover {
    background: var(--theme-primary);
    color: #fff;
}

.step-links a i {
    font-size: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
    .home-container {
        width: 100%;
        padding: 16px;
    }
    .home-main {
        flex-direction: column;
    }
    .info-section {
        width: 100%;
    }
    .ranking-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .top-nav .top-nav-box {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .search-section {
        padding: 16px;
    }
    .search-title {
        font-size: 18px;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .search-subtitle {
        font-size: 11px;
        line-height: 1.6;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .search-input-box input {
        height: 44px;
        font-size: 13px;
    }
    .search-btn {
        height: 38px;
        padding: 0 16px;
        font-size: 12px;
        margin: 3px;
    }
    .search-icon {
        width: 40px;
        height: 44px;
        font-size: 16px;
    }
    .hot-keyword {
        padding: 4px 10px;
        font-size: 11px;
    }
    .tmdb-title-cn {
        font-size: 12px;
    }
    .tmdb-title-en {
        font-size: 10px;
    }
    .tmdb-year {
        font-size: 10px;
    }
    .tmdb-overview {
        font-size: 10px;
    }
    .stats-grid {
        gap: 10px;
    }
    .stat-value {
        font-size: 16px;
    }
    .ranking-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .ranking-card {
        padding: 10px;
    }
    .ranking-card-header {
        padding-bottom: 8px;
        margin-bottom: 8px;
    }
    .ranking-card-icon {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
    .ranking-card-name {
        font-size: 13px;
    }
    .ranking-card-date {
        font-size: 10px;
    }
    .ranking-list {
        gap: 4px;
    }
    .ranking-item {
        padding: 4px;
        gap: 4px;
    }
    .ranking-rank {
        width: 16px;
        height: 16px;
        font-size: 10px;
        border-radius: 4px;
    }
    .ranking-cover {
        width: 28px;
        height: 38px;
        border-radius: 3px;
    }
    .ranking-info {
        min-width: 0;
    }
    .ranking-item-title {
        font-size: 10px;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
    .ranking-meta {
        font-size: 9px;
    }
    .top-nav .top-nav-menu {
        display: none !important;
    }
    .top-nav .top-nav-logo .logo-subtitle {
        display: none !important;
    }
    .top-nav .mobile-menu-btn {
        display: flex !important;
    }
    .tab-list {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 6px;
        gap: 3px;
    }
    .tab-item {
        padding: 3px 10px;
        font-size: 11px;
        border-radius: 10px;
        white-space: nowrap;
    }
    .tab-refresh {
        font-size: 10px;
    }
}

.top-nav .nav-menu-links {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.top-nav .nav-menu-links a {
    padding: 6px 14px !important;
    font-size: 13px !important;
    color: var(--theme-text-secondary) !important;
    cursor: pointer !important;
    border-radius: 16px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    background: transparent !important;
}

.top-nav .nav-menu-links a:hover {
    color: var(--theme-primary) !important;
    background: rgba(74, 144, 226, 0.1) !important;
}

.notification-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

.notification-toast.success {
    background: rgba(39, 174, 96, 0.95);
    color: #fff;
}

.notification-toast.error {
    background: rgba(231, 76, 60, 0.95);
    color: #fff;
}

.notification-toast.warning {
    background: rgba(241, 196, 15, 0.95);
    color: #fff;
}

.notification-toast.info {
    background: rgba(52, 152, 219, 0.95);
    color: #fff;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-toast i {
    font-size: 16px;
}

.qrcode-content {
    padding: 24px;
    text-align: center;
}

.qrcode-desc {
    text-align: center;
    color: var(--theme-text-secondary);
    font-size: 13px;
    margin-top: 16px;
    margin-bottom: 0;
}

.announcement-dialog {
    max-width: 520px;
}

.announcement-content {
    padding: 0;
}

.announcement-body {
    padding: 20px 24px;
    line-height: 1.8;
    font-size: 14px;
    color: var(--theme-text);
    white-space: pre-wrap;
}

.announcement-actions {
    padding: 16px 24px 24px;
    justify-content: center;
    gap: 12px;
}

.btn-outline {
    padding: 8px 24px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    border: 1px solid var(--theme-primary);
    color: var(--theme-primary);
    font-weight: 500;
}

.btn-outline:hover {
    background: var(--theme-primary);
    color: #fff;
}

.btn-secondary {
    padding: 8px 24px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--theme-background);
    border: 1px solid var(--theme-border);
    color: var(--theme-text-secondary);
}

.btn-secondary:hover {
    background: var(--theme-border);
}