/* 全局样式 */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
    line-height: 1;
}

/* 移除背景装饰 */

/* 品牌标题 */
.brand-title {
    font-size: 3rem;
    font-weight: 400;
    color: #4285f4;
    text-shadow: none;
    position: relative;
    letter-spacing: -0.02em;
}

.beta-badge {
    font-size: 0.7rem;
    font-weight: 400;
    background: rgba(66, 133, 244, 0.1);
    color: #4285f4;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    margin-left: 0.75rem;
    vertical-align: super;
    border: 1px solid rgba(66, 133, 244, 0.2);
}

/* 调整主要布局 */
main {
    padding-top: 0;
    margin-top: -2rem;
}

/* 搜索标签 */
.search-tags {
    margin-bottom: 0.5rem;
}

.search-tag {
    display: inline-block;
    background: #f8f9fa;
    color: #5f6368;
    padding: 0.6rem 1.2rem;
    border-radius: 24px;
    margin: 0.3rem 0.4rem;
    font-size: 0.9rem;
    font-weight: 400;
    border: 1px solid #e8eaed;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: none;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.search-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(66, 133, 244, 0.1), transparent);
    transition: left 0.5s ease;
}

.search-tag:hover::before {
    left: 100%;
}

.search-tag:hover {
    background: #f1f3f4;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: rgba(66, 133, 244, 0.3);
    color: #4285f4;
}

.search-tag:active {
    background: #e8eaed;
    transform: translateY(0) scale(0.98);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border-color: rgba(66, 133, 244, 0.5);
}

.search-tag:focus {
    outline: none;
    border-color: rgba(66, 133, 244, 0.5);
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.search-tag.clicked {
    background: #4285f4;
    color: white;
    transform: scale(0.95);
    border-color: #4285f4;
    box-shadow: 0 2px 4px rgba(66, 133, 244, 0.3);
}

.search-tag.selected {
    background: #4285f4;
    color: white;
    border-color: #4285f4;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.4);
    transform: none;
}

.search-tag.selected:hover {
    background: #3367d6;
    color: white;
    border-color: #3367d6;
    box-shadow: 0 3px 12px rgba(66, 133, 244, 0.5);
}

.search-tag.selected::before {
    display: none;
}

/* 搜索容器 */
.search-container {
    margin: 2rem 0;
    width: 100%;
    max-width: 100%;
}


/* 防止横向滚动 */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.container-fluid {
    overflow-x: hidden;
    max-width: 100%;
}

.container {
    max-width: 100%;
    overflow-x: hidden;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .brand-title {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .search-tags {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .search-tag {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        margin: 0.25rem 0.3rem;
    }
    
    main {
        margin-top: -1rem;
    }
    
    
}

@media (max-width: 576px) {
    .brand-title {
        font-size: 1.8rem;
    }
    
    .beta-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
        margin-left: 0.5rem;
    }
    
    .search-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin: 0.2rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
   
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.search-tags {
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

.brand-title {
    animation: fadeInUp 0.5s ease-out 0.1s both;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 修复Bootstrap 4.6.2中gap类的兼容性 */
.d-flex.gap-2 > * {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.d-flex.gap-2 > *:last-child {
    margin-right: 0;
}

/* 居中布局优化 */
.min-vh-100 {
    display: flex;
    flex-direction: column;
}

main.flex-grow-1 {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}


/* H5触摸优化 */
@media (max-width: 768px) {
    .search-tag {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
}

