/**
 * 收藏我们 - 前端样式
 */

/* 按钮容器 */
#bookmark-us-container {
    position: fixed;
    z-index: 9999;
    transition: all 0.3s ease;
}

/* 位置类 */
.bookmark-us-bottom-right {
    bottom: 20px;
    right: 20px;
}

.bookmark-us-bottom-left {
    bottom: 20px;
    left: 20px;
}

.bookmark-us-top-right {
    top: 20px;
    right: 20px;
}

.bookmark-us-top-left {
    top: 20px;
    left: 20px;
}

/* 收藏按钮 */
.bookmark-us-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.bookmark-us-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.bookmark-us-btn:active {
    transform: translateY(0);
}

.bookmark-us-icon {
    flex-shrink: 0;
}

/* 悬浮样式 */
.bookmark-us-floating .bookmark-us-btn {
    animation: bookmark-us-pulse 2s infinite;
}

@keyframes bookmark-us-pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.35);
    }
}

/* 弹窗样式 */
.bookmark-us-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.bookmark-us-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.bookmark-us-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: bookmark-us-modal-in 0.3s ease;
}

@keyframes bookmark-us-modal-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.bookmark-us-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.bookmark-us-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.bookmark-us-modal-close-x {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.bookmark-us-modal-close-x:hover {
    color: #333;
}

.bookmark-us-modal-body {
    padding: 24px;
}

.bookmark-us-device-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 20px;
}

.bookmark-us-device-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    border-radius: 12px;
}

.bookmark-us-device-icon svg {
    width: 28px;
    height: 28px;
    color: #495057;
}

.bookmark-us-device-text {
    flex: 1;
}

.bookmark-us-device-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 4px;
}

.bookmark-us-device-name {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
}

.bookmark-us-instructions {
    line-height: 1.8;
    color: #495057;
    font-size: 15px;
}

.bookmark-us-instructions kbd {
    display: inline-block;
    padding: 4px 8px;
    font-size: 13px;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: #f1f3f4;
    border: 1px solid #dadce0;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.bookmark-us-instructions strong {
    color: #212529;
}

.bookmark-us-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.bookmark-us-step:last-child {
    margin-bottom: 0;
}

.bookmark-us-step-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2271b1;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
}

.bookmark-us-step-content {
    flex: 1;
    padding-top: 3px;
}

.bookmark-us-modal-footer {
    padding: 16px 24px 24px;
    text-align: center;
}

.bookmark-us-modal-close {
    display: inline-block;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.bookmark-us-modal-close:hover {
    filter: brightness(1.1);
}

/* 短代码按钮样式 */
.bookmark-us-shortcode-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.bookmark-us-shortcode-btn:hover {
    background: #135e96;
}

.bookmark-us-shortcode-btn .bookmark-us-icon {
    width: 16px;
    height: 16px;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .bookmark-us-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .bookmark-us-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .bookmark-us-modal-header {
        padding: 16px 20px;
    }
    
    .bookmark-us-modal-body {
        padding: 20px;
    }
    
    .bookmark-us-modal-footer {
        padding: 12px 20px 20px;
    }
    
    .bookmark-us-device-info {
        padding: 12px;
    }
    
    .bookmark-us-device-icon {
        width: 40px;
        height: 40px;
    }
    
    .bookmark-us-device-icon svg {
        width: 24px;
        height: 24px;
    }
}
