/* Post Download Manager 前端样式 */
.pdm-download-section {
    margin: 40px 0 20px 0;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
}

.pdm-download-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007cba, #00a0d2);
    border-radius: 12px 12px 0 0;
}

.pdm-download-header {
    margin-bottom: 20px;
    text-align: center;
}

.pdm-download-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4em;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid #007cba;
    display: inline-block;
}

.pdm-password-form {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff9e6;
    border-radius: 8px;
    border-left: 4px solid #ffb900;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pdm-password-form p {
    margin: 0 0 12px 0;
    color: #856404;
    font-weight: 500;
}

.pdm-password-input {
    display: flex;
    gap: 12px;
    align-items: center;
}

.pdm-password-field {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.pdm-password-field:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
    outline: none;
}

.pdm-verify-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.pdm-verify-btn:hover {
    background: linear-gradient(135deg, #005a87, #004a6e);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 92, 186, 0.3);
}

.pdm-verify-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pdm-password-message {
    margin-top: 12px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.pdm-password-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pdm-password-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pdm-download-links.pdm-locked .pdm-links-container {
    display: none;
}

.pdm-toggle-links {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #007cba, #00a0d2);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.pdm-toggle-links:hover {
    background: linear-gradient(135deg, #005a87, #007cba);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 124, 186, 0.3);
}

.pdm-links-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.pdm-download-item {
    background: white;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    height: 62px; /* 固定高度62px */
    display: flex;
    flex-direction: column;
}

.pdm-download-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.pdm-download-content {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
	max-height: 62PX;
}

.pdm-download-link {
    display: flex;
    align-items: center;
    padding: 0 15px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s;
    flex: 1;
    height: 36px; /* 上面部分36px */
    min-height: 36px;
}

.pdm-download-link:hover {
    background: linear-gradient(135deg, #f0f7ff, #e3f2fd);
    color: #007cba;
    text-decoration: none;
}

.pdm-magnet-link:hover {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
}

.pdm-disk-icon {
    margin-right: 10px;
    border-radius: 4px;
    flex-shrink: 0;
}

.pdm-disk-name {
    font-weight: 600;
    font-size: 14px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pdm-disk-main {
    display: flex;
    align-items: center;
    flex: 1;
}

/* 新版提取码样式 - 显示在第二行，高度26px */
.pdm-code-section {
    border-top: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 12px;
    color: #666;
    height: 26px; /* 下面部分26px */
    min-height: 26px;
    transition: all 0.3s;
}

.pdm-code-label {
    font-weight: 600;
    color: #495057;
}

.pdm-code-value {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #28a745;
    background: #fff;
    padding: 2px 8px;
    border-radius: 4px;
	font-size: 14px;
    border: 1px solid #28a745;
    box-shadow: 0 1px 3px rgba(40, 167, 69, 0.2);
}

.pdm-copy-text {
    color: #ff6b35;
    font-size: 12px;
    font-style: italic;
    margin-left: 5px;
}

.pdm-footer-text {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #28a745;
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
}

.pdm-footer-text p {
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .pdm-links-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pdm-links-container {
        grid-template-columns: 1fr;
    }
    
    .pdm-password-input {
        flex-direction: column;
    }
    
    .pdm-download-section {
        margin: 30px 0 15px 0;
        padding: 20px;
    }
    
    .pdm-download-link {
        padding: 0 15px;
    }
    
    .pdm-download-item {
        height: 62px;
    }
}

@media (max-width: 480px) {
    .pdm-disk-name {
        font-size: 13px;
    }
    
    .pdm-code-value {
        font-size: 11px;
    }
    
    .pdm-copy-text {
        font-size: 11px;
    }
    
    .pdm-code-section {
        padding: 0 12px;
        font-size: 11px;
    }
    
    .pdm-download-link {
        height: 36px;
    }
    
    .pdm-code-section {
        height: 26px;
    }
}