        :root {
            --primary-color: #1890ff;
            --secondary-color: #40a9ff;
            --success-color: #52c41a;
            --warning-color: #faad14;
            --danger-color: #f5222d;
            --info-color: #13c2c2;
            --dark-color: #001529;
            --light-color: #f0f2f5;
            --border-color: #d9d9d9;
            --text-primary: #262626;
            --text-secondary: #8c8c8c;
            --bg-primary: #ffffff;
            --bg-secondary: #fafafa;
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
            --gradient-primary: linear-gradient(135deg, #1890ff, #40a9ff);
            --gradient-success: linear-gradient(135deg, #52c41a, #73d13d);
            --gradient-warning: linear-gradient(135deg, #faad14, #ffc53d);
            --gradient-danger: linear-gradient(135deg, #f5222d, #ff4d4f);
            --gradient-info: linear-gradient(135deg, #13c2c2, #36cfc9);
            --gold: #FFD700;
            --silver: #C0C0C0;
            --bronze: #CD7F32;
            --rank-1: #ff4d4f;
            --rank-2: #ff7a45;
            --rank-3: #ffa940;
            --rank-other: #8c8c8c;
        }

        /* 深色主题变量 */
        [data-theme="dark"] {
            --primary-color: #40a9ff;
            --secondary-color: #69c0ff;
            --light-color: #141414;
            --border-color: #303030;
            --text-primary: #ffffff;
            --text-secondary: #bfbfbf;
            --bg-primary: #000000;
            --bg-secondary: #1f1f1f;
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
            --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
        }

        * {
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background-color: var(--light-color);
            min-height: 100vh;
            color: var(--text-primary);
            transition: all 0.3s ease;
        }

       /* 顶部导航栏重构 */
        .navbar {
            background: var(--bg-primary);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--border-color);
            padding: 1rem 0;
            box-shadow: var(--shadow-sm);
            transition: all 0.3s ease;
        }

        .navbar-brand {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--primary-color) !important;
            display: flex;
            align-items: center;
            gap: 12px;
            letter-spacing: -0.5px;
        }

        .navbar-brand i {
            font-size: 2.25rem;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .navbar-nav .nav-link {
            color: var(--text-secondary) !important;
            font-weight: 500;
            padding: 0.5rem 1rem !important;
            margin: 0 0.25rem;
            border-radius: 8px;
            transition: all 0.3s ease;
            position: relative;
        }

        .navbar-nav .nav-link:hover {
            color: var(--primary-color) !important;
            background: rgba(24, 144, 255, 0.1);
        }

        .navbar-nav .nav-link.active {
            color: var(--primary-color) !important;
            background: rgba(24, 144, 255, 0.1);
        }

        .navbar-nav .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 30px;
            height: 3px;
            background: var(--primary-color);
            border-radius: 2px;
        }


        /* 日夜切换按钮 */
        .theme-toggle {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            margin-left: 1rem;
        }

        .theme-toggle:hover {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
            transform: scale(1.05);
        }

        /* 排行榜头部 */
        .ranking-header {
            background: var(--bg-primary);
            border-radius: 16px;
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border-color);
            position: relative;
            overflow: hidden;
        }

        .ranking-header::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 300px;
            height: 300px;
            background: var(--gradient-primary);
            opacity: 0.1;
            border-radius: 50%;
            transform: translate(100px, -150px);
        }

        .ranking-title {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
            position: relative;
            z-index: 1;
        }

        .ranking-subtitle {
            color: var(--text-secondary);
            font-size: 1.1rem;
            position: relative;
            z-index: 1;
        }

        /* 排行榜筛选区域 */
        .ranking-filters {
            background: var(--bg-primary);
            border-radius: 16px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border-color);
        }

        .filter-tabs {
            display: flex;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 1rem;
            overflow-x: auto;
            white-space: nowrap;
            scrollbar-width: thin;
            scrollbar-color: var(--primary-color) var(--bg-secondary);
        }

        .filter-tabs::-webkit-scrollbar {
            height: 6px;
        }

        .filter-tabs::-webkit-scrollbar-track {
            background: var(--bg-secondary);
            border-radius: 3px;
        }

        .filter-tabs::-webkit-scrollbar-thumb {
            background-color: var(--primary-color);
            border-radius: 3px;
        }

        .filter-tab {
            padding: 0.75rem 1.5rem;
            font-weight: 500;
            color: var(--text-secondary);
            border-bottom: 2px solid transparent;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }

        .filter-tab:hover {
            color: var(--primary-color);
        }

        .filter-tab.active {
            color: var(--primary-color);
            border-bottom-color: var(--primary-color);
        }

        .filter-options {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .filter-option {
            padding: 0.5rem 1rem;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .filter-option:hover {
            border-color: var(--primary-color);
            color: var(--primary-color);
            transform: translateY(-2px);
        }

        .filter-option.active {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        /* 排行榜列表 */
        .ranking-container {
            background: var(--bg-primary);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border-color);
            margin-bottom: 2rem;
        }

        .ranking-item {
            display: flex;
            align-items: center;
            padding: 1.25rem;
            border-bottom: 1px solid var(--border-color);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            cursor: pointer;
        }

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

        .ranking-item:hover {
            background: var(--bg-secondary);
        }

        .ranking-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 4px;
            background: var(--rank-other);
            transition: all 0.3s ease;
        }

        .ranking-item:nth-child(1)::before {
            background: var(--rank-1);
        }

        .ranking-item:nth-child(2)::before {
            background: var(--rank-2);
        }

        .ranking-item:nth-child(3)::before {
            background: var(--rank-3);
        }

        .ranking-item:hover::before {
            width: 6px;
        }

        .ranking-number {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.2rem;
            margin-right: 1rem;
            border-radius: 8px;
            flex-shrink: 0;
            color: var(--rank-other);
            position: relative;
        }

        .ranking-item:nth-child(1) .ranking-number {
            color: var(--rank-1);
        }

        .ranking-item:nth-child(2) .ranking-number {
            color: var(--rank-2);
        }

        .ranking-item:nth-child(3) .ranking-number {
            color: var(--rank-3);
        }

        .ranking-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            font-size: 1.5rem;
            flex-shrink: 0;
            transition: all 0.3s ease;
            overflow: hidden;
        }

        .ranking-item:hover .ranking-icon {
            transform: scale(1.1);
        }

        .ranking-content {
            flex: 1;
            min-width: 0;
        }

        .ranking-title {
            font-weight: 600;
            font-size: 1.1rem;
            color: var(--text-primary);
            margin-bottom: 0.25rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: color 0.3s ease;
        }

        .ranking-item:hover .ranking-title {
            color: var(--primary-color);
        }

        .ranking-desc {
            color: var(--text-secondary);
            font-size: 0.9rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .ranking-stats {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-left: 1rem;
            flex-shrink: 0;
        }

        .ranking-stat {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 0.5rem;
            background: var(--bg-secondary);
            border-radius: 8px;
            min-width: 70px;
            transition: all 0.3s ease;
        }

        .ranking-item:hover .ranking-stat {
            transform: translateY(-2px);
            box-shadow: var(--shadow-sm);
        }

        .stat-value {
            font-weight: 700;
            color: var(--primary-color);
            font-size: 1rem;
        }

        .stat-label {
            font-size: 0.75rem;
            color: var(--text-secondary);
        }

        .ranking-trend {
            display: flex;
            align-items: center;
            font-size: 0.9rem;
            font-weight: 600;
            margin-left: 1rem;
            flex-shrink: 0;
        }

        .trend-up {
            color: var(--success-color);
        }

        .trend-down {
            color: var(--danger-color);
        }

        .trend-equal {
            color: var(--text-secondary);
        }

        .ranking-badge {
            position: absolute;
            top: 1rem;
            right: 1rem;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 600;
            color: white;
            z-index: 1;
        }

        .badge-hot {
            background: var(--rank-1);
            animation: pulse 2s infinite;
        }

        .badge-new {
            background: var(--primary-color);
        }

        .badge-up {
            background: var(--success-color);
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(245, 34, 45, 0.4);
            }
            70% {
                box-shadow: 0 0 0 10px rgba(245, 34, 45, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(245, 34, 45, 0);
            }
        }

        /* 分页 */
        .pagination-container {
            display: flex;
            justify-content: center;
            margin-top: 2rem;
        }

        .pagination {
            background: var(--bg-primary);
            border-radius: 12px;
            padding: 0.5rem;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border-color);
        }

        .page-link {
            color: var(--text-secondary);
            background: transparent;
            border: none;
            padding: 0.5rem 0.75rem;
            margin: 0 0.25rem;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .page-link:hover {
            background: var(--bg-secondary);
            color: var(--primary-color);
        }

        .page-item.active .page-link {
            background: var(--primary-color);
            color: white;
        }

        /* 工具栏美化 */
        .toolbar {
            position: fixed;
            bottom: 30px;
            right: 30px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            z-index: 1000;
        }

        .tool-btn {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-md);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            color: var(--text-secondary);
            font-size: 1.25rem;
        }

        .tool-btn:hover {
            transform: scale(1.1) translateY(-3px);
            box-shadow: var(--shadow-lg);
            color: var(--primary-color);
            border-color: var(--primary-color);
        }

        /* 页脚美化 */
        footer {
            background: var(--bg-primary);
            border-top: 1px solid var(--border-color);
            padding: 3rem 0 2rem;
            margin-top: 3rem;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 2.5rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .footer-links a {
            color: var(--text-secondary);
            text-decoration: none;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .footer-links a:hover {
            color: var(--primary-color);
            transform: translateY(-2px);
        }

        .footer-copyright {
            text-align: center;
            color: var(--text-secondary);
            font-size: 0.875rem;
            padding-top: 2rem;
            border-top: 1px solid var(--border-color);
        }

        /* 网站详情模态框 */
        .site-detail-modal .modal-dialog {
            max-width: 700px;
        }

        .site-detail-header {
            display: flex;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .site-detail-icon {
            width: 64px;
            height: 64px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            font-size: 2rem;
            flex-shrink: 0;
            overflow: hidden;
        }

        .site-detail-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 0.25rem;
        }

        .site-detail-url {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .site-detail-stats {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .site-detail-stat {
            background: var(--bg-secondary);
            border-radius: 12px;
            padding: 1rem;
            text-align: center;
            transition: all 0.3s ease;
        }

        .site-detail-stat:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }

        .site-detail-stat-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 0.25rem;
        }

        .site-detail-stat-label {
            font-size: 0.875rem;
            color: var(--text-secondary);
        }

        .site-detail-desc {
            margin-bottom: 1.5rem;
            line-height: 1.6;
            color: var(--text-primary);
        }

        .site-detail-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .site-detail-tag {
            background: var(--bg-secondary);
            color: var(--text-secondary);
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.875rem;
            transition: all 0.3s ease;
        }

        .site-detail-tag:hover {
            background: var(--primary-color);
            color: white;
        }

        .site-detail-actions {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        /* 评分组件美化 - 紧凑版 */
        .rating-section {
            background: var(--bg-secondary);
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 1.5rem;
            text-align: center;
        }

        .rating-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
        }

        .rating-title {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .rating-score {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .rating-score-value {
            font-size: 1.2rem;
            font-weight: 700;
            background: var(--gradient-warning);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .rating-score-count {
            font-size: 0.75rem;
            color: var(--text-secondary);
        }

        .rating-stars {
            display: flex;
            justify-content: center;
            gap: 0.25rem;
            margin: 0.5rem 0;
        }

        .rating-star {
            font-size: 1.5rem;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }

        .rating-star:hover {
            transform: scale(1.1);
        }

        .rating-star.active {
            color: var(--warning-color);
            animation: starPulse 0.5s ease;
        }

        @keyframes starPulse {
            0% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.2);
            }
            100% {
                transform: scale(1);
            }
        }

        .rating-submit {
            margin-top: 0.5rem;
        }

        .rating-submit .btn {
            padding: 0.25rem 1rem;
            border-radius: 20px;
            font-size: 0.875rem;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .rating-submit .btn:hover {
            transform: translateY(-1px);
            box-shadow: var(--shadow-sm);
        }

        /* 分享模态框 */
        .share-modal .modal-dialog {
            max-width: 500px;
        }

        .share-options {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .share-option {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 1rem;
            background: var(--bg-secondary);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .share-option:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }

        .share-option i {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
        }

        .share-option span {
            font-size: 0.875rem;
        }

        .share-weibo i {
            color: #e6162d;
        }

        .share-wechat i {
            color: #07c160;
        }

        .share-qq i {
            color: #12b7f5;
        }

        .share-link i {
            color: var(--primary-color);
        }

        .qrcode-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 1rem;
            background: var(--bg-secondary);
            border-radius: 12px;
            margin-bottom: 1rem;
        }

        #qrcode {
            margin-bottom: 1rem;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .navbar-brand {
                font-size: 1.5rem;
            }

            .navbar-brand i {
                font-size: 2rem;
            }

            .ranking-title {
                font-size: 2rem;
            }

            .ranking-item {
                flex-direction: column;
                align-items: flex-start;
                padding: 1rem;
            }

            .ranking-number {
                margin-bottom: 0.5rem;
            }

            .ranking-stats {
                width: 100%;
                margin-top: 1rem;
                margin-left: 0;
                justify-content: space-between;
            }

            .ranking-trend {
                margin-left: 0;
                margin-top: 0.5rem;
            }

            .toolbar {
                bottom: 20px;
                right: 20px;
            }

            .tool-btn {
                width: 46px;
                height: 46px;
                font-size: 1.1rem;
            }

            .site-detail-stats {
                grid-template-columns: repeat(2, 1fr);
            }

            .share-options {
                grid-template-columns: repeat(2, 1fr);
            }

            .rating-score-value {
                font-size: 1rem;
            }

            .rating-star {
                font-size: 1.25rem;
            }
        }

        /* 动画效果 */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .fade-in-up {
            animation: fadeInUp 0.6s ease forwards;
        }

        /* Toast样式 */
        .toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1050;
        }

        .toast {
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            border-radius: 8px;
            box-shadow: var(--shadow-md);
            margin-bottom: 10px;
        }

        .toast-success {
            border-left: 4px solid var(--success-color);
        }

        .toast-error {
            border-left: 4px solid var(--danger-color);
        }

        .toast-info {
            border-left: 4px solid var(--primary-color);
        }

        .toast-warning {
            border-left: 4px solid var(--warning-color);
        }

        /* 加载动画 */
        .loading {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 200px;
        }

        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 4px solid var(--bg-secondary);
            border-top: 4px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* 滚动条美化 */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: var(--bg-secondary);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb {
            background-color: var(--primary-color);
            border-radius: 4px;
        }

        /* 悬浮提示 */
        .tooltip-custom {
            position: relative;
            display: inline-block;
        }

        .tooltip-custom .tooltiptext {
            visibility: hidden;
            width: 120px;
            background-color: var(--dark-color);
            color: #fff;
            text-align: center;
            border-radius: 6px;
            padding: 5px;
            position: absolute;
            z-index: 1;
            bottom: 125%;
            left: 50%;
            margin-left: -60px;
            opacity: 0;
            transition: opacity 0.3s;
            font-size: 0.75rem;
        }

        .tooltip-custom:hover .tooltiptext {
            visibility: visible;
            opacity: 1;
        }

 .ranking-item:nth-child(1) .ranking-number::after {
content: '\f091';
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
text-decoration: inherit;
position: absolute;
font-size: 0.8rem;
color: var(--gold);
top: -5px;
right: -5px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.ranking-item:nth-child(2) .ranking-number::after {
content: '\f091';
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
text-decoration: inherit;
position: absolute;
font-size: 0.8rem;
color: var(--silver);
top: -5px;
right: -5px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.ranking-item:nth-child(3) .ranking-number::after {
content: '\f091';
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
text-decoration: inherit;
position: absolute;
font-size: 0.8rem;
color: var(--bronze);
top: -5px;
right: -5px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}