/* 卡密激活页面样式 */
.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-claim-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dpm-claim-container h3 {
    margin-top: 0;
    color: #2271b1;
}

.dpm-claim-btn {
    background: #2271b1;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

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

.dpm-claim-btn .dpm-loading {
    margin-left: 10px;
}

.dpm-claim-result {
    margin-top: 15px;
    padding: 10px;
}

.dpm-password-display {
    background: #e9f7fe;
    border: 1px dashed #4caf50;
    padding: 15px;
    margin-top: 15px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 18px;
    color: #333;
    font-weight: bold;
    word-break: break-all;
}

.dpm-login-btn {
    display: inline-block;
    background: #2271b1;
    color: white !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 15px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.dpm-login-btn:hover {
    background: #135e96;
    color: white !important;
    text-decoration: none !important;
}

.dpm-login-btn:focus, 
.dpm-login-btn:active, 
.dpm-login-btn:visited {
    color: white !important;
    text-decoration: none !important;
    outline: none;
}

/* 卡密激活表单样式 - 全新设计 */
.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;
    position: absolute;
    right: 15px;
    margin-left: 5px;
}

@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;
    }
} 