/**
 * VIP Manager 插件前台样式
 */

/* 基础布局容器 */
.vip-login-container, .vip-credentials-container {
    margin: 10px 0;
    padding: 12px;
    border-radius: 6px;
    background-color: #f5f7fa;
    border: 1px solid #e5e7eb;
}

.vip-login-container:hover, .vip-credentials-container:hover {
    box-shadow: none;
}

/* 登录按钮和反馈按钮容器 */
.vip-login-button-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
}

.vip-login-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vip-site-inline-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 12px;
}

.vip-site-inline-info .vip-info-item {
    margin: 0;
    padding: 0;
}

/* 登录按钮样式 */
.vip-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #2563eb;
    color: white !important;
    padding: 6px 14px;
    font-size: 13px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease;
    line-height: 1.4;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.vip-login-button:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(37, 99, 235, 0.3);
}

.vip-login-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

/* 反馈按钮样式 */
.vip-feedback-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background-color: #f3f4f6;
    color: #4b5563 !important;
    padding: 6px 10px;
    font-size: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    line-height: 1.4;
    font-weight: 500;
}

.vip-feedback-button:hover {
    background-color: #e5e7eb;
    color: #111827 !important;
}

.vip-feedback-button svg {
    transition: transform 0.2s ease;
}

.vip-feedback-button:hover svg {
    transform: scale(1.1);
}

/* 错误消息样式 */
.vip-login-error {
    color: #dc2626;
    background-color: #fee2e2;
    padding: 8px 10px;
    border-radius: 6px;
    margin: 8px 0;
    border-left: 4px solid #ef4444;
    font-size: 12px;
    line-height: 1.5;
}

/* 消息容器 */
.vip-login-messages {
    margin-top: 8px;
    width: 100%;
}

/* 扩展状态提示 */
.extension-status {
    color: #b91c1c;
    font-size: 12px;
    padding: 8px 10px;
    background-color: #fee2e2;
    border-radius: 6px;
    border: 1px solid #fecaca;
    display: block;
    line-height: 1.5;
    margin: 6px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.extension-status svg {
    flex-shrink: 0;
}

.extension-status a {
    color: #2563eb !important;
    text-decoration: none !important;
    font-weight: 500;
    padding: 3px 8px;
    background: #eff6ff;
    border-radius: 4px;
    transition: background 0.2s;
    border: 1px solid #dbeafe;
    display: inline-flex;
    align-items: center;
    font-size: 12px;
}

.extension-status a:hover {
    background: #dbeafe;
    text-decoration: none !important;
}

/* 成功和错误消息 */
.success-message {
    color: #16a34a;
    font-size: 12px;
    padding: 6px 10px;
    background-color: #f0fdf4;
    border-radius: 6px;
    border: 1px solid #dcfce7;
    display: inline-block;
    margin-top: 6px;
    margin-bottom: 6px;
}

.error-message {
    color: #dc2626;
    font-size: 12px;
    padding: 6px 10px;
    background-color: #fee2e2;
    border-radius: 6px;
    border: 1px solid #fecaca;
    display: inline-block;
    margin-top: 6px;
    margin-bottom: 6px;
}

/* 网站信息区域 */
.vip-site-info {
    margin-top: 8px;
    padding: 6px 8px;
    gap: 6px;
}

.vip-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.vip-info-grid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.vip-info-col {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.vip-info-credentials {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e5e7eb;
}

.vip-info-item {
    display: flex;
    align-items: center;
    margin: 3px 0;
    padding: 0;
    white-space: nowrap;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.vip-info-item strong {
    margin-right: 5px;
    color: #4b5563;
    white-space: nowrap;
}

/* 标签样式 */
.vip-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 3px;
}

.site-type-tag {
    background-color: #dbeafe;
    color: #1e40af;
}

.site-name-tag {
    background-color: #fee2e2;
    color: #b91c1c;
}

.membership-type-tag {
    background-color: #e0e7ff;
    color: #4338ca;
}

.price-tag {
    background-color: #dcfce7;
    color: #166534;
}

/* 安装指南弹窗 */
.extension-install-guide {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    display: none;
}

.extension-install-guide.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.extension-install-guide > div {
    background: white;
    max-width: 600px;
    width: 90%;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.extension-install-guide h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1e40af;
    font-size: 18px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}

.install-guide-content {
    margin-top: 15px;
}

.install-guide-steps ol {
    padding-left: 20px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.install-guide-steps li {
    margin-bottom: 8px;
}

.install-guide-steps code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: #111827;
}

.install-guide-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.guide-close-btn {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.1s;
}

.guide-close-btn:hover {
    background-color: #1d4ed8;
}

.guide-close-btn:active {
    transform: translateY(1px);
}

.close-guide {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-guide:hover {
    background-color: #f3f4f6;
    color: #111827;
}

/* 反馈弹窗样式 */
.vip-feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    display: none;
}

.vip-feedback-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.vip-feedback-content {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
}

.close-feedback {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-feedback:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.vip-feedback-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 8px;
    color: #1e40af;
    font-size: 18px;
    border-bottom: 1px solid #e5e7eb;
}

.vip-feedback-form {
    margin-top: 15px;
}

.feedback-field {
    margin-bottom: 12px;
}

.feedback-field label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #4b5563;
}

.feedback-field select,
.feedback-field textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.feedback-field select:focus,
.feedback-field textarea:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.3);
}

.feedback-submit {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.vip-feedback-submit {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.1s;
}

.vip-feedback-submit:hover {
    background-color: #1d4ed8;
}

.vip-feedback-submit:active {
    transform: translateY(1px);
}

.vip-feedback-cancel,
.vip-feedback-close {
    background-color: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.vip-feedback-cancel:hover,
.vip-feedback-close:hover {
    background-color: #e5e7eb;
    color: #111827;
}

.vip-feedback-success {
    text-align: center;
    padding: 20px 0;
}

.vip-feedback-success p {
    margin-bottom: 20px;
    color: #16a34a;
    font-size: 16px;
    font-weight: 500;
}

/* 账号信息样式 */
.vip-credentials-info {
    background-color: transparent;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 0;
}

.vip-credential {
    background-color: #f3f4f6;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    border: 1px solid #e5e7eb;
    margin: 0 4px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

.vip-site-link {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    color: #2563eb;
    text-decoration: none;
}

.vip-copy-btn {
    background: none;
    border: none;
    color: #2563eb;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.vip-copy-btn:hover {
    background-color: #eff6ff;
}

/* 复制成功提示 */
.vip-copy-success {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #15803d;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    animation: vip-fade-in-out 2s ease forwards;
}

@keyframes vip-fade-in-out {
    0% { opacity: 0; transform: translate(-50%, 10px); }
    10% { opacity: 1; transform: translate(-50%, 0); }
    90% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -10px); }
}

/* 描述区域样式 */
.vip-site-description {
    margin-top: 10px;
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
}

.vip-description-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #0369a1;
}

/* 备注样式 */
.vip-site-note {
    margin-top: 10px;
    background-color: #fffbeb;
    border: 1px solid #fef3c7;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    color: #92400e;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .vip-info-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vip-info-grid {
        justify-content: flex-start;
        margin-top: 8px;
    }
    
    .vip-info-credentials {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .vip-login-button-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vip-site-inline-info {
        justify-content: flex-start;
        margin-top: 8px;
    }
    
    .vip-login-button,
    .vip-feedback-button {
        width: auto;
    }
    
    .vip-feedback-content {
        width: 95%;
        padding: 15px;
        max-width: 400px;
    }
}

/* 显示动画效果 */
.vip-login-container,
.vip-credentials-container,
.vip-site-info,
.vip-site-description,
.vip-site-note {
    animation: vip-fade-slide-up 0.3s ease-out;
}

@keyframes vip-fade-slide-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 

.vip-feedback-form input[type="email"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    box-sizing: border-box;
} 