/* 卡密激活页面样式 */
.dpm-activate-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dpm-activate-header {
    text-align: center;
    margin-bottom: 30px;
}

.dpm-activate-header h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.dpm-activate-form {
    margin-bottom: 20px;
}

.dpm-activate-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

.dpm-activate-input:focus {
    border-color: #4CAF50;
    outline: none;
}

.dpm-activate-btn {
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    position: relative;
}

.dpm-activate-btn:hover {
    background: #45a049;
}

.dpm-activate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.dpm-loading {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.dpm-success {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
}

.dpm-success-message {
    color: #2e7d32;
    font-size: 16px;
    margin-bottom: 10px;
}

.dpm-success-info {
    color: #1b5e20;
    font-size: 14px;
}

.dpm-error {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
}

.dpm-expired {
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
}

.dpm-expired-message {
    color: #ef6c00;
    font-size: 16px;
    margin-bottom: 10px;
}

.dpm-expired-info {
    color: #e65100;
    font-size: 14px;
}

/* 从PHP文件迁移的样式 */
.dpm-protected-area {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.dpm-auth-form {
    max-width: 400px;
    margin: 0 auto;
}

.dpm-form-group {
    position: relative;
    display: flex;
    gap: 10px;
}

.dpm-auth-form input[type="password"] {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.dpm-submit-btn {
    padding: 12px 24px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.dpm-submit-btn:hover {
    background: #135e96;
}

.dpm-protected-content {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 6px !important;
    padding: 20px !important;
    margin: 20px 0 !important;
    text-align: center !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    max-width: 100% !important;
}

.dpm-protected-message {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px !important;
    border-radius: 4px !important;
}

.dpm-protected-message span {
    color: #495057 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

.dpm-icon {
    color: #6c757d !important;
    margin-right: 12px !important;
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
}

.dpm-activate-link {
    display: inline-flex !important;
    align-items: center !important;
    background-color: #007bff !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 10px 18px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: background-color 0.2s !important;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3) !important;
}

.dpm-activate-link:hover {
    background-color: #0069d9 !important;
    color: white !important;
    text-decoration: none !important;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.4) !important;
}

.dpm-btn-icon {
    margin-left: 8px !important;
    stroke: white !important;
}

.dpm-error {
    color: #dc3232;
    margin-top: 10px;
}

.loading-spinner, .dpm-loading {
    display: none;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dpm-ajax-form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    gap: 10px;
}

.dpm-ajax-form input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.dpm-feedback div {
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
}


/* 卡密激活表单样式 - 全新设计 */
.dpm-card {
    max-width: 450px;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    overflow: hidden;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.dpm-card-header {
    background: #1da1f2; /* 天蓝色主题 */
    color: white;
    padding: 18px 20px;
    display: flex;
    align-items: center;
}

.dpm-card-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 12px;
}

.dpm-card-icon svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

.dpm-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.dpm-card-body {
    padding: 24px;
}

.dpm-input-group {
    display: flex;
    position: relative;
    margin-bottom: 20px;
    flex-wrap: wrap; /* 允许在小屏幕上换行 */
    gap: 10px;
}

.dpm-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 0; /* 防止input在flex布局中不缩小 */
}

.dpm-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 2;
    pointer-events: none; /* 防止图标阻挡输入框交互 */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    width: 18px;
}

.dpm-input-icon svg {
    width: 18px;
    height: 18px;
    stroke: #94a3b8;
    display: block; /* 确保SVG正确显示 */
}

.dpm-input-group input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.25s ease;
    background: #f8fafc;
    height: 44px;
    box-sizing: border-box;
}

.dpm-input-group input:focus {
    border-color: #1da1f2; /* 天蓝色边框 */
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 161, 242, 0.15);
    background: #fff;
}

#dpm-activate-btn {
    background: #1da1f2; /* 天蓝色按钮 */
    color: white;
    border: none;
    padding: 0 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    min-width: 120px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(29, 161, 242, 0.3);
    white-space: nowrap; /* 防止文本换行 */
}

.dpm-button-icon {
    margin-left: 6px;
    display: flex;
    align-items: center;
}

.dpm-button-icon svg {
    stroke: white;
}

#dpm-activate-btn:hover {
    background: #0c7abf; /* 深天蓝色 - 悬停状态 */
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
}

#dpm-activate-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(29, 161, 242, 0.3);
}

#dpm-activate-btn:disabled {
    background: #a5d9f8; /* 浅天蓝色 - 禁用状态 */
    cursor: not-allowed;
    box-shadow: none;
}

.dpm-loading {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

/* 按钮加载状态样式 - 完全重写 */
#dpm-activate-btn.loading,
#dpm-merge-btn.loading {
    position: relative !important;
    color: transparent !important;
    pointer-events: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#dpm-activate-btn.loading .dpm-loading,
#dpm-merge-btn.loading .dpm-loading {
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    z-index: 10 !important;
}

#dpm-activate-btn.loading .dpm-button-icon,
#dpm-merge-btn.loading .dpm-button-icon {
    display: none !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#dpm-activate-result {
    margin-top: 15px;
}

/* 卡密已激活样式 */
.dpm-card-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    margin: 20px auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    max-width: 450px;
}

.dpm-card-success .dpm-card-icon {
    width: 64px;
    height: 64px;
    background: #1da1f2; /* 天蓝色图标背景 */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.dpm-card-success .dpm-card-icon svg {
    width: 32px;
    height: 32px;
    stroke: #fff;
}

.dpm-card-success .dpm-card-title {
    color: #1da1f2; /* 天蓝色标题 */
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.dpm-card-success .dpm-card-content {
    color: #64748b;
    font-size: 15px;
    background: #f1f5f9;
    padding: 10px 16px;
    border-radius: 6px;
    margin-top: 5px;
}

/* 卡密激活结果样式 */
.dpm-success-message {
    background: #e1f5fe; /* 浅天蓝色背景 */
    color: #0288d1; /* 深天蓝色文字 */
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 15px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    border-left: 4px solid #1da1f2;
}

.dpm-success-message:before {
    content: "✓";
    display: inline-block;
    margin-right: 10px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    background: #1da1f2;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
}

.dpm-error-message {
    background: #fff1f0;
    color: #f44336;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 15px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    border-left: 4px solid #f44336;
}

.dpm-error-message:before {
    content: "✕";
    display: inline-block;
    margin-right: 10px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
}

/* 移动端响应式调整 */
@media (max-width: 480px) {
    .dpm-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .dpm-input-wrapper {
        width: 100%;
    }
    
    #dpm-activate-btn {
        margin-left: 0;
        width: 100%;
        height: 44px;
    }
    
    .dpm-card-body {
        padding: 20px 15px;
    }
    
    .dpm-card {
        margin: 15px 10px;
        max-width: none;
    }
    
    .dpm-mobile-hint {
        display: block;
    }
    
    .dpm-success-message, 
    .dpm-error-message {
        padding: 12px;
        font-size: 14px;
    }
    
    .dpm-card-header {
        padding: 15px;
    }
    
    .dpm-card-success {
        padding: 25px 15px;
    }
    
    .dpm-card-success .dpm-card-title {
        font-size: 20px;
    }
    
    .dpm-card-success .dpm-card-content {
        font-size: 14px;
        padding: 8px 12px;
    }
}

.dpm-mini-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    stroke: #1da1f2;
}

.dpm-mobile-hint {
    display: none;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 12px;
    text-align: center;
}

.dpm-card-success .dpm-card-content {
    color: #64748b;
    font-size: 15px;
    background: #f1f5f9;
    padding: 10px 16px;
    border-radius: 6px;
    margin-top: 5px;
    display: flex;
    align-items: center;
}

/* 添加已激活内容区域的样式 */
.dpm-activated-content {
    position: relative;
    padding: 20px;
    border-radius: 8px;
    background-color: #f8f9fa !important;
    border-left: 4px solid #28a745 !important;
    margin: 15px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
}

.dpm-activated-content:before {
    content: "";
    position: absolute;
    top: 12px;
    left: -12px;
    width: 20px;
    height: 20px;
    background-color: #28a745;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 卡密融合相关样式 */
.dpm-card-description {
    margin-bottom: 20px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.5;
}

/* 卡密融合使用说明样式 */
.dpm-merge-tips {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 3px solid #1da1f2;
}

.dpm-merge-tips-title {
    color: #0c7abf;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
}

.dpm-merge-tips-list {
    margin: 0;
    padding-left: 20px;
}

.dpm-merge-tips-list li {
    color: #64748b;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.dpm-merge-tips-list li:last-child {
    margin-bottom: 0;
}

/* 卡密融合输入框组样式优化 */
.dpm-input-group + .dpm-input-group {
    margin-top: 15px;
}

/* 卡密融合按钮样式 */
#dpm-merge-btn {
    background: #1da1f2; /* 与激活按钮保持一致的蓝色 */
    color: white;
    border: none;
    padding: 0 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    min-width: 120px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(29, 161, 242, 0.3);
    white-space: nowrap; /* 防止文本换行 */
}

#dpm-merge-btn:hover {
    background: #0c7abf; /* 深蓝色 - 悬停状态 */
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
}

#dpm-merge-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(29, 161, 242, 0.3);
}

#dpm-merge-btn:disabled {
    background: #a5d9f8; /* 浅蓝色 - 禁用状态 */
    cursor: not-allowed;
    box-shadow: none;
}

#dpm-merge-result {
    margin-top: 20px;
}

/* 卡密融合成功后的额外样式 */
.dpm-merge-password-display {
    text-align: center;
    font-weight: bold;
    word-break: break-all;
    background: #e9f7fe;
    border: 1px dashed #1da1f2; /* 使用蓝色主题 */
    padding: 15px;
    margin: 15px 0;
    border-radius: 6px;
    font-family: monospace;
    font-size: 18px;
    color: #0c7abf;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dpm-merge-password-display:hover {
    background: #d0eafb;
    border-color: #0c7abf;
    box-shadow: 0 2px 6px rgba(29, 161, 242, 0.2);
}

.dpm-merge-password-display:active {
    transform: scale(0.98);
}

.dpm-merge-copy-hint {
    color: #64748b;
    font-size: 13px;
    text-align: center;
    margin: 5px 0 15px;
    font-style: italic;
}

.dpm-merge-success {
    border-left-color: #1da1f2; /* 使用蓝色主题 */
}

.dpm-merge-success:before {
    background: #1da1f2; /* 使用蓝色主题 */
}

/* 退出激活状态按钮样式 */
.dpm-card-actions {
    padding: 15px 0 0 0;
    border-top: 1px solid #f1f5f9;
    margin-top: 15px;
    text-align: center;
}

.dpm-logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.dpm-logout-btn:hover {
    background: #c82333;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
    transform: translateY(-1px);
}

.dpm-logout-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.dpm-logout-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.dpm-logout-btn svg {
    stroke: white;
    flex-shrink: 0;
}

/* 响应式调整 */
@media (max-width: 480px) {
    #dpm-merge-btn {
        width: 100%;
        margin-top: 10px;
        margin-left: 0;
    }
    
    .dpm-merge-tips {
        padding: 12px;
    }
    
    .dpm-merge-tips-title {
        font-size: 15px;
    }
    
    .dpm-merge-tips-list li {
        font-size: 13px;
    }
    
    .dpm-card-actions {
        padding: 12px 0 0 0;
        margin-top: 12px;
    }
    
    .dpm-logout-btn {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* 邮箱绑定相关样式 */
.dpm-email-binding-section {
    margin-top: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.dpm-email-binding-header h4 {
    margin: 0 0 8px 0;
    color: #475569;
    font-size: 16px;
    font-weight: 600;
}

.dpm-email-hint {
    margin: 0 0 15px 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.4;
}

.dpm-email-warning {
    margin-top: 10px;
    text-align: center;
}

.dpm-email-warning small {
    color: #f59e0b;
    font-size: 13px;
    background: #fef3c7;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-block;
    border: 1px solid #f9d71c;
}

/* 邮箱登录按钮样式 */
.dpm-activate-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
}

.dpm-email-login-btn {
    background: #6366f1;
    color: white;
    border: none;
    padding: 0 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    min-width: 140px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
    white-space: nowrap;
}

.dpm-email-login-btn:hover {
    background: #4f46e5;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.dpm-email-login-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.dpm-email-login-btn:disabled {
    background: #a5b4fc;
    cursor: not-allowed;
    box-shadow: none;
}

.dpm-email-login-btn svg {
    stroke: white;
    flex-shrink: 0;
}

/* 管理后台邮箱绑定显示样式 */
.dpm-email-bound {
    color: #059669;
    font-weight: 500;
    padding: 2px 8px;
    background: #d1fae5;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid #a7f3d0;
}

.dpm-email-unbound {
    color: #6b7280;
    font-style: italic;
    font-size: 13px;
}

/* 邮箱登录对话框样式 */
.dpm-email-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    min-width: 350px;
    max-width: 90vw;
}

.dpm-email-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.dpm-email-dialog-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.dpm-email-dialog-title {
    flex: 1;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.dpm-email-dialog-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #64748b;
    transition: all 0.2s ease;
}

.dpm-email-dialog-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.dpm-email-dialog-body {
    margin-bottom: 20px;
}

.dpm-email-dialog-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 15px;
    transition: border-color 0.2s ease;
}

.dpm-email-dialog-input:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.dpm-email-dialog-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.dpm-email-dialog-cancel {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dpm-email-dialog-cancel:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

.dpm-email-dialog-confirm {
    background: #6366f1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dpm-email-dialog-confirm:hover {
    background: #4f46e5;
}

.dpm-email-dialog-confirm:disabled {
    background: #a5b4fc;
    cursor: not-allowed;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .dpm-activate-button-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dpm-email-login-btn,
    #dpm-activate-btn {
        width: 100%;
        margin-left: 0;
    }
    
    .dpm-email-binding-section {
        margin-top: 15px;
        padding: 12px;
    }
    
    .dpm-email-binding-header h4 {
        font-size: 15px;
    }
    
    .dpm-email-hint {
        font-size: 13px;
    }
    
    .dpm-email-warning small {
        font-size: 12px;
        padding: 5px 8px;
    }
    
    .dpm-email-dialog {
        min-width: 0;
        margin: 20px;
        padding: 20px;
    }
    
    .dpm-email-dialog-buttons {
        flex-direction: column;
    }
    
    .dpm-email-dialog-cancel,
    .dpm-email-dialog-confirm {
        width: 100%;
        justify-content: center;
    }
}

/* 邮箱绑定确认对话框样式 */
.dpm-bind-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    width: 90vw;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}

.dpm-bind-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.dpm-bind-dialog-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.dpm-bind-dialog-title {
    flex: 1;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dpm-bind-dialog-title svg {
    stroke: #1da1f2;
    flex-shrink: 0;
}

.dpm-bind-dialog-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #64748b;
    transition: all 0.2s ease;
    font-size: 24px;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dpm-bind-dialog-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.dpm-bind-dialog-body {
    margin-bottom: 20px;
}

.dpm-bind-dialog-description {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.dpm-bind-dialog-benefits {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    border-left: 3px solid #1da1f2;
}

.dpm-bind-dialog-benefits h4 {
    margin: 0 0 10px 0;
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
}

.dpm-bind-dialog-benefits ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.dpm-bind-dialog-benefits li {
    color: #475569;
    font-size: 14px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.dpm-bind-dialog-benefits li:last-child {
    margin-bottom: 0;
}

.dpm-bind-dialog-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 15px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.dpm-bind-dialog-input:focus {
    border-color: #1da1f2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 161, 242, 0.1);
}

.dpm-bind-dialog-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.dpm-bind-dialog-skip {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dpm-bind-dialog-skip:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

.dpm-bind-dialog-confirm {
    background: #1da1f2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dpm-bind-dialog-confirm:hover {
    background: #0c7abf;
}

.dpm-bind-dialog-confirm:disabled {
    background: #a5d9f8;
    cursor: not-allowed;
}

.dpm-bind-dialog-confirm svg,
.dpm-bind-dialog-skip svg {
    stroke: currentColor;
    flex-shrink: 0;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .dpm-bind-dialog {
        width: calc(100vw - 20px);
        max-width: none;
        margin: 0;
        padding: 20px;
        border-radius: 8px;
    }
    
    .dpm-bind-dialog-buttons {
        flex-direction: column;
    }
    
    .dpm-bind-dialog-skip,
    .dpm-bind-dialog-confirm {
        width: 100%;
        justify-content: center;
    }
    
    .dpm-bind-dialog-title {
        font-size: 16px;
    }
    
    .dpm-bind-dialog-description {
        font-size: 13px;
    }
    
    .dpm-bind-dialog-benefits {
        padding: 12px;
    }
    
    .dpm-bind-dialog-benefits h4 {
        font-size: 14px;
    }
    
    .dpm-bind-dialog-benefits li {
        font-size: 13px;
    }
}

/* 超小屏幕适配 (320px以下) */
@media (max-width: 360px) {
    .dpm-bind-dialog {
        width: calc(100vw - 10px);
        padding: 16px;
        border-radius: 6px;
    }
    
    .dpm-bind-dialog-header {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .dpm-bind-dialog-title {
        font-size: 15px;
    }
    
    .dpm-bind-dialog-description {
        font-size: 12px;
    }
    
    .dpm-bind-dialog-benefits {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .dpm-bind-dialog-benefits h4 {
        font-size: 13px;
    }
    
    .dpm-bind-dialog-benefits li {
        font-size: 12px;
    }
    
    .dpm-bind-dialog-input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .dpm-bind-dialog-skip,
    .dpm-bind-dialog-confirm {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ===== 推广链接相关样式 ===== */

/* 推广小部件容器 */
.dpm-referral-widget {
    max-width: 600px;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* 推广头部 */
.dpm-referral-header {
    background: linear-gradient(135deg, #1da1f2 0%, #0c7abf 100%);
    color: white;
    padding: 24px;
    text-align: center;
}

.dpm-referral-header h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
}

.dpm-referral-description {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
}

/* 推广链接输入区域 */
.dpm-referral-link-section {
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.dpm-referral-link-section label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #374151;
    font-size: 15px;
}

.dpm-link-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.dpm-referral-url {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8fafc;
    color: #475569;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    min-width: 0; /* 防止超出容器 */
}

.dpm-referral-url:focus {
    border-color: #1da1f2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 161, 242, 0.1);
    background: #fff;
}

.dpm-copy-link-btn {
    background: #1da1f2;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(29, 161, 242, 0.3);
}

.dpm-copy-link-btn:hover {
    background: #0c7abf;
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
    transform: translateY(-1px);
}

.dpm-copy-link-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(29, 161, 242, 0.3);
}

/* 推广统计区域 */
.dpm-referral-stats {
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.dpm-referral-stats h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.dpm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.dpm-stat-item {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
}

.dpm-stat-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.dpm-stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1da1f2;
    line-height: 1.2;
}

.dpm-stat-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 进度条区域 */
.dpm-progress-section {
    margin-top: 20px;
}

.dpm-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.dpm-progress-info span:first-child {
    color: #475569;
}

.dpm-progress-percentage {
    font-weight: 600;
    color: #1da1f2;
    font-size: 16px;
}

.dpm-progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dpm-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1da1f2 0%, #0c7abf 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 1px 2px rgba(29, 161, 242, 0.3);
}

/* 推广小贴士区域 */
.dpm-referral-tips {
    padding: 24px;
    background: #f8fafc;
}

.dpm-referral-tips h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dpm-referral-tips h4:before {
    content: "💡";
    font-size: 18px;
}

.dpm-referral-tips ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.dpm-referral-tips li {
    position: relative;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    padding-left: 12px;
}

.dpm-referral-tips li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #1da1f2;
    font-weight: bold;
}

.dpm-referral-tips li:last-child {
    margin-bottom: 0;
}

/* 错误提示样式 */
.dpm-referral-widget .dpm-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 16px;
    margin: 20px;
    color: #dc2626;
    font-size: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dpm-referral-widget .dpm-error:before {
    content: "⚠️";
    font-size: 18px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dpm-referral-widget {
        margin: 15px 10px;
        max-width: none;
    }
    
    .dpm-referral-header {
        padding: 20px 16px;
    }
    
    .dpm-referral-header h3 {
        font-size: 20px;
    }
    
    .dpm-referral-description {
        font-size: 14px;
    }
    
    .dpm-referral-link-section,
    .dpm-referral-stats,
    .dpm-referral-tips {
        padding: 20px 16px;
    }
    
    .dpm-link-input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .dpm-copy-link-btn {
        width: 100%;
        padding: 14px 20px;
    }
    
    .dpm-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .dpm-stat-item {
        padding: 12px 8px;
    }
    
    .dpm-stat-number {
        font-size: 20px;
    }
    
    .dpm-stat-label {
        font-size: 11px;
    }
    
    .dpm-progress-info {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .dpm-progress-percentage {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .dpm-referral-header {
        padding: 16px 12px;
    }
    
    .dpm-referral-header h3 {
        font-size: 18px;
    }
    
    .dpm-referral-description {
        font-size: 13px;
    }
    
    .dpm-referral-link-section,
    .dpm-referral-stats,
    .dpm-referral-tips {
        padding: 16px 12px;
    }
    
    .dpm-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .dpm-stat-item {
        padding: 10px 6px;
    }
    
    .dpm-stat-number {
        font-size: 18px;
    }
    
    .dpm-stat-label {
        font-size: 10px;
    }
    
    .dpm-referral-tips h4 {
        font-size: 15px;
    }
    
    .dpm-referral-tips li {
        font-size: 13px;
        margin-bottom: 8px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 360px) {
    .dpm-stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .dpm-stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 12px;
    }
    
    .dpm-stat-number {
        font-size: 20px;
        order: 2;
    }
    
    .dpm-stat-label {
        font-size: 12px;
        order: 1;
        margin-top: 0;
        text-transform: none;
        letter-spacing: 0;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dpm-referral-widget {
    animation: fadeInUp 0.5s ease-out;
}

/* 复制成功提示动画 */
@keyframes copySuccess {
    0% {
        background: #1da1f2;
        transform: scale(1);
    }
    50% {
        background: #10b981;
        transform: scale(1.05);
    }
    100% {
        background: #1da1f2;
        transform: scale(1);
    }
}

.dpm-copy-link-btn.copied {
    animation: copySuccess 0.6s ease;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .dpm-referral-widget {
        background: #1e293b;
        color: #f1f5f9;
    }
    
    .dpm-referral-url {
        background: #334155;
        border-color: #475569;
        color: #e2e8f0;
    }
    
    .dpm-stat-item {
        background: #334155;
        border-color: #475569;
    }
    
    .dpm-referral-tips {
        background: #334155;
    }
    
    .dpm-progress-bar {
        background: #475569;
    }
    
    .dpm-referral-widget .dpm-error {
        background: #3f1f1f;
        border-color: #7f1d1d;
        color: #fca5a5;
    }
}

/* ===== 推广中心统一样式 ===== */

/* 推广中心主容器 */
.dpm-referral-center-widget {
    max-width: 600px;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* 推广中心头部 */
.dpm-center-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 24px;
    text-align: center;
    border-radius: 12px 12px 0 0;
}

.dpm-center-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

/* 推广数据面板样式 */
.dpm-referral-dashboard {
    padding: 24px;
}

.dpm-dashboard-header h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #065f46;
}

.dpm-dashboard-description {
    margin: 0 0 20px 0;
    color: #64748b;
    font-size: 15px;
}

.dpm-referral-info {
    margin-bottom: 24px;
}

.dpm-info-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.dpm-info-card:last-child {
    margin-bottom: 0;
}

.dpm-info-card label {
    display: block;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    margin-bottom: 8px;
}

/* 注册表单区域样式 */
.dpm-referral-register {
    padding: 24px;
}

.dpm-register-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 24px;
    text-align: center;
}

.dpm-register-header h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
}

.dpm-register-description {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
}

/* 推广员权益区域 */
.dpm-register-benefits {
    padding: 20px 24px;
    background: #f0fdf4;
    border-bottom: 1px solid #bbf7d0;
}

.dpm-register-benefits h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #065f46;
}

.dpm-register-benefits ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.dpm-register-benefits li {
    position: relative;
    color: #064e3b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 12px;
}

.dpm-register-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.dpm-register-benefits li:last-child {
    margin-bottom: 0;
}

/* 注册表单区域 */
.dpm-register-form-section {
    padding: 24px;
}

.dpm-register-form {
    margin-bottom: 20px;
}

.dpm-form-group {
    margin-bottom: 20px;
}

.dpm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.dpm-register-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    background: #f8fafc;
    color: #475569;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.dpm-register-input:focus {
    border-color: #10b981;
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    background: #fff;
}

.dpm-form-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
    font-style: italic;
}

.dpm-register-btn {
    width: 100%;
    background: #10b981;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.25s ease;
    position: relative;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dpm-register-btn:hover {
    background: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.dpm-register-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.dpm-register-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.dpm-register-btn.loading {
    color: transparent;
    pointer-events: none;
}

.dpm-register-btn .dpm-loading {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.dpm-register-btn.loading .dpm-loading {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* 注册成功结果 */
.dpm-register-result {
    animation: fadeInUp 0.5s ease-out;
}

.dpm-register-success {
    text-align: center;
    padding: 20px 0;
}

.dpm-success-icon {
    font-size: 48px;
    margin-bottom: 16px;
    animation: bounceIn 0.6s ease-out;
}

.dpm-register-success h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #065f46;
}

.dpm-register-success p {
    margin: 0 0 20px 0;
    color: #64748b;
    font-size: 15px;
}

.dpm-success-details {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.dpm-detail-item {
    margin-bottom: 16px;
}

.dpm-detail-item:last-child {
    margin-bottom: 0;
}

.dpm-detail-item label {
    display: block;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    margin-bottom: 6px;
}

.dpm-referral-code {
    background: #ecfdf5;
    color: #065f46;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid #bbf7d0;
}

.dpm-link-copy-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dpm-referral-url-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: #f9fafb;
    color: #6b7280;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    min-width: 0;
}

.dpm-copy-url-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.dpm-copy-url-btn:hover {
    background: #059669;
}

.dpm-next-steps {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
    text-align: left;
}

.dpm-next-steps h5 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
}

.dpm-next-steps ol {
    margin: 0;
    padding-left: 20px;
}

.dpm-next-steps li {
    color: #78350f;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.dpm-next-steps li:last-child {
    margin-bottom: 0;
}

.dpm-next-steps code {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* 注册须知 */
.dpm-register-tips {
    padding: 20px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.dpm-register-tips h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.dpm-register-tips ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.dpm-register-tips li {
    position: relative;
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 12px;
}

.dpm-register-tips li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #64748b;
    font-weight: bold;
}

.dpm-register-tips li:last-child {
    margin-bottom: 0;
}

/* 动画效果 */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dpm-referral-center-widget {
        margin: 15px 10px;
        max-width: none;
    }
    
    .dpm-register-header {
        padding: 20px 16px;
    }
    
    .dpm-register-header h3 {
        font-size: 20px;
    }
    
    .dpm-register-description {
        font-size: 14px;
    }
    
    .dpm-register-benefits,
    .dpm-register-form-section,
    .dpm-register-tips {
        padding: 16px;
    }
    
    .dpm-link-copy-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .dpm-copy-url-btn {
        width: 100%;
        padding: 12px 16px;
    }
    
    .dpm-success-details {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .dpm-register-header {
        padding: 16px 12px;
    }
    
    .dpm-register-header h3 {
        font-size: 18px;
    }
    
    .dpm-register-description {
        font-size: 13px;
    }
    
    .dpm-register-benefits,
    .dpm-register-form-section,
    .dpm-register-tips {
        padding: 12px;
    }
    
    .dpm-register-btn {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .dpm-success-icon {
        font-size: 36px;
    }
    
    .dpm-register-success h4 {
        font-size: 18px;
    }
    
    .dpm-success-details {
        padding: 12px;
    }
    
    .dpm-next-steps {
        padding: 12px;
    }
}

/* 推广奖励卡密显示样式 */
.dpm-earned-passwords {
    margin-top: 24px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.dpm-earned-passwords h5 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #065f46;
}

.dpm-passwords-list {
    margin-bottom: 16px;
}

.dpm-password-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 8px;
    transition: all 0.25s ease;
}

.dpm-password-item:hover {
    border-color: #10b981;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}

.dpm-password-item:last-child {
    margin-bottom: 0;
}

.dpm-password-item.expired {
    background: #fef2f2;
    border-color: #fca5a5;
    opacity: 0.7;
}

.dpm-password-code {
    flex: 1;
    position: relative;
}

.dpm-password-code code {
    background: #ecfdf5;
    color: #065f46;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid #bbf7d0;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-block;
    min-width: 140px;
}

.dpm-password-code code:hover {
    background: #d1fae5;
    border-color: #10b981;
    transform: translateY(-1px);
}

.dpm-copy-hint {
    font-size: 11px;
    color: #6b7280;
    margin-left: 8px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.dpm-password-code:hover .dpm-copy-hint {
    opacity: 1;
}

.dpm-password-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 12px;
    gap: 4px;
}

.dpm-password-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 11px;
}

.dpm-password-status.active {
    background: #dcfce7;
    color: #166534;
}

.dpm-password-status.expired {
    background: #fee2e2;
    color: #991b1b;
}

.dpm-password-status.permanent {
    background: #dbeafe;
    color: #1e40af;
}

.dpm-password-status.inactive {
    background: #f3f4f6;
    color: #6b7280;
}

.dpm-password-expires {
    color: #6b7280;
    font-size: 10px;
}

.dpm-passwords-tips {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    border-radius: 6px;
    padding: 12px;
    margin-top: 16px;
}

.dpm-passwords-tips p {
    margin: 0 0 8px 0;
    color: #92400e;
    font-size: 14px;
}

.dpm-passwords-tips ul {
    margin: 0;
    padding-left: 20px;
}

.dpm-passwords-tips li {
    color: #78350f;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.dpm-passwords-tips li:last-child {
    margin-bottom: 0;
}

.dpm-no-passwords {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 20px;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .dpm-password-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .dpm-password-info {
        align-items: flex-start;
        width: 100%;
    }
    
    .dpm-password-code code {
        min-width: auto;
        font-size: 12px;
    }
    
    .dpm-earned-passwords {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .dpm-password-code code {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .dpm-passwords-tips {
        padding: 10px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .dpm-referral-center-widget {
        background: #1e293b;
        color: #f1f5f9;
    }
    
    .dpm-register-benefits {
        background: #064e3b;
        border-color: #065f46;
    }
    
    .dpm-register-benefits h4,
    .dpm-register-benefits li {
        color: #d1fae5;
    }
    
    .dpm-register-input {
        background: #334155;
        border-color: #475569;
        color: #e2e8f0;
    }
    
    .dpm-success-details {
        background: #334155;
    }
    
    .dpm-register-tips {
        background: #334155;
        border-color: #475569;
    }
    
    .dpm-next-steps {
        background: #44403c;
        border-color: #78716c;
    }
    
    .dpm-next-steps h5,
    .dpm-next-steps li {
        color: #fbbf24;
    }
}

/* 推广码查询区域样式 */
.dpm-code-query-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    margin-bottom: 0;
}

.dpm-code-query-section h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.dpm-query-description {
    margin: 0 0 20px 0;
    opacity: 0.9;
    font-size: 14px;
    line-height: 1.5;
}

.dpm-query-form {
    margin: 0;
}

.dpm-query-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.dpm-query-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.dpm-query-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.dpm-query-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.dpm-query-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.dpm-query-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.dpm-query-btn:active {
    transform: translateY(0);
}

/* 分割线样式 */
.dpm-divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
    padding: 0 25px;
}

.dpm-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 25px;
    right: 25px;
    height: 1px;
    background: linear-gradient(to right, transparent, #e1e5e9, transparent);
}

.dpm-divider span {
    background: white;
    padding: 0 20px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* 响应式查询区域 */
@media (max-width: 768px) {
    .dpm-query-input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .dpm-query-btn {
        width: 100%;
        justify-self: stretch;
    }
    
    .dpm-code-query-section {
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    .dpm-code-query-section {
        padding: 16px 12px;
    }
    
    .dpm-code-query-section h4 {
        font-size: 16px;
    }
    
    .dpm-query-description {
        font-size: 13px;
    }
} 