* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Microsoft YaHei", sans-serif;
        }

        body {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            padding: 20px;
            overflow-x: hidden;
            position: relative;
            background: #000;
        }

        /* ========== 新增背景图片图层 - 第32行开始 ========== */
        .bg-image-layer {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -2; /* 层级低于星空效果，作为底层背景 */
            pointer-events: none;
            opacity: 0.3; /* 背景图片透明度，可调整0-1之间的值 */
        }
        
        .bg-image-layer img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* 保持图片比例并覆盖整个屏幕 */
        }
        /* ========== 背景图片图层结束 ========== */

        .starry-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            pointer-events: none;
            overflow: hidden;
        }

        .star {
            position: absolute;
            background: #fff;
            border-radius: 50%;
            pointer-events: none;
        }

        .star-hover {
            position: absolute;
            width: 6px;
            height: 6px;
            background: #fff;
            border-radius: 50%;
            pointer-events: none;
            opacity: 0;
            animation: starPulse 1s ease-out forwards;
        }

        @keyframes starPulse {
            0% { opacity: 1; transform: scale(1); }
            100% { opacity: 0; transform: scale(2); }
        }

        /* 重构左上角按钮容器布局 */
        .top-left-btns {
            position: fixed;
            top: 20px;
            left: 20px;
            z-index: 10;
            display: flex;
            gap: 10px; /* 按钮之间的间距 */
            flex-wrap: wrap; /* 移动端自动换行 */
        }

        .qq-group-btn {
            color: white;
            background-color: #12b7f5;
            padding: 10px 20px;
            border-radius: 8px;
            text-align: center;
            font-size: 1rem;
            font-weight: bold;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            text-decoration: none;
            box-shadow: 0 4px 8px rgba(18, 183, 245, 0.3);
        }

        .qq-group-btn:hover {
            background-color: #0aa4e0;
            opacity: 0.85;
            transform: scale(1.05);
        }

        /* 新增壁纸按钮样式 */
        .wallpaper-btn {
            color: white;
            background-color: #8b5cf6; /* 紫色系，区分其他按钮 */
            padding: 10px 20px;
            border-radius: 8px;
            text-align: center;
            font-size: 1rem;
            font-weight: bold;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            text-decoration: none;
            box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
            white-space: nowrap; /* 防止文字换行 */
        }

        .wallpaper-btn:hover {
            background-color: #7c3aed;
            opacity: 0.85;
            transform: scale(1.05);
        }

        .top-right-btn {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 10;
        }
        
        .top-right-btn2 {
            position: fixed;
            top: 20px;
            right: 125px;
            z-index: 10;
        }

        .bilibili-btn {
            color: white;
            background-color: #fb7299;
            padding: 10px 20px;
            border-radius: 8px;
            text-align: center;
            font-size: 1rem;
            font-weight: bold;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            text-decoration: none;
            box-shadow: 0 4px 8px rgba(251, 114, 153, 0.3);
        }

        .bilibili-btn:hover {
            background-color: #f85487;
            opacity: 0.85;
            transform: scale(1.05);
        }

        .separator {
            width: 2px;
            height: 100%;
            max-height: 800px;
            background: #ffffff;
            border-radius: 1px;
            position: relative;
        }

        .search-section {
            width: 100%;
            margin-bottom: 30px;
            display: flex;
            justify-content: center;
            padding: 10px 0;
            position: relative;
            z-index: 1;
        }

        .bing-search {
            display: flex;
            width: 100%;
            max-width: 800px;
            gap: 10px;
        }

        .search-input {
            flex: 1;
            padding: 12px 15px;
            font-size: 1rem;
            border: 1px solid #ddd;
            border-radius: 8px;
            outline: none;
            background: rgba(255, 255, 255, 0.9);
        }

        .search-input:focus {
            border-color: #dc3545;
            box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
        }

        .search-btn {
            padding: 0 20px;
            background-color: #dc3545;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .search-btn:hover {
            background-color: #bb2d3b;
            opacity: 0.85;
        }

        .content-container {
            display: flex;
            flex: 1;
            gap: 40px;
            position: relative;
            z-index: 1;
        }

        .left-section {
            width: 66.67%;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            padding: 20px;
            gap: 20px;
        }

        .preset-buttons {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        /* 重新设计的自定义链接模块样式 */
        .custom-buttons {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        /* 开关按钮容器 */
        .custom-btn-control {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 5px;
        }

        /* 开关按钮样式 */
        .delete-toggle {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #fff;
            font-size: 0.9rem;
        }

        .toggle-switch {
            position: relative;
            width: 40px;
            height: 20px;
            background-color: #6c757d;
            border-radius: 10px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .toggle-switch::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 16px;
            height: 16px;
            background-color: #fff;
            border-radius: 50%;
            transition: transform 0.3s ease;
        }

        .toggle-switch.active {
            background-color: #dc3545;
        }

        .toggle-switch.active::after {
            transform: translateX(20px);
        }

        .custom-btn-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 12px;
        }

        /* 自定义按钮容器 - 包含按钮主体和删除按钮 */
        .custom-btn-wrapper {
            position: relative;
            width: 100%;
        }

        /* 自定义按钮主体样式 */
        .custom-btn {
            color: white;
            background-color: #0d6efd;
            background-size: 24px 24px;
            background-position: 10px center;
            background-repeat: no-repeat;
            padding: 12px 10px 12px 40px;
            border-radius: 8px;
            text-align: left;
            font-size: 1rem;
            font-weight: bold;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            width: 100%;
            text-shadow: 0 0 3px rgba(0,0,0,0.3);
            display: block;
        }

        /* 未编辑的默认按钮样式 */
        .edit-btn {
            background-color: #6c757d;
            background-image: none !important;
            padding: 12px 10px;
            text-align: center;
        }

        .custom-btn:hover {
            background-color: #0a58ca;
            opacity: 0.85;
            transform: scale(1.03);
        }

        .edit-btn:hover {
            background-color: #5a6268;
        }

        /* 删除按钮 - 默认隐藏，开关开启后显示 */
        .delete-btn {
            position: absolute;
            top: -8px;
            right: -8px;
            width: 20px;
            height: 20px;
            background-color: #dc3545;
            color: white;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            font-size: 12px;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            box-shadow: 0 2px 4px rgba(0,0,0,0.3);
            z-index: 1;
            display: none; /* 默认隐藏 */
        }

        /* 开关开启时显示删除按钮 */
        .delete-mode .delete-btn {
            display: flex;
        }

        .delete-btn:hover {
            background-color: #bb2d3b;
            transform: scale(1.1);
        }

        .add-btn {
            color: white;
            background-color: #28a745;
            padding: 12px 10px;
            border-radius: 8px;
            text-align: center;
            font-size: 1rem;
            font-weight: bold;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            width: 100%;
        }

        .add-btn:hover {
            background-color: #218838;
            opacity: 0.85;
            transform: scale(1.03);
        }

        .btn-group-title {
            font-size: 1.2rem;
            color: #fff;
            margin-bottom: 0; /* 调整间距，给开关留出空间 */
            text-align: left; /* 标题左对齐 */
            font-weight: bold;
            text-shadow: 0 0 5px rgba(0,0,0,0.5);
        }

        .preset-btn {
            text-decoration: none;
            color: white;
            background-color: #dc3545;
            padding: 17px 27px;
            border-radius: 12px;
            text-align: center;
            font-size: 1.0rem;
            font-weight: bold;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            text-shadow: 0 0 3px rgba(0,0,0,0.3);
        }

        .preset-btn:hover {
            background-color: #bb2d3b;
            opacity: 0.85;
            transform: scale(1.05);
            box-shadow: 0 8px 16px rgba(220, 53, 69, 0.3);
        }

        /* 右侧：内嵌网页 */
        .right-section {
            width: 40%;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
            position: relative;
            background: rgba(0,0,0,0.3);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .switch-buttons {
            padding: 10px 15px;
            background: #1b1b1b;
            border-bottom: 1px solid #333;
            display: flex;
            gap: 10px;
            justify-content: center;
        }

        .switch-btn {
            padding: 8px 20px;
            background-color: #0078d7;
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .switch-btn:hover {
            background-color: #005a9e;
        }

        .web-container {
            flex: 1;
            height: calc(100vh - 120px);
            overflow: auto;
        }

        .web-iframe {
            width: 100%;
            height: 100%;
            border: none;
        }

        /* 编辑弹窗 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 100;
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background: #222;
            padding: 30px;
            border-radius: 12px;
            max-width: 500px;
            color: white;
        }

        .modal-title {
            font-size: 1.5rem;
            margin-bottom: 20px;
            text-align: center;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-size: 1.1rem;
        }

        .form-group input {
            width: 100%;
            padding: 12px;
            border-radius: 8px;
            border: 1px solid #555;
            background: #333;
            color: white;
            font-size: 1rem;
        }

        .modal-buttons {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-top: 20px;
            flex-wrap: wrap;
        }

        .modal-btn {
            padding: 10px 20px;
            border-radius: 8px;
            border: none;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .save-btn {
            background-color: #dc3545;
            color: white;
        }

        .cancel-btn {
            background-color: #6c757d;
            color: white;
        }

        @media (max-width: 768px) {
            .content-container {
                flex-direction: column;
                gap: 20px;
            }
            .left-section {
                width: 100%;
                flex-direction: column;
                gap: 20px;
            }
            .separator {
                display: none;
            }
            .right-section {
                width: 100%;
                margin-top: 20px;
            }
            .web-container {
                height: 500px;
            }
            .custom-btn-grid {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            }
            /* 移动端左上角按钮自适应 */
            .top-left-btns {
                flex-direction: column;
                gap: 8px;
            }
        }
        .nav{
            display: flex;
            bottom: 20px;
            width: 500px;
            height: 500px;
            z-index: 1;
        }