/* AI工具收藏 */
.geek-tool-item {
    position: relative;
    padding-right: 40px;
}

.geek-fav-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #b7b7b7;
    font-size: 16px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s ease, color .2s ease;
    z-index: 3;
    outline: none;
}
.geek-tool-item:hover .geek-fav-btn,
.geek-fav-btn:focus {
    opacity: 1;
}
.geek-fav-btn.is-fav {
    color: #ffb400;
    opacity: 1;
}
.geek-fav-btn:hover {
    color: #ffb400;
}
@media (max-width: 768px) {
    .geek-fav-btn {
        opacity: 1;
    }
}

/* 未登录提示窗 */
.geek-fav-mask {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.geek-fav-modal {
    width: 100%;
    max-width: 360px;
    background: #fff;
    border-radius: 12px;
    padding: 24px 20px 16px;
    box-sizing: border-box;
    box-shadow: 0 10px 36px rgba(0, 0, 0, .18);
    text-align: center;
}
.geek-fav-modal p {
    margin: 0 0 18px;
    color: #444;
    font-size: 15px;
    line-height: 1.7;
}
.geek-fav-modal-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 0;
    margin-bottom: 10px;
    border: 0;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.geek-fav-modal-btn.is-primary {
    background: #1e90ff;
    color: #fff;
}
.geek-fav-modal-btn.is-default {
    background: #fff;
    color: #1e90ff;
    border: 1px solid #1e90ff;
}
.geek-fav-modal-btn.is-ghost {
    background: transparent;
    color: #8a94a6;
    margin-bottom: 0;
}

/* 会员登录 / 注册页 */
.member-body {
    margin: 0;
    background: #f5f6f8;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #1f2d3d;
}
.member-wrap {
    max-width: 400px;
    margin: 0 auto;
    padding: 60px 16px 40px;
    box-sizing: border-box;
}
.member-card {
    background: #fff;
    border-radius: 14px;
    padding: 30px 24px 24px;
    box-shadow: 0 6px 24px rgba(31, 45, 61, .06);
}
.member-brand {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #1f2d3d;
    margin: 0 0 6px;
}
.member-title {
    text-align: center;
    font-size: 15px;
    font-weight: 400;
    color: #8a94a6;
    margin: 0 0 24px;
}
.member-field {
    margin-bottom: 14px;
    text-align: left;
}
.member-field label {
    display: block;
    font-size: 13px;
    color: #5a6473;
    margin-bottom: 6px;
}
.member-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 15px;
    color: #1f2d3d;
    background: #fff;
    outline: none;
    transition: border-color .2s ease;
}
.member-field input:focus {
    border-color: #1e90ff;
}
.member-code-row {
    display: flex;
    gap: 8px;
}
.member-code-row input {
    flex: 1;
    min-width: 0;
}
.member-code-btn {
    flex: 0 0 106px;
    padding: 0 8px;
    border: 1px solid #1e90ff;
    border-radius: 8px;
    background: #fff;
    color: #1e90ff;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: background .2s ease, color .2s ease;
}
.member-code-btn:hover:not(:disabled) {
    background: #eaf4ff;
}
.member-code-btn:disabled {
    border-color: #c8d6e5;
    color: #9aa8b8;
    cursor: default;
}
.member-submit {
    width: 100%;
    padding: 11px 0;
    margin-top: 6px;
    border: 0;
    border-radius: 8px;
    background: #1e90ff;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s ease;
}
.member-submit:hover:not(:disabled) {
    background: #1477d8;
}
.member-submit:disabled {
    opacity: .65;
    cursor: default;
}
.member-msg {
    min-height: 18px;
    margin-top: 12px;
    font-size: 13px;
    color: #e54d42;
    text-align: center;
}
.member-links {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}
.member-links a {
    color: #1e90ff;
    text-decoration: none;
}
.member-links a:hover {
    text-decoration: underline;
}
@media (max-width: 480px) {
    .member-wrap {
        padding: 30px 14px 24px;
    }
    .member-card {
        padding: 24px 18px 20px;
        border-radius: 12px;
    }
}

/* 收藏拖动排序 */
.geek-fav-grip {
    position: absolute;
    right: 34px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    font-size: 12px;
    letter-spacing: -3px;
    color: #bdbdbd;
    cursor: grab;
    opacity: 0;
    transition: opacity .2s ease, color .2s ease;
    user-select: none;
    touch-action: none;
    z-index: 3;
}
.geek-tool-item:hover .geek-fav-grip {
    opacity: 1;
}
.geek-fav-grip:hover {
    color: #1e90ff;
}
.geek-fav-grip:active {
    cursor: grabbing;
}
.geek-tool-item.geek-fav-dragging {
    opacity: .7;
    outline: 1px dashed #1e90ff;
}
@media (max-width: 768px) {
    .geek-fav-grip {
        opacity: .65;
    }
}
