        /* 样式文件 By KurokawaShioreiKurokawaShiorei */

        @import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@300;400;500;600&display=swap');
        @import url('https://fonts.googleapis.com/css2?family=SF+Mono:wght@400;500&display=swap');
        
        :root {
            --macos-primary: 28, 28, 30;
            --macos-secondary: 44, 44, 46;
            --macos-tertiary: 58, 58, 60;
            --macos-text: 242, 242, 247;
            --macos-subtext: 174, 174, 178;
            --macos-accent: 10, 132, 255;
            --macos-red: 255, 69, 58;
            --macos-yellow: 255, 214, 10;
            --macos-green: 48, 209, 88;
            
            --window-radius: 10px;
            --window-blur: 15px;
            --window-opacity: 0.85;
            --window-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            
            --header-font: "SF Pro Display", -apple-system, sans-serif;
            --mono-font: "SF Mono", monospace;
        }
        
        html, body {
            height: 100%;
            margin: 0;
            padding: 0;
            overflow: auto;
        }

        /* 背景图片 */
        body::before {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('./bg.png') no-repeat center center;
            background-size: cover;
            z-index: -2;
        }
        
        /* 背景模糊层 */
        body::after {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: inherit;
            background-size: cover;
            filter: blur(10px);
            z-index: -1;
            opacity: 0.7;
        }

        /* 针对 iOS Safari 的特殊修复 */
        @supports (-webkit-touch-callout: none) {
            .window-controls {
                gap: 9px !important; /* iOS 需要更大的间隙 */
            }
            .control-btn {
                width: 13px !important;
                height: 13px !important;
                -webkit-appearance: none; /* 移除 iOS 默认样式 */
            }
        }

        /* 主容器 */
        .main-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
            box-sizing: border-box;
        }

        /* 内容容器 */
        .content-container {
            width: 100%;
            max-width: 1200px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
        }
        
        /* 搜索窗口 */
        .search-window {
            width: 100%;
            max-width: 800px;
            min-height: 200px;
            max-height: 80vh;
            border-radius: var(--window-radius);
            overflow: hidden;
            box-shadow: var(--window-shadow);
            display: flex;
            flex-direction: column;
            background-color: rgba(var(--macos-secondary), var(--window-opacity));
            border: 1px solid rgba(var(--macos-text), 0.1);
            backdrop-filter: blur(var(--window-blur));
            -webkit-backdrop-filter: blur(var(--window-blur));
        }
        
        /* macOS窗口容器 */
        .macos-window {
            width: 100%;
            max-width: 800px;
            min-height: 500px;
            border-radius: var(--window-radius);
            overflow: hidden;
            box-shadow: var(--window-shadow);
            display: flex;
            flex-direction: column;
            background-color: rgba(var(--macos-secondary), var(--window-opacity));
            border: 1px solid rgba(var(--macos-text), 0.1);
            backdrop-filter: blur(var(--window-blur));
            -webkit-backdrop-filter: blur(var(--window-blur));
        }
        
        /* 窗口标题栏 */
        .window-titlebar {
            height: 52px;
            background-color: rgba(var(--macos-primary), 0.5);
            min-width: 0; /* 不要冒出来好吗好的 */
            display: flex;
            align-items: center;
            padding: 0 15px;
            border-bottom: 1px solid rgba(var(--macos-text), 0.05);
            position: relative;
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
        }
        
        /* 窗口控制按钮 */
        .window-controls {
            display: flex;
            position: absolute;
            left: 15px;
            /* 防变形核心代码 */
            flex: 0 0 auto;
            width: auto;
            height: auto;
            padding: 5px;
            align-items: center;
            border-radius: 15px;
            display: flex;
            position: absolute;
            left: 15px;
            gap: 10px; /* 加大间距 */
            pointer-events: none; /* 禁用容器交互 */
        }
        
        
        .control-btn {
            /* 强制圆形锁定 */
            width: 14px !important;
            height: 14px !important;
            min-width: 14px !important;
            min-height: 14px !important;
            border-radius: 50% !important;
            /* 消除所有可能影响的因素 */
            margin: 0 !important;
            padding: 0 !important;
            border: none !important;
            line-height: 0 !important;
            /* 恢复交互 */
            pointer-events: auto;
            /* 视觉强化 */
            box-shadow: 
                0 1px 3px rgba(0,0,0,0.2),
                inset 0 1px 1px rgba(255,255,255,0.1);
            /* 禁用文本选择 */
            user-select: none;
            -webkit-user-select: none;
        }

        /* 鼠标悬停立体效果 */
        .control-btn:hover {
            transform: scale(1.1);
            opacity: 0.9;
        }
  
        /* 按钮颜色 (保持macOS原生色调) */
        .close-btn { 
            background: #ff5f56;
            border: 0.5px solid #e24640;
        }
        .minimize-btn { 
            background: #ffbd2e;
            border: 0.5px solid #e6a01c;
        }
        .maximize-btn { 
            background: #27c93f;
            border: 0.5px solid #12ac28;
        }

        /* 按钮按下效果 */
        .control-btn:active {
            transform: scale(0.95);
            filter: brightness(0.9);
        }
        
        /* 窗口标题 */
        .window-title {
            flex: 1;
            text-align: center;
            font-size: 14px;
            font-weight: 500;
            color: rgba(var(--macos-text), 0.8);
        }
        
        /* 窗口右上角logo */
        .window-logo {
            position: absolute;
            right: 15px;
            height: 24px;
            width: auto;
            aspect-ratio: 1/1;
            object-fit: contain;
        }
        
        /* 窗口内容区域 */
        .window-content {
            flex: 1;
            padding: 30px;
            overflow-y: auto;
            scrollbar-gutter: stable;
        }
        
        /* 搜索区域 */
        .search-container {
            display: flex;
            flex-direction: column;
            gap: 20px;
            padding: 30px;
            overflow-y: auto;
            flex: 1;
            min-height: 0;
        }
        
        /* 搜索框 */
        .search-box {
            display: flex;
            align-items: center;
            background-color: rgba(var(--macos-primary), 0.4);
            border-radius: 30px;
            padding: 10px 20px;
            border: 1px solid rgba(var(--macos-text), 0.1);
            transition: all 0.3s ease;
        }
        
        .search-box:focus-within {
            border-color: rgba(var(--macos-accent), 0.5);
            box-shadow: 0 0 0 3px rgba(var(--macos-accent), 0.2);
        }
        
        .search-input {
            flex: 1;
            background: transparent;
            border: none;
            outline: none;
            color: rgb(var(--macos-text));
            font-size: 16px;
            padding: 5px 10px;
            font-family: var(--header-font);
        }
        
        .search-input::placeholder {
            color: rgba(var(--macos-text), 0.5);
        }
        
        .search-button {
            background: transparent;
            border: none;
            color: rgba(var(--macos-text), 0.7);
            cursor: pointer;
            padding: 5px;
            transition: all 0.2s;
        }
        
        .search-button:hover {
            color: rgb(var(--macos-text));
        }
        
        /* 常用网站 */
        .quick-links {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 15px;
            grid-auto-rows: min-content;
        }

        .quick-link {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            color: rgba(var(--macos-text), 0.8);
            transition: all 0.2s;
            padding: 10px;
            border-radius: 8px;
        }
        
        .quick-link:hover {
            background-color: rgba(var(--macos-accent), 0.2);
            color: rgb(var(--macos-text));
            transform: translateY(-2px);
        }
        
        .quick-link-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: rgba(var(--macos-primary), 0.6);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
        }
        
        .quick-link-label {
            font-size: 12px;
            text-align: center;
        }
        
        /* 内容卡片 */
        .content-card {
            background-color: rgba(var(--macos-primary), 0.4);
            border-radius: 8px;
            padding: 25px;
            margin-bottom: 25px;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(var(--macos-text), 0.05);
        }
        
        .card-title {
            font-size: 18px;
            font-weight: 500;
            margin-bottom: 15px;
            color: rgb(var(--macos-text));
        }
        
        .card-text {
            font-size: 14px;
            line-height: 1.6;
            color: rgba(var(--macos-text), 0.8);
            margin-bottom: 15px;
        }
        
        /* 代码块 */
        .code-block {
            font-family: var(--mono-font);
            background-color: rgba(var(--macos-primary), 0.6);
            border-radius: 6px;
            padding: 15px;
            margin: 15px 0;
            font-size: 13px;
            overflow-x: auto;
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
        }
        
        /* 按钮 */
        .btn {
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            border: none;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .btn-primary {
            background-color: rgb(var(--macos-accent));
            color: white;
        }
        
        .btn-primary:hover {
            background-color: rgba(var(--macos-accent), 0.8);
        }
        
        .btn-secondary {
            background-color: rgba(var(--macos-text), 0.1);
            color: rgb(var(--macos-text));
        }
        
        .btn-secondary:hover {
            background-color: rgba(var(--macos-text), 0.2);
        }
        
        /* 窗口底部状态栏 */
        .window-statusbar {
            height: auto;
            background-color: rgba(var(--macos-primary), 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 8px 15px;
            flex-wrap: wrap;
            font-size: 12px;
            text-align: center;
            gap: 5px;
            color: rgba(var(--macos-text), 0.6);
            border-top: 1px solid rgba(var(--macos-text), 0.05);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
        }
        .window-statusbar div {
            white-space: nowrap; /* 防止文字换行 */
            flex: 0 0 auto; /* 不伸缩不收缩 */
            padding: 0 5px; /* 左右内边距 */
        }
        
        /* 滚动条样式 - 全局 */
        ::-webkit-scrollbar {
            width: 12px;
            height: 12px;
        }

        ::-webkit-scrollbar-track {
            background-color: rgba(var(--macos-primary), 0.1);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb {
            background-color: rgba(var(--macos-text), 0.3);
            border-radius: 10px;
            border: 3px solid transparent;
            background-clip: content-box;
        }

        ::-webkit-scrollbar-thumb:hover {
            background-color: rgba(var(--macos-text), 0.5);
        }

        ::-webkit-scrollbar-thumb:active {
            background-color: rgba(var(--macos-accent), 0.7);
        }

        ::-webkit-scrollbar-corner {
            background-color: transparent;
        }

        /* 窗口内滚动条 */
        .window-content::-webkit-scrollbar,
        .search-container::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        .window-content::-webkit-scrollbar-thumb,
        .search-container::-webkit-scrollbar-thumb {
            background-color: rgba(var(--macos-text), 0.2);
        }

        /* 全局跳转回cete按钮 */
        .global-logo-container {
            position: fixed;
            top: 20px;
            left: 20px;
            z-index: 1000;
        }

        .global-logo-button {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 8px;
            background-color: rgba(var(--macos-primary), 0.3);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(var(--macos-text), 0.1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
            cursor: pointer;
        }

        .global-logo-button:hover {
            background-color: rgba(var(--macos-primary), 0.5);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .global-logo-button:active {
            transform: translateY(0) scale(0.95);
        }

        .global-logo-button img {
            width: 18px;
            height: 18px;
            object-fit: contain;
            filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
            transition: all 0.2s ease;
        }

        .global-logo-button:hover img {
            transform: scale(1.1);
        }

        /* 移动端适配 */
        /* 移动端适配 */
        @media (max-width: 768px) {
            .window-controls {
                gap: 7px;
                left: 12px;
            }
            .control-btn {
                width: 11px;
                height: 11px;
            }
        }

        @media (max-width: 480px) {
            .window-controls {
                gap: 10px;
                left: 12px;
            }
            .control-btn {
                width: 14px;
                height: 14px;
                /* 按压效果 */
                transition: transform 0.1s;
            }
            .control-btn:active {
                transform: scale(0.9);
            }
        }
        
        .search-window,
        .macos-window {
            border-radius: var(--window-radius); /* 恢复圆角 */
            margin: 10px; /* 添加外边距 */
            width: calc(100% - 20px); /* 考虑外边距 */
        }
        
        .window-titlebar {
            padding: 0 10px;
        }
        
        .window-controls {
            gap: 6px;
        }
        
        .control-btn {
            width: 10px;
            height: 10px;
        }
        
        .window-title {
            font-size: 12px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .search-container,
        .window-content {
            padding: 15px;
        }
        
        .quick-links {
            grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
            gap: 10px;
        }
        .window-statusbar {
        padding: 8px 10px; /* 移动端稍小的内边距 */
        font-size: 11px; /* 稍小的字体 */
        }
        }

        .close-btn { background: #ff5f56 !important; }
        .minimize-btn { background: #ffbd2e !important; }
        .maximize-btn { background: #27c93f !important; }

