body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", Roboto, "Helvetica Neue", Arial;
    background: #f6f7fb;
}

/* —— 顶部 —— */
.top {
    background: linear-gradient(180deg, #d67bff 0%, #8b4dff 45%, #7833ff 100%);
    padding: 20px;
    color: #fff;
    text-align: center;
}

.logo-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto 30px;
}

.logo {
    font-size: 26px;
    font-weight: bold;
}

.menu-btn {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* —— 分类 —— */
.tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 25px;
    font-size: 16px;
}

.tabs span {
    cursor: pointer;
    padding-bottom: 6px;
}

.tabs .active {
    border-bottom: 2px solid #fff;
    font-weight: bold;
}

/* —— 搜索框 —— */
.search-box {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.search-box input {
    width: 600px;
    padding: 12px 16px;
    border-radius: 10px 0 0 10px;
    border: none;
    outline: none;
    font-size: 15px;
}

.search-box button {
    padding: 12px 20px;
    background: #ff4d4f;
    border: none;
    color: #fff;
    font-size: 16px;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
}

/* —— 内容主体 —— */
.container {
    max-width: 1600px;
    margin: 25px auto;
    padding: 10px;
}

.title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* —— 网址卡片 —— */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 14px;
    padding: 8px 14px;
    box-shadow: none;
    text-decoration: none;
    color: inherit;
}

/* 图标 */
.card-icon {
    width: 32px;
    height: auto;
    border-radius: 0;     /* 修复 */
    object-fit: contain;
    background: none;
    padding: 0;
}

.card-title,
.card-desc {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-desc {
    font-size: 13px;
    color: #666;
}

.divider {
    max-width: 1600px;
    height: 2px;
    background: #e7e7e7;
    margin: 30px auto;
    border-radius: 2px;
}

/* —— 手机适配 —— */
@media(max-width: 768px) {
    .search-box input {
        width: 70%;
    }
    .tabs {
        gap: 20px;
        font-size: 14px;
    }
    .menu-btn {
        display: block;
    }
}

/* —— 右下角悬浮 —— */
.float-menu {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 999;
}

.float-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* 图标完美居中版 */
.float-btn img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
    opacity: 1;
}

/* 默认隐藏往上按钮 */
#scrollToTopBtn {
    display: none;
}
