* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a1a1a;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
    padding-left: 24px;
}

.section-title::before {
    content: "⚡";
    position: absolute;
    left: 0;
    opacity: 0.9;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.card {
    background-color: #2b2b2b;
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s ease, opacity 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-2px);
    background-color: #333;
}

.card h3 {
    margin: 0;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
}

.card a {
    color: #fff;
    text-decoration: none;
    display: block;
}

.card p {
    margin: 0;
    color: #888;
    font-size: 11px;
}

.tag {
    display: inline-block;
    padding: 1px 4px;
    border-radius: 2px;
    background-color: rgba(46, 213, 115, 0.15);
    color: #2ed573;
    font-size: 10px;
    margin-right: 4px;
    margin-top: 4px;
}

/* 标签变体 */
.tag.vpn {
    background-color: rgba(255, 71, 87, 0.15);
    color: #ff4757;
}

.tag.member {
    background-color: rgba(46, 213, 115, 0.15);
    color: #2ed573;
}

/* 添加搜图相关的标签样式 */
.tag.search {
    background-color: rgba(46, 213, 115, 0.15);
    color: #2ed573;
}

.tag.illustration {
    background-color: rgba(52, 172, 224, 0.15);
    color: #34ace0;
}

.tag.doujin {
    background-color: rgba(255, 71, 87, 0.15);
    color: #ff4757;
}

/* 添加软件相关的标签样式 */
.tag.app {
    background-color: rgba(45, 152, 218, 0.15);
    color: #2d98da;
}

.tag.manga {
    background-color: rgba(255, 118, 117, 0.15);
    color: #ff7675;
}

.tag.eh {
    background-color: rgba(46, 213, 115, 0.15);
    color: #2ed573;
}

/* 添加本子和视频相关的标签样式 */
.tag.video {
    background-color: rgba(255, 159, 67, 0.15);
    color: #ff9f43;
}

.tag.mmd {
    background-color: rgba(108, 92, 231, 0.15);
    color: #6c5ce7;
}

.tag.threed {
    background-color: rgba(45, 152, 218, 0.15);
    color: #2d98da;
}

.tag.online {
    background-color: rgba(46, 213, 115, 0.15);
    color: #2ed573;
}

/* ... 其他标签样式 ... */

.search-container {
    position: sticky;
    top: 20px;
    margin-bottom: 30px;
    z-index: 100;
    display: flex;
    align-items: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#searchInput {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 25px;
    background-color: #2b2b2b;
    color: #fff;
    transition: all 0.3s ease;
}

/* ... 其他样式 ... */

/* 移动端优化 */
@media screen and (max-width: 768px) {
    /* ... 移动端样式 ... */
}

/* 添加加载动画样式 */
.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.loading-indicator::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #2ed573;
    border-radius: 50%;
    animation: loading-spin 0.8s linear infinite;
}

.loading-indicator.active {
    opacity: 1;
}

@keyframes loading-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 添加搜索时的过渡效果 */
.card.hidden {
    opacity: 0;
    transform: scale(0.95);
} 