  
  
  
/*
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: Arial, sans-serif;
        }
*/
        /* 遮罩层 - 半透明黑色 */
        .notice-mask {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.3);
            z-index: 9998;
            display: none;
        }

        /* 弹窗容器 - 白色系简洁风格 */
        .notice-popup {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 90%;
            max-width: 500px;
            background: #ffffff;
            border-radius: 8px;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
            padding: 24px;
            z-index: 9999;
            display: none;
        }

        /* 弹窗标题 */
        .notice-title {
            font-size: 18px;
            font-weight: 600;
            color: #333333;
            margin-bottom: 16px;
            padding-bottom: 8px;
            border-bottom: 1px solid #f0f0f0;
        }

        /* 弹窗内容 */
        .notice-content {
            font-size: 14px;
            color: #666666;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        /* 关闭按钮 - 简洁风格 */
        .notice-close {
            display: block;
            width: 100%;
            height: 36px;
            line-height: 36px;
            text-align: center;
            background: #f8f8f8;
            color: #333333;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: background 0.2s;
        }

        .notice-close:hover {
            background: #f0f0f0;
        }
        :root {
            --primary-color: <?php echo $themeColor; ?>;
            --secondary-color: #f5f7ff;
            --text-color: #333;
            --bg-color: #f0f1fe;
            --card-bg-color: rgba(255, 255, 255, 0.9);
            --border-radius: 12px;
            --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            --transition: all 0.3s ease;
        }
        
        [data-theme="dark"] {
            --primary-color: <?php echo $themeColor; ?>;
            --secondary-color: #2a2d3e;
            --text-color: #e0e0e0;
            --bg-color: #1a1c2a;
            --card-bg-color: rgba(42, 45, 62, 0.9);
            --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }
        

        
        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            padding: 20px;
            transition: var(--transition);
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
        }
        
        /* 时钟样式 */
        .clock-container {
            display: flex;
            justify-content: center;
            margin-bottom: 30px;
            position: relative;
        }
        
        .clock {
            background-color: var(--card-bg-color);
            border-radius: var(--border-radius);
            padding: 15px 30px;
            box-shadow: var(--box-shadow);
            text-align: center;
            min-width: 240px;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
        
        .time {
            display: flex;
            justify-content: center;
            font-size: 32px;
            font-weight: 600;
            margin-bottom: 5px;
        }
        
        .time span {
            margin: 0 5px;
        }
        
        .date {
            font-size: 14px;
            color: var(--text-color);
            opacity: 0.8;
        }
        
        /* 搜索框样式 */
        .search-container {
            margin-bottom: 30px;
            position: relative;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .search-box {
            display: flex;
            background-color: var(--card-bg-color);
            border-radius: 50px;
            padding: 8px 20px;
            box-shadow: var(--box-shadow);
            transition: var(--transition);
            align-items: center;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
        
        .search-box:hover, .search-box:focus-within {
            box-shadow: 0 6px 16px rgba(99, 102, 241, 0.15);
            transform: translateY(-2px);
        }
        
        .search-box .bold-icon {
            font-weight: bold;
            font-size: 18px;
            margin-right: 10px;
            color: var(--primary-color);
        }
        
        .search-box input {
            flex: 1;
            border: none;
            outline: none;
            font-size: 16px;
            padding: 10px 0;
            background: transparent;
            color: var(--text-color);
        }
        
        .search-box button {
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }
        
        .search-box button:hover {
            background-color: #4f46e5;
            transform: scale(1.05);
        }
        
        /* 导航分类样式 */
        .nav-category {
            background-color: var(--card-bg-color);
            border-radius: var(--border-radius);
            padding: 15px 20px;
            box-shadow: var(--box-shadow);
            margin-bottom: 30px;
            display: flex;
            align-items: center;
            overflow-x: auto;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE and Edge */
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
        
        .nav-category::-webkit-scrollbar {
            display: none; /* Chrome, Safari, Opera */
        }
        
        .category-item {
            display: flex;
            align-items: center;
            padding: 8px 16px;
            border-radius: 50px;
            margin-right: 15px;
            cursor: pointer;
            transition: var(--transition);
            white-space: nowrap;
            color: var(--text-color);
            opacity: 0.8;
        }
      /*
        .category-item.active {
            background-color: var(--primary-color);
            color: white;
            opacity: 1;
        }
        */
      .category-item.active {
      /* 选用 #4A90E2 作为浅蓝色（经典清爽的浅蓝） */
          background-color: #4A90E2;
          color: white; /* 白色文字保证对比度 */
           opacity: 1;
         /* 保留过渡动画，确保状态切换更丝滑 */
         transition: var(--transition);
          }

         /* 可选：激活态hover时轻微提亮，增强交互 */
         .category-item.active:hover {
             background-color: #5BA0F2;
               }
        
        
        
        .category-item:hover:not(.active) {
            background-color: var(--secondary-color);
        }
        
        .category-icon {
            margin-right: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            background-color: #fff;
            border-radius: 50%;
        }
        
        .category-icon img {
            width: 16px;
            height: 16px;
        }
        
        /* 网站卡片样式 */
        .sites-container {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 40px;
        }
        
        .site-card {
            background-color: var(--card-bg-color);
            border-radius: var(--border-radius);
            padding: 20px;
            box-shadow: var(--box-shadow);
            display: flex;
            flex-direction: column;
            align-items: center;
            width: calc(16.666% - 17px);
            min-width: 140px;
            transition: var(--transition);
            cursor: pointer;
            text-decoration: none;
            color: var(--text-color);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
        
        .site-card.copy-link {
            position: relative;
        }
        
        .site-card.copy-link::after {
            content: '\f328';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            top: 8px;
            right: 8px;
            font-size: 14px;
            opacity: 0.7;
            color: var(--primary-color);
            transition: var(--transition);
        }
        
        .site-card.copy-link:hover::after {
            opacity: 1;
            transform: scale(1.1);
        }
        
        .site-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
        }
        
        .site-icon {
            width: 50px;
            height: 50px;
            margin-bottom: 10px;
            border-radius: 12px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #f5f5f5;
        }
        
        .site-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .site-name {
            font-size: 16px;
            font-weight: 500;
            margin-bottom: 5px;
            text-align: center;
        }
        
        .site-desc {
            font-size: 12px;
            color: #666;
            text-align: center;
        }
        
        /* 侧边导航栏样式 */
        .sidebar {
            position: fixed;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            background-color: var(--card-bg-color);
            border-radius: var(--border-radius);
            padding: 15px 10px;
            box-shadow: var(--box-shadow);
            display: flex;
            flex-direction: column;
            align-items: center;
            z-index: 100;
            transition: var(--transition);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
        
        .sidebar-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 15px 10px;
            cursor: pointer;
            border-radius: 8px;
            margin-bottom: 10px;
            transition: var(--transition);
            position: relative;
            width: 70px;
        }
        
        .sidebar-item:last-child {
            margin-bottom: 0;
        }
        
        .sidebar-item:hover {
            background-color: var(--secondary-color);
        }
        
        .sidebar-item.active {
            background-color: var(--secondary-color);
        }
        
        .sidebar-icon {
            width: 36px;
            height: 36px;
            margin-bottom: 5px;
            border-radius: 8px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #f5f5f5;
        }
        
        .sidebar-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .sidebar-name {
            font-size: 12px;
            text-align: center;
            color: #666;
        }
        
        .sidebar-desc {
            font-size: 10px;
            color: #999;
            text-align: center;
            margin-top: 2px;
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .site-card {
                width: calc(25% - 15px);
            }
            
            .sidebar {
                display: none;
            }
        }
        
        @media (max-width: 768px) {
            .site-card {
                width: calc(33.333% - 14px);
            }
        }
        
        @media (max-width: 576px) {
            .site-card {
                width: calc(50% - 10px);
            }
            
            .time {
                font-size: 28px;
            }
        }
        
        /* 动画效果 */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .site-card {
            animation: fadeIn 0.5s ease forwards;
            opacity: 0;
        }
        
        .site-card:nth-child(1) { animation-delay: 0.1s; }
        .site-card:nth-child(2) { animation-delay: 0.2s; }
        .site-card:nth-child(3) { animation-delay: 0.3s; }
        .site-card:nth-child(4) { animation-delay: 0.4s; }
        .site-card:nth-child(5) { animation-delay: 0.5s; }
        .site-card:nth-child(6) { animation-delay: 0.6s; }
        
        /* 侧边栏动画效果 */
        .sidebar-item {
            animation: fadeIn 0.5s ease forwards;
            opacity: 0;
        }
        
        .sidebar-item:nth-child(1) { animation-delay: 0.1s; }
        .sidebar-item:nth-child(2) { animation-delay: 0.2s; }
        .sidebar-item:nth-child(3) { animation-delay: 0.3s; }
        .sidebar-item:nth-child(4) { animation-delay: 0.4s; }
        
        /* 悬浮提示 */
        .sidebar-item .tooltip {
            position: absolute;
            left: 100%;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 12px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            margin-left: 10px;
        }
        
        .sidebar-item:hover .tooltip {
            opacity: 1;
            visibility: visible;
        }
        
        .sidebar-item .tooltip::before {
            content: '';
            position: absolute;
            right: 100%;
            top: 50%;
            transform: translateY(-50%);
            border-width: 6px;
            border-style: solid;
            border-color: transparent rgba(0, 0, 0, 0.8) transparent transparent;
        }
        
        /* 夜间模式切换按钮 */
        .theme-switch {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1000;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: var(--card-bg-color);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: var(--box-shadow);
            transition: var(--transition);
        }
        
        .theme-switch:hover {
            transform: scale(1.1);
        }
        
        .theme-switch .icon {
            font-size: 24px;
            color: var(--text-color);
            transition: var(--transition);
        }
        
        [data-theme="dark"] .theme-switch .moon {
            display: none;
        }
        
        [data-theme="light"] .theme-switch .sun {
            display: none;
        }