/* 搜索框样式 */
.search-container {
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background-color: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: border-color 0.2s ease;
}

.search-box:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
    color: #9ca3af;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

#search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #111827;
    background: transparent;
}

#search-input::placeholder {
    color: #9ca3af;
}

.clear-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    color: #9ca3af;
    transition: color 0.2s ease;
    margin-left: 0.5rem;
}

.clear-btn:hover {
    color: #6b7280;
}

.search-results {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    max-height: 400px;
    overflow-y: auto;
}

.search-results-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
    font-size: 0.875rem;
    color: #6b7280;
}

.search-results-content {
    padding: 1rem;
}

.search-results-content .symbol-container {
    gap: 0.5rem;
}

.search-results-content .symbol-item {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.125rem;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f9fafb;
}

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

.result-symbol {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.result-symbol:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background-color: #e5e7eb;
}

.result-keywords {
    flex: 1;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* 工具说明样式 */
.tool-description {
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 2rem;
    color: #4b5563;
    font-size: 0.875rem;
}
/* 页面布局 */
.main-content {
    display: flex;
    gap: 20px;
    position: relative;
}

/* 侧边栏导航样式 */
.sidebar {
    width: 220px;
    flex-shrink: 0;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.sidebar h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar .nav-links a {
    display: block;
    padding: 8px 10px;
    background-color: #e9ecef;
    border-radius: 4px;
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    width: 100%;
}

.sidebar .nav-links a:hover {
    background-color: #007bff;
    color: white;
    transform: translateX(5px);
}

/* 内容区域样式 */
.content-area {
    flex: 1;
    min-width: 0; /* 防止内容溢出 */
}

/* 移动端导航切换按钮 */
.toggle-nav {
    display: none;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    margin-bottom: 15px;
    font-size: 1rem;
}

.toggle-nav:hover {
    background-color: #0069d9;
}

/* 平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        max-height: none;
        display: none; /* 默认隐藏 */
    }
    
    .sidebar.active {
        display: block;
    }
    
    .toggle-nav {
        display: block;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 100;
    }
    
    .sidebar .nav-links a:hover {
        transform: none;
    }
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f9fafb;
    color: #111827;
    line-height: 1.5;
}

.container {
    min-height: calc(100vh - 69px - 79px);
    padding: 1rem 1rem;
    max-width: 64rem;
    margin: 0 auto;
}

.title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title svg {
    margin-right: 0.5rem;
}

.subtitle {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.tool-description {
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 2rem;
    color: #4b5563;
    font-size: 0.875rem;
}

.section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.symbol-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.symbol-item {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.symbol-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background-color: #f3f4f6;
}

.symbol-item:active {
    transform: translateY(0);
    background-color: #e5e7eb;
}

.empty-message {
    width: 100%;
    padding: 1rem;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

.copy-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background-color: #111827;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
}

.copy-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* 页脚样式 */
.footer {
    background-color: #f8f9fa;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #dee2e6;
}

.aw-footer {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-text-copyright {
    color: #6c757d;
    font-size: 0.9rem;
}

.footer-text-copyright a {
    color: #007bff;
    text-decoration: none;
}

.footer-text-copyright a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 640px) {
    .symbol-container {
        gap: 0.5rem;
    }
    
    .symbol-item {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.125rem;
    }
}

@media (min-width: 768px) {
    .symbol-categories {
        display: grid;
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 1rem 2rem;
    }
}