* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0a1a;
    color: #e0e0ff;
    overflow: hidden;
    height: 100vh;
}

/* 顶框架 */
#top-frame {
    height: 80px;
    background: rgba(15, 25, 50, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 2px 20px rgba(0, 153, 255, 0.4);
    border-bottom: 1px solid rgba(0, 153, 255, 0.3);
}

.title h1 {
    font-size: 26px;
    color: #66ccff;
    text-shadow: 0 0 15px rgba(0, 153, 255, 0.7);
    letter-spacing: 1px;
    font-weight: 600;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

#search-input {
    width: 450px;
    height: 44px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 153, 255, 0.3);
    border-radius: 22px;
    color: #b3d1ff;
    font-size: 14px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#search-input:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(0, 153, 255, 0.6);
    border-color: #0099ff;
    background: rgba(255, 255, 255, 0.1);
}

#search-btn {
    height: 44px;
    padding: 0 24px;
    background: linear-gradient(135deg, #0099ff, #33aaff);
    border: none;
    border-radius: 22px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 153, 255, 0.3);
}

#search-btn:hover {
    background: linear-gradient(135deg, #33aaff, #66ccff);
    box-shadow: 0 6px 16px rgba(0, 153, 255, 0.5);
    transform: translateY(-2px);
}



/* 主容器 */
#main-container {
    display: flex;
    height: calc(100vh - 80px);
    overflow: hidden;
}

/* 左侧框架 */
#left-frame {
    width: 250px;
    background: rgba(15, 25, 50, 0.8);
    box-shadow: 2px 0 15px rgba(0, 153, 255, 0.4);
    border-right: 1px solid rgba(0, 153, 255, 0.3);
}

.main-menu ul {
    list-style: none;
    padding: 20px 0;
}

.main-menu li {
    margin: 10px 0;
}

.main-menu a {
    display: block;
    padding: 15px 30px;
    color: #4d94ff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.main-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.main-menu a:hover {
    background: rgba(0, 102, 255, 0.1);
    border-left-color: #0066ff;
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(0, 102, 255, 0.5);
    color: #66b3ff;
}

.main-menu a:hover::before {
    left: 100%;
}

.main-menu a.active {
    background: rgba(0, 102, 255, 0.15);
    border-left-color: #0066ff;
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.4);
    text-shadow: 0 0 10px rgba(0, 102, 255, 0.5);
    color: #99ccff;
}

/* 右侧框架 */
#right-frame {
    flex: 1;
    background: rgba(10, 20, 40, 0.5);
    overflow-y: auto;
    padding: 30px;
    backdrop-filter: blur(10px);
}

#content-area {
    height: 100%;
}

.content-section {
    display: none;
    height: 100%;
}

.content-section.active {
    display: block;
}

.content-section h2 {
    font-size: 32px;
    color: #66ccff;
    margin-bottom: 30px;
    text-shadow: 0 0 15px rgba(0, 153, 255, 0.7);
    position: relative;
    letter-spacing: 1px;
    font-weight: 600;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, #0099ff, transparent);
}

/* 工具下载容器 */
.tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.tool-card {
    background: rgba(20, 30, 60, 0.8);
    border: 1px solid rgba(0, 153, 255, 0.4);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 153, 255, 0.2);
    cursor: pointer;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg, 
        transparent, 
        rgba(0, 153, 255, 0.6), 
        transparent, 
        rgba(0, 204, 255, 0.6), 
        transparent
    );
    animation: border-glow 2s linear infinite;
    z-index: -1;
}

@keyframes border-glow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.tool-logo {
    text-align: center;
    margin-bottom: 16px;
}

.tool-logo img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    border: 1px solid rgba(0, 153, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 153, 255, 0.3);
    transition: all 0.3s ease;
}

.tool-card:hover .tool-logo img {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 153, 255, 0.5);
}



/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: rgba(20, 30, 60, 0.95);
    border: 1px solid rgba(0, 153, 255, 0.5);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 153, 255, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 153, 255, 0.3);
}

.modal-header h3 {
    color: #66ccff;
    margin: 0;
    font-size: 20px;
}

.close-btn {
    background: none;
    border: none;
    color: #66ccff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
}

.modal-logo {
    text-align: center;
    margin-bottom: 20px;
}

.modal-logo img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    border: 1px solid rgba(0, 153, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 153, 255, 0.3);
}

.modal-body p {
    color: #b3d1ff;
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 14px;
     font-family: "宋体", SimSun, serif;
    letter-spacing: 0.2em;
}

.modal-body p strong {
    color: #66ccff;
    font-weight: 600;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(0, 153, 255, 0.3);
    text-align: center;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #0099ff, #66ccff, #0099ff);
    animation: flow 2s linear infinite;
}

@keyframes flow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 153, 255, 0.4);
    border-color: rgba(0, 153, 255, 0.6);
}

.tool-card h3 {
    color: #66ccff;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.tool-card p {
    color: #b3d1ff;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.4;
}

.download-btn {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, #0099ff, #33aaff);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 153, 255, 0.3);
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.download-btn:hover {
    background: linear-gradient(135deg, #33aaff, #66ccff);
    box-shadow: 0 6px 16px rgba(0, 153, 255, 0.5);
    transform: translateY(-2px);
}

.modal-footer .download-btn {
    min-width: 150px;
}

/* 技术文档容器 */
.docs-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.doc-card {
    background: rgba(20, 30, 60, 0.8);
    border: 1px solid #0066ff;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0066ff, #66b3ff, #0066ff);
    animation: flow 3s linear infinite;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
    border-color: #66b3ff;
}

.doc-card h3 {
    color: #66b3ff;
    margin-bottom: 10px;
}

.doc-card p {
    color: #b0b0ff;
    margin-bottom: 15px;
    font-size: 14px;
}

/* 友情链接容器 */
.links-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.link-card {
    background: rgba(20, 30, 60, 0.8);
    border: 1px solid #0066ff;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0066ff, #66b3ff, #0066ff);
    animation: flow 3s linear infinite;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
    border-color: #66b3ff;
}

.link-card h3 {
    color: #66b3ff;
    margin-bottom: 10px;
}

.link-card p {
    color: #b0b0ff;
    margin-bottom: 15px;
    font-size: 14px;
}

.link-card a {
    color: #00ffff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.link-card a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* 本地工具容器 */
.local-tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.local-tool-card {
    background: rgba(20, 30, 60, 0.8);
    border: 1px solid #0066ff;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.local-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0066ff, #66b3ff, #0066ff);
    animation: flow 3s linear infinite;
}

.local-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
    border-color: #66b3ff;
}

.local-tool-card h3 {
    color: #66b3ff;
    margin-bottom: 10px;
}

.local-tool-card p {
    color: #b0b0ff;
    margin-bottom: 15px;
    font-size: 14px;
}

.local-tool-card .run-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff9933, #ffcc33);
    color: #0a0a1a;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.local-tool-card .run-btn:hover {
    background: linear-gradient(135deg, #ffcc33, #ffdd66);
    box-shadow: 0 0 10px rgba(255, 153, 51, 0.7);
}

/* 技术文档样式 */
.doc-tag-menu {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(20, 30, 60, 0.6);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 153, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 153, 255, 0.2);
    order: 1;
}

.tag-btn {
    padding: 12px 24px;
    background: rgba(20, 30, 60, 0.8);
    border: 1px solid rgba(0, 153, 255, 0.4);
    border-radius: 24px;
    color: #66ccff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 153, 255, 0.2);
}

.tag-btn:hover {
    background: rgba(0, 153, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 153, 255, 0.4);
    transform: translateY(-3px);
}

.tag-btn.active {
    background: rgba(0, 153, 255, 0.3);
    border-color: rgba(0, 153, 255, 0.6);
    box-shadow: 0 4px 16px rgba(0, 153, 255, 0.5);
}

.docs-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.docs-container.doc-content-container {
    display: block;
    padding: 0;
}

.doc-tag-menu {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto 32px;
    background: rgba(20, 30, 60, 0.6);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 102, 255, 0.6);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.doc-card {
    background: rgba(20, 30, 60, 0.8);
    border: 1px solid rgba(0, 153, 255, 0.4);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 153, 255, 0.2);
    cursor: pointer;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.doc-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg, 
        transparent, 
        rgba(0, 153, 255, 0.1), 
        transparent, 
        rgba(0, 204, 255, 0.1), 
        transparent
    );
    animation: border-glow 3s linear infinite;
    z-index: -1;
}

.doc-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 153, 255, 0.4);
    border-color: rgba(0, 153, 255, 0.6);
}

.doc-logo {
    text-align: center;
    margin-bottom: 24px;
}

.doc-logo img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    border: 1px solid rgba(0, 153, 255, 0.3);
    box-shadow: 0 6px 16px rgba(0, 153, 255, 0.3);
    transition: all 0.3s ease;
}

.doc-card:hover .doc-logo img {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 153, 255, 0.5);
}

.doc-card h3 {
    color: #66ccff;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 153, 255, 0.3);
}

.doc-card p {
    color: #b3d1ff;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.loading, .error {
    text-align: center;
    padding: 20px;
    color: #b3d1ff;
}

.error {
    color: #ff6666;
}

.doc-html-content {
    color: #b3d1ff;
    line-height: 1.6;
}

.doc-html-content h4 {
    color: #66ccff;
    margin-top: 20px;
    margin-bottom: 10px;
}

.doc-html-content p {
    margin-bottom: 15px;
}

.doc-html-content ul, .doc-html-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.doc-html-content li {
    margin-bottom: 5px;
}

.doc-content {
    background: rgba(10, 20, 40, 0.9) !important;
    border: 1px solid rgba(0, 153, 255, 0.3) !important;
    border-radius: 12px !important;
    padding: 25px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 8px 24px rgba(0, 153, 255, 0.2) !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    position: relative !important;
    color: #b3d1ff !important;
    overflow: hidden !important;
}

.doc-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(0, 153, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 153, 255, 0.1) 0%, transparent 50%);
    background-size: 200% 200%;
    animation: background-pulse 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes background-pulse {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

/* 确保文档内容的所有子元素也使用正确的背景颜色 */
.doc-content * {
    background: rgba(10, 20, 40, 0.9) !important;
    color: #b3d1ff !important;
    border-color: rgba(0, 153, 255, 0.3) !important;
    position: relative !important;
    z-index: 1 !important;
}

/* 确保文档内容容器的背景颜色被正确设置 */
.docs-container.doc-content-container {
    background: rgba(10, 20, 40, 0.5) !important;
    padding: 0 !important;
}

.docs-container.doc-content-container .doc-content {
    background: rgba(10, 20, 40, 0.9) !important;
    border: 1px solid rgba(0, 153, 255, 0.3) !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.doc-content h3 {
    color: #66ccff !important;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 153, 255, 0.3);
    background: rgba(10, 20, 40, 0.9) !important;
    padding: 12px;
    border-radius: 8px;
    border-bottom: 1px solid rgba(0, 153, 255, 0.3) !important;
}

.doc-content p {
    color: #b3d1ff !important;
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 16px;
    background: rgba(10, 20, 40, 0.9) !important;
}

.doc-html-content {
    color: #b3d1ff !important;
    line-height: 1.6;
    background: rgba(10, 20, 40, 0.9) !important;
    padding: 20px !important;
    border-radius: 8px !important;
}

.doc-html-content h4 {
    color: #66ccff !important;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 153, 255, 0.3);
    background: rgba(10, 20, 40, 0.9) !important;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(0, 153, 255, 0.2) !important;
}

.doc-html-content p {
    margin-bottom: 14px;
    background: rgba(10, 20, 40, 0.9) !important;
}

.doc-html-content ul, .doc-html-content ol {
    margin-left: 20px;
    margin-bottom: 14px;
    background: rgba(10, 20, 40, 0.9) !important;
}

.doc-html-content li {
    margin-bottom: 6px;
    background: rgba(10, 20, 40, 0.9) !important;
}

/* 代码块样式 */
.doc-html-content pre {
    background: rgba(5, 10, 20, 0.95) !important;
    border: 1px solid rgba(0, 153, 255, 0.4) !important;
    border-radius: 8px !important;
    padding: 16px !important;
    margin: 16px 0 !important;
    overflow-x: auto !important;
    position: relative !important;
    z-index: 1 !important;
}

.doc-html-content code {
    background: rgba(5, 10, 20, 0.95) !important;
    color: #00ffcc !important;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    position: relative !important;
    z-index: 1 !important;
}

.doc-html-content pre code {
    display: block !important;
    white-space: pre !important;
}

.loading, .error {
    text-align: center;
    padding: 40px 20px;
    color: #b3d1ff;
    font-size: 16px;
}

.error {
    color: #ff6666;
}

/* 底框架 */
#bottom-frame {
    height: 50px;
    background: rgba(10, 20, 40, 0.9);
    border-top: 1px solid #0066ff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -2px 15px rgba(0, 102, 255, 0.3);
}

.footer-info p {
    font-size: 14px;
    color: #8888ff;
    margin: 0 15px;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(20, 30, 60, 0.8);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0066ff, #0099ff);
    border-radius: 10px;
    border: 2px solid rgba(20, 30, 60, 0.8);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0099ff, #00ccff);
}

/* 背景动态效果 */
#background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -9999;
    background: linear-gradient(135deg, #050f1a 0%, #0a1a3a 50%, #050f1a 100%);
}

#background-animation::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1500px;
    height: 1500px;
    margin-top: -750px;
    margin-left: -750px;
    background: radial-gradient(circle, rgba(0, 153, 255, 0.3) 0%, transparent 50%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
    box-shadow: 0 0 100px rgba(0, 153, 255, 0.2);
}

#background-animation::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1000px;
    height: 1000px;
    margin-top: -500px;
    margin-left: -500px;
    border: 2px solid rgba(0, 153, 255, 0.5);
    border-radius: 50%;
    animation: rotate 8s linear infinite;
    box-shadow: 0 0 50px rgba(0, 153, 255, 0.3);
}

#background-animation .grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 153, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 153, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.1); opacity: 0.5; }
    100% { transform: scale(1); opacity: 0.2; }
}

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

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* 搜索结果样式 */
.search-results {
    margin-top: 30px;
    padding: 20px;
    background: rgba(26, 26, 58, 0.8);
    border: 1px solid #3a3aff;
    border-radius: 10px;
}

.search-results h3 {
    color: #00ffff;
    margin-bottom: 20px;
}

.search-result-item {
    padding: 15px;
    border-bottom: 1px solid #3a3aff;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: rgba(0, 128, 255, 0.2);
    transform: translateX(5px);
}

.search-result-item h4 {
    color: #00ffff;
    margin-bottom: 5px;
}

.search-result-item p {
    color: #b0b0ff;
    font-size: 14px;
    margin-bottom: 10px;
}

.search-result-item .category {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 12px;
    color: #00ffff;
}


    margin-bottom: 15px;
}

/* 打字效果样式 */
.typing-effect {
    overflow: hidden;
    border-right: 3px solid #00ff99;
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #00ff99; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    #top-frame {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 10px;
    }

    .search-container {
        width: 100%;
    }

    #search-input {
        width: 100%;
    }

    #main-container {
        flex-direction: column;
    }

    #left-frame {
        width: 100%;
        height: auto;
    }

    .main-menu ul {
        display: flex;
        overflow-x: auto;
        padding: 10px 0;
    }

    .main-menu li {
        margin: 0 10px;
    }

    .main-menu a {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .main-menu a:hover,
    .main-menu a.active {
        border-left: none;
        border-bottom-color: #00ffff;
        transform: translateY(0);
    }

    #right-frame {
        padding: 15px;
    }

    .tools-container,
    .docs-container,
    .links-container,
    .local-tools-container {
        grid-template-columns: 1fr;
    }

    #bottom-frame {
        flex-direction: column;
        height: auto;
        padding: 10px;
        gap: 5px;
    }

    .footer-info p {
        margin: 0;
        font-size: 12px;
    }
}